Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation OTP #1

Closed
Fil opened this issue Apr 27, 2018 · 21 comments
Closed

Installation OTP #1

Fil opened this issue Apr 27, 2018 · 21 comments

Comments

@Fil
Copy link
Contributor

Fil commented Apr 27, 2018

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
Copy link
Contributor

@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
Copy link
Contributor Author

Fil commented Apr 30, 2018 via email

@thomleysens
Copy link
Contributor

thomleysens commented Apr 30, 2018

@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
Copy link
Contributor Author

Fil commented Apr 30, 2018 via email

@thomleysens
Copy link
Contributor

Ok. ;-)

@Fil
Copy link
Contributor Author

Fil commented Apr 30, 2018 via email

@Fil
Copy link
Contributor Author

Fil commented Apr 30, 2018 via email

@thomleysens
Copy link
Contributor

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

@Fil
Copy link
Contributor Author

Fil commented Apr 30, 2018

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

@thomleysens
Copy link
Contributor

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

@thomleysens
Copy link
Contributor

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

--basePath [chemin absolu/vers/le/dossier/otp] 

@Fil
Copy link
Contributor Author

Fil commented Apr 30, 2018

non ça ne change rien pour moi
capture d ecran 2018-04-30 a 15 53 45

@thomleysens
Copy link
Contributor

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
Copy link
Contributor Author

Fil commented May 2, 2018

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
Copy link
Contributor

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
Copy link
Contributor Author

Fil commented May 2, 2018 via email

@thomleysens
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor Author

Fil commented May 2, 2018

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

=> à la place de grosfichiers on peut utiliser IPFS

@Fil Fil closed this as completed May 2, 2018
@thomleysens
Copy link
Contributor

Ok cool. ;-)

@Fil Fil mentioned this issue May 4, 2018
@Fil Fil reopened this May 4, 2018
@Fil
Copy link
Contributor Author

Fil commented May 4, 2018

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à").

@Fil Fil closed this as completed May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants