-
Notifications
You must be signed in to change notification settings - Fork 33
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
mapstore - pluginsConfig.json missing #261
Comments
Thanks for the report ! |
Hum, good point. I think we need to differentiate between the Indeed, we do not have a What I'm very surprised about is, that the |
permission denied probably because the webapp runs as tomcat, while the datadir is owned by root ? cf also #238 (comment) and #240 for previous discussions. |
Ya this is "permission denied" point, but my question si more about do you thing this file is missing or this is MS2 stuff and have to manage it alone ? |
This is the point @tkohr |
to me, if you want tomcat to be able to write files, you have to use the specific mapstore-datadir which is writable by tomcat user and overrides whats in etc/georchestra- and dont let it mess with the files in the georchestra datadir, which are defaults.. |
ok so the word is :
I will do that and come back ;) |
ok classy mistake : change root by tomcat and this works... But we have 2 folder concerned :
@tkohr @fvanderbiest keep i open this issue ? |
Sorry, I think I lost you on your last comment @Gaetanbrl |
Do you think this issue should be kept open? Or i could close ? |
So apart from the rights, the problem is that mapstore looks for a |
As i said, after change permissions in datadir, MS2 is able to write tthe famous So, all works fine after set correct config and permissions. So i understand that |
Thank you all for the investigation ! |
i think you're not supposed to change ownership for tomcat in /etc/georchestra, but rather use a dedicated distinct datadir for mapstore where tomcat can write ... oh well. |
You mean this issue should not have been closed ? What would you propose ? |
Just have to get back with ms2... i just forget many infos about config ^^
Just to be more specific about my fix (if others people read this issue in the futur) : Changing datadir permissions to allow MS2 to write in default datadir could be a solution, but it's not the "correct" fix. We do that here in sandbox env, not in production env. Follow @landryb suggestion seems more better (and secure). So, we have an external config in other instances to force MS2 to write Doc ref :
With this external config, |
OK, I think this is correctly handled in the docker composition with |
I get an error 500 :
Indeed, i have no file /etc/georchestra/mapstore/configs/pluginsConfig.json.patch.
Indeed, this doc show configs/pluginsConfig.json path but seems missing in the datadir :
https://docs.mapstore.geosolutionsgroup.com/en/latest/developer-guide/context-editor-config/
The text was updated successfully, but these errors were encountered: