Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Error on PostgreSql Install

Discussion in 'Database Discussion' started by Raphael M .Ehlers, Jul 1, 2016.

Tags:
  1. Raphael M .Ehlers

    Raphael M .Ehlers Registered

    Joined:
    Jul 1, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hey Guys, on I try to execute /scripts/installpostgres, my server return an error:

    thread.error: can't start new thread
    Failed to locate postgresql user
    The PostgreSQL installation failed.

    Anyone have ideia to solve this?

    Thks in advance.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,400
    Likes Received:
    1,952
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you verify if there was any additional output before this error? For instance, did it appear after a YUM transaction?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Raphael M .Ehlers

    Raphael M .Ehlers Registered

    Joined:
    Jul 1, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Yeh, it seems appear that a yum mistake:

    Code:
    Traceback (most recent call last):
      File "/usr/bin/yum", line 29, in <module>
    (XID 3anww2) The system failed to execute yum with the arguments â-y -c /etc/yum.conf install rh-postgresql rh-postgresql-devel rh-postgresql-libs rh-postgresql-server postgresql postgresql-devel postgresql-libs postgresql-serverâbecause of an error: The â/usr/bin/yumâcommand (process 9364) reported error number 1 when it ended. : Traceback (most recent call last):
      File "/usr/bin/yum", line 29, in <module>
        yummain.user_main(sys.argv[1:], exit_code=True)
      File "/usr/share/yum-cli/yummain.py", line 298, in user_main
        errcode = main(args)
      File "/usr/share/yum-cli/yummain.py", line 146, in main
        result, resultmsgs = base.doCommands()
      File "/usr/share/yum-cli/cli.py", line 440, in doCommands
        return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
      File "/usr/share/yum-cli/yumcommands.py", line 211, in doCommand
        return base.installPkgs(extcmds)
      File "/usr/share/yum-cli/cli.py", line 702, in installPkgs
        self.install(pattern=arg)
      File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 3524, in install
        mypkgs = self.pkgSack.returnPackages(patterns=pats,
      File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 907, in <lambda>
        pkgSack = property(fget=lambda self: self._getSacks(),
      File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 687, in _getSacks
        self.repos.populateSack(which=repos)
      File "/usr/lib/python2.6/site-packages/yum/repos.py", line 295, in populateSack
        self.doSetup()
      File "/usr/lib/python2.6/site-packages/yum/repos.py", line 110, in doSetup
        self.ayum.plugins.run('postreposetup')
      File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 184, in run
        func(conduitcls(self, self.base, conf, **kwargs))
      File "/usr/lib/yum-plugins/fastestmirror.py", line 202, in postreposetup_hook
        all_urls = FastestMirror(all_urls).get_mirrorlist()
      File "/usr/lib/yum-plugins/fastestmirror.py", line 369, in get_mirrorlist
        self._poll_mirrors()
      File "/usr/lib/yum-plugins/fastestmirror.py", line 413, in _poll_mirrors
        pollThread.start()
      File "/usr/lib64/python2.6/threading.py", line 474, in start
        _start_new_thread(self.__bootstrap, ())
    thread.error: can't start new thread
     
    #3 Raphael M .Ehlers, Jul 1, 2016
    Last edited by a moderator: Jul 1, 2016
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,400
    Likes Received:
    1,952
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    First, try repairing your RPM database with the following commands:

    Code:
    mkdir /root/old_rpm_dbs/
    mv /var/lib/rpm/__db* /root/old_rpm_dbs/
    rpm --rebuilddb
    If the issue continues, you can try disabling the YUM FastMirror plugin if it's enabled by running the following command:

    Code:
    cp -av /etc/yum/pluginconf.d/fastestmirror.conf{,.enabled}; sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf
    Let us know if this helps.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Raphael M .Ehlers

    Raphael M .Ehlers Registered

    Joined:
    Jul 1, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hey Guys... All work... very thx for the help. =D
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,400
    Likes Received:
    1,952
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice