Difficulty in getting docker-openwisp working. Deployed multiple times, can never connect. #1213
Replies: 5 comments 2 replies
-
|
@surfrock66 the install script is working fine in our CI builds see github actions workflow. It also worked fine during the latest tests we did (we have an instance right now running the latest edge on Nonetheless, I can't be 100% sure of why this is happening to you without further debugging. Questions:
|
Beta Was this translation helpful? Give feedback.
-
|
Ubuntu server 24.04. My env file is below. Ultimately, it seems like the postgres credentials aren't being made correctly; I don't know the procedure but if there's a way to get into the postgres container in something like single user mode and re-set the credential, maybe I could get it back working?: |
Beta Was this translation helpful? Give feedback.
-
|
This looks like a situation where the auto-install generated new DB credentials while the Postgres data volume from the previous install remained on disk (because docker compose down was run without --volumes). The new .env contains a new DB_USER/DB_PASS but Postgres is still using the old role/password stored in the volume, so the app can't authenticate. @surfrock66 did you reinstall docker-openwisp after deleting If you don't have any data in OpenWISP, then I will suggest doing a fresh install of docker-openwisp using the auto-install script. Then, install docker-openwisp using the auto-install script. If the data is important and cannot be lost, I suggest searching for well-documented instructions on resetting the PostgreSQL username and password in a PostgreSQL container. |
Beta Was this translation helpful? Give feedback.
-
|
That's got to be it; I had a bunch of installs/reinstalls troubleshooting a previous issue with disabling the openVPN dependency, and I thought I purged the containers but you're right, likely that directory wasn't purged. I'll do it and report back. |
Beta Was this translation helpful? Give feedback.
-
|
This resolved my issue. If there's a way to catch that issue for re-installs, it'd be much easier. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've submitted some bugs about getting openwisp working (both docker and ansible) and I've yet to be able to get it working. Docker-openwisp would be my preferred architecture, but I cannot for the life of me get it to deploy successfully. I've gone as far as rebuilding my VM from scratch and redeploying, but at this point, I believe the postgres provisioning is failing, and I'm feeling like I'm not using the issue tracker appropriately (I was having issues disabling openvpn, which I think got resolved).
My provisioning was successful:
When I try to load the web console, I get a self-signed cert error in firefox (so, letsencrypt failed?) but when I get through that, I get a 502 error.
Looking in the logs, this is what I see. The credentials generated for postgres appear to not work:
I'm not a postgres expert, but I figured I should make sure the DB user/password are working, so I connected to the postgres container and tried to connect to psql:
I am kind of worried about spamming the issue tracker, but I am wondering, is there an issue with the installer, or am I doing something wrong? One thing I saw in autoinstall.log, the influx repo isn't installing right:
Beta Was this translation helpful? Give feedback.
All reactions