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

Problem with context's plugins list #263

Closed
jusabatier opened this issue Aug 24, 2020 · 10 comments
Closed

Problem with context's plugins list #263

jusabatier opened this issue Aug 24, 2020 · 10 comments

Comments

@jusabatier
Copy link
Contributor

Since I build the master branch and deploy it, I notice that everytime I edit a context, the plugin list is bugued :

image

In the console logs, i have an error :

Failed to load resource: the server responded with a status of 404 () -> /mapstore/rest/config/load/extensions.json

Refresh the page make it work again, but the problem is back everytime we reopen the context for edition.

@catmorales
Copy link
Collaborator

catmorales commented Aug 24, 2020

Hello ! i confirm , i have the same problem on the last image deployed on portail-test.

@tdipisa
Copy link
Collaborator

tdipisa commented Sep 2, 2020

@catmorales you notified me this problem on Jul 22 by email. If you remember I tried on your portail-test without being able to replicate the problem, then you wrote me that you were on a bad tag of the docker image. Is it still the case? We can obviously check it asap if needed.

@catmorales
Copy link
Collaborator

I encountered this problem again and again in July and August.

Just now, I just tried again on portail-test :

  • with Mozilla Firefox Quantum 68.11.0esr --> OK
  • with Chrome Version 84.0.4147.135 (Official Build) (64 bits) --> OK

Gold,
On 27 /08/2020 I redeployed the last mapstore image and yesterday I deleted the localConfig.json file from the datadir of my geOrchestra instance (so it is the one from the webapp that is the authentic one, if I understood correctly).
This seems to have solved the problem and others (print plugin,...). The localConfig.json file I was using in the datadir was not up to date (see Mauro's explanations at the webinar).

@jusabatier , could you try to delete localConfig.json from your /etc/georchestra/mapstore ?

@catmorales
Copy link
Collaborator

on a bad tag of the docker image

it was an error...

@catmorales
Copy link
Collaborator

Currently our georchestra datadir contains only the following files :

image

@jusabatier
Copy link
Contributor Author

Re-compiling and redeploying this morning seems to solve the problem.

I'm a bit confusing with the delete of localConfig.json as we define some options like proxy, API keys, catalogs, etc.. in it.
The localConfig.json not seems related to this issue, but I think it's actually difficult to follow evolution of this file.

@catmorales
Copy link
Collaborator

catmorales commented Sep 4, 2020

but I think it's actually difficult to follow evolution of this file

Yes i agree.
@tdipisa As I said above I deleted the localConfig.json file from georchestra's datadir on the portal-test instance so I assume it uses the default settings present in the docker mapstore image.
However, the parameters I made there (notably the catalog settings to the wmts services of the standalone geowebcache) are still present in the interface.
Of course, I emptied the browser cache, cookies, ... and restarted the docker container.

Is there a cache in mapstore webapp?
image

@offtherailz
Copy link
Collaborator

@jusabatier the list of plugins you see is the one of the tutorial.
It looks similar to a bug that has been solved during development, so probably your update could have fix the issue.
I tried to browse a lot the contexts and I wasn't able to replicate the problem. If you replicate this problem again, please report in detail all the passages to reproduce it.

@catmorales the catalog list is stored also in config.json (the start-up map, as it is saved and can be saved in all maps). So you may have this configuration left in config.json file (in the app or in data dir), please take a look.

Moreover, the catalogs could be saved if you have the user session plugin active in your context, but if you clean up the browser's cache, the user session should be cleaned with it.

@catmorales
Copy link
Collaborator

Thank you so much @offtherailz !
I saw at the end of config.json :)

"catalogServices":{
      "services":{
         "local":{
            "url":"/geonetwork/srv/fre/csw",
            "type":"csw",
            "title":"le catalogue local",
            "autoload":true
         },
         "localgs":{
            "url":"/geoserver/ows",
            "type":"wms",
            "title":"le geoserver local",
            "autoload":true
         },
         "localgwc":{
            "url":"/geowebcache/service/wmts",
            "type":"wmts",
            "title":"le geowebcache local",
            "autoload":true

....

I understand better now.

@jusabatier
Copy link
Contributor Author

I close this issue and open one related with config files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants