0

I am trying to follow the README for building the pgadmin runtime from https://github.com/pgadmin-org/pgadmin4/tree/master. As instructed, I activate my python virtual environment, then go into the runtime directory and run the following command:

sudo node_modules/nw/nwjs/nwjs.app/Contents/MacOS/nwjs .

It then tries to contact the server but I get an error that says:

The pgAdmin 4 server could not be contacted:

I have followed the instructions step-by-step but the server is unable to be contacted. I tried checking whether the port being contacted is already in use, but the port is free.

8 Answers8

2

Ensure that the pgAdmin server is running before executing the command. Verify the server's configuration and make sure it matches the pgAdmin configuration.
If the error still exists, consider checking network settings and clearing cache, then restart both the server and pgAdmin.

0

check if the server configuration is correct or not and ensure the server is accessible, still, if it does not work try clearing the cache and restart the server and pg admin.

0

Probably the reason of the error is the wrong connection configurations. Double check that you are connecting to the server with the correct port number, username and password.

Omar Saad
  • 349
  • 3
  • 8
0

You have to make sure that the server is running. You have to run the server before running the following command.

sudo node_modules/nw/nwjs/nwjs.app/Contents/MacOS/nwjs

You have to make sure that pgadmin configuration matches the one that you are using to access the server.

So, first check the server status and then check the pgadmin configurations.

0
  • Remove the directory C:\Users\[username]\AppData\Roaming\pgadmin from your system.

  • Access the terminal and execute the file C:\Program Files\PostgreSQL\[version]\pgAdmin 4\web\pgAdmin4.py using Python

To ensure proper functioning, launch the "pgAdmin 4" application from the Windows menu by right-clicking and selecting "Run as administrator."

Marcos Silva
  • 115
  • 5
0

The inability to contact server is causing issues in your case. If the port is free you may check the server status and ensure that you have correctly set up the server configuration. Verify that the server address and port configurations. You might want to take a look at the network and firewall settings too. Hope that helps!

0

I think the problem is that you cannot establish a connection with the server. In order to solve this issue, ensure the server configuration is set up correctly and check the server status. Verify that the server address and port configurations are accurate. Just on a side note, to make sure everything is ok, also check the firewall settings, as there is a chance that ports or certain IP addresses are blocked, which might be essential for the server's connection, so add them to the whitelist.

I hope this will help.

0

Make sure the server is running and check the configuration of server by matching it with the pdAdmin configuration. If it does not solve the problem,checking network settings and clearing cache, then restart server and pgAdmin.

Aadil Bashir
  • 111
  • 5