Raphael M .Ehlers

Registered
Jul 1, 2016
3
0
1
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.
 

Raphael M .Ehlers

Registered
Jul 1, 2016
3
0
1
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
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
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!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.