9
Issues hosting Lemmy (via ansible)
(lemmy.world)
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
Be civil.
No spam.
Posts are to be related to self-hosting.
Don't duplicate the full text of your blog or readme if you're providing a link.
Submission headline should match the article title.
No trolling.
Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Wiped the VPS clean, new 22.04 server install.
Deployed using that installer.
Exact same issue. The lemmy container cannot reach the database and continually restarts. I'll post some logs, but they're practically identical to what I posted before:
lemmy container logs:
sudo docker psoutput:well, that rules out your local system and ansible, at least. It seems like there's an inability for the docker containers to reach postgres definitely at the install and probably at runtime - can we check this?
first let's make sure the postgres container is on the network and has an address:
sudo docker exec -it <yourinstance>_postgres_1 /bin/shonce you're on the container
ifconfigwhich should return on the second line: inet addr:172.18.0.4 (or similar ipV4 address)
exitto return to the host and let's test connecting from the host :nc -zv 172.18.0.4 5432(use IP from the DB container)Ubuntu host should respond something like : Connection to 172.18.0.4 5432 port [tcp/postgresql] succeeded!
now let's try the containers
sudo docker exec -it <yourinstance>_lemmy-ui_1 /bin/shnow from that container test connectivity to postgres:
nc -zv 172.18.0.4 5432(use IP from the DB container)now the other
sudo docker exec -it <yourinstance>_lemmy_1 /bin/shon the docker containers the nc command should return something like
172.18.0.4 (172.18.0.4:5432) open
is that working?