Open Flabenelli opened 1 week ago
The error you're encountering indicates that there is a problem with connecting to the PostgreSQL server. Is your PostgreSQL server running? (connecting to"::1", port 5432 )
connection is bad: connection to server at "::1", port 5432 failed. Cannot assign requested address Is the server running on that host and accepting TCP/IP connections?
I'm aware, but the db works and connects to the fronted, netbox works without the plugin. And the plugin it's installed since I see the add attachment box in netbox. But since I'm not able to run the migration command, when I try to upload something won't work.
In the docker compose instance, I have a container with postgres and the port 5432 open.
I guess the issue comes from the ::1 part, since this should be the ip of the postgres container isn't it? Is there some way to explicit the ip of the db?
When I do
RUN SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py migrate netbox_attachments
and regenerate de worker imageI get