Softaculous


Topic : All VPS stopped


Posted By: lesmond on October 19, 2020, 8:27 pm
We have Vitualizor KVM with 4 working vm, all of a sudden they ALL stopped, no ssh not sites work on any of them, although virtualizor is showing they are all running.

We have restarted each VM and rebooted the main server nothing helps  :??:

Board Image

-----------------------
Buildz Hosting

Posted By: wolke on October 20, 2020, 6:46 am | Post: 1
If this happens after a reboot of the Node, you can try the following as root:

Code
/sbin/iptables -A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
service libvirtd restart



You may need to do this after each reboot. I use csf (csfpost.sh) for this task.

Posted By: lesmond on October 20, 2020, 9:50 am | Post: 2
Thanks wolke, thats fixed it :angel:

Wonder why it happened in the first place?

-----------------------
Buildz Hosting

Posted By: wolke on October 20, 2020, 9:56 am | Post: 3
It surprised me too. It starts out of nowhere (after doing reboots over and over without any issue) .
But this is a working solution for more than a year now.

Just make sure it is called on systemstart or (if you use csf) put it in csfpost.sh. That way it will run every time csf is started and do the job automatically.

Posted By: lesmond on November 10, 2020, 7:59 pm | Post: 4
Quote From : wolke October 20, 2020, 9:56 am
It surprised me too. It starts out of nowhere (after doing reboots over and over without any issue) .
But this is a working solution for more than a year now.

Just make sure it is called on systemstart or (if you use csf) put it in csfpost.sh. That way it will run every time csf is started and do the job automatically.


We use csf, but I can't find that file csfpost.sh

-----------------------
Buildz Hosting

Posted By: lesmond on November 10, 2020, 8:01 pm | Post: 5
Also forgot to mention, the server was not rebooted at any stage before this happened :(

-----------------------
Buildz Hosting

Posted By: wolke on November 11, 2020, 11:00 am | Post: 6
This file does not exist after installation, so you need to create it and put the following in it:

Code
#!/bin/bash
/sbin/iptables -A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
service libvirtd restart


Then restart csf

Posted By: lesmond on November 11, 2020, 12:41 pm | Post: 7
So I added the file and restarted csf, after this came up :

Code
Running /etc/csf/csfpost.sh
sh: /etc/csf/csfpost.sh: /bin/bash: bad interpreter: Text file busy
*WARNING* Binary location for [HOST] [/usr/bin/host] in /etc/csf/csf.conf is either incorrect, is not installed or is not executable
*WARNING* Missing or incorrect binary locations will break csf and lfd functionality


-----------------------
Buildz Hosting

Posted By: wolke on November 11, 2020, 12:44 pm | Post: 8
you may need to replace bin/bash with your shell (e.g. /bin/sh )

Posted By: lesmond on November 11, 2020, 12:54 pm | Post: 9
I fixed the 2 warning by installing installing bind-utils

-----------------------
Buildz Hosting

Posted By: wolke on November 11, 2020, 12:55 pm | Post: 10
The *"warning* thing had nothing to do with the csfpost.sh script.

Posted By: lesmond on November 11, 2020, 1:13 pm | Post: 11
I think I fixed it now

Code
Running /etc/csf/csfpost.sh




-----------------------
Buildz Hosting

Posted By: wolke on November 11, 2020, 1:25 pm | Post: 12
Yes, that looks good.  :)

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.