Hi,
we have a newly setup centos 6.3 server with actual patches (12.09.2012) - and we have a virtualmin pro license on it.
When I setup a new virtual server "Create Virtual Server" I receive the following error while setting up the apache web-server:
Performing other Apache configuration .. .. configuration failed : Failed to copy /etc/php.ini to /home/beispieldomain/etc/php5/php.ini : cp: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory
(It looks like more files are not copied as for excample fcgi is not working too.)
There are no more errors and the server itself including the hosted domain works without any error.
Because I cannot find anything about this error on google I write this post.
Thx for your help Eric
Comments
Submitted by andreychek on Wed, 09/12/2012 - 10:46 Comment #1
Howdy -- are you by chance using a VPS... and in particular, an OpenVZ-based VPS?
If so, I'm curious what this command outputs:
cat /proc/user_beancounters
Also, what does this show:
free -m
Submitted by quxos on Wed, 09/12/2012 - 10:51 Comment #2
Hi,
we are using VMWare Enterprise Plus so the requested /proc dir does not exist.
The server has 4GB of memory and there is only one domain active:
Mem: 3832 1283 2548 0 159 402 -/+ buffers/cache: 721 3111 Swap: 2015 0 2015
Greetings Eric
Submitted by quxos on Wed, 09/12/2012 - 10:57 Comment #3
Just to add - running the command (cp) from the root shell works fine - also all other opartions - also high volume jobs like backup.
Thx Eric
Submitted by andreychek on Wed, 09/12/2012 - 10:59 Comment #4
It appears as if you're running into some sort of memory limitation... I haven't seen the specific error you're getting before though.
What output do you receive if you run the command "dmesg | tail -30" in your guest that's having this particular problem?
Submitted by quxos on Wed, 09/12/2012 - 11:15 Comment #5
I only see a lot of this entries
IPv6 addrconf: prefix with wrong length 56
(IPV6 should be disabled ... funny)
Does not look like it have anything to do with my problem.
Submitted by quxos on Wed, 09/12/2012 - 11:24 Comment #6
so i migrated the vm to another host - same error - no kernel events.
Submitted by quxos on Wed, 09/12/2012 - 11:31 Comment #7
I god rid of the IPV6 Warning (dmsg) - no if I generate there is nothing the kernel has to report.
Deletion of the the server works without any error.
Any Ideas?
Submitted by andreychek on Wed, 09/12/2012 - 11:34 Comment #8
Do you by chance have other guests setup on this VMware server that are running Virtualmin? Or is this the only one?
I'm curious if this issue happens with all guests, or if it's just this one.
Submitted by quxos on Wed, 09/12/2012 - 11:40 Comment #9
sorry the other virtualmin instance we are running on our Citrix XenServer plattform.
But we are running several servers on our vmware environment ... no errors so far.
And as I mentioned at the moment it looks like everything else is working fine.
Is there any possibility to find out what virtualmin is doing at this moment - so we can try this comments manual?
Thx Eric
Submitted by andreychek on Wed, 09/12/2012 - 12:56 Comment #10
It's just using 'cp' to perform a normal file copy there.
So, something fairly odd is going on, and I'm not quite sure what :-)
What is the output of the command "uname -a"?
And can you paste in the contents of your /etc/security/limits.conf file? Thanks!
Submitted by quxos on Wed, 09/12/2012 - 14:13 Comment #11
Uname:
Linux mars.rb.h4pro.net 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/security/limits.conf
#
* soft core 0 * hard rss 10000 @student hard nproc 20 @faculty soft nproc 20 @faculty hard nproc 50 ftp hard nproc 0 @student - maxlogins 4 End of fileapache hard cpu -1 apache hard nproc -1 apache hard as -1 dialyse-krefeld hard as 10240 dialyse-krefeld hard nproc 20 dialyse-krefeld hard cpu 5 @dialyse-krefeld hard as 10240 @dialyse-krefeld hard nproc 20 @dialyse-krefeld hard cpu 5 beispieldomain hard as 10240 beispieldomain hard nproc 20 beispieldomain hard cpu 5 @beispieldomain hard as 10240 @beispieldomain hard nproc 20 @beispieldomain hard cpu 5
Submitted by quxos on Wed, 09/12/2012 - 14:14 Comment #12
apache hard cpu -1 apache hard nproc -1 apache hard as -1 dialyse-krefeld hard as 10240 dialyse-krefeld hard nproc 20 dialyse-krefeld hard cpu 5 @dialyse-krefeld hard as 10240 @dialyse-krefeld hard nproc 20 @dialyse-krefeld hard cpu 5 beispieldomain hard as 10240 beispieldomain hard nproc 20 beispieldomain hard cpu 5 @beispieldomain hard as 10240 @beispieldomain hard nproc 20 @beispieldomain hard cpu 5
Submitted by andreychek on Wed, 09/12/2012 - 14:26 Comment #13
You know what I think I'd try -- I'd try setting up that user without any resource limits.
That user has these limits setup:
beispieldomain hard as 10240
beispieldomain hard nproc 20
beispieldomain hard cpu 5
I believe the file copy that's occurring is being done as that user, and not as root (for security reasons). But that means that process is subject to the above limitations.
If it's hitting the "as" limit, that could certainly cause the error you're seeing.
Submitted by quxos on Wed, 09/12/2012 - 15:08 Comment #14
yes you are right - if i remove the limits from the "Default Setting" Server Template - the error is not raised again.
Thx Eric