Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from 2.0 to 2.1.1 from UI hanging #1126

Closed
morphias2004 opened this issue Oct 25, 2020 · 12 comments
Closed

Update from 2.0 to 2.1.1 from UI hanging #1126

morphias2004 opened this issue Oct 25, 2020 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@morphias2004
Copy link

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 morphias2004 added the bug Something isn't working label Oct 25, 2020
@morphias2004
Copy link
Author

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

@thegarbz
Copy link
Collaborator

@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
Copy link

ruralaccent commented Oct 25, 2020

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
Copy link

carl1961 commented Oct 25, 2020

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
Copy link

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

@carl1961
Copy link

carl1961 commented Oct 25, 2020

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](#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
Copy link

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

install
install2
install3

@UnchartedBull
Copy link
Owner

Is your printer connected to OctoPrint?

@carl1961
Copy link

carl1961 commented Oct 25, 2020

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
Copy link

carl1961 commented Oct 25, 2020

@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
Copy link
Collaborator

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

@UnchartedBull
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants