sical / app_iso

Development of an isochrones visualisation app
2 stars 0 forks source link

Installation OTP #1

Closed Fil closed 6 years ago

Fil commented 6 years ago

something missing? After I cloned the repo and launched otp I get an infinite loop of errors:

10:29:54.893 ERROR (OTPMain.java:169) An uncaught ProcessingException occurred inside OTP. Restarting server.
javax.ws.rs.ProcessingException: Could not process parameter type class org.opentripplanner.api.parameter.CRSParameter.
    at org.glassfish.jersey.server.internal.inject.MultivaluedParameterExtractorFactory.process(MultivaluedParameterExtractorFactory.java:127) ~[otp-1.2.0-shaded.jar:1.1]
thomleysens commented 6 years ago

@Fil What's your version of Java (OTP doesn't work with Java 9) ? Could you write here the command lines you use to run the OTP server ?

Fil commented 6 years ago

java -Xmx6G -jar otp-1.2.0-shaded.jar --router Paris --graphs graphs --server

java --versionjava 9.0.4 Java(TM) SE Runtime Environment (build 9.0.4+11) Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

thomleysens commented 6 years ago

@Fil Ok, thanks. If Andrew Byrd is right (and he is one of the main developers of OTP), it is propably the Java version: see here

I'm gonna study what I could do (online app, maybe a another post with a better solutionn, use Navitia instead of OTP, ...).

Fil commented 6 years ago

First I will install java8 and let you know :)

brew tap caskroom/versions && brew cask install java8

thomleysens commented 6 years ago

Ok. ;-)

Fil commented 6 years ago

Ça tourne bien avec l'install ci-dessus et en lançant :

/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/jre/bin/java -Xmx6G -jar otp-1.2.0-shaded.jar --router Paris --graphs graphs --server

Fil commented 6 years ago

Enfin, quand je dis que ça tourne: le serveur démarre et j'ai la carte, mais ensuite impossible de l'utiliser

10:35:32.502 ERROR (GraphService.java:124) no graph registered with the routerId 'Paris' 10:35:32.505 WARN (Errors.java:191) The following warnings have been detected: WARNING: Unknown HK2 failure detected: MultiException stack 1 of 2 org.opentripplanner.routing.error.GraphNotFoundException at org.opentripplanner.routing.services.GraphService.getRouter(GraphService.java:125) at org.opentripplanner.standalone.OTPServer.getRouter(OTPServer.java:74) at org.opentripplanner.index.GeocoderResource.(GeocoderResource.java:29)

thomleysens commented 6 years ago

Tu as simplement la carte ou tu peux lancer des calculs avec l'interface web ?

Fil commented 6 years ago

comme je disais, je n'ai que la carte : pas de géocodage, pas d'itinéraire.

thomleysens commented 6 years ago

Ok je regarde d'où peut provenir le problème

thomleysens commented 6 years ago

Pourrais-tu essayer de lancer le serveur en ajoutant ceci à la commande ?

--basePath [chemin absolu/vers/le/dossier/otp] 
Fil commented 6 years ago

non ça ne change rien pour moi

capture d ecran 2018-04-30 a 15 53 45
thomleysens commented 6 years ago

Ok. Si tu as tjs l'erreur du graphe introuvable, il faut que je creuse la question. Concernant les tests, ils ne fonctionneront que sur l'Ile de France (GTFS Stiff Paris) donc ton test (cf. capture d'écran) ne fonctionnera jamais à priori. Désolé pour la perte de temps, j'aurais dû préciser le périmètre des données. Bon ça n'explique de toutes façons pas l'erreur que tu obtiens et normalement l'interface web OTP ne sert qu'à vérifier que tout a bien été installé. Je continue les investigations et je te tiens au courant.

Fil commented 6 years ago

Il me manquait l'installation de lfs

> brew install git-lfs
> git lfs install
> git lfs pull

et là j'ai un message d'erreur assez clair :

> git lfs pull
batch response: This repository is over its data quota. Purchase more data packs to restore access.
error: failed to fetch some objects from 'https://github.com/sical/app_iso.git/info/lfs'
thomleysens commented 6 years ago

Ok, étrange leur truc parce que je n'ai eu aucun avertissement quand j'ai mis en ligne et normalement ça respecte les quotas. Bon je regarde pour passer sur Navitia (beaucoup moins souple et en bêta mais ça devrait suffire pour les tests et je pourrais tjs bosser sur OTP en local éventuellement).

Fil commented 6 years ago

Tu veux pas juste m'envoyer les fichiers par ailleurs ?

thomleysens commented 6 years ago

On peut éventuellement s'arranger oui mais ça ne réglera le problème que de ton côté et ne rendra pas l'application facilement partageable. Je regarde comment faire pour toi.

thomleysens commented 6 years ago

Pour télécharger le graphe avec le dossier lucene aindi que le .jar (du coup j'ai laissé également les fichiers osm et GTFS au cas où):

www.grosfichiers.com/HTKgialIBXbYP

Fil commented 6 years ago

ça marche ! capture d ecran 2018-05-02 a 13 33 54

=> à la place de grosfichiers on peut utiliser IPFS

thomleysens commented 6 years ago

Ok cool. ;-)

Fil commented 6 years ago

En fait ça marche, il suffit d'être patient et de ne pas s'inquiéter : le java tourne à 100% CPU pendant 8 minutes, sans aucun log, et pedant ce temps renvoie des error 404 quand on interroge le port 8080 (il répond, donc…).

En fait, c'est qu'il est en train de charger et d'analyser le graphe (il pourrait envoyer 503 et dire "revenir plus tard", et le client bokeh pourrait lire ce statut et dire "le serveur OTP est pas là").