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

Geoserver Passwort not set on fresh install #172

Open
t-book opened this issue Mar 8, 2021 · 3 comments
Open

Geoserver Passwort not set on fresh install #172

t-book opened this issue Mar 8, 2021 · 3 comments
Labels

Comments

@t-book
Copy link
Contributor

t-book commented Mar 8, 2021

Branch 3.2.x

Start Stack on a fresh VM
Set a secure password instead of default: geoserver

Passwort get's not set and invoke is showing:

Setting GeoServer Admin Password...
Response Code: 401
WARNING: GeoServer admin password *NOT* updated: code [401]
tail: invoke.log: file truncated
@t-book t-book added the docker label Mar 8, 2021
@Darkonyks
Copy link

Darkonyks commented Mar 8, 2021

@t-book I have also fresh docker GN 3.2.x installation and I have successfully changed admin password. As I can see by default in .env file OAUTH2_API_KEY= is blank. You should first in Geoserver in 'AuthKEY REST Role Service geonode REST role service' add REST Api Key and then add it to your .env. Try it to see if this will help.

@d3netxer
Copy link

Thanks, I updated the OAuth2 Rest API Key (https://docs.geonode.org/en/master/install/basic/index.html#oauth2-rest-api-key) and also the admin password in the GeoServer console. Then I was able to change the OAUTH2_API_KEY and geoserver password in the .env file. It worked successfully. You need to change the geoserver password in the .env file to match the geoserver console, or else you will get an error when trying to upload a dataset in GeoNode.

@frafra
Copy link
Collaborator

frafra commented Nov 5, 2021

This issue makes impossible to secure GeoServer in production environments. Setting a non-trivial password requires setting it again using the GeoServer web interface, but that lasts until the container is destroyed.

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

No branches or pull requests

4 participants