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

After latest upgrade can't get rid of setup wizard #181

Closed
szabocs opened this issue Apr 16, 2021 · 21 comments
Closed

After latest upgrade can't get rid of setup wizard #181

szabocs opened this issue Apr 16, 2021 · 21 comments

Comments

@szabocs
Copy link

szabocs commented Apr 16, 2021

PSU Control just prompted me for upgrade, so I did it.
After reboot I am getting a setup wizard with only a finish button on it.
If I click this button the screen stays and won't go away, basically rendering my
octoprint installation unusable and I cannot print at the moment.
I will try to manually remove the plugin for now because I need to print.

115005906-9d8eae00-9ea8-11eb-9b4b-08710c2cb3c9

@moarkaboom
Copy link

same issue for me. I deactivated all other display-plugins (themeify, etc.) and it still wont close.

@valiobg
Copy link

valiobg commented Apr 16, 2021

I have the same problem.
Screenshot 2021-04-16 13 29 15

@kantlivelong
Copy link
Owner

kantlivelong commented Apr 16, 2021

I can't reproduce. Please provide the following info:

Version of OctoPrint-PSUControl

Operating System running OctoPrint

Printer model & used firmware incl. version

Link to octoprint.log with octoprnt.plugins.psucontrol set to DEBUG

Browser console logs ( See https://www.wickedlysmart.com/hfjsconsole/ )

@kantlivelong
Copy link
Owner

kantlivelong commented Apr 16, 2021

As a workaround you can modify the ~/.octoprint/config.yaml and set the following:

server:
  seenWizards:
    psucontrol: 1

Be sure to stop octoprint before editing.

@d3relict
Copy link

console log:
ConfiguredLoggers has not changed. Not saving.
packed_core.js?22357642:431 Uncaught TypeError: Cannot read property 'done' of undefined
at WizardViewModel.self.finishWizard (packed_core.js?22357642:431)
at Object.onFinish (packed_core.js?22357642:430)
at HTMLButtonElement.finish (packed_libs.js?ab739628:1209)
at HTMLButtonElement.dispatch (packed_libs.js?ab739628:1)
at HTMLButtonElement.v.handle (packed_libs.js?ab739628:1)

OctoPrint 1.5.3
Python 3.7.3
OctoPi 0.18.0

@kantlivelong
Copy link
Owner

@d3relict thanks. It's not entirely clear where the issue lies as I cannot reproduce and the error is a bit cryptic due to the way OctoPrint compresses/packs JS.

I've made a quick change to test if you could try it: https://github.com/kantlivelong/OctoPrint-PSUControl/archive/d2ae20efef8f4d665f84475dd06198e78bd314d2.zip

@d3relict
Copy link

i installed over my current version (without removal), and disabled the workaround you suggested above. i get the same error. do you need me to completely remove the plugin and install from the zip, or was this sufficient?

@d3relict
Copy link

also, as far as i see, the js file is just serialized, after using "beautification" in chrome devtools, the source is completely readable.

        self.finishWizard = function() {
            var deferred = $.Deferred();
            self.finishing = true;
            self.settingsViewModel.saveData().done(function() {
                OctoPrint.wizard.finish(self.wizards).done(function() {
                    deferred.resolve(arguments);
                }).fail(function() {
                    deferred.reject(arguments);
                }).always(function() {
                    self.finishing = false;
                });
            }).fail(function() {
                deferred.reject(arguments);
            });
            return deferred;
        }

the error is thrown on line self.settingsViewModel.saveData().done(function() {, as saveData() returns undefined.

@The-EG
Copy link

The-EG commented Apr 16, 2021

Getting this after trying the new version. Attached:

Installed plugins:

2021-04-16 12:15:21,046 - octoprint.plugin.core - INFO - 32 plugin(s) registered with the system:
|  Action Command Notification Support (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/action_command_notification
|  Action Command Prompt Support (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/action_command_prompt
|  Announcement Plugin (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/announcements
|  Anonymous Usage Tracking (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/tracking
|  Application Keys Plugin (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/appkeys
|  Backup & Restore (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/backup
|  Camera Settings (0.1.0rc1) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_CameraSettings
|  Consolidated Tabs (1.0.1) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_consolidatedtabs
|  Core Wizard (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/corewizard
|  Custom Background (1.0.0) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_custombackground
|  Discovery (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/discovery
|  DisplayLayerProgress Plugin (1.26.0) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_DisplayLayerProgress
|  Error Tracking (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/errortracking
|  File Check (2021.2.23) (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_file_check
|  Firmware Check (2021.2.4) (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_firmware_check
|  Fullscreen Plugin (0.0.6) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_fullscreen
|  GCode Viewer (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/gcodeviewer
| !GPIO Control (1.0.8) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_gpiocontrol
|  Hardware Buttons (1.0.0) = /home/taylor/.octoprint/plugins/octoprint_hwbuttons.py
|  Logging (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/logging
|  M73 Progress Plugin (0.2.1) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_m73progress
|  Octolapse (0.4.1) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_octolapse
|  Pi Support Plugin (2021.3.26.post2) (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_pi_support
|  Plugin Manager (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/pluginmanager
|  PrintTimeGenius Plugin (2.2.7) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_PrintTimeGenius
|  PrusaSlicer Thumbnails (0.1.4) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_prusaslicerthumbnails
|  PSU Control (1.0.0) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_psucontrol
|  Software Update (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/softwareupdate
|  SpoolManager Plugin (1.3.3) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_SpoolManager
|  Themeify (1.2.2) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_themeify
|  UBL Mesh Editor (0.3.0) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint_ublmeshedit
|  Virtual Printer (bundled) = /home/taylor/OctoPrint/lib/python3.7/site-packages/octoprint/plugins/virtual_printer
Prefix legend: ! = disabled, # = blacklisted, * = incompatible

Note: 'Hardware Buttons' is a plugin that I wrote for running something on button press via GPIO. It uses gpiozero (and by depenency, RPi.GPIO).

@Egocentrical
Copy link

I uininstalled SpoolManager and was able to click on the finish button if that helps anyone

@d3relict
Copy link

i can confirm, disabling SpoolManager makes the modal work again.

@kantlivelong
Copy link
Owner

Interesting. I had to step away from my dev env but if you have some time to spare I'm curious what happens if you disable psucontrol, enable spool manager, restart OctoPrint , install https://github.com/kantlivelong/OctoPrint-SSHInterface, then restart as usual after installs. That plugin also has a simple text wizard but uses builtin settings. If it happens with that too I'd lean towards SpoolManager being the culprit.

Once I return I will test it out myself as well.

@The-EG
Copy link

The-EG commented Apr 16, 2021

I get the same issue with the wizard after installing SSHInterface with Spool Manager installed & enabled.

@kantlivelong
Copy link
Owner

So I've just confirmed that this is something with Spool Manager. Simply re-enabling firstRun in config.yaml is enough to cause the issue. Will open with the dev.

@kantlivelong
Copy link
Owner

As a temporary fix you can use this plugin to power on/off your printers - https://github.com/catgiggle/OctoPrint-GpioControl. I hope PSU Control will be fixed soon !

It's not a PSU Control issue. See above posts.

@moarkaboom
Copy link

moarkaboom commented Apr 17, 2021

Updating Spoolmanager resolved the issue for me. Thanks for the quick response!

@reipet
Copy link

reipet commented Apr 17, 2021

Hi, can you explain how to update or uninstall the SpoolManager to solve this Issue please. I can SSH into Octopi but then I dont know how to continue. THX!

@kantlivelong
Copy link
Owner

Use Safe Mode then uninstall or upgrade.

https://docs.octoprint.org/en/master/features/safemode.html

@moarkaboom
Copy link

moarkaboom commented Apr 17, 2021

(for me the easier way was):

  1. when SSHd into your Octoprint, uninstall PSU Control:
    /home/pi/oprint/bin/pip uninstall --yes Octoprint-PSUControl
  2. then restart the Service:
    sudo service octoprint restart
  3. reload the WebUI, and run "Check for Update now" in Software Update in the Settings
  4. first update Spool Manager
  5. then install PSU Control
  6. after that I had to restart my RPi to get everything working again properly.
  7. done

@reipet
Copy link

reipet commented Apr 17, 2021

I had to play around a bit but finally got it working again. THX!

@kantlivelong
Copy link
Owner

Going to close this now that Spool Manager has been updated. Will still keep pinned for a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants