Cant connect because connection error


#1

What is the problem?

I cant establish a connection between my raspberry pi with octoprint and my 3d printer. Wlan and so is total working only the connection is not happening.

What did you already try to solve it?
I change the Baudrate every time, restarted my pi, octoprint, proofed the cables

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)

This is the error information

Unexpected error while connecting to serial port: AUTO IOError: 'GPX plugin not able to discover AUTO port and/or baudrate. Please choose specific values for them.' @ comm.py:_openSerial:2469 (hook GPX)


#2

Take a long hard look at that error message. What does it tell you?


#3

@foosel

That i have to choose specific values for the baudrate but i tried every possible option


#4

Not just the baudrate, also the port :wink:

And if that doesn't help, maybe @markwal has an idea, after you share some logs as suggested - without logs all this just boils down to playing fortune teller.


#5

thats octoprint.log

TypeError: argument of type 'NoneType' is not iterable
2018-10-16 13:09:17,913 - tornado.access - ERROR - 500 GET /api/slicing (2003:c5:e724:bd01:1af:291f:e924:a82) 43.28ms
2018-10-16 13:09:18,405 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin logging
2018-10-16 13:09:18,408 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin virtual_printer
2018-10-16 13:09:18,556 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin action_command_prompt
2018-10-16 13:09:18,913 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin corewizard
2018-10-16 13:09:19,037 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin printer_safety_check
2018-10-16 13:09:19,196 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin softwareupdate
2018-10-16 13:09:19,878 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin GPX
2018-10-16 13:09:20,385 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin cura
2018-10-16 13:09:20,589 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin announcements
2018-10-16 13:09:21,068 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin octopi_support
2018-10-16 13:09:21,404 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin pluginmanager
2018-10-16 13:09:22,181 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin discovery
2018-10-16 13:09:22,365 - octoprint.server.util.flask - DEBUG - Using translation core folder /home/pi/oprint/local/lib/python2.7/site-packages/octoprint/translations for locale de
2018-10-16 13:09:24,690 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin logging
2018-10-16 13:09:24,692 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin virtual_printer
2018-10-16 13:09:24,727 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin action_command_prompt
2018-10-16 13:09:24,797 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin corewizard
2018-10-16 13:09:25,085 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin printer_safety_check
2018-10-16 13:09:25,224 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin softwareupdate
2018-10-16 13:09:25,228 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin GPX
2018-10-16 13:09:25,238 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin cura
2018-10-16 13:09:25,240 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin announcements
2018-10-16 13:09:25,242 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin octopi_support
2018-10-16 13:09:25,244 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin pluginmanager
2018-10-16 13:09:25,246 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin discovery
2018-10-16 13:09:25,277 - octoprint.server.util.flask - DEBUG - Using translation core folder /home/pi/oprint/local/lib/python2.7/site-packages/octoprint/translations for locale de
2018-10-16 13:09:25,895 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin logging
2018-10-16 13:09:25,897 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin virtual_printer
2018-10-16 13:09:25,901 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin action_command_prompt
2018-10-16 13:09:25,923 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin corewizard
2018-10-16 13:09:25,925 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin printer_safety_check
2018-10-16 13:09:25,927 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin softwareupdate
2018-10-16 13:09:25,930 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin GPX
2018-10-16 13:09:25,932 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin cura
2018-10-16 13:09:25,934 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin announcements
2018-10-16 13:09:25,936 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin octopi_support
2018-10-16 13:09:25,938 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin pluginmanager
2018-10-16 13:09:25,940 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin discovery
2018-10-16 13:09:25,971 - octoprint.server.util.flask - DEBUG - Using translation core folder /home/pi/oprint/local/lib/python2.7/site-packages/octoprint/translations for locale de
2018-10-16 13:09:26,186 - octoprint - ERROR - Exception on /api/slicing [GET]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/util/flask.py", line 990, in decorated_function
    response = f(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/api/slicing.py", line 91, in slicingListAll
    profiles=_getSlicingProfilesData(slicer),
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/api/slicing.py", line 212, in _getSlicingProfilesData
    profiles = slicingManager.all_profiles(slicer, require_configured=require_configured)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/slicing/__init__.py", line 561, in all_profiles
    return self.get_slicer(slicer, require_configured=False).get_slicer_profiles(slicer_profile_path)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/types.py", line 1890, in get_slicer_profiles
    profiles[profile_name] = self.get_slicer_profile(entry.path)
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/cura/__init__.py", line 225, in get_slicer_profile
    profile_dict = self._load_profile(path)
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/cura/__init__.py", line 468, in _load_profile
    if "gcode_flavor" in profile_dict and not isinstance(profile_dict["gcode_flavor"], (list, tuple)):
TypeError: argument of type 'NoneType' is not iterable
2018-10-16 13:09:26,192 - tornado.access - ERROR - 500 GET /api/slicing (2003:c5:e724:bd01:1af:291f:e924:a82) 23.63ms
2018-10-16 13:09:26,276 - octoprint.server.util.flask - DEBUG - Needed 11.01s to render / (key: ui:_default:http://192.168.2.115/:de)
2018-10-16 13:09:26,287 - octoprint.server.preemptive_cache - INFO - ... done in 11.07s

and serial.log

2018-10-16 13:12:21,865 - Changing monitoring state from "Offline" to "Error: Connection error, see Terminal tab"
2018-10-16 13:12:21,874 - Unexpected error while connecting to serial port: /dev/ttyUSB0 Timeout: 'Timeout' @ comm.py:_openSerial:2469 (hook GPX)

#6

Please format your log files in the future.


#7

I'm guessing that you may be able to get past this error by doing two things: Open settings, choose GPX and choose the printer type and gcode flavor and press save. Then choose the appropriate port (not AUTO) from connection panel.