Coder Social home page Coder Social logo

Comments (13)

cohaolain avatar cohaolain commented on June 22, 2024 1

Hey @cp2004 I'll try take a look at this in a bit 🙂

from octoprint-eeprom-marlin.

cp2004 avatar cp2004 commented on June 22, 2024

I don't have access to octoprint anymore as I'm stucked on this dialog

New solution in OctoPrint 1.5.0 (since you seem to be running the RCs) - the recovery page.

Head to http://<yourip>/recovery then you should be able to start OctoPrint in safe mode, delete the plugin and then restart OctoPrint and become 'un-screwed'

In the meantime, I will investigate why this happens. There is nothing in this plugin that can stop the wizard closing (literally only HTML, no script in that one) so I need to investigate this upstream.

To do this, I have a feeling it might be configuration-specific. Could you upload a redacted config.yaml (ie. take out API keys, unique tokens etc. - anything that looks like it might be risky sharing. There shouldn't be too much, but definitely API key.). This would really help, since I don't think I can reproduce this, but it is not the first time I have seen this problem.

from octoprint-eeprom-marlin.

cp2004 avatar cp2004 commented on June 22, 2024

@reggaemanu Any news on whether you've been able to look at this? I would like to know if it is a potential bug in 1.5.0rc series, which is planned for next week. I have only seen this twice, and both times they were on 1.5.0rc, so it would be great if we could look into this.
Thanks!

from octoprint-eeprom-marlin.

reggaemanu avatar reggaemanu commented on June 22, 2024

from octoprint-eeprom-marlin.

cp2004 avatar cp2004 commented on June 22, 2024

No worries, thanks for getting back to me!

from octoprint-eeprom-marlin.

reggaemanu avatar reggaemanu commented on June 22, 2024

Here's my config.yaml file
config.txt

from octoprint-eeprom-marlin.

cp2004 avatar cp2004 commented on June 22, 2024

Thank, I will take a look and see if we can find something.

from octoprint-eeprom-marlin.

cohaolain avatar cohaolain commented on June 22, 2024

For what it's worth, though this may well have been found already! The following messages are logged to console on each attempt to close the wizard dialog.
image

from octoprint-eeprom-marlin.

cp2004 avatar cp2004 commented on June 22, 2024

@cohaolain could I get an OctoPrint.log please? Internal server error is definitely something that needs investigation.

from octoprint-eeprom-marlin.

cohaolain avatar cohaolain commented on June 22, 2024

I just tried to reproduce in a clean config, containerised instance - couldn't reproduce it this time. So likely either

  1. a compatibility issue with the update (in the sense that having a config generated by an older version is causing issues)
    and/or
  2. a plugin conflict - I have quite a few plugins in my production octoprint instance.

I'll see if my production octoprint log has anything useful in it, unsure what my verbosity was set to last time (and can't try to reproduce right now, currently mid-print 😄 )

from octoprint-eeprom-marlin.

cohaolain avatar cohaolain commented on June 22, 2024

Here's all the relevant log entries related to the above:

2020-11-28 22:41:10,222 - octoprint - ERROR - Exception on /api/settings [POST]
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.8/site-packages/octoprint/server/util/flask.py", line 1539, in decorated_view
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/octoprint/vendor/flask_principal.py", line 199, in _decorated
    rv = f(*args, **kw)
  File "/usr/local/lib/python3.8/site-packages/octoprint/server/api/settings.py", line 387, in setSettings
    response = _saveSettings(data)
  File "/usr/local/lib/python3.8/site-packages/octoprint/server/api/settings.py", line 933, in _saveSettings
    "gcode", name, script.replace("\r\n", "\n").replace("\r", "\n")
AttributeError: 'NoneType' object has no attribute 'replace'
2020-11-28 22:41:10,224 - tornado.access - ERROR - 500 POST /api/settings (172.23.0.1) 5.32ms

from octoprint-eeprom-marlin.

cp2004 avatar cp2004 commented on June 22, 2024

Thanks for the insight, I will try and take a look. This doesn't look fun, and must be configuration specific.... 😢

from octoprint-eeprom-marlin.

cp2004 avatar cp2004 commented on June 22, 2024

Fix for this is ready for OctoPrint 1.6.0, (not 1.5.0) since it was not a regression.
Details: OctoPrint/OctoPrint@ba27cdf

Closing this issue since the root cause has been fixed & I'm not to blame, and in the next version of the plugin the wizard dialog will be gone anyway.

from octoprint-eeprom-marlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.