Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 17
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2005
    Posts
    6

    Default Postgre Errors when running backup

    I'm getting authentication errors when running the /scripts/cpbackup:


    Grabbing mysql privs...Done
    Grabbing PostgreSQL databases............
    psql: FATAL: Password authentication failed for user "postgres"

    psql: FATAL: Password authentication failed for user "postgres"

    Done
    Grabbing PostgreSQL privileges...psql: FATAL: Password authentication failed for user "postgres"

    psql: FATAL: Password authentication failed for user "postgres"

    Done
    -----------------------------------------

    It'll do that about three times throughout the backup process.

    I'm wondering is there a way I can keep it from doing this? I don't use PostgreSQL, why does it keep trying to back it up?

  2. #2
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    If PostgreSQL is installed, then it is assumed that it is being used. If you are not using it then you should uninstall it.

  3. #3
    Member PPNSteve's Avatar
    Join Date
    Mar 2003
    Location
    Somewhere in Ilex Forest
    Posts
    309
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    whats the process to uninstall it?

    we have a similar problem..
    Steve H.
    --------------
    1-GB.NET
    Domain Names

  4. #4
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Just remove the installation of PostgreSQL. This varies between OS vendors. On Redhat 9 it's something like this:

    /etc/init.d/postgresql stop
    rpm -e postgresql-devel postgresql-libs postgresql-server postgresql

  5. #5
    Member
    Join Date
    Feb 2004
    Posts
    64

    Default

    I'm getting the same errors and don't have postgresql installed.

    I've had it in earlier though, but moved it to another server...

  6. #6
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Add the following to /etc/cpbackup.conf

    PSQLBACKUP=no

    Or remove the postgres user (should have not been there if PostgreSQL was never installed).

  7. #7
    Member
    Join Date
    Mar 2005
    Posts
    5

    Default Your cpbackup makes psql backups??

    My cpbackup.conf does not have PSQLBACKUP line and is not backing up my postgresql databases. What should I do so it starts postgres backups?

  8. #8
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    That's an interesting one. There might be a problem with your PostgreSQL installation. Can you send in a support ticket to my attention so that I can take a look at your server?

    Thanks

  9. #9
    Member
    Join Date
    Mar 2005
    Posts
    5

    Default

    It seems like postgres full support is only on Edge version. My version is Stable. I'm getting psql backups after I changed /scritps/cpbackup2.

    It was needed because /scripts/pkgacct, if called from the shell was executing psql backup perfectly. But when called from /scripts/cpbackup2, lacks $ENV{'pkgacct-psql'} eq "yes".

    /scripts/cpbackup correctly sets pkgacct-psql environment variable, but /scripts/cpbackup2 had those lines missing. I copied the following lines from cpbackup to cpbackup2 and all worked well:

    $ENV{'pkgacct-psql'} = 'yes';
    if ($CONF{'PSQLBACKUP'} eq "no") { $ENV{'pkgacct-psql'} = 'no'; }

    Of course I added the line below to /etc/cpbackup.conf

    PSQLBACKUP yes

    It solved my problem by now. I just would like to exactly from wich version WHM fully supports postgresql.

  10. #10
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    /scripts/cpbackup2 will soon be removed from /scripts.

  11. #11
    Member
    Join Date
    Mar 2005
    Posts
    12

    Thumbs up

    was getting that error in backup logs also...

    changed
    PSQLBACKUP=no

    to

    PSQLBACKUP no

    seems = sign caused problems.

    no error messages now.

  12. #12
    Member dprophit's Avatar
    Join Date
    Apr 2002
    Posts
    15

    Post

    [QUOTE=hjunior]/scripts/cpbackup correctly sets pkgacct-psql environment variable, but /scripts/cpbackup2 had those lines missing. I copied the following lines from cpbackup to cpbackup2 and all worked well:/QUOTE]cPanel staff, in his solution is this a bug then?
    ===========================================
    And now for something totally different! -Monty Python

  13. #13
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Since cpbackup2 is deprecated (and will be removed in the near future) PostgreSQL support was not added to it.

  14. #14
    Member
    Join Date
    Oct 2004
    Posts
    26

    Default

    Quote Originally Posted by cpanelben
    Just remove the installation of PostgreSQL. This varies between OS vendors. On Redhat 9 it's something like this:

    /etc/init.d/postgresql stop
    rpm -e postgresql-devel postgresql-libs postgresql-server postgresql
    this helps me a lot. but you may have some problem while uninstalling postgre. on redhat enterprise edition 3, i used this;

    Code:
    rpm -e rh-postgresql-devel rh-postgresql-libs rh-postgresql-server rh-postgresql

  15. #15
    Registered User
    Join Date
    Jun 2004
    Posts
    4

    Default

    Quote Originally Posted by baldor
    this helps me a lot. but you may have some problem while uninstalling postgre. on redhat enterprise edition 3, i used this;

    Code:
    rpm -e rh-postgresql-devel rh-postgresql-libs rh-postgresql-server rh-postgresql
    You may need to get rid of the contrib, python and perl stuff as well. Give this a try.

    rpm -e rh-postgresql-contrib rh-postgresql-python php-pgsql mod_auth_pgsql perl-DBD-Pg rh-postgresql-devel rh-postgresql-
    libs rh-postgresql-server rh-postgresql

Similar Threads & Tags
Similar threads

  1. running and debugging PHP - displaying Fatal errors
    By bignose in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-11-2008, 07:03 AM
  2. Errors when running /scripts/fixeverything
    By damainman in forum cPanel and WHM Discussions
    Replies: 27
    Last Post: 10-17-2008, 09:26 AM
  3. Errors when running fixquotas
    By rascal2trust in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-10-2006, 08:24 AM
  4. Apache won't start with no errors when running configtest
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-22-2004, 08:35 PM
  5. Errors in running /s
    By jsteel in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-18-2002, 09:28 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube