-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL has to run before upgrading legacy installation #91
Comments
While not necessarily the cause of this issue, starting |
esgf-ansible starts postgresql during the upgrading process and right after it tries to connect to it. I wonder if esgf-ansible is just too fast: I saw that rerun the installation recipe of esgf-ansible doesn't trigger the error. Only one time, I saw that the esgf-ansible succeeded to connect to the postgresql of the data node but not to the postgresql of the index node. Adding a pause after starting postgresql may solve this problem. |
FYI, I still have this issue when upgrading from 4.0.3 to 4.0.4 . |
Describe the bug
Legacy installation makes esgf node starts at boot time, with the command esg-node.
So as to rely only on the start/stop recipes of esgf-ansible, we have to disable this feature.
But disable this feature, reboot and than upgrade the legacy installation makes the upgrade to fail with this message:
TASK [base : Create db super user] ******************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: socket Unix « /tmp/.s.PGSQL.5432 » ?
[WARNING]: Module remote_tmp /var/lib/pgsql/.ansible/tmp did not exist and was created with a mode of 0700,
this may cause issues when running as another user. To avoid this, create the remote_tmp dir with the correct
permissions manually
fatal: [vesgint-data.ipsl.upmc.fr]: FAILED! => {
"changed": false
}
MSG:
unable to connect to database: n'a pas pu se connecter au serveur : Aucun fichier ou dossier de ce type
Le serveur est-il actif localement et accepte-t-il les connexions sur la
socket Unix « /tmp/.s.PGSQL.5432 » ?
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: socket Unix « /tmp/.s.PGSQL.5432 » ?
fatal: [vesgint-idx.ipsl.upmc.fr]: FAILED! => {
"changed": false
}
MSG:
unable to connect to database: n'a pas pu se connecter au serveur : Aucun fichier ou dossier de ce type
Le serveur est-il actif localement et accepte-t-il les connexions sur la
socket Unix « /tmp/.s.PGSQL.5432 » ?
To Reproduce
Steps to reproduce the behavior:
chmod -x /etc/init.d/zesgf
chmod -x /etc/init.d/esgf-httpd
reboot the machine
Upgrade a legacy installation
Expected behavior
esgf-ansible starts postgreSQL but it must start postgreSQL with the good configuration.
ESGF Node (please complete the following information):
Additional context
legacy installation
The text was updated successfully, but these errors were encountered: