-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where is /tmp/printer? #32
Comments
Hi there, You're looking for You can also refer to the docker-compose file of this repo on how to set up klipper and octoprint to work together. -Markus |
If I attempt to run both Mainsail and Octoprint using prind's docker compose file, container "klipper" crashes as "klipper-priv" has primary access to the dev folder (I need to be able to run both). I tried mounting all of the /opt/run directories for all containers that used it in the /tmp directory on host, but Klipper again crashed and for reasons I don't know why (configured logging driver does not support reading). Is there another way to pass klipper.tty to Octoprint? MY Octoprint's compose file is under ~/docker/octoprint, and the compose file for prind is in ~/docker/prind. |
I don't think it was clear that I was referring to your setup where octoprint is run outside of prind and not running both Frontends with prind. As you discovered, this does not work because klipper is set up differently for each frontend. Scenario 1You'd configure the [...]
## Add your personal config here
services:
klipper:
privileged: true
volumes:
- /dev:/dev
- ./config:/opt/cfg
- run:/opt/run
- gcode:/opt/gcode
- log:/opt/log
[...] Scenario 2It would problably be the cleanest setup if you add an ocotprint service to your override file, instead of running octoprint via a second docker compose stack. Something like this: [...]
## Add your personal config here
services:
klipper:
privileged: true
volumes:
- /dev:/dev
- ./config:/opt/cfg
- run:/opt/run
- gcode:/opt/gcode
- log:/opt/log
octoprint-kerta1n:
image: octoprint/octoprint:minimal
restart: unless-stopped
depends_on:
klipper:
condition: service_started
privileged: true
ports:
- 3000:3000
volumes:
- /dev:/dev
- run:/opt/run
- octoprint:/octoprint
- ./config/octoprint.yaml:/octoprint/octoprint/config.yaml
[...] |
After trying this, it appears that klipper.tty is attached to my SSH terminal: for example, telling Octoprint to connect to /opt/run/klipper.tty sends the GCode |
Override file for reference:
|
Running the stack as another user won't make any difference, as users are handled within the containers. I have no Idea what is happening with the Output appearing on your Terminal. |
I'm running Octoprint in a separate container, on a separate port so that there is no interference, but when I attach to the klipper container, there is nothing in /tmp (using Mainsail profile currently). Do I have to actually switch my profile to Octoprint? The only reason I need to have both running is because it seems to be easier to run Obico (TSD) in Octoprint rather than Mainsail/Fluidd.
The text was updated successfully, but these errors were encountered: