-
Notifications
You must be signed in to change notification settings - Fork 73
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
Changing password PostgreSQL database for advanced installation (Ubuntu 18.04) #61
Comments
Hi @danjde sure, do you have the chance to send PRs directly to https://github.com/GeoNode/documentation We will review them and merge accordingly. |
Maybe I wasn't clear, |
Oh, I see. So ... If you just need to update the DB password, the steps 1 and 2 are ok, the others are not strictly required. Then, you will need to login into GeoServer admin panel, go to "stores", search for the datastore with the same name of the postgis engine (in your example That's it. |
That's what I thought, but using a system coming from the advanced installation, "Stores" results empty as below: Is it normal? Should it be created? Is it correct to do so? Using "PostGIS - PostGIS Database"? Thanks! |
If the store does not exist yet (meaning that you most probably haven't uploaded any layer yet) there's no need to update it. GeoNode will create it automatically by using the settings params. |
True, no layer yet
But in this case, why Geonode does give me connection errors when I try to load a new layer, only after changing the two passwords?
and
Somehow I'll have to give it that I changed my passwords? Where? Thanks |
which installation method? |
GeoNode Advanced Installation Ubuntu 18.04 Thanks |
Uhm, that's strange, that should not happen... did you change the geoserver admin password too? |
Ignore this comment, I noticed that you are using the same DB user. |
Yes, I've previous changed the admin Geonode and Geoserver password as described here But everything worked well, only changing the two passwords, I couldn't load the layers anymore. Now I rerun:
and verify... Thanks |
Whenever you change the admin password on the GeoNode settings, be sure to align the GeoServer internal admin user as well as described here https://docs.geonode.org/en/master/install/basic/index.html#geoserver-setup if still not working, try to look for some stacktrace or error on both GeoNode and GeoServer logs. |
@danjde Provided your geoserver data directory lives under In case Postgis stores exist you will find them by use of: If you find something and you need to alter it you can always open the file in question in a editor and set the password as plain value:
However, at least you now know you need to update a password. Furthermore, not only postgis vector stores but geofence connection needs to be updated as well. The grep from above will show you the right place. The command you provided above takes care of updating urls not passwords. As @afabiani said my first guess as well is your admin password from local_settings does not fit the admin passwort with geoserver. Please double check the password in geoserver user section (gui) or directly set it in geoserver data dir. |
Hi Devs,
I'm trying to figure out how to change PostgreSQL database password, and I ask if possible to add them in the GeoNode Advanced Installation documentation.
These are the steps performed:
psql -U postgres
ALTER USER geonode WITH ENCRYPTED PASSWORD 'new-password';
These steps are obviously not complete, as the Oauth2 connection with Geoserver is compromised: is possible to login to Goeserver web interface, but from Geonode is still not possible to upload layer, etc..
Kindly is it possible to clarify the right steps to be performed?
Thanks!
The text was updated successfully, but these errors were encountered: