[Geoserver-users] docker/geoserver - cannot locate resource css/bootstrap-utilities - constant redirect

Hi,

I installed docker station (v23.0.5) on my windows 10 machine and then followed instructions from https://docs.geoserver.org/latest/en/user/installation/docker.html so I pulled the image (i used a few different versions also tried kartoza/geoserver) and then I started a container simply copy-pasting the docker commands. Every case of my containers, the Geoserver instance is running ok on localhost:8080/geoserver/web but anything I try, such as to create a new workspace or perform any action like updating a layer or clearing the cache, nothing happens. I get these errors on my dev tools

DevTools failed to load source map: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load source map: Could not load content for http://localhost:8080/geoserver/web/wicket/resource/org.geoserver.web.GeoServerBasePage/css/bootstrap-utilities.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE


and on geoserver logs I get

[resource.ResourceReferenceRegistry] - A ResourceReference wont be created for a resource with key [scope: org.geoserver.web.GeoServerBasePage; name: css/bootstrap-utilities.min.css.map; locale: null; style: null; variation: null] because it cannot be located.

or sometimes I get a message “an illegal reflective access operation has occurred” and all following illegal operations will not be permitted.

I have also tried installing different versions of Java and geoservers on my machine without using docker and I get the same errors.
Interestingly enough, last week I installed geoserver 2.15 on my windows machine which worked OK and I was able to create workspaces, add stores like postgis and publish layers etc. and I did see this behaviour (stated above) but it got fixed when I re-installed java and geoserver. BUT there was an update on my windows machine and ever since I am constantly getting the errors mentioned above.

I looked around in forums and in the geoserver-users list but could not find something relevant. I don’t have much experience with java so it’s not easy to understand why it can not locate the css/bootstrap-utilities.min.css.map resource. I also had a look at a tomcat setting named useRelativeRedirects) but haven’t fiddled with it yet.
I will keep trying different approaches but in case someone can replicate or has any relevant info, I would appreciate it!

I hope the above makes sense and I would be happy to provide further info if required. Thanks in advance!

Kind regards,
Antony

Hi Antony,

I tried the docker geoserver and tried to reproduce the problem on Chrome.

Regarding the CSS error message looks like it is related to a missing map file for a minified css resource, and Chrome devtools tries to locate and use it:
https://techglimpse.com/devtools-failed-load-source-map-http-error/

The css line targeting the missing file is:
/*# sourceMappingURL=bootstrap-utilities.min.css.map */

A potential fix (on GeoServer source code) for this involves to download and place the missing map file (for this issue you can open a JIRA issue on https://osgeo-org.atlassian.net/projects/GEOS/summary ):
https://www.cdnpkg.com/twitter-bootstrap/file/bootstrap.min.js.map/

Firefox devtools doesn’t have the same problem. And on both I was able to perform tasks like add layers and workspaces. The message related to this problem may be:

“DevTools failed to load source map: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND”

I’m wondering if a chrome extension trying to inject JS polyfills is causing trouble with GeoServer, please check on Chrome without extensions and also with Firefox, then discard every extension you have by disabling them one by one.

···

Regards,

Fernando Mino

==

GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

==

Fernando Mino

Software Engineer

@fmy2kec

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Thanks Antony for your feedback, good to know Docker image is not the issue.

···

Regards,

Fernando Mino

==

GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

==

Fernando Mino

Software Engineer

@fmy2kec

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Regards,

Fernando Mino

==

GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

==

Fernando Mino

Software Engineer

@fmy2kec

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.