Hi everyone.
This is another post I create regarding messing up the database (sorry again).
This time I realized that the storage of my shared cluster was reaching its limit while I was running a really big workflow. The cluster was stucked, so I had no other choice but deleting the aiida_run folder (that is not a big deal though). That did not solve the problem and I still was unable to use aiida nor any other jupyter notebook. I thought it was a good idea to kill all processes associated with my user, so I did it. That solved the problem partially. Now I can use jupyter notebooks and basically all funcionalities except from aiida.
I think the issue I have is related to the fact that I killed the processes associated with postgresql. Firstly I got this error:
✘ storage: Unable to connect to profile’s storage.
Error: UnreachableStorage: Could not connect to database: (psycopg2.OperationalError) connection to server at “localhost” (127.0.0.1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
And the logfile was:
2024-02-26 16:57:32.583 UTC [1068074] LOG: starting PostgreSQL 12.15 on x86_64-conda-linux-gnu, compiled by x86_64-conda-linux-gnu-cc (Anaconda gcc) 11.2.0, 64-bit
2024-02-26 16:57:32.583 UTC [1068074] LOG: listening on IPv4 address “127.0.0.1”, port 15451
2024-02-26 16:57:32.584 UTC [1068074] LOG: listening on Unix socket “/tmp/.s.PGSQL.15451”
2024-02-26 16:57:32.601 UTC [1068075] LOG: database system was shut down at 2024-02-26 16:57:26 UTC
2024-02-26 16:57:32.604 UTC [1068074] LOG: database system is ready to accept connections
2024-02-26 16:58:53.143 UTC [1068573] FATAL: database files are incompatible with server
2024-02-26 16:58:53.143 UTC [1068573] DETAIL: The data directory was initialized by PostgreSQL version 15, which is not compatible with this version 12.15.
I tried to update postgresql. I do not think I did it properly to be honest. One way or the other, the error I get now is:
✘ storage: Unable to connect to profile’s storage.
Error: UnreachableStorage: Could not connect to database: (psycopg2.OperationalError) connection to server at “localhost” (127.0.0.1), port 5432 failed: FATAL: password authentication failed for user “aiida_qs_jgarridoa_356b0e1fd35b8bba1ab60473c3a74553”
connection to server at “localhost” (127.0.0.1), port 5432 failed: FATAL: password authentication failed for user “aiida_qs_jgarridoa_356b0e1fd35b8bba1ab60473c3a74553”
But I still get the same error in the logfile:
2024-02-28 11:18:26.982 UTC [1499120] FATAL: database files are incompatible with server
2024-02-28 11:18:26.982 UTC [1499120] DETAIL: The data directory was initialized by PostgreSQL version 15, which is not compatible with this version 12.15.
Any idea about how to tackle this issue?
Thanks in advance
Jaime