Perl Install Constantly Fails With Out Of Memory, But Nothing's Running
Aug 12, 2008
an inexpensive VPS host and based on reviews on this forum, went with Web Wide Hosting.
I had a smooth signup and thanks to Jon at WWH, managed to get a payment snafu with Paypal resolved smoothly.
However, I've been struggling a lot with getting most recommended steps to actually work in my VPS and I'm getting increasingly frustrated.
The latest problem I have is that trying to install Perl modules fails with a "cannot allocate memory" error. First google hits suggest increasing memory, which really isn't an option for me right now. More puzzling is the fact that both HyperVM and user_beancounters suggest I have enough headroom atleast to install perl modules!
Output from session:
cpan> install Authen::PAM
CPAN: Storable loaded ok
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Mon, 11 Aug 2008 07:02:52 GMT
HTTP::Date not available
There's a new CPAN.pm version (v1.9205) available!
[Current version is v1.7602]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamless upgrade
while we are running...
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Could not pipe[/bin/gzip --decompress --stdout /root/.cpan/sources/modules/03modlist.data.gz |]: Cannot allocate memory at /usr/lib/perl5/5.8.8/CPAN.pm line 5726.
I tried using this perl script which supposedly restarts apache when server load reaches 5 and above
Code: #!/usr/bin/perl -w #use strict; $|++; open(LOAD,"/proc/loadavg") || die "couldn't open /proc/loadavg: $! "; my @load=split(/ /,<LOAD>); close(LOAD); if ($load[0] > 5) { `/sbin/service httpd restart`; } and placed it in /usr/local/script/loadavg.pl and chmod to 755
and added this to my crontab
*/1 * * * * root /usr/local/script/loadavg.pl
my server load went up to 20 and waited if it will automatically go down via the script but it seems it's not working. I had to restart apache manually.
I have installed image::magick perl module but its not running error is :--
Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Image/Magick/Magick.so' for module Image::Magick: libMagickCore.so.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230. at flickr.pl line 55 Compilation failed in require at flickr.pl line 55. BEGIN failed--compilation aborted at flickr.pl line 55.
Running programs named Perl with Heavy CPU usage, with the ownership of user apache.
We found the problem on Fedora 3 and Fedora 6.
In our case, it was the result of a Trojan activity.
Quick Solution
Check the cron jobs of user apache crontab -u apache -e */1 * * * * perl /tmp/.tmp/tmpfile delete the cronjob entry. Also delete the file /tmp/.tmp/tmpfile also added "apache" to the file /etc/cron.deny
i've to install perl-XML-Parser on my dedicated server. i'm using centOS4.5. i tried
Code: yum install perl-XML-Parser after that command i got:
Code: Setting up Install Process Setting up repositories Reading repository metadata in from local files Excluding Packages in global exclude list Finished Parsing package install arguments No Match for argument: perl-XML-Parser Nothing to do
if anyone asks why i've to install it, i want to install VNC. while installing gnome with that command:
Code: yum install gnome* i got that error :
Code: --> Running transaction check --> Processing Dependency: perl-XML-Parser for package: intltool --> Finished Dependency Resolution Error: Missing Dependency: perl-XML-Parser is needed by package intltool
so, i think that i've to install perl-XML-Parser. but how?
I just installed tightvnc with the rpm on their website. I'm currently running CentOS 5 with GNOME up and running. FreeNX works fine, but we also need to install tightvnc for our business.
When I try running it, I get this:
Quote:
[root@10 ~]# vncserver Couldn't start Xvnc; trying default font path. Please set correct fontPath in the vncserver script. Couldn't start Xvnc process.
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb' 15/08/07 03:27:28 Xvnc version TightVNC-1.3.9 15/08/07 03:27:28 Copyright (C) 2000-2007 TightVNC Group 15/08/07 03:27:28 Copyright (C) 1999 AT&T Laboratories Cambridge 15/08/07 03:27:28 All Rights Reserved. 15/08/07 03:27:28 See http://www.tightvnc.com/ for information on TightVNC 15/08/07 03:27:28 Desktop name 'X' (10.40.233.72.static.reverse.ltdomains.com:1) 15/08/07 03:27:28 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t 15/08/07 03:27:28 Listening for VNC connections on TCP port 5901 15/08/07 03:27:28 Listening for HTTP connections on TCP port 5801 15/08/07 03:27:28 URL http://10.40.233.72.static.reverse.ltdomains.com:5801 Font directory '/usr/X11R6/lib/X11/fonts/misc/' not found - ignoring Font directory '/usr/X11R6/lib/X11/fonts/Speedo/' not found - ignoring Font directory '/usr/X11R6/lib/X11/fonts/Type1/' not found - ignoring Font directory '/usr/X11R6/lib/X11/fonts/75dpi/' not found - ignoring Font directory '/usr/X11R6/lib/X11/fonts/100dpi/' not found - ignoring
Fatal server error: could not open default font 'fixed' Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb' 15/08/07 03:27:29 Xvnc version TightVNC-1.3.9 15/08/07 03:27:29 Copyright (C) 2000-2007 TightVNC Group 15/08/07 03:27:29 Copyright (C) 1999 AT&T Laboratories Cambridge 15/08/07 03:27:29 All Rights Reserved. 15/08/07 03:27:29 See http://www.tightvnc.com/ for information on TightVNC 15/08/07 03:27:29 Desktop name 'X' (10.40.233.72.static.reverse.ltdomains.com:1) 15/08/07 03:27:29 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t 15/08/07 03:27:29 Listening for VNC connections on TCP port 5901 15/08/07 03:27:29 Listening for HTTP connections on TCP port 5801 15/08/07 03:27:29 URL http://10.40.233.72.static.reverse.ltdomains.com:5801 Font directory '/usr/X11R6/lib/X11/fonts/misc/' not found - ignoring Font directory '/usr/X11R6/lib/X11/fonts/Speedo/' not found - ignoring Font directory '/usr/X11R6/lib/X11/fonts/Type1/' not found - ignoring Font directory '/usr/X11R6/lib/X11/fonts/75dpi/' not found - ignoring Font directory '/usr/X11R6/lib/X11/fonts/100dpi/' not found - ignoring
Fatal server error: could not open default font 'fixed'
I'm trying to run freenx and tightvnc. I can't get freenx working, so I moved on to try to install tightvnc. I installed the Fedora rpm on my CentOs box. Everything installed.
When I tried to run it, it failed and exited. It says I'm missing fonts. I had the technicians install GNOME when it was being installed, but I don't think its configured.
Quote:
[root@10 share]# vncserver Couldn't start Xvnc; trying default font path. Please set correct fontPath in the vncserver script. Couldn't start Xvnc process.
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb' 13/08/07 16:14:39 Xvnc version TightVNC-1.3.9 13/08/07 16:14:39 Copyright (C) 2000-2007 TightVNC Group 13/08/07 16:14:39 Copyright (C) 1999 AT&T Laboratories Cambridge 13/08/07 16:14:39 All Rights Reserved. 13/08/07 16:14:39 See http://www.tightvnc.com/ for information on TightVNC 13/08/07 16:14:39 Desktop name 'X' (10.40.223.72.static.reverse.ltdomains.com:1) 13/08/07 16:14:39 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t 13/08/07 16:14:39 Listening for VNC connections on TCP port 5901 13/08/07 16:14:39 Listening for HTTP connections on TCP port 5801 13/08/07 16:14:39 URL http://10.40.223.72.static.reverse.ltdomains.com:5801 _FontTransSocketUNIXConnect: Can't connect: errno = 2 failed to set default font path 'unix/:7100' Fatal server error: could not open default font 'fixed' Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb' 13/08/07 16:14:40 Xvnc version TightVNC-1.3.9 13/08/07 16:14:40 Copyright (C) 2000-2007 TightVNC Group 13/08/07 16:14:40 Copyright (C) 1999 AT&T Laboratories Cambridge 13/08/07 16:14:40 All Rights Reserved. 13/08/07 16:14:40 See http://www.tightvnc.com/ for information on TightVNC 13/08/07 16:14:40 Desktop name 'X' (10.40.233.72.static.reverse.ltdomains.com:1) 13/08/07 16:14:40 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t 13/08/07 16:14:40 Listening for VNC connections on TCP port 5901 13/08/07 16:14:40 Listening for HTTP connections on TCP port 5801 13/08/07 16:14:40 URL http://10.40.223.72.static.reverse.ltdomains.com:5801 Font directory '/usr/X11R6/lib/X11/fonts/misc/' not found - ignoring Font directory '/usr/X11R6/lib/X11/fonts/Speedo/' not found - ignoring Font directory '/usr/X11R6/lib/X11/fonts/Type1/' not found - ignoring Font directory '/usr/X11R6/lib/X11/fonts/75dpi/' not found - ignoring Font directory '/usr/X11R6/lib/X11/fonts/100dpi/' not found - ignoring
Fatal server error: could not open default font 'fixed'
My hosting company is telling me my VPS is running out of memory. Lets look at the stats of the site and the server.
Server: Centos 384 megs of ramm 1 gig burst ramm 20 gig hard drive cPanel My total traffic for last month was about 7 gigs.
Webite: Vbulletin 3.6.5 with a few mods database is about 16 megs 99 members The most ever online was 20
Yesterday my site started showing a database error page, instead of the website index page. The stats at the bottom of the page showed only 7 people on the site at the time. When I contacted my hosting provider, they told me I was maxing out my memory and burst ram.
So how can a website this small max out the given ram? This is really starting to TICK me off. I have left two hosting companies because of poor performance, why cant things just work right? How is my community supposed to grow if my users keep getting a database error instead of the web page?
I run a drupal site on a VPS running Lighttpd with 128MB ram and 15GB disk space. Every so often the server crashes and I have no access to even reboot via the shell, I have to get my host to reboot the VPS. They say its most likely due to the server running out of memory. I would have no more than 5 users plus 5 guests online at the same time. So my question is this...
How can I find out exactly what is consuming the memory and causing the server to crash? I have looked at drupal logs and the server logs, but I'm no wiser as to whats causing it. What should I be looking for and what can I do to try and solve this?
I have a VPS with 512 MB ram. I have 6 sites hosted on my VPS, of which 3 contains only static pages. My site is not very traffic heavy. Infact I moved to my VPS only 3 months back, until then it was running on a shared server with no problem.
But still, I am always running out of RAM. I have upgraded my account to 512 MB ram from 256MB because of this. Can anyone please tell me how I can find out what is the cause of this excessive memory usage? On rebooting my server, the RAM usage goes down to about 250MB.
I am trying to install Plesk 12.0 on fresh CentOS 6 (64bit). It goes as far as initialising the databases and then moans about missing files:/usr/bin/sw-engine: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
I then install libpng $ yum install libpng.x86_64
Re-run installer and hits next error - libfreetype: /usr/bin/sw-engine: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directoryI have CentOS-base repo and Epel repo enabled.
Why are those files not being installed as dependencies by Plesk? Is this a bug ?
I attempted to install Zen Cart in a (correctly formed) subdomain and I received this message when the process crashed before beginning: "Non-zero exit status returned by script."
If a Plesk admin wants to install Wordpress, the installation always fails.
1. Select Server Management -> Tools & Settings -> Security -> Security Policy 2. Select (*) Very strong 3. Confirm with OK 4. Select Hosting Services -> Domains 2. Select Domain 3. Select Button Install Apps 4. Select Wordpress in All Available Applications 5. Select Install 6. Error message is shown! Error: Installation of WordPress at http://lyl-canbys.de/blog failed. Your password is not complex enough. According to the server policy, the minimal password strength is Very strong. To improve the password strength, use numbers, upper and lower-case characters, and special characters like !,@,#,$,%,^,&,*,?,_,~
But the password was complex enough. with 20 numbers+charcters+special chars!
I i lower Plesks Security Policy to (*) Strong, the Wordpress installation works. But lowering Security with password length 8 is not desireable.
I have several servers that have a HighPoint RocketRaid 1520 SATA raid card. I have recently discovered that this card requires drivers in the OS to actually take advantage of the raid functionality.
Well, it seems the drivers were never installed. So I essentially do not currently have a raid setup, even though I have a pair of HD's in each of the servers affected. Now, I do have a Windows server that automatically loaded the driver, but the Linux boxes do not have the driver it seems. The instructions for this card state that the driver is installed at the time of OS installation. I bought these servers when I acquired a host a couple of years ago and obviously they weren't setup properly.
So here's my question, I am thinking of trying to install this raid driver on the affected servers now. They have been running for a couple of years this way and I don't want to screw something up. Is this something that I can do at this point without going back to reinstalling the OS, etc? Can the raid driver be installed after the fact here like I'm thinking of doing?
Should I proceed with trying to get this RocketRaid card to work or would I better off buying hardware raid cards that are configured outside of the OS? And if I should go with the hardware level raid, what card do you all recommend? I'm running RHE3 on these servers and they are P4's with 1GB of RAM.
I'm in the process of installing PPA on infrastructure running Parallels Cloud Server. Each container has 2 interfaces, one public facing and a private interface for inter-server communication.
No problems installing PPA 11.5 (specifying IP's on commandline) or adding service nodes however, the firewall rules the documentation speaks of are nowhere to be seen? i.e.:
Important: After the installation, PPA creates the special firewall chain PPA-SN-Rules-INPUT used for communication with service nodes. Do not change it, otherwise, you will not be able to add service nodes to PPA.Click to expand...
Has this been dropped from PPA 11.5 ? (I recall seeing the firewall settings in 11.1) There is also no sign of the ppa.firewall tool that is also mentioned.
The only rule I see inserted is for Postgres on the management node, and 2 for pleskd on all of the nodes (open to world!).
Gathering header information file(s) from server(s) Server: CentOS-3 - Addons retrygrab() failed for: http://mirror.centos.org/centos/3/ad...rs/header.info Executing failover method failover: out of servers to try Error getting file http://mirror.centos.org/centos/3/ad...rs/header.info [Errno 4] IOError: <urlopen error >
when I run /etc/easyapache it too fails
Quote:
root@server1 [~]# /scripts/easyapache Testing connection speed...(this could take a while)............Done Ping:32.076 Testing connection speed to 69.90.250.35 using pureperl...(120500.00 bytes/s)...Done Ping:32.179 Testing connection speed to 69.90.250.34 using pureperl...(120500.00 bytes/s)...Done Ping:49.545 Testing connection speed to 69.72.164.152 using pureperl...(76681.82 bytes/s)...Done Ping:49.605 Testing connection speed to 69.72.164.155 using pureperl...(70291.67 bytes/s)...Done Ping:51.603 Testing connection speed to 198.66.92.147 using pureperl...(76681.82 bytes/s)...Done 5 usable mirrors located Fetching http://layer1.cpanel.net/buildapache.sea (0)....@69.90.250.35......connected......receiving...1%...2%...3%...4%...5%...6%...7%...8%...9%...10%...11%...13%...14%...15%...16%...17%...18%...19%. ..20%...21%...22%...23%...25%...26%...27%...28%...29%...30%...31%...32%...33%...34%...35%...36%...38%...39%...40%...41%...42%...43%...44%...45%...46%. ..47%...48%...50%...51%...52%...53%...54%...55%...56%...57%...58%...59%...60%...62%...63%...64%...65%...66%...67%...68%...69%...70%...71%...72%...73%. ..75%...76%...77%...78%...79%...80%...81%...82%...83%...84%...85%...87%...88%...89%...90%...91%...92%...93%...94%...95%...96%...97%...98%...100%...... Done Creating directory buildapache Verifying archive integrity... All good. Uncompressing buildapache........................................................................................................................................... ...................................................................................................................................................... ...................................................................................................................................................... ................................................................. Checking Update System........Your operating system's rpm update method (yum) was not able to locate the glibc package. This is an indication of an improper setup. You must correct this error before you can proceed. Please correct the conflicts and try again! initfpsuexec: using apache 1.x support Waiting for httpd to restart..............finished.
I have a vps and I was having memory issues so I reboot my server. Upon doing that it seems to have put itself into a loop and is constantly rebooting itself every 5mins.
I checked the logs at /var/log/messages and found this:
Code: (?@127.0.0.1) [INFO] Logout. Jun 29 11:55:49 evercuben xinetd[24525]: EXIT: ftp status=255 pid=24296 duration=0(sec) Jun 29 11:55:49 evercuben xinetd[24525]: EXIT: smtp status=1 pid=24292 duration=0(sec) Jun 29 12:00:49 evercuben xinetd[24525]: START: smtp pid=1628 from=127.0.0.1 Jun 29 12:00:49 evercuben xinetd[24525]: START: ftp pid=1630 from=127.0.0.1 Jun 29 12:00:49 evercuben pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1 Jun 29 12:00:49 evercuben pure-ftpd: (?@127.0.0.1) [INFO] Logout. Jun 29 12:00:49 evercuben xinetd[24525]: EXIT: ftp status=255 pid=1630 duration=0(sec) Jun 29 12:00:49 evercuben xinetd[24525]: EXIT: smtp status=1 pid=1628 duration=0(sec) Jun 29 12:05:49 evercuben xinetd[24525]: START: smtp pid=11347 from=127.0.0.1 Jun 29 12:05:49 evercuben pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1 Jun 29 12:05:49 evercuben xinetd[24525]: START: ftp pid=11349 from=127.0.0.1 Jun 29 12:05:49 evercuben pure-ftpd: (?@127.0.0.1) [INFO] Logout. Jun 29 12:05:49 evercuben xinetd[24525]: EXIT: ftp status=255 pid=11349 duration=0(sec) Jun 29 12:05:51 evercuben xinetd[24525]: EXIT: smtp status=1 pid=11347 duration=2(sec) Jun 29 12:10:49 evercuben xinetd[24525]: START: smtp pid=20210 from=127.0.0.1 Jun 29 12:10:49 evercuben pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1 Jun 29 12:10:49 evercuben xinetd[24525]: START: ftp pid=20212 from=127.0.0.1 Jun 29 12:10:49 evercuben pure-ftpd: (?@127.0.0.1) [INFO] Logout. Jun 29 12:10:49 evercuben xinetd[24525]: EXIT: ftp status=255 pid=20212 duration=0(sec) Jun 29 12:10:49 evercuben xinetd[24525]: EXIT: smtp status=1 pid=20210 duration=0(sec) Jun 29 12:15:49 evercuben xinetd[24525]: START: smtp pid=30100 from=127.0.0.1 Jun 29 12:15:49 evercuben pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1 Jun 29 12:15:49 evercuben xinetd[24525]: START: ftp pid=30102 from=127.0.0.1 Jun 29 12:15:49 evercuben pure-ftpd: (?@127.0.0.1) [INFO] Logout. Jun 29 12:15:49 evercuben xinetd[24525]: EXIT: ftp status=255 pid=30102 duration=0(sec) Jun 29 12:15:49 evercuben xinetd[24525]: EXIT: smtp status=1 pid=30100 duration=0(sec) Jun 29 12:20:49 evercuben xinetd[24525]: START: smtp pid=7525 from=127.0.0.1 Jun 29 12:20:49 evercuben pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1 Jun 29 12:20:49 evercuben xinetd[24525]: START: ftp pid=7527 from=127.0.0.1 Jun 29 12:20:49 evercuben pure-ftpd: (?@127.0.0.1) [INFO] Logout. Jun 29 12:20:49 evercuben xinetd[24525]: EXIT: ftp status=255 pid=7527 duration=0(sec)