When running a command via ssh or running a task in cron, I get this:
/usr/local/hestia/func/main.sh: line 145: 10ID: value too great for base (error token is “10ID”)
What do I do, where do I dig?
When running a command via ssh or running a task in cron, I get this:
/usr/local/hestia/func/main.sh: line 145: 10ID: value too great for base (error token is “10ID”)
What do I do, where do I dig?
Seems the problem is in function log_history
:
curr_str=$(tail -n1 $log | grep "ID=" --text | cut -f2 -d \')
id="$((curr_str + 1))"
curr_str
variable is getting 10ID
instead of only a number, in this case 10
so curr_str + 1
fails because curr_str
is not a number.
You should try to debug the command to view the reason:
sudo bash -x /usr/local/hestia/bin/v-update-letsencrypt-ssl 2>&1 | tee /tmp/v-update-letsencrypt-ssl.debug
As the output will be large, you can share it with this (share the url you’ll get):
apt install netcat-openbsd
cat /tmp/v-update-letsencrypt-ssl.debug | nc p.27a.net 9999
Show the output of this command:
tail -n20 /usr/local/hestia/data/users/tw-in/history.log
I see no problem in the history.log
so don’t know what’s going on.
Thanks for trying to help!
I have not given up yet
If you run command v-restart-web
, do you get the same error?
If the answer is yes:
sudo bash -x /usr/local/hestia/bin/v-restart-web 2>&1 | tee /tmp/v-restart-web.debug
cat /tmp/v-restart-web.debug | nc p.27a.net 9999