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

v2.2.0 update problems (LC_ALL: cannot change local | Stuck at initialization) #1818

Closed
jasonmacdonald opened this issue May 18, 2021 · 23 comments
Assignees
Labels
support Something isn't working with the users setup

Comments

@jasonmacdonald
Copy link

jasonmacdonald commented May 18, 2021

Describe the bug
Trying to update via the UI results in a failure with the error Can't install update! with the warning /bin/bash:warning: setlocale: LC_ALL: cannot change locale (en-GB)

To Reproduce
Steps to reproduce the behavior:

  1. Click update

Expected behavior
Should update

General Information:

  • Raspberry Pi 4b
    -OctoPi
  • OctoDash Version 2.1.2
@jasonmacdonald jasonmacdonald added the bug Something isn't working label May 18, 2021
@RNRMentor
Copy link

RNRMentor commented May 18, 2021

Same issue. The workaround I tried (completed manual update, executed rm ~/.config/octodash/config.json, rebooted, and went through on screen setup) did not work. still stuck on initializing screen.

@sergejvoronov
Copy link

same here.

@elictes
Copy link

elictes commented May 18, 2021

I also have this issue.

@fredlex3dprints
Copy link

same issue

@fredlex3dprints
Copy link

I got same issue. Updated it in the app and got the error.
put power off and back on. Octodash started normally with the V2.2.0 installed.

@jasonmacdonald
Copy link
Author

I got same issue. Updated it in the app and got the error.
put power off and back on. Octodash started normally with the V2.2.0 installed.

I tried this and now I'm stuck on initializing screen like @RNRMentor

@RNRMentor
Copy link

RNRMentor commented May 18, 2021

I got same issue. Updated it in the app and got the error.
put power off and back on. Octodash started normally with the V2.2.0 installed.

I tried this and now I'm stuck on initializing screen like @RNRMentor

@jasonmacdonald I ended up using the uninstall script and did a clean install of OctoDash V2.2.0. Now everything is working. I did not explore further, but I suspect that the initialization error may be due to CORS not being enabled?

@UnchartedBull
Copy link
Owner

UnchartedBull commented May 18, 2021

The LC_ALL error is due to a misconfigured locale (most likely not set at all): https://raspberrypi.stackexchange.com/questions/43550/unable-to-reconfigure-locale-in-raspberry-pi.

The stuck on initialization error is due to CORS not being enabled in the API Section (OctoPrint Settings)

@UnchartedBull UnchartedBull changed the title v2.2.0 Fails to update v2.2.0 update problems (LC_ALL: cannot change local | Stuck at initialization) May 18, 2021
@UnchartedBull UnchartedBull added support Something isn't working with the users setup and removed bug Something isn't working labels May 18, 2021
@UnchartedBull UnchartedBull pinned this issue May 18, 2021
@Sil3ntLight
Copy link

I can confirm this fix. After upgrade, when stuck on initialization screen, go into OctoPrint -> settings -> API, and make sure the Allow CORS checkbox is checked. Then reboot.

@csprocket777
Copy link

I already had that checked, update issue still remains for me.

@UnchartedBull
Copy link
Owner

So you're still stuck on the initialization screen @csprocket777?

@csprocket777
Copy link

Correct. This is what I'm seeing. image

@UnchartedBull
Copy link
Owner

Ah ok, that's the update error. If you fixed your locale this error should go away, but if it's still appearing please try the manual update script.

@csprocket777
Copy link

I thought I had my locale set. How should I check this?

@NovaViper
Copy link

I also have CORS enabled but im still getting the error

@jasonmacdonald
Copy link
Author

I had my local set, but I redid it to what was in the forum post on https://raspberrypi.stackexchange.com/questions/43550/unable-to-reconfigure-locale-in-raspberry-pi and on restart that finally fixed the error. No clue why the en-GB that I already had uncommented wasn't working. But, doing the locale-gen and update-locale seems to have resolved it

@NovaViper
Copy link

NovaViper commented May 18, 2021

I had to follow this answer in order to get it working: https://raspberrypi.stackexchange.com/a/81765. For some reason the first answer didn't work for me, kept throwing this error despite me setting it to en_US.UTF-8

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
*** update-locale: Error: invalid locale settings:  LANG=en_GB.UTF-8

But once I followed the answer I linked, it allowed me to update OctoDash

@UnchartedBull
Copy link
Owner

@csprocket777 by following the links posted here and checking whether your file look alright. If you don't feel like this, the manual update is still an option though.

@ all Thanks for posting your tips here for other users! I'm going to keep this issue open and pinned for a week or two :). Feel free to post further findings if you have any!

@forrest-eyles
Copy link

I followed everything here it its up and running again thank everyone.

@csprocket777
Copy link

Followed the same answer as @NovaViper and once OctoDash rebooted, everything worked.

@psebening
Copy link

I was stuck on the initializing screen after rebooting because I also had the LC_ALL Update Error. I did restart octoprint in Safe Mode, activated the CORS API in the Settings and update the locale as told in the above stackexchange links. Everything is running smoothly again now :)

@Qualith
Copy link

Qualith commented May 22, 2021

Same problem here.

Finally I fixed it just by running via ssh the update script.
wget -qO- https://github.com/UnchartedBull/OctoDash/raw/main/scripts/update.sh | bash

@UnchartedBull
Copy link
Owner

I think most people upgraded by now (almost 4k downloads!). So I'm closing this here now. Sorry for all the hassle with the upgrade.

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

No branches or pull requests