Octoprint unable to connect if printer is off when RPi boots

Hi,

I have a Ender3 Pro with a SKR e3 Mini v1.2 board (running Marlin 2.0.7.2, with SKR TFT35 v3.0 display) connected to a Raspberry Pi 3B+ running OctoPrint 1.4.2. I installed a relay to switch the printer on and off using PSU Control.

This works, but leaves the display of the printer on due to power on the USB port.

To avoid this I installed Uhubctl and added the following line to rc.local (before exit 0): uhubctl -l 1-1 -p 2 -a 0

That works to turn off the power on the USB, but now I have a new problem. The relays is installed as normal closed, so the printer is off when the RPi starts and later supposed to be turned on by the PSU Control plugin. However if I put power on the printer, OctoPrint isn’t able to connect to the printer. The problem seems to be that the RPi doesn’t see the USB serial port, because normally I see two options in the serial port dropdown menu under connection (/dev/tty/ACM0 and AUTO), but now I see only AUTO.

If I comment out the uhubctl line in rc.local everything works again, so my guess is that the problem is that for OctoPrint to be able to connect to the USB port, the printer needs to be running when OctoPrint is booted. Is that correct or could there be another issue? And is there a way to make the RPi rediscover the USB serial port when the printer is turned on?

No-one who could help me?

No Logs?

Please do not delete the template when you open a new Get Help thread. Instead fill in all requested information

1 Like

What does this command do? From what I read of your:

  • You have the board connected to the relay
  • This board has a backpowering issue
  • So you turned the USB ports off - and now have a new problem - it can't connect.

Isn't this because you turned the USB port off, and now you can't use it because it is turned off?

I believe you have over-engineered the solution. See https://community.octoprint.org/t/printers-known-to-have-backpowering-issues/25913.

Your uhubctl solution only (sort of) works if your printer is the only USB device connected to the RPi. This is because turning the hub power off shuts off power to all four ports due to limitations of the RPi hardware design.

This is what octoprint.log shows:

2020-11-14 17:07:43,365 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-11-14 17:07:43,388 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2020-11-14 17:07:43,389 - octoprint.server - INFO - OctoPrint 1.4.2
2020-11-14 17:07:43,395 - octoprint.plugin.core - INFO - 27 plugin(s) registered with the system:
|  Action Command Notification Support (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/action_command_notification
|  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
|  Autoscroll (0.0.3) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_autoscroll
|  Backup & Restore (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/backup
|  BetterHeaterTimeout (1.3.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_BetterHeaterTimeout
|  Cancel Objects (0.4.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_cancelobject
|  Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/corewizard
|  Detailed Progress (0.2.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_detailedprogress
|  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
|  File Check (2020.8.7) (bundled) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_file_check
|  Firmware Check (2020.9.23) (bundled) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_firmware_check
|  Floating Navbar (0.3.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_floatingnavbar
|  GCode Viewer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/gcodeviewer
|  Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging
|  Login UI (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/loginui
|  Navbar Temperature Plugin (0.14) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_navbartemp
|  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
|  PrintTimeGenius Plugin (2.2.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrintTimeGenius
|  PSU Control (0.1.9) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_psucontrol
|  Simple Emergency Stop (1.0.3) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_simpleemergencystop
|  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
Prefix legend: ! = disabled, # = blacklisted, * = incompatible
2020-11-14 17:07:43,409 - octoprint.environment - INFO - Detected environment is Python 2.7.16 under Linux (linux2). Details:
|  hardware:
|      cores: 4
|      freq: 1200.0
|      ram: 917016576
|  os:
|      id: linux
|      platform: linux2
|  plugins:
|      pi_support:
|          model: Raspberry Pi 3 Model B Rev 1.2
|          octopi_version: 0.17.0
|  python:
|      pip: 19.3.1
|      version: 2.7.16
|      virtualenv: /home/pi/oprint
2020-11-14 17:07:43,410 - octoprint.server - INFO - ------------------------------------------------------------------------------
2020-11-14 17:07:43,928 - octoprint.plugins.tracking - INFO - Sent tracking event pong, payload: {'python': '2.7.16', 'ram': 917016576, u'octopi_version': u'0.17.0', 'version': u'1.4.2', u'plugins': u'betterheatertimeout:1.3.0,cancelobject:0.4.4,autoscroll:0.0.3,detailedprogress:0.2.6,simpleemergencystop:1.0.3,navbartemp:0.14,floatingnavbar:0.3.4,psucontrol:0.1.9,printtimegenius:2.2.6', 'pip': '19.3.1', 'cores': 4, 'freq': 1200.0, u'pi_model': u'Raspberry Pi 3 Model B Rev 1.2', 'os': 'linux'}
2020-11-14 17:07:44,347 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 23}
2020-11-14 17:08:11,370 - octoprint.server.util.flask - INFO - Passively logging in user Harm from ::ffff:192.168.8.103
2020-11-14 17:08:11,375 - octoprint.access.users - INFO - Logged in user: Harm
2020-11-14 17:08:13,363 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.8.103
2020-11-14 17:08:13,501 - octoprint.server.util.flask - INFO - Passively logging in user Harm from ::ffff:192.168.8.103
2020-11-14 17:08:13,503 - octoprint.access.users - INFO - Logged in user: Harm
2020-11-14 17:08:16,799 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from https://plugins.octoprint.org/plugins.json
2020-11-14 17:08:18,936 - octoprint.plugins.pluginmanager - INFO - Loaded plugin notices data from https://plugins.octoprint.org/notices.json
2020-11-14 17:08:21,202 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2020-11-14 17:08:21,603 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2020-11-14 17:08:21,842 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2020-11-14 17:08:22,107 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2020-11-14 17:08:22,376 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2020-11-14 17:08:25,455 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages/ (writable -> yes), --user flag needed -> no, virtual env -> yes
2020-11-14 17:08:25,456 - octoprint.util.pip - INFO - ==> pip ok -> yes
2020-11-14 17:08:33,230 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2020-11-14 17:08:33,421 - octoprint.server.util.sockjs - INFO - User Harm logged in on the socket from client ::ffff:192.168.8.103
2020-11-14 17:08:47,087 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2020-11-14 17:09:12,254 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Detecting serial connection"
2020-11-14 17:09:12,302 - octoprint.util.comm - INFO - Serial detection: Performing autodetection with 0 port/baudrate candidates: 
2020-11-14 17:09:12,304 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial connection" to "Error: No more candidates to test, and no working port/baudrate combination detected."
2020-11-14 17:09:12,335 - octoprint.util.comm - INFO - Changing monitoring state from "Error: No more candidates to test, and no working port/baudrate combination detected." to "Offline (Error: No more candidates to test, and no working port/baudrate combination detected.)"
2020-11-14 17:09:12,362 - octoprint.plugins.action_command_notification - INFO - Notifications cleared
2020-11-14 17:09:12,875 - octoprint.plugins.tracking - INFO - Sent tracking event commerror_autodetect, payload: {'commerror_text': u'No more candidates to test, and no working port/baudrate combination detected.'}
2020-11-14 17:09:20,991 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Detecting serial connection"
2020-11-14 17:09:21,246 - octoprint.util.comm - INFO - Serial detection: Performing autodetection with 0 port/baudrate candidates: 
2020-11-14 17:09:21,249 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial connection" to "Error: No more candidates to test, and no working port/baudrate combination detected."
2020-11-14 17:09:21,253 - octoprint.util.comm - INFO - Changing monitoring state from "Error: No more candidates to test, and no working port/baudrate combination detected." to "Offline (Error: No more candidates to test, and no working port/baudrate combination detected.)"
2020-11-14 17:09:21,400 - octoprint.plugins.action_command_notification - INFO - Notifications cleared
2020-11-14 17:09:21,776 - octoprint.plugins.tracking - INFO - Sent tracking event commerror_autodetect, payload: {'commerror_text': u'No more candidates to test, and no working port/baudrate combination detected.'}

@Charlie_Powell: uhubctl turns power on usb ports on or off, see: https://github.com/mvp/uhubctl

@b-morgan: I don’t think my set-up is over-engineered. I use only one USB connection of the RPi, which is to connect it to the printer. The relay is switched using the RPi’s GPIO pins (similar solution as here: https://www.youtube.com/watch?v=ozCqqlPJ3a0 - from 4:35)

I also turn serial.log on and this is what it shows:

2020-11-14 17:23:54,009 - Changing monitoring state from "Offline" to "Detecting serial connection"
2020-11-14 17:23:54,054 - Performing autodetection with 0 port/baudrate candidates: 
2020-11-14 17:23:54,056 - Changing monitoring state from "Detecting serial connection" to "Error: No more candidates to test, and no working port/baudrate combination detected."
2020-11-14 17:23:54,075 - Changing monitoring state from "Error: No more candidates to test, and no working port/baudrate combination detected." to "Offline (Error: No more candidates to test, and no working port/baudrate combination detected.)"

It seems that the problem is that either the USB serial port is not automatically discovered when the printer is switched on, or that it is discovered, but it is not automatically added to OctoPrint’s list of serial ports. I have no idea how to test which one of the two is the problem, let alone how to fix it.

Have you already tried this plugin:

As long as you only use one RPi port, then uhubctl can be used.

In your original post, you said:

I installed a relay to switch the printer on and off using PSU Control. This works, but leaves the display of the printer on due to power on the USB port.

I'm suggesting that you put a piece of tape over the 5V pin of the USB cable and you are done.

Thanks for the suggestion, @Ewald_Ikemann. I’ve installed PortLister, but it doesn’t seem to do the trick: I still don’t see the port in the list.

This is the latest part of octoprint.log:

2020-11-14 18:12:01,307 - octoprint.plugins.tracking - INFO - Sent tracking event commerror_autodetect, payload: {'commerror_text': u'No more candidates to test, and no working port/baudrate combination detected.'}
2020-11-14 18:11:22,812 - octoprint.startup - INFO - ******************************************************************************
2020-11-14 18:11:22,814 - octoprint.startup - INFO - Starting OctoPrint 1.4.2
2020-11-14 18:11:22,815 - octoprint.startup - INFO - ******************************************************************************
2020-11-14 18:11:23,680 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity state is currently: offline
2020-11-14 18:11:23,681 - octoprint.util.connectivity.connectivity_checker - INFO - Connecting to 8.8.8.8:53 is not working
2020-11-14 18:11:23,682 - octoprint.util.connectivity.connectivity_checker - INFO - Resolving octoprint.org is not working
2020-11-14 18:11:23,691 - octoprint.startup - INFO - We don't appear to be online, not fetching plugin blacklist
2020-11-14 18:11:23,764 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2020-11-14 18:11:26,372 - octoprint.plugin.core - INFO - Found 28 plugin(s) providing 28 mixin implementations, 50 hook handlers
2020-11-14 18:11:26,536 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2020-11-14 18:11:26,676 - octoprint.server - INFO - Intermediary server started
2020-11-14 18:11:26,677 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2020-11-14 18:11:26,860 - octoprint.plugin.core - INFO - Found 28 plugin(s) providing 28 mixin implementations, 50 hook handlers
2020-11-14 18:11:26,918 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2020-11-14 18:11:26,920 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2020-11-14 18:11:26,925 - octoprint.server - INFO - Added new permission from plugin action_command_notification: PLUGIN_ACTION_COMMAND_NOTIFICATION_SHOW (needs: u"Need(method='role', value=u'plugin_action_command_notification_show')")
2020-11-14 18:11:26,926 - octoprint.server - INFO - Added new permission from plugin action_command_notification: PLUGIN_ACTION_COMMAND_NOTIFICATION_CLEAR (needs: u"Need(method='role', value=u'plugin_action_command_notification_clear')")
2020-11-14 18:11:26,928 - octoprint.server - INFO - Added new permission from plugin action_command_prompt: PLUGIN_ACTION_COMMAND_PROMPT_INTERACT (needs: u"Need(method='role', value=u'plugin_action_command_prompt_interact')")
2020-11-14 18:11:26,929 - octoprint.server - INFO - Added new permission from plugin announcements: PLUGIN_ANNOUNCEMENTS_READ (needs: u"Need(method='role', value=u'plugin_announcements_read')")
2020-11-14 18:11:26,931 - octoprint.server - INFO - Added new permission from plugin announcements: PLUGIN_ANNOUNCEMENTS_MANAGE (needs: u"Need(method='role', value=u'plugin_announcements_manage'), Need(method='role', value=u'plugin_announcements_read')")
2020-11-14 18:11:26,933 - octoprint.server - INFO - Added new permission from plugin appkeys: PLUGIN_APPKEYS_ADMIN (needs: u"Need(method='role', value=u'plugin_appkeys_admin')")
2020-11-14 18:11:26,935 - octoprint.server - INFO - Added new permission from plugin backup: PLUGIN_BACKUP_ACCESS (needs: u"Need(method='role', value=u'plugin_backup_access')")
2020-11-14 18:11:26,936 - octoprint.server - INFO - Added new permission from plugin firmware_check: PLUGIN_FIRMWARE_CHECK_DISPLAY (needs: u"Need(method='role', value=u'plugin_firmware_check_display')")
2020-11-14 18:11:26,938 - octoprint.server - INFO - Added new permission from plugin logging: PLUGIN_LOGGING_MANAGE (needs: u"Need(method='role', value=u'plugin_logging_manage')")
2020-11-14 18:11:26,940 - octoprint.server - INFO - Added new permission from plugin pi_support: PLUGIN_PI_SUPPORT_STATUS (needs: u"Need(method='role', value=u'plugin_pi_support_check')")
2020-11-14 18:11:26,941 - octoprint.server - INFO - Added new permission from plugin pluginmanager: PLUGIN_PLUGINMANAGER_MANAGE (needs: u"Need(method='role', value=u'plugin_pluginmanager_manage')")
2020-11-14 18:11:26,943 - octoprint.server - INFO - Added new permission from plugin pluginmanager: PLUGIN_PLUGINMANAGER_INSTALL (needs: u"Need(method='role', value=u'plugin_pluginmanager_install'), Need(method='role', value=u'plugin_pluginmanager_manage')")
2020-11-14 18:11:26,945 - octoprint.server - INFO - Added new permission from plugin softwareupdate: PLUGIN_SOFTWAREUPDATE_CHECK (needs: u"Need(method='role', value=u'plugin_softwareupdate_check')")
2020-11-14 18:11:26,946 - octoprint.server - INFO - Added new permission from plugin softwareupdate: PLUGIN_SOFTWAREUPDATE_UPDATE (needs: u"Need(method='role', value=u'plugin_softwareupdate_update')")
2020-11-14 18:11:26,975 - octoprint.printer.standard - INFO - Using print time estimator provided by PrintTimeGenius
2020-11-14 18:11:26,994 - octoprint.plugins.cancelobject - INFO - No beforegcode defined
2020-11-14 18:11:26,995 - octoprint.plugins.cancelobject - INFO - No aftergcode defined
2020-11-14 18:11:27,260 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2020-11-14 18:11:28,595 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2020-11-14 18:11:29,707 - octoprint.util.pip - INFO - Version of pip is 19.3.1
2020-11-14 18:11:29,709 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2020-11-14 18:11:29,710 - octoprint.util.pip - INFO - ==> pip ok -> yes
2020-11-14 18:11:29,714 - octoprint.plugin.core - INFO - Initialized 28 plugin implementation(s)
2020-11-14 18:11:29,744 - octoprint.plugins.psucontrol - INFO - Using GPIO for On/Off
2020-11-14 18:11:29,745 - octoprint.plugins.psucontrol - INFO - Using internal tracking for PSU on/off state.
2020-11-14 18:11:29,746 - octoprint.plugins.psucontrol - INFO - Running RPi.GPIO version 0.7.0
2020-11-14 18:11:29,747 - octoprint.plugins.psucontrol - INFO - Using GPIO for On/Off
2020-11-14 18:11:29,748 - octoprint.plugins.psucontrol - INFO - Configuring GPIO for pin 14
2020-11-14 18:11:29,754 - octoprint.plugin.core - INFO - 28 plugin(s) registered with the system:
|  Action Command Notification Support (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/action_command_notification
|  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
|  Autoscroll (0.0.3) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_autoscroll
|  Backup & Restore (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/backup
|  BetterHeaterTimeout (1.3.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_BetterHeaterTimeout
|  Cancel Objects (0.4.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_cancelobject
|  Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/corewizard
|  Detailed Progress (0.2.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_detailedprogress
|  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
|  File Check (2020.8.7) (bundled) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_file_check
|  Firmware Check (2020.9.23) (bundled) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_firmware_check
|  Floating Navbar (0.3.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_floatingnavbar
|  GCode Viewer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/gcodeviewer
|  Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging
|  Login UI (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/loginui
|  Navbar Temperature Plugin (0.14) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_navbartemp
|  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
|  PortLister (0.1.10) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_portlister
|  PrintTimeGenius Plugin (2.2.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrintTimeGenius
|  PSU Control (0.1.9) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_psucontrol
|  Simple Emergency Stop (1.0.3) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_simpleemergencystop
|  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
Prefix legend: ! = disabled, # = blacklisted, * = incompatible
2020-11-14 18:11:29,777 - octoprint.environment - INFO - Detected environment is Python 2.7.16 under Linux (linux2). Details:
|  hardware:
|      cores: 4
|      freq: 1200.0
|      ram: 917016576
|  os:
|      id: linux
|      platform: linux2
|  plugins:
|      pi_support:
|          model: Raspberry Pi 3 Model B Rev 1.2
|          octopi_version: 0.17.0
|  python:
|      pip: 19.3.1
|      version: 2.7.16
|      virtualenv: /home/pi/oprint
2020-11-14 18:11:29,793 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2020-11-14 18:11:29,819 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2020-11-14 18:11:31,277 - octoprint.server - INFO - Shutting down intermediary server...
2020-11-14 18:11:31,709 - octoprint.server - INFO - Intermediary server shut down
2020-11-14 18:11:31,712 - octoprint.events - INFO - Processing startup event, this is our first event
2020-11-14 18:11:31,714 - octoprint.events - INFO - Adding 0 events to queue that were held back before startup event
2020-11-14 18:11:31,718 - octoprint.server - INFO - Autoconnect on startup is configured, trying to connect to the printer...
2020-11-14 18:11:31,719 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-11-14 18:11:31,768 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-11-14 18:11:31,795 - octoprint.server - INFO - Trying to connect to configured serial port None
2020-11-14 18:11:31,866 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Detecting serial connection"
2020-11-14 18:11:31,867 - octoprint.server.util.watchdog - INFO - Running initial scan on watched folder...
2020-11-14 18:11:31,888 - octoprint.server.util.watchdog - INFO - ... initial scan done.
2020-11-14 18:11:31,896 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance on octopi' for _http._tcp
2020-11-14 18:11:31,916 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance on octopi' for _octoprint._tcp
2020-11-14 18:11:31,917 - octoprint.util.comm - INFO - Serial detection: Performing autodetection with 0 port/baudrate candidates: 
2020-11-14 18:11:31,923 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial connection" to "Error: No more candidates to test, and no working port/baudrate combination detected."
2020-11-14 18:11:31,954 - octoprint.util.comm - INFO - Changing monitoring state from "Error: No more candidates to test, and no working port/baudrate combination detected." to "Offline (Error: No more candidates to test, and no working port/baudrate combination detected.)"
2020-11-14 18:11:31,960 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2020-11-14 18:11:31,984 - octoprint.plugins.action_command_notification - INFO - Notifications cleared
2020-11-14 18:11:32,006 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2020-11-14 18:11:32,180 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2020-11-14 18:11:33,402 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2020-11-14 18:11:33,446 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2020-11-14 18:11:33,497 - octoprint.util.pip - INFO - ==> pip ok -> yes
2020-11-14 18:11:33,547 - octoprint.plugins.softwareupdate - INFO - Minimum free storage across all update relevant locations is 11.9GB. That is considered sufficient for updating.
2020-11-14 18:11:33,749 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity changed from offline to online
2020-11-14 18:11:34,415 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2020-11-14 18:11:35,029 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2020-11-14 18:11:35,813 - octoprint.plugins.detailedprogress - INFO - OctoPrint-DetailedProgress loaded!
2020-11-14 18:11:36,487 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2020-11-14 18:11:36,493 - octoprint.plugins.portlister - INFO - Port Lister () {}
2020-11-14 18:11:36,527 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 10}
2020-11-14 18:11:36,708 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://octopi.local/'}
2020-11-14 18:11:36,962 - octoprint.plugins.tracking - INFO - Sent tracking event pong, payload: {'python': '2.7.16', 'ram': 917016576, u'octopi_version': u'0.17.0', 'version': u'1.4.2', u'plugins': u'betterheatertimeout:1.3.0,cancelobject:0.4.4,autoscroll:0.0.3,portlister:0.1.10,detailedprogress:0.2.6,simpleemergencystop:1.0.3,navbartemp:0.14,floatingnavbar:0.3.4,psucontrol:0.1.9,printtimegenius:2.2.6', 'pip': '19.3.1', 'cores': 4, 'freq': 1200.0, u'pi_model': u'Raspberry Pi 3 Model B Rev 1.2', 'os': 'linux'}
2020-11-14 18:11:37,285 - octoprint.plugins.tracking - INFO - Sent tracking event startup, payload: {'python': '2.7.16', 'ram': 917016576, u'octopi_version': u'0.17.0', 'version': u'1.4.2', 'pip': '19.3.1', 'cores': 4, 'freq': 1200.0, u'pi_model': u'Raspberry Pi 3 Model B Rev 1.2', 'os': 'linux'}
2020-11-14 18:11:48,760 - octoprint.server.preemptive_cache - INFO - ... done in 12.05s
2020-11-14 18:16:10,508 - octoprint.server.util.flask - INFO - Passively logging in user Harm from ::ffff:192.168.8.103
2020-11-14 18:16:10,515 - octoprint.access.users - INFO - Logged in user: Harm
2020-11-14 18:16:13,018 - octoprint.server.util.flask - INFO - Passively logging in user Harm from ::ffff:192.168.8.103
2020-11-14 18:16:13,023 - octoprint.access.users - INFO - Logged in user: Harm
2020-11-14 18:16:13,655 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.8.103
2020-11-14 18:16:13,749 - octoprint.server.util.flask - INFO - Passively logging in user Harm from ::ffff:192.168.8.103
2020-11-14 18:16:13,751 - octoprint.access.users - INFO - Logged in user: Harm
2020-11-14 18:16:15,724 - octoprint.server.util.sockjs - INFO - User Harm logged in on the socket from client ::ffff:192.168.8.103
2020-11-14 18:16:20,462 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2020-11-14 18:17:06,760 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Detecting serial connection"
2020-11-14 18:17:06,827 - octoprint.util.comm - INFO - Serial detection: Performing autodetection with 0 port/baudrate candidates: 
2020-11-14 18:17:06,829 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial connection" to "Error: No more candidates to test, and no working port/baudrate combination detected."
2020-11-14 18:17:06,843 - octoprint.util.comm - INFO - Changing monitoring state from "Error: No more candidates to test, and no working port/baudrate combination detected." to "Offline (Error: No more candidates to test, and no working port/baudrate combination detected.)"
2020-11-14 18:17:06,889 - octoprint.plugins.action_command_notification - INFO - Notifications cleared
2020-11-14 18:17:07,325 - octoprint.plugins.tracking - INFO - Sent tracking event commerror_autodetect, payload: {'commerror_text': u'No more candidates to test, and no working port/baudrate combination detected.'}
2020-11-14 18:17:32,499 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Detecting serial connection"
2020-11-14 18:17:32,529 - octoprint.util.comm - INFO - Serial detection: Performing autodetection with 0 port/baudrate candidates: 
2020-11-14 18:17:32,533 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial connection" to "Error: No more candidates to test, and no working port/baudrate combination detected."
2020-11-14 18:17:32,547 - octoprint.util.comm - INFO - Changing monitoring state from "Error: No more candidates to test, and no working port/baudrate combination detected." to "Offline (Error: No more candidates to test, and no working port/baudrate combination detected.)"
2020-11-14 18:17:32,599 - octoprint.plugins.action_command_notification - INFO - Notifications cleared
2020-11-14 18:17:33,125 - octoprint.plugins.tracking - INFO - Sent tracking event commerror_autodetect, payload: {'commerror_text': u'No more candidates to test, and no working port/baudrate combination detected.'}
2020-11-14 18:18:21,143 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Detecting serial connection"
2020-11-14 18:18:21,174 - octoprint.util.comm - INFO - Serial detection: Performing autodetection with 0 port/baudrate candidates: 
2020-11-14 18:18:21,177 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial connection" to "Error: No more candidates to test, and no working port/baudrate combination detected."
2020-11-14 18:18:21,184 - octoprint.util.comm - INFO - Changing monitoring state from "Error: No more candidates to test, and no working port/baudrate combination detected." to "Offline (Error: No more candidates to test, and no working port/baudrate combination detected.)"
2020-11-14 18:18:21,369 - octoprint.plugins.action_command_notification - INFO - Notifications cleared
2020-11-14 18:18:21,755 - octoprint.plugins.tracking - INFO - Sent tracking event commerror_autodetect, payload: {'commerror_text': u'No more candidates to test, and no working port/baudrate combination detected.'}
2020-11-14 18:18:21,991 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Detecting serial connection"
2020-11-14 18:18:22,030 - octoprint.util.comm - INFO - Serial detection: Performing autodetection with 0 port/baudrate candidates: 
2020-11-14 18:18:22,032 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial connection" to "Error: No more candidates to test, and no working port/baudrate combination detected."
2020-11-14 18:18:22,053 - octoprint.util.comm - INFO - Changing monitoring state from "Error: No more candidates to test, and no working port/baudrate combination detected." to "Offline (Error: No more candidates to test, and no working port/baudrate combination detected.)"
2020-11-14 18:18:22,101 - octoprint.plugins.action_command_notification - INFO - Notifications cleared
2020-11-14 18:18:22,542 - octoprint.plugins.tracking - INFO - Sent tracking event commerror_autodetect, payload: {'commerror_text': u'No more candidates to test, and no working port/baudrate combination detected.'}

@b-morgan: I tried the tape and and removed the uhubctl line from rc.local. That did the trick! Now it the printer is recognised when I switch it on. I still have no idea why it doesn’t work using uhubctl, but anyway my set-up is now functional :slight_smile: And the PortLister plugin is connecting the printer automatically 20 seconds later.

1 Like