i am running virtualmin on my private VPS and everything is running fine, only the miniserv.pl is crashing constantly. so almost every time i want to access the virtualminwebfrontend i have to restart webmin
well the logs in miniserv.error really donât say much besides these strange entries:
Error: Failed to open /etc/webmin/package-updates/current.cache for writing : Bad file descriptor
maybe it is a problem with resources of the VPS
free -m show 445MB free RAM but in /usr/beancounters there is this
kmemsize held:14087341; maxheld:17365573; barrier: 16934908; limit:18628398; failcnt: 5250526
Yep, I agree with ronald. The error looks like it tries to write to the file, but canât cause it could not create it (hence the file handle itâs trying to write to is a âbad descriptorâ).
Check if that directory exists and if Webmin has write permission.
Also, weâve seen a lot of resource issues when using OpenVZ⊠note the failcnt field that you posted there, you seem to be running out of a resource.
If youâre running out of resources, it can cause processes (such as webmin) to die off.
these are the permissions in that folder:
4 drwxâx--x 2 root bin 4096 4. MĂ€r 21:31 .
4 drwxr-xr-x 127 root root 4096 25. Feb 02:00 âŠ
4 -rw------- 1 root bin 67 11. Feb 23:36 config
88 -rw-râr-- 1 root root 82606 4. MĂ€r 21:31 current.cache
4 -rwxr-xr-x 1 root root 376 26. Dez 23:47 update.pl
4 -rw-râr-- 1 root root 543 4. MĂ€r 21:11 updates.cache
miniserv.pl runs as root so it should have rights to write to those files, right?
on the virtual machine is not running that much, my personal mail server und familygalerie on a website, nothing that should bring down that machine???
Okay, so youâre bumping into 4 different resource limits there â kmemsize, numproc, tcpsndbuf, numfile.
The numproc one isnât too bad, but the number of failures with the others is significant. You may want to read through what each of those is used for:
So long as youâre hitting those OpenVZ limits, things arenât going to work properly for you â youâll see all sorts of strange issues while trying to get Virtualmin working.
You could attempt to lower how much RAM youâre using, which this document here can help with:
But really, it looks as if the VPS youâre attempting to use isnât setup to allow you to do the things youâre trying to do there⊠you may need to contact your provider, explain the limits youâre running into, and ask how best to handle that.
Experience here shows that OpenVZ just sucks for Virtualmin hosting. Suggestion: look for a hoster that offers a decent virtualization platform that doesnât kill your processes all the time.
If youâre looking for something in Germany, I still have room on my freshly upgraded VMWare hosts.