Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Let me see your container settings and port mappings. Also are you sure that your pgadmin container is running?Fehler: Verbindung fehlgeschlagen
Firefox kann keine Verbindung zu dem Server unter
192.168.xxx.xxx:5252 aufbauen
Thanks for your Supportyes, it’s running
you need use postfix/docker solution for that. I will make a screenshot from my setup later
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
TZ | |
HOSTNAME | "as you wish" |
RELAYHOST | "name of your mail relay host" |
RELAYHOST_USERNAME | "your email address for the relay defined in the relay host" |
RELAYHOST_PASSWORD | "psw for the email defined in the relay host" |
RELAYHOST_TLS_LEVEL | |
MYNETWORKS | 127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 |
ALLOWED_SENDER_DOMAINS | "your email SMTP host" |
ALLOW_EMPTY_SENDER_DOMAINS | |
MESSAGE_SIZE_LIMIT | 0 |
INBOUND_DEBUGGING |
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
LOG: listening on IPv4 address "0.0.0.0", port 5432
LOG: listening on IPv6 address "::", port 5432
How did you exactly configure local vs container ports for Postgres?Thanks Rusty for this detailed walkthrough. I am sure I did everything like you described, however, I am stuck in the very end. When I start the restya container, the Terminal output says continously:
Code:psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
When I set up the postgres container, the local port 5432 was not available as it already seems to be used. When I checked with sudo netstat -lp (and also here), I realized that AudioStation, Synofoto, and Synoffice also listen to this port. So could this be the reason, why the connection does not work? Since 5432 was not available as local port, I chose 5433 (for the postgres container, for the server I created with pgadmin, and as POSTGRES_PORT during the restya setup). However, the error message above stays the same.
Update:
I also realized that in the postgres container protocoll, it says:
Code:LOG: listening on IPv4 address "0.0.0.0", port 5432 LOG: listening on IPv6 address "::", port 5432
Did I setup anything wrong? Does anybody has got an idea how to fix this?
Thanks a lot in advance!
psql: could not connect to server: Connection refused
Is the server running on host "192.168.xxx.xxx" and accepting
TCP/IP connections on port 5432?
No. You only change the local side.should I change the container port then as well?
Yes. I also tryed "localhost" as "POSTGRES_HOST" and I received this output:Containers running on the same docker host in the same network?
psql: could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Network is unreachable
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
How could I test this? So which command should I use? (I am not that familiar to terminal commands)If so, you could try and open a terminal on restya container and test if you can talk to your postgres container on that port.
Go via ssh into your nas. elevate to root with sudo -i and then try thisHow could I test this?
root@xxxx:~# docker exec -it restyaplatform-restyaboard1 /bin/bash
root@restyaplatform-restyaboard1:/usr/share/nginx/html# ping postgres
PING postgres (172.17.0.2): 56 data bytes
64 bytes from 172.17.0.2: icmp_seq=0 ttl=64 time=0.191 ms
64 bytes from 172.17.0.2: icmp_seq=1 ttl=64 time=0.096 ms
64 bytes from 172.17.0.2: icmp_seq=2 ttl=64 time=0.100 ms
#and so on#
root@restyaplatform-restyaboard1:/usr/share/nginx/html# nc -zv postgres 5433
bash: nc: command not found
We use essential cookies to make this site work, and optional cookies to enhance your experience.