8

After a fresh install of postgreSQL15, it seems as if it installed correctly, because I can access the server through psql just fine.

psql running sucessfully

But, when I attempt to access it through pgAdmin4, it does not automatically detect the server.

Because of this, I attempted to manually add the server through the "Register - Server" dialog box, but then I was prompted with this error: "Instance <Server at 0x2998c4c0af0> is not persisted".

"Register - Server" Dialog Box Error

I have tried to fully uninstall and reinstall both the entirety of postgreSQL15 as well as just pgAdmin4, without any luck. I've tried to keep my settings to default to hopefully eliminate any issues, but it hasn't worked thus far.

I'm running this system on windows 10, not inside a docker container, just installed in the program files folder on my PC.

My main question is how to make my server "persist" so I can get some databases up and running.

  • Reinstalling pgAdmin4 - Expected a persistent server so I can connect through pgAdmin4
  • Reinstalling postgreSQL15 - Expected a persistent server so I can connect through pgAdmin4
Rob
  • 14,746
  • 28
  • 47
  • 65
Zach9224
  • 93
  • 1
  • 1
  • 6
  • 1
    Hy, welcome to Stack Overflow, please [don't upload text, table or error message as image](https://meta.stackoverflow.com/questions/285551/why-should-i-not-upload-images-of-code-data-errors/285557#285557). Edit your question to contain all the information in text form - consider to use the editor's formatting options. Also see [How to Ask](https://stackoverflow.com/help/how-to-ask) – Daxelarne Feb 20 '23 at 14:30

1 Answers1

23

I had the same issue. I tried removing the data in the C:\Users%USER%\AppData\Local\pgadmin folder, and received the same error upon reinstalling.

I deleted the pgadmin folder within the C:\Users%USER%\AppData\Roaming folder, and deleted the pgadmin folder in C:\Users\%USER%\AppData\Local. This fixed the problem for me, upon reinstalling everything worked as normal.

I hope this helps.

Dalton Leth
  • 246
  • 1
  • 2
  • 1
    I deleted the files you mentioned, uninstalled "entire application" using the postgre uninstall wizard, then reinstalled (again using the wizard). It appears your solution worked! Thank you! – Zach9224 Feb 22 '23 at 17:40
  • 1
    I was able to solve it by simply closing PgAdmin4, deleting the two directories and restarting PgAdmin4. I did not have to reinstall anything. – Oscar Fernandez Sierra Mar 29 '23 at 17:29
  • 1
    just deleting stuff from the Roaming folder did it for me – Mordechai Apr 20 '23 at 16:11
  • It helped me too. Thank you. I removed recommended folders and installed again the pgAdmin. – Lidia Jun 18 '23 at 05:42
  • worked thank you – Jürgen Scheffler Jul 19 '23 at 19:23
  • Thanks, helped me too. Worked just by removing the directories, without reinstalling. Seems to have been caused by starting multiple incompatible versions of pgAdmin and thus corrupting its files. Please correct the typos in the directory paths. The following worked for me: `C:\Users\%USERNAME%\AppData\Roaming` `C:\Users\%USERNAME%\AppData\Local` – xorcus Jul 29 '23 at 12:00