mdzidic / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

hw-daemon.rb file gets overwritten with an empty file #332

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am not sure when or how it happens, but it happened at least 3-5 times. I use 
the last version of ozv-web-panel, and sometimes the hw-daemon doesn't work 
because the hw-daemon.rb is completely empty.

Actual result: the hw-daemon doesn't run at startup, because the file is empty, 
causing problems to the ovz-web-panel

Expected result: the hw-daemon should be working

Version of the product: 2.0

Server OS: debian squeeze

Additional information: my workaround is downloading the tar.gz package again 
and extracting the hw-daemon.rb file from it.

Original issue reported on code.google.com by marcpal...@gmail.com on 26 Aug 2011 at 4:37

GoogleCodeExporter commented 9 years ago
Seems that nobody else have this problem.

Original comment by sibprogrammer on 20 Dec 2011 at 3:18

GoogleCodeExporter commented 9 years ago
I haven't rebooted my server for months now, but I can help you find the 
problem (if it still exists) if you tell me what to do.

Original comment by marcpal...@gmail.com on 20 Dec 2011 at 3:24

GoogleCodeExporter commented 9 years ago
I can confirm is empty on a fresh install.

rm -rf /opt/ovz-web-panel/
tar -xzvf ovz-web-panel-2.0.tgz -C /opt/
cp hw-daemon.ini /opt/ovz-web-panel/utils/hw-daemon/
cp owp.conf /opt/ovz-web-panel/config/
cp /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb 
/opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb.orig
chmod +x /opt/ovz-web-panel/script/owp
ls -l /opt/ovz-web-panel/utils/hw-daemon/hw-daemon
-rw-r--r-- 1 root 1000 5526 11 janv.  2011 
/opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb
/opt/ovz-web-panel/script/owp start
some usages of web panel later :
# ll /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb
-rw-r--r-- 1 root 1000 0 10 avril 16:34 
/opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb

Original comment by novazur...@gmail.com on 10 Apr 2012 at 8:40