Page 3 of 3

Re: XU4 CloudShell Stopped Working

Posted: Sun Dec 18, 2016 2:20 pm
by Fourdee
Test 5, same again please guys if you get a chance:
https://github.com/Fourdee/DietPi/issue ... -267820697

Thanks!

Re: XU4 CloudShell Stopped Working

Posted: Sun Dec 18, 2016 7:02 pm
by Fabian0587
Here's output

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 --cursor                           off
>
> 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:~#
root@DietPi:~# #Grab updated cloudshell
root@DietPi:~# wget https://raw.githubusercontent.com/Fourdee/DietPi/testing/die                          tpi/dietpi-cloudshell -O /DietPi/dietpi/dietpi-cloudshell
--2016-12-18 18:57:57--  https://raw.githubusercontent.com/Fourdee/DietPi/testin                          g/dietpi/dietpi-cloudshell
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.192.1                          33, 151.101.128.133, 151.101.64.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.192.                          133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 48981 (48K) [text/plain]
Saving to: ‘/DietPi/dietpi/dietpi-cloudshell’

/DietPi/dietpi/diet 100%[===================>]  47.83K   106KB/s    in 0.5s

2016-12-18 18:57:58 (106 KB/s) - ‘/DietPi/dietpi/dietpi-cloudshell’ saved [48981                          /48981]

root@DietPi:~#
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; vend
   Active: active (running) since Sun 2016-12-18 18:57:58 CET; 1s ago
  Process: 19276 ExecStart=/bin/bash -c /DietPi/dietpi/dietpi-cloudshell 1 & (co
  Process: 19273 ExecStartPre=/usr/bin/setterm --term linux --blank 0 --powersav
 Main PID: 19277 (dietpi-cloudshe)
   CGroup: /system.slice/dietpi-cloudshell.service
           ├─19277 /bin/bash /DietPi/dietpi/dietpi-cloudshell 1
           └─19339 sleep 0.2

Dec 18 18:57:58 DietPi systemd[1]: Starting dietpi-cloudshell on main screen...
Dec 18 18:57:58 DietPi systemd[1]: Started dietpi-cloudshell on main screen.
lines 1-12/12 (END)...skipping...
● dietpi-cloudshell.service - dietpi-cloudshell on main screen
   Loaded: loaded (/etc/systemd/system/dietpi-cloudshell.service; disabled; vendor preset: enabled)
   Active: active (running) since Sun 2016-12-18 18:57:58 CET; 1s ago
  Process: 19276 ExecStart=/bin/bash -c /DietPi/dietpi/dietpi-cloudshell 1 & (code=exited, status=0/SUCCES
  Process: 19273 ExecStartPre=/usr/bin/setterm --term linux --blank 0 --powersave off --cursor off (code=e
 Main PID: 19277 (dietpi-cloudshe)
   CGroup: /system.slice/dietpi-cloudshell.service
           ├─19277 /bin/bash /DietPi/dietpi/dietpi-cloudshell 1
           └─19339 sleep 0.2

Dec 18 18:57:58 DietPi systemd[1]: Starting dietpi-cloudshell on main screen...
Dec 18 18:57:58 DietPi systemd[1]: Started dietpi-cloudshell on main screen.

After test 4, cloudshell crashed and after test 5 is still not working. No error message is provided. Cloudshell monitor is showing a zoomed bash. I've tried to reboot and start it again via dietpi-cloudshell but didn't worked.

Re: XU4 CloudShell Stopped Working

Posted: Sun Dec 18, 2016 7:42 pm
by Fourdee
Fabian0587 wrote:Cloudshell monitor is showing a zoomed bash. I've tried to reboot and start it again via dietpi-cloudshell but didn't worked.
Thanks for results.

It appears attempting to set cursor "off" on your devices are causing the issue. Regardless of tput or setterm. I'll need to take a deeper look into this, ideally find out why tput and setterm are failing to set cursor.
Just wish I could replicate on my XU4, so expect further tests to come :(

Re: XU4 CloudShell Stopped Working

Posted: Mon Dec 19, 2016 5:49 am
by Fabian0587
Unfortunately I won't be able to do further tests until thursday...i'll post all next tests results asap. Hope that others can help you meanwhile!

Re: XU4 CloudShell Stopped Working

Posted: Mon Dec 19, 2016 3:48 pm
by Fourdee
EDIT: Rooted has confirmed test 10 works, if others could confirm, i'd be grateful
10 https://github.com/Fourdee/DietPi/issue ... -267981389

Re: XU4 CloudShell Stopped Working

Posted: Thu Dec 22, 2016 8:50 pm
by Fabian0587
Sorry for my late reply.
I can confirm that test 10 worked...and update too!

Thank you Fourdee!