[Photon] Help, please, photon install, "Version is a pre-release version of Elasticsearch and is not suitable for production"

Sarah Hoffmann lonvia at denofr.de
Thu Aug 20 17:10:04 UTC 2020


Hi,

the older version of photon has likely poluted your data directory.
Try running 

rm photon_data/elasticsearch/modules/lang-painless/*jar

and then start photon again.

Sarah

On Thu, Aug 20, 2020 at 12:50:06PM -0300, Scholam Instituto de Ensino wrote:
> Hi Sarah, I used the latest 0.3.3 release of Photon, please, could you try
> to help me again, see what happened:
> 
> "administrador at administrador-SM-3330:~$ sudo java -jar photon-0.3.3.jar
> [sudo] password for administrador:
> 2020-08-20 12:41:31,776 [main] WARN  org.elasticsearch.node.Node - version
> [5.5.0-SNAPSHOT] is a pre-release version of Elasticsearch and is not
> suitable for production
> Exception in thread "main" java.lang.IllegalStateException: failed to load
> plugin - Plugin information:
> Name: lang-painless
> Description: An easy, safe and fast scripting language for Elasticsearch
> Version: 5.5.0
> Native Controller: false
>  * Classname: org.elasticsearch.painless.PainlessPlugin due to jar hell
> at
> org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:376)
> at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:140)
> at org.elasticsearch.node.Node.<init>(Node.java:312)
> at de.komoot.photon.elasticsearch.Server$MyNode.<init>(Server.java:59)
> at de.komoot.photon.elasticsearch.Server.start(Server.java:113)
> at de.komoot.photon.App.main(App.java:51)
> Caused by: java.lang.IllegalStateException: jar hell!
> class: org.antlr.v4.runtime.ANTLRErrorListener
> jar1:
> /home/administrador/photon_data/elasticsearch/modules/lang-painless/antlr4-runtime-4.5.1-1.jar
> jar2:
> /home/administrador/photon_data/elasticsearch/modules/lang-painless/antlr4-runtime.jar
> at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:282)
> at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:192)
> at
> org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:374)
> ... 5 more
> administrador at administrador-SM-3330:~$"
> 
> Thanks, Scholam
> 
> On Thu, Aug 20, 2020 at 9:45 AM Sarah Hoffmann <lonvia at denofr.de> wrote:
> 
> > Hi,
> >
> > please use the latest 0.3.3 release of Photon.
> >
> > Kind regards
> >
> > Sarah
> >
> > On Thu, Aug 20, 2020 at 08:13:37AM -0300, Scholam Instituto de Ensino
> > wrote:
> > > I downloaded photon-db-latest.tar.bz2 from
> > https://github.com/komoot/photon,
> > > uncompressed and extracted the database: # you can significantly speed up
> > > extracting using pbzip2 (recommended): wget -O -
> > > http://download1.graphhopper.com/public/photon-db-latest.tar.bz2 |
> > pbzip2
> > > -cd | tar x
> > >
> > > The photon_data directory OK.
> > >
> > > Then, sudo java -jar photon-0.3.0.jar
> > >
> > > And the message "WARN org.elasticsearch.node.Node - version
> > > [5.5.0-SNAPSHOT] is a pre-release version of Elasticsearch and is not
> > > suitable for production":
> > >
> > > administrador at administrador-SM-3330:~$ sudo java -jar photon-0.3.0.jar
> > > [sudo] password for administrador:
> > > 2020-08-19 09:25:58,543 [main] WARN org.elasticsearch.node.Node - version
> > > [5.5.0-SNAPSHOT] is a pre-release version of Elasticsearch and is not
> > > suitable for production
> > > Exception in thread "main" java.lang.IllegalStateException: failed to
> > load
> > > plugin - Plugin information:
> > > Name: lang-painless
> > > Description: An easy, safe and fast scripting language for Elasticsearch
> > > Version: 5.5.0
> > > Native Controller: false
> > > * Classname: org.elasticsearch.painless.PainlessPlugin due to jar hell
> > > at
> > >
> > org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:376)
> > > at
> > org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:140)
> > > at org.elasticsearch.node.Node.<init>(Node.java:312)
> > > at de.komoot.photon.elasticsearch.Server$MyNode.<init>(Server.java:55)
> > > at de.komoot.photon.elasticsearch.Server.start(Server.java:112)
> > > at de.komoot.photon.App.main(App.java:47)
> > > Caused by: java.lang.IllegalStateException: jar hell!
> > > class: org.antlr.v4.runtime.ANTLRErrorListener
> > > jar1:
> > >
> > /home/administrador/photon_data/elasticsearch/modules/lang-painless/antlr4-runtime-4.5.1-1.jar
> > > jar2:
> > >
> > /home/administrador/photon_data/elasticsearch/modules/lang-painless/antlr4-runtime.jar
> > > at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:282)
> > > at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:192)
> > > at
> > >
> > org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:374)
> > > ... 5 more
> > > administrador at administrador-SM-3330:~$
> > >
> > > Please, could you help me?
> > >
> > > Thanks, Scholam
> >
> > > _______________________________________________
> > > Photon mailing list
> > > Photon at openstreetmap.org
> > > https://lists.openstreetmap.org/listinfo/photon
> >
> >
> > _______________________________________________
> > Photon mailing list
> > Photon at openstreetmap.org
> > https://lists.openstreetmap.org/listinfo/photon
> >

> _______________________________________________
> Photon mailing list
> Photon at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/photon




More information about the Photon mailing list