• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved PostgreSQL 17 pg_dump Error on Windows Server 2022 with Plesk

shadowscript

New Pleskian
Server operating system version
Windows Server 2022
Plesk version and microupdate number
18.0.68
Hello,


I installed Plesk on Windows Server 2022 and separately installed PostgreSQL 17. I added PostgreSQL as a database server through Tools & Settings in Plesk and scheduled the backup system. However, I am encountering a pg_dump error during the backup process.


I have already added the PostgreSQL 17 bin directory to the Windows PATH variable, and I can access pg_dump and check its version via the command line without any issues.


Below is the log error generated after the Plesk backup attempt:

Warning: Database "admin_denemedb"
Unable to make database dump. Error: Cannot run PostgreSQL client tools; make sure that they are installed: https://support.plesk.com/hc/en-us/articles/18498840918039. Unable to exec pg_dump.exe: proc_open(): CreateProcess failed, error code: 2


I would appreciate any guidance on how to resolve this issue.


Thanks in advance!
 
you restarted the plesk services after adding the path in the PATH variable?
I restarted the entire Windows Server.

I added the following path to the PATH variable:

C:\Program Files\PostgreSQL\17\bin

When I run psql --version in CMD, it works.

When I run pg_dump, it also works.
 
Alright I was able to test it and it worked just fine. Make sure you set the path under the System PATH and not the User PATH since they are 2 different variables.

1742149549697.png
1742149556941.png
 
Thank you very much, you solved my problem.

I was adding the wrong path to the wrong place.
C:\Program Files\PostgreSQL\17\bin

The correct path for global variables is:
C:\Program Files\PostgreSQL\17\pgAdmin\runtime
 
Back
Top