Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Anyone please tell me why getting this error in yum command?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Anyone please tell me why getting this error in yum command?

raihan0888raihan0888 Member
edited February 2012 in Help

[root@host ~]# yum install lighttpd

Loaded plugins: fastestmirror, protectbase
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 178, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 345, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.4/site-packages/yum/init.py", line 662, in
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/init.py", line 502, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in populateSack
self.doSetup()
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
all_urls = FastestMirror(all_urls).get_mirrorlist()
File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
self._poll_mirrors()
File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
pollThread.start()
File "/usr/lib/python2.4/threading.py", line 416, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread

«1

Comments

  • InfinityInfinity Member, Host Rep
    edited February 2012

    Disable plugins and try again. Looks like you're outta RAM.

    yum install lighttpd --noplugins

    To permenantly disable.

    Change in plugins=1 to plugins=0 in /etc/yum.conf.

    I <3 OpenVZ.

  • InfinityInfinity Member, Host Rep

    Updated post.

  • nano /etc/yum.conf

  • How much RAM does this VPS have anyway?

  • its 128mb burst 256mb after error its used 178 after few optimization now used 32mb :)

  • @rds100 said: How much RAM does this VPS have anyway?

    Looks like inadequate RAM to me too.

  • netomxnetomx Moderator, Veteran

    @raihan0888 said: its 128mb burst 256mb after error its used 178 after few optimization now used 32mb :)

    32? what services you're running? I can get down to 10.5mb

  • @kiloserve said: Looks like inadequate RAM to me too.

    is there any way to use less then 32mb ;) with kloxo?

  • @netomx said: 32? what services you're running? I can get down to 10.5mb

    i just learning..new with command.can you tell me what i need to type to post here the list of my process?

  • InfinityInfinity Member, Host Rep
    edited February 2012
    ps aux

    Should do the trick.

  • USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND

    root 1 0.0 0.2 2156 660 ? Ss 02:21 0:00 init [3]
    root 1341 0.0 0.2 1812 572 ? Ss 02:21 0:00 syslogd -m 0
    qmails 1351 0.0 0.1 2000 464 ? S 02:21 0:00 qmail-send
    qmaill 1352 0.0 0.1 1752 472 ? S 02:21 0:00 splogger qmail
    root 1353 0.0 0.1 1764 356 ? S 02:21 0:00 qmail-lspawn |preline procmail
    qmailr 1354 0.0 0.1 1760 352 ? S 02:21 0:00 qmail-rspawn
    qmailq 1355 0.0 0.1 1744 340 ? S 02:21 0:00 qmail-clean
    root 1366 0.0 0.4 7204 1056 ? Ss 02:21 0:00 /usr/sbin/sshd
    root 1374 0.0 0.3 2832 892 ? Ss 02:21 0:00 xinetd -stayalive -pidfile /var
    root 1406 0.0 0.4 3712 1304 ? S 02:21 0:00 /bin/sh /usr/bin/mysqld_safe --
    mysql 1456 0.0 2.8 34924 7540 ? Sl 02:21 0:00 /usr/libexec/mysqld --basedir=/
    lxlabs 1499 0.0 0.6 6292 1800 ? S 02:21 0:00 /usr/local/lxlabs/ext/lxlighttp
    root 1562 0.0 0.4 4488 1084 ? Ss 02:21 0:00 crond
    root 1570 0.0 0.2 5680 700 ? Ss 02:21 0:00 /usr/sbin/saslauthd -m /var/run
    root 1571 0.0 0.1 5680 444 ? S 02:21 0:00 /usr/sbin/saslauthd -m /var/run
    root 1630 0.0 1.1 10040 2900 ? Ss 02:28 0:00 sshd: root@pts/0
    root 1632 0.0 0.5 3716 1480 pts/0 Ss 02:28 0:00 -bash
    admin 1937 0.0 1.0 7944 2668 ? Ss 02:37 0:00 pure-ftpd (IDLE)
    root 1938 0.0 0.2 7944 688 ? S 02:37 0:00 pure-ftpd (PRIV)
    root 3303 0.0 0.3 2532 908 pts/0 R+ 02:53 0:00 ps aux

  • kiloservekiloserve Member
    edited February 2012

    @raihan0888 said: is there any way to use less then 32mb ;) with kloxo?

    You can lower mySQL memory usage, that usually gets you below 20MB mark

    Edit /etc/my.cnf

    Check to see if you have these two and remove the # symbol (if they aren't there, you can add these two lines in without the #)
    `

    skip-bdb

    skip-innodb

    Change to

    skip-bdb
    skip-innodb
    `
    Then restart mySQL.

    You can also shutdown Apache/mySQL while doing the yum update to get the ram back.

    Finally, an easy way is to ask your provider to give you 100 more megs of RAM temporarily for YUM. If your provider is easy-going, they can bump you up for 24 hours or something.

    Thanked by 1raihan0888
  • i already apply my in my way http://www.lowendtalk.com/discussion/1290/run-kloxo-wordpress-torrentflux-lighttpd-in-low-memory-128mb-lowendbox-vps#Item_28

    need more optimization :) one of member said he used 10.5 mb!!!

  • Wow, 10.5MB is amazing, I never got it that low :)

  • @netomx said: netomx 2:45AM FlagThanks

    Member
    @raihan0888 said: its 128mb burst 256mb after error its used 178 after few optimization now used 32mb :)

    32? what services you're running? I can get down to 10.5mb

    you get 10.5 with kloxo?how?

  • @kiloserve said: Wow, 10.5MB is amazing, I never got it that low :)

    wait to hear from netmx.how he did.

  • DamianDamian Member
    edited February 2012

    He's probably not using a control panel like Kloxo... control panels aren't conducive to low memory usage. Getting down to 32mb on a 128mb VPS is pretty good, i'd say.

    Thanked by 1raihan0888
  • facing another problem :P

    unable to change php type in kloxo.

    previous version i able to easly change to suphp.but in new version not found.manual install show php type change box fast cgi to suphp?

  • InfinityInfinity Member, Host Rep
    edited February 2012

    @raihan0888 said: wait to hear from netmx.how he did.

    As Daiman said he probebly isn't using Kloxo with all the additional services it has and more RAM consuming services it has.

    Can you downgrade versions? Kloxo seems very buggy.

  • @Infinity said: Can you downgrade versions? Kloxo seems very buggy.

    any other leight-weight control panel? what you suggest?where i find kloxo like user interface? :( what i need to downgrade?

  • BoxCtrl ?

  • @raihan0888 said: any other leight-weight control panel? what you suggest?where i find kloxo like user interface? :( what i need to downgrade?

    Try Webmin?

  • raihan0888raihan0888 Member
    edited February 2012

    @Daniel said: BoxCtrl ?

    i see boxcntrl demo.impressed.but confused getting solution for any problem?cause its not popular yet.

    i try webmin. its hard from my view.but most of the user say its easy. :(

  • @raihan0888 said: i see boxcntrl demo.impressed.but confused getting solution for any problem?cause its not popular yet.

    BoxCtrl is just ment for the basics.

  • netomxnetomx Moderator, Veteran

    I never said I use Kloxo.. without the services, I get 10.5mb. If I use lighttpd with fastcgi, it increases to 15. Also, I use PPTP, you can get maybe a little less than that if you disable it.

    [root@vpn2 ~]# free -m
                 total       used       free     shared    buffers     cached
    Mem:           256         15        240          0          0          0
    -/+ buffers/cache:         15        240
    Swap:            0          0          0
    [root@vpn2 ~]# ps ax
      PID TTY      STAT   TIME COMMAND
        1 ?        Ss     0:00 init [3]
     1855 ?        Ss     0:00 syslogd -m 0
     1872 ?        Ss     0:00 /usr/sbin/sshd
     1882 ?        S      0:01 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
     1884 ?        Ss     0:00 /usr/bin/php-cgi
     1892 ?        Ss     0:00 /usr/sbin/pptpd
     3114 ?        Ss     0:00 crond
    23687 ?        S      0:00 /usr/bin/php-cgi
    32736 ?        Rs     0:00 sshd: root@pts/0
    32738 pts/0    Ss     0:00 -bash
    32757 pts/0    R+     0:00 ps ax
    [root@vpn2 ~]#
    
    

    Maybe you can get 2mb less if you change sshd to dropbear... will try on the weekend.

  • netomxnetomx Moderator, Veteran

    @raihan0888

    disable these services if not needed:

    qmail-send
    splogger qmail
    qmail-lspawn |preline procmail
    qmail-rspawn
    qmail-clean
    xinetd -stayalive -pidfile /var
    saslauthd
    pure-ftpd
    

    How to stop them?

    service xinetd stop

    How to disable them on boot?

    chkconfig xinetd off
  • guys thanks to all.
    i solve my problem in kloxo 6.1.10
    here is the solution:
    http://forum.lxcenter.org/index.php?t=msg&goto=95151&&srch=lighttpd#msg_95151

    yum downgrade php*
    yum -y reinstall lighttpd lighttpd-fastcgi
    yum remove httpd

    putting this 3 command my 3 days problem solved :)

  • I'm using 15mb RAM for nginx, php-fastcgi with 2 processes, nsd and dropbear.

  • To save a bit run dropbear under inetd or xinetd.

    Be sure to subtract the memory that your ssh connection, shell, and command that you are running. These usually add up to 3 megs or so.

Sign In or Register to comment.