Comments (7)
First of all, thank you for the great work.
I have the same issue, but I'm not sure if we need a special compose for prtainer. Im using potainer 2.11.1 on a MeCool M8S Pro W with Armbian installed. I copied the docker-compose.yml content into a custom template and deployed the stack. The fluidd and mainsail containers are running but try to connect to an invalid printer MeCool_IP:8010 respective 8011. Mainsail is unusabe. For Fluidd you can try to add a new printer. An extemal printer is working, but the local klipper container does not answer.
I copied the config files to the moonraker_data volume using WinSCP, but this does not help either. There is no answer to http://MeCool_IP:7125/server/info
I can not get into a container console, the container seems to be restarting continually. The log lists permission errors:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/supervisor/loggers.py", line 98, in emit
msg = self.fmt % record.asdict()
File "/usr/local/lib/python3.10/site-packages/supervisor/loggers.py", line 287, in asdict
now = time.time()
PermissionError: [Errno 1] Operation not permitted
Error: Cannot open an HTTP server: socket.error reported errno.EPERM (1)
For help, use /usr/local/bin/supervisord -h
My docker skills are not sufficient. Any hints what to do?
from klipper-web-control-docker.
I added a 'privileged: true' line to the klipper service. Not the smartest idea but klipper is able to start now and I can access the container console. I had to copy all config files to .config but these files are not visible in fluidd.
Is the docker-compose.yml missing to propagate the moonraker_data volume to the fluidd and mainsail services or is this achieved by the link statement?
Finally moonraker can not access the .config folder. I did a 'chmod -r a+w .config' but that did not help. Still get a warning:
Moonraker Warnungen gefunden.
Moonraker does not have permission to access path (/home/klippy/.config) for (config).
[machine]: DBus Connection Not available, systemd service tracking and actions are disabled
from klipper-web-control-docker.
I'm also fighting with this docker to work.
similar case:
- Klipper starts
- Moonraker fail - missing config file, after coping starts
- copied printer.cfg not visible neither in fluidd nor mainsail, in both unable to load the file
File "/home/klippy/moonraker/moonraker/app.py", line 882, in prepare
fm.check_write_enabled()
File "/home/klippy/moonraker/moonraker/components/file_manager/file_manager.py", line 199, in check_write_enabled
raise self.server.error(
utils.ServerError: Write access is currently disabled. Check notifications for warnings.
[app.py:log_request()] - 500 OPTIONS /server/files/upload (192.168.x.x) [No User] 9.51ms
but I have no idea about what check_write_enabled it says about even when chmod on files and folder done and privileged set to true in docker.
Any ideas?
from klipper-web-control-docker.
Here is my Docker-compose, the container you need to worry about is the Klipper-Moonraker one, the others do not have any data (itself). If you clone this repo you can check the Config folder (I have just redirected it to another path and all is working)
Be sure to copy all the "config" files from this repo to your new path together with your printer.cfg and adjust them following the documentation (cited below).
version: '3.4'
services:
klipper:
image: dimalo/klipper-moonraker:latest
container_name: klipper
environment:
- TZ=Europe/Madrid #Change to your Timezone
ports:
- 7125:7125
volumes: #Change path accordingly
- (Path you want)/klipper/gcode_files:/home/klippy/gcode_files
- (Path you want)/klipper/config:/home/klippy/.config
- (Path you want)/klipper/moonraker_data:/home/klippy/.moonraker
devices:
- /dev/serial/by-id/device:/dev/serial/by-id/device #You can find this with this command: ls /dev/serial/by-id/*
restart: unless-stopped
fluidd:
image: cadriel/fluidd:latest
container_name: fluidd
environment:
- TZ=Europe/Madrid #Change to your Timezone
ports:
- 8010:80
depends_on:
- klipper
links:
- klipper:klipper
mainsail:
image: dimalo/mainsail:latest
container_name: mainsail
environment:
- TZ=Europe/Madrid #Change to your Timezone
ports:
- 8011:80
depends_on:
- klipper
links:
- klipper:klipper
restart: unless-stopped
Ensure that the host folder permissions are correct (allowing the user to write, read and execute)
I am still trying to get the webcam to work properly, I have managed to print without issues.
I also recommend you to have a deep read here:
https://moonraker.readthedocs.io/en/latest/configuration/ since this is what controls everything aparently.
PS: I am also new to Klipper.
from klipper-web-control-docker.
Hi,
The Docker-compose file is basically the same, but mine is not working.
Maybe it's related to #41 - have to check. Currently I've installed outside the docker as a regular install and it works fine.
from klipper-web-control-docker.
Hi, The Docker-compose file is basically the same, but mine is not working. Maybe it's related to #41 - have to check. Currently I've installed outside the docker as a regular install and it works fine.
For your error I would check the folder permissions on the host. looks like the issue is that.
from klipper-web-control-docker.
Hi, The Docker-compose file is basically the same, but mine is not working. Maybe it's related to #41 - have to check. Currently I've installed outside the docker as a regular install and it works fine.
For your error I would check the folder permissions on the host. looks like the issue is that.
I've chmoded files and folders and even set privileged mode so it must be something different.
I think I will stay with installed directly at least for now, maybe in near future I will go with second attempt ;)
from klipper-web-control-docker.
Related Issues (20)
- Include build-essential and gcc-arm-none-eabi to allow making firmwares HOT 2
- Include vim
- Problems with upload HOT 2
- WebCam with timelapse configuration HOT 3
- Canβt access config files in Fluidd
- Permission denied: '/home/klippy/.config/moonraker.conf' leads to 502 Bad Gateway issue HOT 7
- client.cfg needs to be updated with new path
- Include file '/home/klippy/.config/fluidd.cfg' does not exist HOT 1
- Cannot validate service file HOT 1
- moonraker image contains wrong path to config HOT 1
- support compiling bin file HOT 1
- Provide the container for unraid
- klipper on Synology NAS
- issues trying to use adxl345
- Add support for armv7h? HOT 1
- Error start moonraker
- Unable to connect to mcu HOT 6
- How-to: automatic restart klipper in docker container when printer is turned on
- Unable to upload gcode
- Unable build docker-compose
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 klipper-web-control-docker.