Printerprofiles: Update/Delete not working

..... you do realize you installed a Release Candidate, right? The thing that has this in its release notes?

1 Like

Yes, sure, I am aware of this.
It was a try to find out, if there the problem gets fixed. I wonder, if I am the only one having this problem. I just setup a fresh SDcard with the image and now I got stuck with the same issue.
Really bad!
I jsut want to cleanup the printerlist and I want to modify the printer-profile. How shall I do?

To my knowledge you are the only one. And in order to have a chance to help you we need full logs.

Here is the log:

2020-02-10 14:37:27,151 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 14:37:27,171 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2020-02-10 14:37:27,173 - octoprint.server - INFO - OctoPrint 1.3.12
2020-02-10 14:37:27,199 - octoprint.plugin.core - INFO - 15 plugin(s) registered with the system:
|  Action Command Prompt Support (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/action_command_prompt
|  Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements
|  Anonymous Usage Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/tracking
|  Application Keys Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/appkeys
|  Backup & Restore (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/backup
|  Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/corewizard
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery
|  Error Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/errortracking
|  Force Login (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/forcelogin
|  Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging
|  Pi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pi_support
|  Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager
|  Printer Safety Check (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/printer_safety_check
|  Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate
|  Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/virtual_printer
2020-02-10 14:37:27,247 - octoprint.environment - INFO - Detected environment is Python 2.7.16 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1400.0
|    ram: 917016576
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    pi_support:
|      model: Raspberry Pi 3 Model B Plus Rev 1.3
|      octopi_version: 0.17.0
|  python:
|    pip: 19.3.1
|    version: 2.7.16
|    virtualenv: /home/pi/oprint
2020-02-10 14:37:27,247 - octoprint.server - INFO - ------------------------------------------------------------------------------
2020-02-10 14:52:27,154 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 15:02:15,279 - octoprint.server.util.flask.PreemptiveCache - INFO - Adding entry for / and {'query_string': 'l10n=de', 'path': u'/', '_count': 1, '_timestamp': 1581346935.278914, 'base_url': u'http://192.168.178.25/'}
2020-02-10 15:02:26,094 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.178.72
2020-02-10 15:05:11,133 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2020-02-10 15:05:16,476 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.178.72
2020-02-10 15:05:18,731 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.178.72
2020-02-10 15:05:18,853 - octoprint.server.util.flask - INFO - Passively logging in user dummy from ::ffff:192.168.178.72
2020-02-10 15:05:20,508 - octoprint.plugins.announcements - INFO - Loaded channel _important from https://octoprint.org/feeds/important.xml in 0.13s
2020-02-10 15:05:20,844 - octoprint.plugins.announcements - INFO - Loaded channel _releases from https://octoprint.org/feeds/releases.xml in 0.13s
2020-02-10 15:05:21,650 - octoprint.plugins.announcements - INFO - Loaded channel _blog from https://octoprint.org/feeds/octoblog.xml in 0.14s
2020-02-10 15:05:21,831 - octoprint.plugins.announcements - INFO - Loaded channel _plugins from https://plugins.octoprint.org/feed.xml in 0.12s
2020-02-10 15:05:22,053 - octoprint.plugins.announcements - INFO - Loaded channel _octopi from https://octoprint.org/feeds/octopi.xml in 0.13s
2020-02-10 15:05:22,583 - octoprint.server.api - ERROR - Error calling SimpleApiPlugin pluginmanager
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/api/__init__.py", line 68, in pluginData
    response = api_plugin.on_api_get(request)
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 280, in on_api_get
    if refresh_repository or not self._is_repository_cache_valid():
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 797, in _is_repository_cache_valid
    return mtime + self._repository_cache_ttl >= time.time() > mtime
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
2020-02-10 15:05:22,590 - tornado.access - ERROR - 500 GET /api/plugin/pluginmanager (::ffff:192.168.178.72) 12.55ms
2020-02-10 15:07:27,156 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 15:22:27,158 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 15:37:27,161 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 15:52:27,163 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 16:07:27,165 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 16:12:44,236 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Detecting serial port"
2020-02-10 16:12:44,360 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial port" to "Opening serial port"
2020-02-10 16:12:44,367 - octoprint.util.comm - INFO - Changing monitoring state from "Opening serial port" to "Detecting baudrate"
2020-02-10 16:12:45,399 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2020-02-10 16:12:59,928 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2020-02-10 16:13:00,933 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2020-02-10 16:13:01,942 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2020-02-10 16:13:02,952 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2020-02-10 16:13:03,958 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2020-02-10 16:13:03,975 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting baudrate" to "Operational"
2020-02-10 16:13:03,985 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2020-02-10 16:13:04,012 - octoprint.util.comm - INFO - Printer reports firmware name "Marlin 1.1.0-RC8 (Github)"
2020-02-10 16:13:24,575 - octoprint.filemanager.analysis - INFO - Starting analysis of local:TemperatureTower_PLA_180-225.gcode
2020-02-10 16:13:24,577 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=3000 --speed-y=3000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/TemperatureTower_PLA_180-225.gcode
2020-02-10 16:13:33,748 - octoprint.printer.standard.job - INFO - Print job selected - origin: local, path: TemperatureTower_PLA_180-225.gcode, owner: dummy, user: dummy
2020-02-10 16:13:39,716 - octoprint.util.comm - INFO - Changing monitoring state from "Operational" to "Starting"
2020-02-10 16:13:39,723 - octoprint.printer.standard.job - INFO - Print job started - origin: local, path: TemperatureTower_PLA_180-225.gcode, owner: dummy, user: dummy
2020-02-10 16:13:39,734 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2020-02-10 16:13:39,742 - octoprint.util.comm - INFO - Changing monitoring state from "Starting" to "Printing"
2020-02-10 16:22:27,167 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 16:37:27,169 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 16:52:27,171 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 17:07:27,172 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 17:22:27,174 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 17:37:27,177 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 17:52:27,180 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 18:07:27,182 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 18:22:27,185 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 18:37:27,189 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 18:52:27,190 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 19:05:33,421 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.178.52
2020-02-10 19:05:34,582 - octoprint.server.util.flask - INFO - Passively logging in user dummy from ::ffff:192.168.178.52
2020-02-10 19:07:27,193 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 19:12:18,848 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.178.68
2020-02-10 19:12:18,956 - octoprint.server.util.flask - INFO - Passively logging in user dummy from ::ffff:192.168.178.68
2020-02-10 19:12:20,230 - octoprint.server.api - ERROR - Error calling SimpleApiPlugin pluginmanager
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/api/__init__.py", line 68, in pluginData
    response = api_plugin.on_api_get(request)
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 280, in on_api_get
    if refresh_repository or not self._is_repository_cache_valid():
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 797, in _is_repository_cache_valid
    return mtime + self._repository_cache_ttl >= time.time() > mtime
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
2020-02-10 19:12:20,245 - tornado.access - ERROR - 500 GET /api/plugin/pluginmanager (::ffff:192.168.178.68) 21.94ms
2020-02-10 19:14:06,458 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.178.68
2020-02-10 19:14:17,514 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.178.52
2020-02-10 19:14:18,751 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.178.52
2020-02-10 19:14:19,377 - octoprint.server.util.flask - INFO - Passively logging in user dummy from ::ffff:192.168.178.52
2020-02-10 19:15:11,233 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.178.52
2020-02-10 19:15:13,501 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.178.52
2020-02-10 19:15:13,641 - octoprint.server.util.flask - INFO - Passively logging in user dummy from ::ffff:192.168.178.52
2020-02-10 19:15:16,172 - octoprint.server.api - ERROR - Error calling SimpleApiPlugin pluginmanager
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/api/__init__.py", line 68, in pluginData
    response = api_plugin.on_api_get(request)
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 280, in on_api_get
    if refresh_repository or not self._is_repository_cache_valid():
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 797, in _is_repository_cache_valid
    return mtime + self._repository_cache_ttl >= time.time() > mtime
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
2020-02-10 19:15:16,180 - tornado.access - ERROR - 500 GET /api/plugin/pluginmanager (::ffff:192.168.178.52) 14.97ms
2020-02-10 19:21:03,177 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.178.72
2020-02-10 19:22:27,195 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 19:37:27,197 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 19:51:07,777 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.178.52
2020-02-10 19:51:10,244 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.178.52
2020-02-10 19:51:10,397 - octoprint.server.util.flask - INFO - Passively logging in user dummy from ::ffff:192.168.178.52
2020-02-10 19:51:11,395 - octoprint.server.api - ERROR - Error calling SimpleApiPlugin pluginmanager
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/api/__init__.py", line 68, in pluginData
    response = api_plugin.on_api_get(request)
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 280, in on_api_get
    if refresh_repository or not self._is_repository_cache_valid():
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 797, in _is_repository_cache_valid
    return mtime + self._repository_cache_ttl >= time.time() > mtime
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
2020-02-10 19:51:11,403 - tornado.access - ERROR - 500 GET /api/plugin/pluginmanager (::ffff:192.168.178.52) 14.46ms
2020-02-10 19:52:27,199 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 20:07:27,201 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 20:21:53,276 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.178.52
2020-02-10 20:22:27,202 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-02-10 20:23:29,846 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.178.52
2020-02-10 20:23:30,017 - octoprint.server.util.flask - INFO - Passively logging in user dummy from ::ffff:192.168.178.52
2020-02-10 20:23:31,034 - octoprint.server.api - ERROR - Error calling SimpleApiPlugin pluginmanager
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/api/__init__.py", line 68, in pluginData
    response = api_plugin.on_api_get(request)
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 280, in on_api_get
    if refresh_repository or not self._is_repository_cache_valid():
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 797, in _is_repository_cache_valid
    return mtime + self._repository_cache_ttl >= time.time() > mtime
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
2020-02-10 20:23:31,040 - tornado.access - ERROR - 500 GET /api/plugin/pluginmanager (::ffff:192.168.178.52) 12.93ms
2020-02-10 20:31:55,146 - octoprint.util.comm - INFO - Finished in 15495.432 s.
2020-02-10 20:31:55,149 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Finishing"
2020-02-10 20:31:55,160 - octoprint.filemanager.analysis - INFO - Starting analysis of local:TemperatureTower_PLA_180-225.gcode
2020-02-10 20:31:55,164 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=3000 --speed-y=3000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/TemperatureTower_PLA_180-225.gcode
2020-02-10 20:31:55,179 - octoprint.printer.standard.job - INFO - Print job done - origin: local, path: TemperatureTower_PLA_180-225.gcode, owner: dummy
2020-02-10 20:31:55,224 - octoprint.util.comm - INFO - Changing monitoring state from "Finishing" to "Operational"
2020-02-10 20:32:18,985 - octoprint.filemanager.analysis - INFO - Analysis of entry local:TemperatureTower_PLA_180-225.gcode finished, needed 23.83s
2020-02-10 20:32:40,399 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.178.52
2020-02-10 20:32:41,769 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.178.52
2020-02-10 20:32:41,959 - octoprint.server.util.flask - INFO - Passively logging in user dummy from ::ffff:192.168.178.52
2020-02-10 20:32:42,947 - octoprint.server.api - ERROR - Error calling SimpleApiPlugin pluginmanager
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/api/__init__.py", line 68, in pluginData
    response = api_plugin.on_api_get(request)
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 280, in on_api_get
    if refresh_repository or not self._is_repository_cache_valid():
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 797, in _is_repository_cache_valid
    return mtime + self._repository_cache_ttl >= time.time() > mtime
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
2020-02-10 20:32:42,953 - tornado.access - ERROR - 500 GET /api/plugin/pluginmanager (::ffff:192.168.178.52) 12.51ms
2020-02-10 20:34:01,717 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.178.68
2020-02-10 20:34:01,847 - octoprint.server.util.flask - INFO - Passively logging in user dummy from ::ffff:192.168.178.68

It looks like there are no third-party plugins as combined with a repeated Python error for the bundled pluginmanager, I'm guessing.

OctoPi 0.17.0

Perhaps you get one of these each time you visit the Settings page.

What if plugins.json is missing?

ls -l ~/.octoprint/data/pluginmanager/plugins.json

On first glance I don't see anything relating to printer profiles in there so I guess the next step is you sharing what's in your browser's error console:

As for the logged traces from plugin manager, those are completely unrelated and can be fixed like this:

Hi,
PlugIn-Mamanger isn't causing any issue and it isn't empty:

I just cliecked on the star for setting Anycubic as default printer:

When updating a setting in default printer:

Will this help?

So that certainly explains that it doesn't work, but I don't really understand what makes Chrome log an ERR_EMPTY_RESPONSE here. Can you check if you see the same issue in another browser, e.g. Firefox?

Also, are you connecting directly to the Pi running OctoPrint here, or is there an additional reverse proxy in between?

Im connecting from a computer located directly in the same network (Windows 10). When using IE11:

@DoublePrint: how do you usually power off the Pi?

I use shutdown feature in menu.
The problem occurs right from the beginning after starting with a fresh setup.

How is your Pi connected? Wifi? Wired?

That error looks like something is going severely wrong with the server response in transit. OctoPrint will return an HTTP 200 OK with a JSON body on profile modification, and a HTTP 204 No Content with an empty body on profile deletion. Both are perfectly valid and standard compliant HTTP responses.

I also just tested this... fresh install, created a bunch of new profiles, edited one, deleted another, reset the default profile and so on:

image

All working as expected, so whatever it is, it is something in your environment, though I'm currently at a loss as to what. If you are connected via wifi I'd suggest to check via a wired connection. Next step would be to deploy something like wireshark or tcpdump or Charles Proxy to get an idea of what's actually going over the line...

What's with the octopi3.lan top level domain? If it were me, I'd try octopi3.local instead. As I recall from my Microsoft I.T. days, .lan was for NETBIOS domains issued by a primary domain controller in the Windows world. I may have this wrong but it's possible things are trying to use the wrong transports.

So what should I try?
I was accessing Octoprint via IP address in the browser.

Try another browser...?

I now tested with a cable connection (LAN). Same behaviour

I was using Chrome, Edge and Internet Explorer 11. Always same behaviour.

Hi,
I think I now found the issue:
I was accessing the Rasperry via IP address.
Now I tried the local name (http://octopi.local/). Then it is working.
Why isn't the IP possible?

One possibility is that you're trying to use one of the longer (IPv6) addresses and you didn't surround it in square brackets as in http://[2601:648:8701:18c0:4eba:65d9:2225:99df].

I was using IPv4: 192.168.178.25
As you have seen in screenshots, In general Iwas able to request the pages of Octoprint, just dedicated features weren’t working.

@foosel

My best guess is that it's the mapping between the name of the profile (with spaces and capitalization) and the name of the REST API endpoint (with underscores and lowercase). There's a 404 error which indicates that it can't find http://192.168.178.25/api/printerprofiles/anycubic_4max_pro as an endpoint. It was suggested that using the hostname instead of the IP address doesn't have this problem.

@DoublePrint Can you confirm that one-word profile names without spaces behave normally on your installation?