XU4 CloudShell Stopped Working

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Fourdee
Site Admin
Posts: 2787
Joined: Tue Feb 06, 2007 1:36 pm

Re: XU4 CloudShell Stopped Working

Post by Fourdee »

Fabian0587 wrote:You mean this?
d3edd838-bc6f-41a0-bcb5-ec3e88a430c7-0
Yep, thats the puppy, thanks.

Had a look through, nothing out of the normal, so we'll need to run a few tests on your devices until we find a fix.

Please run test 1 and paste results of service status at end:
https://github.com/Fourdee/DietPi/issue ... -267615273
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.
Fabian0587

Re: XU4 CloudShell Stopped Working

Post by Fabian0587 »

Output of test n1
root@DietPi:~# cat << _EOF_ > /etc/systemd/system/dietpi-cloudshell.service
> [Unit]

> Description=dietpi-cloudshell on main screen
>
> [Service]
> Type=forking
> StandardOutput=tty
>
> # These are run from dietpi-cloudshell and autostart
> ExecStartPre=/usr/bin/setterm --term linux --blank 0 --powersave off
> ExecStartPre=/usr/bin/tput civis
>
s> ExecStart=/bin/bash -c '/DietPi/dietpi/dietpi-cloudshell 1 &'
> ExecStop=/usr/bin/setterm -reset
> ExecStop=/bin/bash -c '/DietPi/dietpi/func/dietpi-notify 0 DietPi-Cloudshell t erminated, have a nice day!'
>
> [Install]
> WantedBy=multi-user.target
> _EOF_
root@DietPi:~# systemctl daemon-reload
root@DietPi:~# systemctl stop dietpi-cloudshell
root@DietPi:~# systemctl start dietpi-cloudshell
Job for dietpi-cloudshell.service failed because the control process exited with error code.
See "systemctl status dietpi-cloudshell.service" and "journalctl -xe" for detail s.
root@DietPi:~# systemctl status dietpi-cloudshell -l
● dietpi-cloudshell.service - dietpi-cloudshell on main screen
Loaded: loaded (/etc/systemd/system/dietpi-cloudshell.service; disabled; vend
Active: failed (Result: exit-code) since Fri 2016-12-16 18:45:04 CET; 3s ago
Process: 2508 ExecStartPre=/usr/bin/tput civis (code=exited, status=1/FAILURE)
Process: 2505 ExecStartPre=/usr/bin/setterm --term linux --blank 0 --powersave

Dec 16 18:45:04 DietPi systemd[1]: Starting dietpi-cloudshell on main screen...
Dec 16 18:45:04 DietPi systemd[1]: dietpi-cloudshell.service: Control process ex
Dec 16 18:45:04 DietPi systemd[1]: Failed to start dietpi-cloudshell on main scr
Dec 16 18:45:04 DietPi systemd[1]: dietpi-cloudshell.service: Unit entered faile
Dec 16 18:45:04 DietPi systemd[1]: dietpi-cloudshell.service: Failed with result
lines 1-11/11 (END)...skipping...
● dietpi-cloudshell.service - dietpi-cloudshell on main screen
Loaded: loaded (/etc/systemd/system/dietpi-cloudshell.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2016-12-16 18:45:04 CET; 3s ago
Process: 2508 ExecStartPre=/usr/bin/tput civis (code=exited, status=1/FAILURE)
Process: 2505 ExecStartPre=/usr/bin/setterm --term linux --blank 0 --powersave off (code=exited, status=0/SUCCESS)

Dec 16 18:45:04 DietPi systemd[1]: Starting dietpi-cloudshell on main screen...
Dec 16 18:45:04 DietPi systemd[1]: dietpi-cloudshell.service: Control process exited, code=exited status=1
Dec 16 18:45:04 DietPi systemd[1]: Failed to start dietpi-cloudshell on main screen.
Dec 16 18:45:04 DietPi systemd[1]: dietpi-cloudshell.service: Unit entered failed state.
Dec 16 18:45:04 DietPi systemd[1]: dietpi-cloudshell.service: Failed with result 'exit-code'.
User avatar
Fourdee
Site Admin
Posts: 2787
Joined: Tue Feb 06, 2007 1:36 pm

Re: XU4 CloudShell Stopped Working

Post by Fourdee »

Fabian0587 wrote:Output of test n1
Thanks,

Please try Test 2:
https://github.com/Fourdee/DietPi/issue ... -267615706

And Test 3:
https://github.com/Fourdee/DietPi/issue ... -267615916
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.
Fabian0587

Re: XU4 CloudShell Stopped Working

Post by Fabian0587 »

Output of test n2
cat << _EOF_ > /etc/systemd/system/dietpi-cloudshell.service
> [Unit]
D> Description=dietpi-cloudshell on main screen
>
> [Service]
> Type=forking
E> StandardOutput=tty
>
> ExecStart=/bin/bash -c '/DietPi/dietpi/dietpi-cloudshell 1 &'
> ExecStop=/usr/bin/setterm -reset
> ExecStop=/bin/bash -c '/DietPi/dietpi/func/dietpi-notify 0 DietPi-Cloudshell terminated, have a nice day!'
>
> [Install]
> WantedBy=multi-user.target
> _EOF_
root@DietPi:~# systemctl daemon-reload
root@DietPi:~# systemctl stop dietpi-cloudshell
root@DietPi:~# systemctl start dietpi-cloudshell
root@DietPi:~# systemctl status dietpi-cloudshell -l
● dietpi-cloudshell.service - dietpi-cloudshell on main screen
Loaded: loaded (/etc/systemd/system/dietpi-cloudshell.service; disabled; vendor preset: enabled)
Active: active (running) since Fri 2016-12-16 19:26:52 CET; 1s ago
Process: 2611 ExecStart=/bin/bash -c /DietPi/dietpi/dietpi-cloudshell 1 & (code=exited, status=0/SUCCESS)
Main PID: 2612 (dietpi-cloudshe)
CGroup: /system.slice/dietpi-cloudshell.service
├─2612 /bin/bash /DietPi/dietpi/dietpi-cloudshell 1
└─2674 sleep 0.2

Dec 16 19:26:52 DietPi systemd[1]: Starting dietpi-cloudshell on main screen...
Dec 16 19:26:52 DietPi systemd[1]: Started dietpi-cloudshell on main screen.
root@DietPi:~#
Output of test n.3
cat << _EOF_ > /etc/systemd/system/dietpi-cloudshell.service
> [Unit]
> Description=dietpi-cloudshell on main screen
>

> [Service]
> Type=forking
> StandardOutput=tty
>
sy> ExecStart=/bin/bash -c '/DietPi/dietpi/dietpi-cloudshell 1 &> /dev/tty1 &'
> ExecStop=/usr/bin/setterm -reset
> ExecStop=/bin/bash -c '/DietPi/dietpi/func/dietpi-notify 0 DietPi-Cloudshell terminated, have a nice day!'
>
> [Install]
> WantedBy=multi-user.target
> _EOF_
root@DietPi:~# systemctl daemon-reload
root@DietPi:~# systemctl stop dietpi-cloudshell
root@DietPi:~# systemctl start dietpi-cloudshell
root@DietPi:~# systemctl status dietpi-cloudshell -l
● dietpi-cloudshell.service - dietpi-cloudshell on main screen
Loaded: loaded (/etc/systemd/system/dietpi-cloudshell.service; disabled; vendor preset: enabled)
Active: active (running) since Fri 2016-12-16 19:27:35 CET; 3s ago
Process: 2787 ExecStart=/bin/bash -c /DietPi/dietpi/dietpi-cloudshell 1 &> /dev/tty1 & (code=exited, status=0/SUCCESS
Main PID: 2788 (dietpi-cloudshe)
CGroup: /system.slice/dietpi-cloudshell.service
├─2788 /bin/bash /DietPi/dietpi/dietpi-cloudshell 1
└─2873 sleep 0.2

Dec 16 19:27:35 DietPi systemd[1]: Starting dietpi-cloudshell on main screen...
Dec 16 19:27:35 DietPi systemd[1]: Started dietpi-cloudshell on main screen.
lines 1-11/11 (END)
AAAAAAAAAAAAAAND it worked again!

Thanks Fourdee!


Just a note. Ram has a negative value -1516/1990
User avatar
Fourdee
Site Admin
Posts: 2787
Joined: Tue Feb 06, 2007 1:36 pm

Re: XU4 CloudShell Stopped Working

Post by Fourdee »

Fabian0587 wrote: AAAAAAAAAAAAAAND it worked again!

Thanks Fourdee!

Excellent, this is just a workaround for now, i'll create a complete fix and let you know.
Just a note. Ram has a negative value -1516/1990
Interesting, i'll take a look.
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.
Saturn7

Re: XU4 CloudShell Stopped Working

Post by Saturn7 »

This worked for me too. Thanks!
User avatar
Fourdee
Site Admin
Posts: 2787
Joined: Tue Feb 06, 2007 1:36 pm

Re: XU4 CloudShell Stopped Working

Post by Fourdee »

Hi all,

Need some assistance testing a solution.
Please can you run test 4: https://github.com/Fourdee/DietPi/issue ... -267771135 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.
Saturn7

Re: XU4 CloudShell Stopped Working

Post by Saturn7 »

Fourdee wrote:Hi all,

Need some assistance testing a solution.
Please can you run test 4: https://github.com/Fourdee/DietPi/issue ... -267771135 and let me know results.

Code: Select all

root@DietPi:~# cat << _EOF_ > /etc/systemd/system/dietpi-cloudshell.service
> [Unit]
> Description=dietpi-cloudshell on main screen
> 
> [Service]
> Type=forking
> StandardOutput=tty
> 
> ExecStartPre=/usr/bin/setterm --term linux --blank 0 --powersave off
> ExecStartPre=/usr/bin/tput civis &> /dev/tty1 #: https://github.com/Fourdee/DietPi/issues/649
> 
> ExecStart=/bin/bash -c '/DietPi/dietpi/dietpi-cloudshell 1 &'
> 
> ExecStop=/usr/bin/setterm -reset
> ExecStop=/usr/bin/tput reset &> /dev/tty1
> ExecStop=/bin/bash -c '/DietPi/dietpi/func/dietpi-notify 0 DietPi-Cloudshell terminated, have a nice day!'
> 
> [Install]
> WantedBy=multi-user.target
> _EOF_
systemctl daemon-reload
root@DietPi:~# systemctl daemon-reload
systemctl stop dietpi-cloudshell
systemctl start dietpi-cloudshell
systemctl status dietpi-cloudshell -lroot@DietPi:~# systemctl stop dietpi-cloudshell
root@DietPi:~# systemctl start dietpi-cloudshell
Job for dietpi-cloudshell.service failed. See 'systemctl status dietpi-cloudshell.service' and 'journalctl -xn' for details.
root@DietPi:~# systemctl status dietpi-cloudshell -l
● dietpi-cloudshell.service - dietpi-cloudshell on main screen
   Loaded: loaded (/etc/systemd/system/dietpi-cloudshell.service; disabled)
   Active: failed (Result: exit-code) since Sat 2016-12-17 18:30:48 GMT; 3s ago
  Process: 19620 ExecStartPre=/usr/bin/tput civis &> /dev/tty1 #: https://github.com/Fourdee/DietPi/issues/649 (code=exited, status=1/FAILURE)
  Process: 19617 ExecStartPre=/usr/bin/setterm --term linux --blank 0 --powersave off (code=exited, status=0/SUCCESS)

Dec 17 18:30:48 DietPi systemd[1]: dietpi-cloudshell.service: control process exited, code=exited status=1
Dec 17 18:30:48 DietPi systemd[1]: Failed to start dietpi-cloudshell on main screen.
Dec 17 18:30:48 DietPi systemd[1]: Unit dietpi-cloudshell.service entered failed state.
Fabian0587

Re: XU4 CloudShell Stopped Working

Post by Fabian0587 »

If you need a second opinion :D
cat << _EOF_ > /etc/systemd/system/dietpi-cloudshell.service
> [Unit]
> Description=dietpi-cloudshell on main screen
>
> [Service]
> Type=forking
> StandardOutput=tty
>
> ExecStartPre=/usr/bin/setterm --term linux --blank 0 --powersave off
> ExecStartPre=/usr/bin/tput civis &> /dev/tty1 #: https://github.com/Fourdee/Di etPi/issues/649
>
systemctl st> ExecStart=/bin/bash -c '/DietPi/dietpi/dietpi-cloudshell 1 &'
>
> ExecStop=/usr/bin/setterm -reset
> ExecStop=/usr/bin/tput reset &> /dev/tty1
> ExecStop=/bin/bash -c '/DietPi/dietpi/func/dietpi-notify 0 DietPi-Cloudshell t erminated, have a nice day!'
>
> [Install]
> WantedBy=multi-user.target
> _EOF_
root@DietPi:~# systemctl daemon-reload

root@DietPi:~# systemctl stop dietpi-cloudshell
root@DietPi:~# systemctl start dietpi-cloudshell
Job for dietpi-cloudshell.service failed because the control process exited with error code.
See "systemctl status dietpi-cloudshell.service" and "journalctl -xe" for detail s.
root@DietPi:~# systemctl status dietpi-cloudshell -l
● dietpi-cloudshell.service - dietpi-cloudshell on main screen
Loaded: loaded (/etc/systemd/system/dietpi-cloudshell.service; disabled; vend
Active: failed (Result: exit-code) since Sun 2016-12-18 13:07:32 CET; 94ms ag
Process: 3965 ExecStartPre=/usr/bin/tput civis &> /dev/tty1 #: https://github.
Process: 3962 ExecStartPre=/usr/bin/setterm --term linux --blank 0 --powersave

Dec 18 13:07:32 DietPi systemd[1]: Starting dietpi-cloudshell on main screen...
Dec 18 13:07:32 DietPi systemd[1]: dietpi-cloudshell.service: Control process ex
Dec 18 13:07:32 DietPi systemd[1]: Failed to start dietpi-cloudshell on main scr
Dec 18 13:07:32 DietPi systemd[1]: dietpi-cloudshell.service: Unit entered faile
Dec 18 13:07:32 DietPi systemd[1]: dietpi-cloudshell.service: Failed with result
lines 1-11/11 (END)...skipping...
● dietpi-cloudshell.service - dietpi-cloudshell on main screen
Loaded: loaded (/etc/systemd/system/dietpi-cloudshell.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2016-12-18 13:07:32 CET; 94ms ago
Process: 3965 ExecStartPre=/usr/bin/tput civis &> /dev/tty1 #: https://github.com/Fourdee/DietPi/issues/649 (code=exited, status=1
Process: 3962 ExecStartPre=/usr/bin/setterm --term linux --blank 0 --powersave off (code=exited, status=0/SUCCESS)

Dec 18 13:07:32 DietPi systemd[1]: Starting dietpi-cloudshell on main screen...
Dec 18 13:07:32 DietPi systemd[1]: dietpi-cloudshell.service: Control process exited, code=exited status=1
Dec 18 13:07:32 DietPi systemd[1]: Failed to start dietpi-cloudshell on main screen.
Dec 18 13:07:32 DietPi systemd[1]: dietpi-cloudshell.service: Unit entered failed state.
Dec 18 13:07:32 DietPi systemd[1]: dietpi-cloudshell.service: Failed with result 'exit-code'.
User avatar
Fourdee
Site Admin
Posts: 2787
Joined: Tue Feb 06, 2007 1:36 pm

Re: XU4 CloudShell Stopped Working

Post by Fourdee »

Thanks guys,

Looks like we will need to move tput out of the service altogether. I'll create another test and let you guys know when its ready. Thanks again.
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