Skip to main content

[CPANEL-27658] cPanel update fails with PostgreSQL error

Comments

8 comments

  • m.eid
    Hello @PCZero and @m.eid, The EA4 Yum repo issues are now fixed and the following commands should succeed: yum clean all /scripts/upcp
    Let us know of any additional issues. Thank you.

    It was resolved, but this error appeared after /scripts/upcp /usr/local/cpanel/bin/postgrescheck --check-auth --reset-pass-on-fail
    0
  • cPanelMichael
    Hello @m.eid, Can you open a
    0
  • m.eid
    Hello @m.eid, Can you open a
    0
  • cPanelMichael
    Hello @m.eid, I've moved this issue into a separate thread.
    Actually, I've uninstalled it by this command since I don't need it, is there any issue with that? yum remove postgresql

    Can you verify how PostgreSQL was previously installed on the affected system? Thank you.
    0
  • m.eid
    I think it has been installed when I rebuilt the RPM, cause it wan't there before
    0
  • m.eid
    I've fount it, it was installed with "Calendar and Contacts Server [EXPERIMENTAL]" add on, I've uninstalled it since don't need it Thank you
    0
  • cPanelMichael
    Hello @m.eid, Thank you for providing the additional information. PostgreSQL is a required dependency for the Calendar and Contacts Server plugin, and this plugin's installation process automatically installs the required PostgreSQL RPMs on servers where PostgreSQL was not previously installed. While the required PostgreSQL RPMs are automatically installed, PostgreSQL is not automatically restarted during the Calendar and Contacts Server plugin installation process. This leads to the following errors during subsequent cPanel updates: [2019-05-30 11:39:49 -0500] - Processing command `/usr/local/cpanel/bin/postgrescheck --check-auth --reset-pass-on-fail` [2019-05-30 11:39:49 -0500] [/usr/local/cpanel/bin/postgrescheck] 0 [2019-05-30 11:39:49 -0500] E [/usr/local/cpanel/bin/postgrescheck] The "/usr/local/cpanel/bin/postgrescheck --check-auth --reset-pass-on-fail" command (process 1559) reported error number 1 when it ended. [2019-05-30 11:39:49 -0500] The Administrator will be notified to review this output when this script completes [2019-05-30 11:39:49 -0500] - Finished command `/usr/local/cpanel/bin/postgrescheck --check-auth --reset-pass-on-fail` in 0.282 seconds
    And: [2019-05-30 11:39:53 -0500] E Pre Maintenance ended, however it did not exit cleanly (256). The following events were logged: "bin/postgrescheck", Please check the logs for an indication of what happened
    Internal case CPANEL-27658 is now open to address this issue. I'll monitor the case and update this thread with more information as it becomes available. In the meantime, the temporary workaround is to restart PostgreSQL, and start the cPanel update process again: /scripts/restartsrv_postgresql /scripts/upcp
    Thank you.
    0
  • m.eid
    Actually I've uninstall the plugin at all, since it is tagged with experimental, so will install it after final release of the plugin. Thank you for your help :D
    0

Please sign in to leave a comment.