XU4 cloudshell v7 DietPi v130

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

XU4 cloudshell v7 DietPi v130

Post by johnvick »

Hi Fourdee,

I brought this up before but then forgot about it. If the XU4 is connected to NFS shares (in my case a QNAP) and the QNAP is off, the cloudshell display does not rotate.

I only noticed this again as I have stopped having the QNAP on all the time having moved some of its functions to less power-using devices.

Not a big problem really but I know you like to be informed about possible bugs :)

John
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: XU4 cloudshell v7 DietPi v130

Post by Fourdee »

johnvick wrote:Hi Fourdee,

I brought this up before but then forgot about it. If the XU4 is connected to NFS shares (in my case a QNAP) and the QNAP is off, the cloudshell display does not rotate.

I only noticed this again as I have stopped having the QNAP on all the time having moved some of its functions to less power-using devices.

Not a big problem really but I know you like to be informed about possible bugs :)

John
Hi John,

Ah yes, you did, found the ticket: https://github.com/Fourdee/DietPi/issues/395

Ok, I just added NFS support in DietPi, so i'll run some tests on this and look into it. NFS does seem to just "hang" if it cant establish connection, also seems to lock up other programs (ls). Leave it with me.

EDIT:
https://github.com/Fourdee/DietPi/issue ... -245973185
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: XU4 cloudshell v7 DietPi v130

Post by Fourdee »

Ok,

John, can you add the following to your NFS mount in /etc/fstab. This will allow the NFS connection to time out and prevent a endless hang of the df command, and therefor dietpi-cloudshell:

Code: Select all

bg,intr,soft,timeo=5,retrans=5,actimeo=10,retry=2
Example:

Code: Select all

192.168.0.112:/ /mnt/nfs_client nfs4 auto,_netdev,bg,intr,soft,timeo=5,retrans=5,actimeo=10,retry=2 0  0
Give your system a reboot, give it a test and let me know results.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: XU4 cloudshell v7 DietPi v130

Post by Fourdee »

Hi John,

I've also modified the dietpi-cloudshell code. It will no longer hang when df hangs. It monitors df, and if it hangs for 4 seconds, df will be terminated, allowing the next screen to update.

https://github.com/Fourdee/DietPi/blob/ ... #L413-L484

If the timeout NFS mount options fail, please try this updated script:

Code: Select all

wget https://raw.githubusercontent.com/Fourdee/DietPi/dev/dietpi/dietpi-cloudshell -O /DietPi/dietpi/dietpi-cloudshell
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: XU4 cloudshell v7 DietPi v130

Post by johnvick »

Hi Fourdee,

With the changes to fstab the display still gave drive not available error messages but it rotated. With the new script, all good.

Thanks, John
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: XU4 cloudshell v7 DietPi v130

Post by Fourdee »

johnvick wrote:Hi Fourdee,

With the changes to fstab the display still gave drive not available error messages but it rotated. With the new script, all good.

Thanks, John
Hi John,

Excellent, good to hear. Thanks for results and testing!
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply