-
Notifications
You must be signed in to change notification settings - Fork 4
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
Cannot install via the admin panel + APIs do not work #4
Comments
Can you try to install from testing. |
I tried here is the output:
"Choose the path where this app should be installed (default: /example): " - I simply pressed enter since I wasn't sure what to add there. And the ors_token I have no idea what it is. |
The token may have to do with this https://docs.facilmap.org/developers/server/config.html |
So far the I'm not sure why the description of the argument does not show up in the install script. |
And it works to install if I add random tokens:
However I cannot access it at maps.trom.tf - it redirects to the main ynh domain. |
Oh no it works at this url https://maps.trom.tf/ps/#3/0.00/0.00/Mpnk - no idea why the "ps" subfolder was added... |
I changed it to https://maps.trom.tf/ - so now works |
Ok so the question is, we have to have these tokens individually? Each admin needs to grab them in order for facilmap to properly work? |
You can change arguments through
It may not appear in CL install... but it should thought webadmin. |
Is there a way to change the tokens now after I insatlled it? I am ok with generating my own. |
Ok so I found where I can replace those token values. I generated some but after I removed facilmaps I cannot install it again. Do you have any idea why?
|
Ok I restored a backup now all is up and running. Added the APIs to /etc/yunohost/apps/facilmap/settings.yml and restarted the service but I still cannot create routes. I get an error: Route could not be calculated (undefined). I also tried editing the file /etc/yunohost/apps/facilmap/conf/config.env but same.... I did that because of this https://docs.facilmap.org/developers/server/config.html In all it works, but not to route anything... |
The issue is still relevant since you cannot install it via the admin panel + we have to figure out why the APIs for the needed services do not seem to work. I changed the title a bit. |
The app will be available to install in webadmin once it succeed the validation process... |
This also has to do with why the APIs do not work? |
I don't think so |
Ok. Let me know if I should test anything else. I love facilmap and I cannot wait to provide it as a service for everyone ;). Thank you for your work and hopefully soon it is going to be usable. |
I'm not experienced with YunoHost, can you somehow see the logs of FacilMap? Maybe |
Ok, here it is:
|
I guess the error handling is not ideal there. Could you see if calculating a route works when you enable the "Load route details" option? Are you sure that you have configured a valid token for MapBox? Also, unrelated to the routing problem, are you sure thta you have configured a valid token for MaxMind? An empty token would also work, in which the geoip feature would just be disabled. |
Maybe this is related, but I see that etc/yunohost/apps/facilmap as 0400 access for root:root. That's where settings.yml and config.env are located. Maybe the way ynh installs it and deals with permissions makes it unable for the app to download routes or use the APIs of external services? |
Ok, sorry my bad! I was editing the wrong file. The right file to edit is: opt/yunohost/facilmap/etc/facilmap.env. Now it works to route with road details but not without. |
It's using Mapbox for routes without details and OpenRouteService (ORS) for routes with details. Unfortunately the Mapbox documentation does not say which scope is required to use the directions API, but I think no scope is required at all, so it should work... Did you make sure to restart FacilMap after you put |
Ok so everything works now! I have used the "Default public token" for Mapbox and works. So far all seem to work. Maybe more documentation is needed for facilmap in regards to setting up tokens. But damn this facilmap is amazing. I suppose it is you @cdauth who are developing it? Just amazing map. A friend is going across Pyrenees across Spain via GR11 and we spent months trying to find an editable map to add routes, points of interest and all that. Facilmap did all of it. We also provide many free applications at trom.tf so yah I am so happy you people create these tools and help with their development. I will keep this issue open until facilmap can be installed via webmin on ynh. But thank you guys very much for the help The map we just setup is at https://maps.trom.tf! |
I can find this app in the repository but clicking install nothing happens.
The text was updated successfully, but these errors were encountered: