[SOLVED] dietpi-cloudshell syntax error

Post Reply
noobs4u
Posts: 120
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2
Has thanked: 9 times
Been thanked: 4 times
Contact:

[SOLVED] dietpi-cloudshell syntax error

Post by noobs4u »

Since dietpi build v116, the cloushell lcd has been displaying an error.

/DietPi/dietpi/dietpi-cloudshell: line 479: * : syntax error: operand expected (error token is "* ")
cloudshell_error.JPG
(29.38 KiB) Downloaded 233 times
Line 479 from my cloudshell file:

Code: Select all

                NETWORK_USAGE_TOTAL_CURRENT_RECIEVED=$(( $(netstat -N -i | grep "$NETWORK_DETAILS_ADAPTER" | awk '{print $4}') * $mtu_size ))
                NETWORK_USAGE_TOTAL_CURRENT_SENT=$(( $(netstat -N -i | grep "$NETWORK_DETAILS_ADAPTER" | awk '{print $8}') * $mtu_size ))
I tried replacing the "* " on line 479 with "1500". Got an error then for Line 480 but not 479! Changed line 480 to 1500 also but then got the new error in the second screenshot!!!
cloudshell_error2.JPG
(35.56 KiB) Downloaded 233 times
I changed the 1500 back to * and rebooted. The original error returned. The only temporary fix I was able to find was to open the terminal window, launch dietpi-cloudshell, and tab down to "Start / Restart Apply settings. Launch on Main screen (tty1)" and hit enter. Screen then displays as normal without the error. The error does NOT come back until I need to reboot. I've uninstalled cloudshell and reinstalled. Error still persists. Now I've gone to github and looked at the original code for v116, v117, and v118. Line 479-480 is exactly the same!

Ideas???

Fourdee
Posts: 298
Joined: Fri Apr 03, 2015 5:01 am
languages_spoken: english
ODROIDs: C1 / C2 / XU4 + Cloudshell.
Has thanked: 0
Been thanked: 0
Contact:

Re: dietpi-cloudshell syntax error

Post by Fourdee »

Hi,

Many thanks for the report.

I've replied to your post on the DietPi forum: http://dietpi.com/phpbb/viewtopic.php?f ... 1925#p1925

Also created a Git ticket for this issue: https://github.com/Fourdee/DietPi/issues/355
http://DietPi.com - Lightweight justice for your Odroid.
DietPi web hosting is powered by http://MyVirtualServer.com

noobs4u
Posts: 120
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2
Has thanked: 9 times
Been thanked: 4 times
Contact:

Re: dietpi-cloudshell syntax error

Post by noobs4u »

Fix as noted by Fourdee on DietPi forum:


You can install the updated version of DietPi-Cloudshell by running:

Code: Select all

Code: Select all

    wget https://raw.githubusercontent.com/Fourdee/DietPi/f003529ccc6c89c8dcb3235fe0b3618353f156bb/dietpi/dietpi-cloudshell -O /DietPi/dietpi/dietpi-cloudshell
This fixed the errors as shown in the screenshots at the beginning of this post.

THANKS!

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 15 guests