Comments (4)
Never used Klipper but as reading the doc you have to use /tmp/printer
as serial port. So just mount the device like in the example: https://github.com/OctoPrint/docker/blob/master/docker-compose.yml#L8-L9
devices:
- /tmp/printer:/tmp/printer
from octoprint-docker.
Although I can choose /tmp/printer for my serial port within octoprint now, when I try to connect it refuses and I get this error in terminal:
Connecting to: /tmp/printer
Changing monitoring state from "Offline" to "Error: Connection error, see Terminal tab"
Unexpected error while connecting to serial port: /tmp/printer SerialException: '[Errno 5] could not open port /tmp/printer: [Errno 5] Input/output error: '/tmp/printer'' @ comm.py:_openSerial:2691 (hook default)
from octoprint-docker.
Ok, I think I'm getting closer with - /dev/ttyUSB0:/tmp/printer. It seems like it's trying to connect but unable to detect baudrate now. From Octoprint terminal when I hit connect:
Octoprint terminal
Connecting to: /tmp/printer
Changing monitoring state from "Offline" to "Opening serial port"
Connected to: Serial(port='/tmp/printer', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Starting baud rate detection...
Changing monitoring state from "Opening serial port" to "Detecting baudrate"
Trying baudrate: 115200
Send: N0 M110 N0*125
Unexpected error while reading serial port, please consult octoprint.log for details: SerialException: 'device reports readiness to read but returned no data (device disconnected or multiple access on port?)' @ comm.py:_readline:2823
Please see https://faq.octoprint.org/serialerror for possible reasons of this.
Changing monitoring state from "Detecting baudrate" to "Offline (Error: SerialException: 'device reports readiness to read but returned no data (device disconnected or multiple access on port?)' @ comm.py:_readline:2823)"
Connection closed, closing down monitor
from octoprint-docker.
This is really weird. When I access log docker-compose logs -f
I get
octoprint_1 | Traceback (most recent call last):
octoprint_1 | File "/opt/venv/lib/python2.7/site-packages/OctoPrint-1.4.0-py2.7.egg/octoprint/util/comm.py", line 2823, in _readline
octoprint_1 | ret = self._serial.readline()
octoprint_1 | File "/opt/venv/lib/python2.7/site-packages/OctoPrint-1.4.0-py2.7.egg/octoprint/util/comm.py", line 4968, in readline
octoprint_1 | c = self.read(1)
octoprint_1 | File "/opt/venv/lib/python2.7/site-packages/pyserial-3.4-py2.7.egg/serial/serialposix.py", line 501, in read
octoprint_1 | 'device reports readiness to read but returned no data '
octoprint_1 | SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
octoprint_1 | 2020-04-30 22:12:15,778 - octoprint.util.comm - ERROR - Please see https://faq.octoprint.org/serialerror for possible reasons of this.
octoprint_1 | 2020-04-30 22:12:15,786 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting baudrate" to "Offline (Error: SerialException: 'device reports readiness to read but returned no data (device disconnected or multiple access on port?)' @ comm.py:_readline:2823)"
octoprint_1 | 2020-04-30 22:12:45,243 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 20.98ms
octoprint_1 | 2020-04-30 22:12:45,279 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 24.64ms
octoprint_1 | 2020-04-30 22:12:45,316 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 24.29ms
octoprint_1 | 2020-04-30 22:12:45,362 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 24.88ms
octoprint_1 | 2020-04-30 22:12:45,395 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 20.40ms
octoprint_1 | 2020-04-30 22:12:45,477 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 21.04ms
octoprint_1 | 2020-04-30 22:12:45,666 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 20.64ms
octoprint_1 | 2020-04-30 22:12:45,761 - tornado.access - WARNING - 403 GET /api/job (192.168.57.19) 22.19ms
octoprint_1 | 2020-04-30 22:12:45,814 - tornado.access - WARNING - 403 GET /api/job (192.168.57.19) 21.76ms
octoprint_1 | 2020-04-30 22:12:45,869 - tornado.access - WARNING - 403 GET /api/job (192.168.57.19) 22.43ms
192.168.57.19 is a totally different machine on my network that has nothing to do with my printer or the device I'm running octoprint on. Why is it even being accessed?
EDIT: nevermind I'm dumb. That's my home assistant server and I forgot I had it setup to query octoprint for sensor data.
from octoprint-docker.
Related Issues (20)
- marlin-binary-protocol missing
- Config_Directory not properly initiated HOT 3
- Q: what is the preffered method of updating the octoprint-docker container? HOT 1
- [BUG] octoprint/octoprint:latest or :1.8.6 not up to date HOT 4
- Q: octoprint-docker on Windows HOT 2
- Multiple Webcam Support
- [BUG] Multi camera support uses wrong port HOT 1
- Can't get webcam working
- Multiple processes of mjpg streamer started HOT 7
- [BUG] Webassets are not loaded when X-Script-Name is set HOT 3
- [BUG] Loading error: Passive login failed. raspi 4 HOT 8
- Docker container with camera-streamer HOT 3
- Shutdown/Reboot commands HOT 3
- [BUG] `undefined` tag is present on Dockerhub HOT 1
- AttributeError: 'Babel' object has no attribute 'app' HOT 5
- [BUG] validating /<path>/docker-compose.yml: (root) Additional property payload is not allowed HOT 2
- upgrade to bookworm release python HOT 3
- [BUG] and proposed fix for "PermissionError: [Errno 1] Operation not permitted" due to libseccomp2 HOT 1
- [BUG] mjpg_steamer fails and needs to be restarted
- Q: How do I use with CasaOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octoprint-docker.