Error Keeping VRS running by cron
Error Keeping VRS running by cron
Hello to all,
I am referring to: Re: Keep VRS running after closing telnet session
Post by argz » 27. Dec 2016, 12:38
Prior the cron "installation" VRS works just perfect, Silhouettes and Flags are loading almost instantly.
I followed the instructions to starts VRS during Boot.
But... The VRS Main page loads very, very slow the Silhouettes and Flags.
The WebAdmin Plugin keeps asking for the Username and Password.
Erasing (crontab -e) the entry @reboot /home/pi/vrs.sh,
Rebooting and starting VRS manualy by "mono /home/pi/vrs/VirtualRadar.exe -nogui" and everything works perfect as before.
(Maybe the VRS loads during Boot to quickly and RPI is not yet ready).
I am using RaspianStrechLight-4.14.50-v7 and the latest VRS & Plugins.
And I am an absolute beginner.
Any Ideas?
Best Regards – Hardy
I am referring to: Re: Keep VRS running after closing telnet session
Post by argz » 27. Dec 2016, 12:38
Prior the cron "installation" VRS works just perfect, Silhouettes and Flags are loading almost instantly.
I followed the instructions to starts VRS during Boot.
But... The VRS Main page loads very, very slow the Silhouettes and Flags.
The WebAdmin Plugin keeps asking for the Username and Password.
Erasing (crontab -e) the entry @reboot /home/pi/vrs.sh,
Rebooting and starting VRS manualy by "mono /home/pi/vrs/VirtualRadar.exe -nogui" and everything works perfect as before.
(Maybe the VRS loads during Boot to quickly and RPI is not yet ready).
I am using RaspianStrechLight-4.14.50-v7 and the latest VRS & Plugins.
And I am an absolute beginner.
Any Ideas?
Best Regards – Hardy
Re: Error Keeping VRS running by cron
I have to correct :
Starting VRS via crontab or rc.local makes no change.
VRS does not display Silhouettes or Flags.
VRS WebAdmin keeps asking for Password.
If I start VRS manually (Putty) then VRS works normal.
Starting VRS via crontab or rc.local makes no change.
VRS does not display Silhouettes or Flags.
VRS WebAdmin keeps asking for Password.
If I start VRS manually (Putty) then VRS works normal.
Re: Error Keeping VRS running by cron
Update:
I have been playing around and noticed the following:
I have a script called vrs.sh :
#!/bin/sh
echo "Hallo, Starting mono VRS"
echo "Hallo Hardy starting mono & VRS" > /tmp/vrs.txt
mono /home/pi/vrs/VirtualRadar.exe –nogui
If I invoke the script as following from PuTTY: bash vrs.sh
everything looks & works normal.
If I invoke the script as following from PuTTY: sudo bash vrs.sh
then the Silhouettes & Flags are not displayed and the WebAdmin Plugin is not working.
I think I have screwed something up with some privileges, but I don’t know where to look and how to fix it up.
Best regards
Hardy
I have been playing around and noticed the following:
I have a script called vrs.sh :
#!/bin/sh
echo "Hallo, Starting mono VRS"
echo "Hallo Hardy starting mono & VRS" > /tmp/vrs.txt
mono /home/pi/vrs/VirtualRadar.exe –nogui
If I invoke the script as following from PuTTY: bash vrs.sh
everything looks & works normal.
If I invoke the script as following from PuTTY: sudo bash vrs.sh
then the Silhouettes & Flags are not displayed and the WebAdmin Plugin is not working.
I think I have screwed something up with some privileges, but I don’t know where to look and how to fix it up.
Best regards
Hardy
Re: Error Keeping VRS running by cron
try:
and then run it again
Code: Select all
chmod +x vrs.sh
VRS: v3 (30-SEP-2018)
Re: Error Keeping VRS running by cron
thanks for your sugestion,
sudo chmod +x vrs.sh
makes no change.
sudo chmod +x vrs.sh
makes no change.
Re: Error Keeping VRS running by cron
do not use "sudo" in this case. user "pi" should be able to execute it.
VRS: v3 (30-SEP-2018)
Re: Error Keeping VRS running by cron
i am geting:
pi@raspberrypi:~ $ chmod +x vrs.sh
chmod: changing permissions of 'vrs.sh': Operation not permitted
pi@raspberrypi:~ $
pi@raspberrypi:~ $ chmod +x vrs.sh
chmod: changing permissions of 'vrs.sh': Operation not permitted
pi@raspberrypi:~ $
Re: Error Keeping VRS running by cron
Sorry for the delay in replying. If you do
who owns the file? I imagine it's probably not the pi user. If you
and then try chmod +x vrs.sh then that should give you execute permission on the file.
Code: Select all
ls -l vrs.sh
Code: Select all
sudo chown pi vrs.sh