You are not logged in.

#1 2019-06-20 17:44:53

macdarren
Member
Registered: 2017-03-20
Posts: 411

New upgrade system not working (I think)

So I fixed up my install by manually adjusting my templates and putting in version 2252 of the application.
This got my pi working again and everything I could test seemed ok.
So I decided to test the upgrade system and chose to do an update to the 'latest beta' from the tools page....

Machine went down again... not sure if it supposed to do that....ssh connection is lost and pi no longer responds to pings.
I waited several minutes but it never came back.

Power cycle brought it back up... I suspect nothing was updated based on going in via ssh and looking at file timestamps....
However I now have the blue update available in the upper right
(this was not there prior to my attempt to update) and the log shows v2252 as being launched.
So is there a newer version or is the indicator wrong....

I see mentioned a 'manual update' on my previous post but not sure what that is or how to do it, exactly.
maybe backup the db directory, wipe the printer directory and do a full install then put the db back?


P.S. templates seem ok, menus work so it didn't roll those back at least

P.P.S.  Reload NanoDLP from the tool screen results in a similar pi failure requiring reboot...I had not tested this before.

Last edited by macdarren (2019-06-20 22:06:47)

Offline

#2 2019-06-21 06:02:48

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: New upgrade system not working (I think)

Please, upgrade to 2255 manually.

Recent versions does not require pi reboot. Nanodlp itself will get reloaded (ideally) after couple of seconds. If it is still stall with 2255, please let me know.

Offline

#3 2019-06-22 19:31:10

macdarren
Member
Registered: 2017-03-20
Posts: 411

Re: New upgrade system not working (I think)

2255 on my system has the exact same issue Pi crashes when update is attempted.

I could swear I posted this after I manually updated and even got a response but I don't see it here anymore...maybe it was in a different section.

Last edited by macdarren (2019-06-22 19:33:57)

Offline

#4 2019-06-24 10:13:31

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: New upgrade system not working (I think)

Let me check upgrade see whats the issue. Is the latest version come up after crash or the previous version?

Offline

#5 2019-06-24 21:49:16

macdarren
Member
Registered: 2017-03-20
Posts: 411

Re: New upgrade system not working (I think)

With recent past versions of nanoDLP, after reboot it was the previous version (no update occurred).....now that I have 2255 installed manually unless there is a newer release I can't say if does the update or just keeps the old version .... but I suspect it does not do the update based on file dates I see in terminal.

Farther back when my pi would hang on update (it didn't totally crash) I could manually reboot from the nanoDLP gui or ssh terminal and I would get the new version on boot up.

Last edited by macdarren (2019-06-24 21:58:50)

Offline

#6 2019-06-25 03:57:45

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: New upgrade system not working (I think)

I guess it is systemd script. Could you post nanodlp.service file?
I believe I made mistake as it does not get replaced during upgrade but I have relied on it for restart of service on Pi.

Offline

#7 2019-06-26 01:50:12

macdarren
Member
Registered: 2017-03-20
Posts: 411

Re: New upgrade system not working (I think)

file sent via forum email

Offline

#8 2019-06-26 03:39:25

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: New upgrade system not working (I think)

Two lines starting with restart shall be added to fix the issue. Also will add workaround to pi.

[Unit]
Description=NanoDLP service
After=systemd-user-sessions.service plymouth-quit-wait.service

[Service]
WorkingDirectory=/home/pi/printer
ExecStart=/bin/bash /home/pi/printer/config/run.sh
Restart=always
RestartSec=2

[Install]
WantedBy=multi-user.target

Offline

Board footer

Powered by FluxBB