UnchartedBull / OctoDash

OctoDash is a simple, but beautiful dashboard for OctoPrint.
https://unchartedbull.github.io/OctoDash/index.html
Apache License 2.0
1.02k stars 225 forks source link

Update from 2.0 to 2.1.1 from UI hanging #1126

Closed morphias2004 closed 3 years ago

morphias2004 commented 3 years ago

Running Octodash v2.0. on a Pi4 4Gb with Octoprint 1.4.2, OctoPi 0.17.0 and Python 3.7.3 with a HyperPixel 4.0.

UI notified of an update to 2.1.1 was available. I confirmed the update and it went to a progress bar that says "Installing update" and "This may take a while".

20mins later and it's still sitting there with this message. :(

morphias2004 commented 3 years ago

I've worked around this by hard power cycling the Pi and running the update script from the Pi command line.

thegarbz commented 3 years ago

@morphias2004 This is addressed in the wiki and the release notes for 2.1.0. You need to add a script to get updates working, in the future. https://github.com/UnchartedBull/OctoDash/wiki/Update#in-app-update

@UnchartedBull given these releases came so close to each other it may be worth putting it in the release notes for 2.1.1 as well.

ruralaccent commented 3 years ago

My in app update isn't hanging, but it's taking almost 50 minutes to download. When I update it via Putty, it takes only a couple of minutes.

carl1961 commented 3 years ago

Update was same as @morphias2004 , doing wiki failed, because I had no script folder. I got all that fixed and got the Octodash to update, but update seems broke. " Can't get Octoprint script!" this is how I got the update script installed and working.

Making Octodash update from OctoDash

I did not have a scripts folder so i had to make one

Log in to pi with putty (or whatever terminal you choose)


Creating scripts directory


mkdir scripts


creating script ~/scripts/update-octodash


sudo nano ~/scripts/update-octodash


put (or add) this in script


!/bin/bash

dpkg -i /tmp/octodash.deb rm /tmp/octodash.deb


save and exit nano Ctrl o Ctrl x



Make the script executable:


sudo chmod +x ~/scripts/update-octodash


Enable passwordless sudo for the update script (/etc/sudoers.d/update-octodash): ( I did not have file , so this is new file too)


sudo nano /etc/sudoers.d/update-octodash


add this


pi ALL=NOPASSWD: /home/pi/scripts/update-octodash


save and exit nano Ctrl o enter Ctrl x



Then reboot pi


sudo reboot

IMG_20201025_075049 IMG_20201025_075102 IMG_20201025_075107 IMG_20201025_075130 IMG_20201025_075155 IMG_20201025_081205

carl1961 commented 3 years ago

@ruralaccent that would be most like your wifi speed, mine download less that a minute

carl1961 commented 3 years ago

I even tried adding the delay as once mentioned before , but still not working, " Can't get octoPrint script" delay worked, as i could see the delay after ratpoison


UnchartedBull #1097](https://github.com/UnchartedBull/OctoDash/issues/1097

By how long are you delaying the start? Best way to delay the OctoDash start is probably by adding a sleep to ~/cd.. .


***login as root and not pi ****

nano /home/pi/.xinitrc

* add sleep 20 above octodash ** sleep 20

save and exit nano Ctrl o enter Ctrl x **

* Then reboot pi ***

sudo reboot

sleep

carl1961 commented 3 years ago

even manually updating from Unofficial OctoDash Builds still "can't get OctoPrint script!"

install install2 install3

UnchartedBull commented 3 years ago

Is your printer connected to OctoPrint?

carl1961 commented 3 years ago

BackDated to 2.0.0 and running again removing octodash

sudo apt-get remove octodash


Download the latest release Check for newer version and replace v2.0.0 with the latest version (Releases)


wget -O octodash.deb https://github.com/UnchartedBull/OctoDash/releases/download/v2.0.0/octodash_2.0.0_armv7l.deb


Install the app


sudo dpkg -i octodash.deb


Then reboot pi


sudo reboot

IMG_20201025_105915 IMG_20201025_105939

carl1961 commented 3 years ago

@UnchartedBull if your referring to me, I just redid update again after reinstalling 2.0 as above post and 2.1.1 works, but this time I made sure octoprint was up in the web browse. IMG_20201025_112526

thegarbz commented 3 years ago

@carl1961 I too saw the script error, but after following the instructions (restarting) I haven't seen it since.

UnchartedBull commented 3 years ago

ok seems like everything is working for everyone now. Closing this here, if you still experience issues please comment / reopen.

@thegarbz good idea, updated the release notes for 2.1.1.