Hi,
I'm having trouble backing up my WAPT server (version 1.5), specifically with the database dump:
postgres@waptsrv:~$ pg_dumpall > sauvegarde_wapt.sql
pg_dumpall: could not connect to database "template1": could not connect to server: No such file or directory.
Is the server running locally and accepting
connections on the Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Any ideas?
Thanks.
[SOLVED] Wapt 1.5 backup
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
- dcardon
- WAPT Expert
- Messages: 1932
- Registration: June 18, 2014 - 09:58
- Location: Saint Sébastien sur Loire
- Contact :
Hello guigeek,
Is the PostgreSQL database properly started?
The message is usually either a permissions problem, but here it is indeed the postgres user who is launching the command, or a problem that the process is not running.
You haven't made any particular changes to the /etc/postgresql/9.6/main/postgresql.conf file?
Denis
The dump must be done as a postgres file. That should work.guigeek wrote: ↑Feb 19, 2018 - 10:48 AM Hi,
I'm having trouble backing up my Wapt server (version 1.5), specifically with the database dump:
postgres@waptsrv:~$ pg_dumpall > sauvegarde_wapt.sql
pg_dumpall: could not connect to database "template1": 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"?
Is the PostgreSQL database properly started?
The message is usually either a permissions problem, but here it is indeed the postgres user who is launching the command, or a problem that the process is not running.
You haven't made any particular changes to the /etc/postgresql/9.6/main/postgresql.conf file?
Code: Select all
ps -edf | grep postgres
systemctl restart postgresql
sudo -u postgres pg_dumpall > /tmp/pgdump_20180226.sql
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Hi,
Thanks for the reply. I don't know if I misunderstood or if it's poorly explained, but in the documentation:
https://www.wapt.fr/wapt-1.5/waptserver_backup.html
I understand that I need to stop the PostgreSQL database and then dump it...?
Thanks for the reply. I don't know if I misunderstood or if it's poorly explained, but in the documentation:
https://www.wapt.fr/wapt-1.5/waptserver_backup.html
I understand that I need to stop the PostgreSQL database and then dump it...?
dcardon wrote: ↑Feb 26, 2018 - 10:42 PM Hello guigeek,
You need to perform the dump as the postgres user. That should work. Is the PostgreSQL database running correctly? The message usually indicates either a permissions issue, but in this case, the postgres user is running the command, or a problem with the process not running. Have you made any specific changes to the /etc/postgresql/9.6/main/postgresql.conf file?guigeek wrote: ↑Feb 19, 2018 - 10:48 AM Hi,
I'm having trouble backing up my Wapt server (version 1.5), specifically with the database dump:
postgres@waptsrv:~$ pg_dumpall > sauvegarde_wapt.sql
pg_dumpall: could not connect to database "template1": 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"?
ps -edf | grep postgres
systemctl restart postgresql
sudo -u postgres pg_dumpall > /tmp/pgdump_20180226.sql
Denis
- dcardon
- WAPT Expert
- Messages: 1932
- Registration: June 18, 2014 - 09:58
- Location: Saint Sébastien sur Loire
- Contact :
Hello guigeek,
Denis
Yes, there was a typo in the documentation. I've made some corrections. Could you please try again? Thank youguigeek wrote: ↑Feb 27, 2018 - 9:31 PM Thanks for the reply. I don't know if I misunderstood or if it's poorly explained, but in the documentation:
https://www.wapt.fr/wapt-1.5/waptserver_backup.html
I understand that I need to stop the PostgreSQL database and then dump it...?
Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
