Code Monkey home page Code Monkey logo

Comments (6)

truong0vanchien avatar truong0vanchien commented on July 30, 2024

Hi, do I need to manually create a home directory and tmp directory in docker volume? Since Octoprint in docker cannot see printer.cfg and log when starting.

from prind.

mkuf avatar mkuf commented on July 30, 2024

Hi there,

You'd have to add /opt/run/klipper.tty to the list of additional Ports in Octoprint.

With Release v0.5.4 I added an initial configuration for octoprint so no manual interaction is necessary.
Just update the Repo and bring the stack up again.

-Markus

from prind.

mkuf avatar mkuf commented on July 30, 2024

From a1a7f84#commitcomment-76006795

Hi Mkuf, thanks for your effort. But how can I deal about printer.cfg and klippy.log? Yesterday, I had to create a printer.cfg in Octoprint at first, then I looked up this file in the docker directory. After locating the root folder, I created a klippy.log in tmp folder. Is there any ways to work on that? Thanks in advance.

@truong0vanchien
Your config is stored within the config Directory of this repository and is then mounted into the Containers at runtime. So your personal config goes into these files, as stated in Configuring Klipper/Moonraker

There is no need for you to copy any files into containers.
klippy.log is accessable on your host via the prind_log docker volume.
I don't think I can follow you on why you would need a printer.cfg within the octoprint container, could you elaborate on this?

-Markus

from prind.

truong0vanchien avatar truong0vanchien commented on July 30, 2024

From a1a7f84#commitcomment-76006795

Hi Mkuf, thanks for your effort. But how can I deal about printer.cfg and klippy.log? Yesterday, I had to create a printer.cfg in Octoprint at first, then I looked up this file in the docker directory. After locating the root folder, I created a klippy.log in tmp folder. Is there any ways to work on that? Thanks in advance.

@truong0vanchien Your config is stored within the config Directory of this repository and is then mounted into the Containers at runtime. So your personal config goes into these files, as stated in Configuring Klipper/Moonraker

There is no need for you to copy any files into containers. klippy.log is accessable on your host via the prind_log docker volume. I don't think I can follow you on why you would need a printer.cfg within the octoprint container, could you elaborate on this?

-Markus

Hi Mkuf, github took me a while to find your comment via email.

As you were saying that the config in this repo will automatically be mounted to config in the Octoprint, weren't you?

But as I remember when deploying Octoprint, it kept saying "Klippy.log" not found, "printer.cfg" not found, "/tmp/printer" not found. So I had to manually create a printer.cfg via Octoprint in order to locate the root folder in Docker directory, from that point I created /tmp/Klipper.log. Then there was no alert about "Klippy.log" and "printer.cfg" but still got no "/tmp/printer".

If you are right, I think it should be no alert about "printer.cfg" at the beginning. Anyways, I think I will test this update later on.

Thanks for your support.

from prind.

mkuf avatar mkuf commented on July 30, 2024

As you were saying that the config in this repo will automatically be mounted to config in the Octoprint, weren't you?

Yes, this is what prind is all about. A turnkey solution for your 3d printers software.

But as I remember when deploying Octoprint, it kept saying "Klippy.log" not found, "printer.cfg" not found, "/tmp/printer" not found. So I had to manually create a printer.cfg via Octoprint in order to locate the root folder in Docker directory, from that point I created /tmp/Klipper.log. Then there was no alert about "Klippy.log" and "printer.cfg" but still got no "/tmp/printer".

Maybe you installed a plugin that requires these files? Octoprint itself does not know or require any of them. Please open a new issue if you encounter this behaviour again and attach a logfile.

-Markus

from prind.

truong0vanchien avatar truong0vanchien commented on July 30, 2024

As you were saying that the config in this repo will automatically be mounted to config in the Octoprint, weren't you?

Yes, this is what prind is all about. A turnkey solution for your 3d printers software.

But as I remember when deploying Octoprint, it kept saying "Klippy.log" not found, "printer.cfg" not found, "/tmp/printer" not found. So I had to manually create a printer.cfg via Octoprint in order to locate the root folder in Docker directory, from that point I created /tmp/Klipper.log. Then there was no alert about "Klippy.log" and "printer.cfg" but still got no "/tmp/printer".

Maybe you installed a plugin that requires these files? Octoprint itself does not know or require any of them. Please open a new issue if you encounter this behaviour again and attach a logfile.

-Markus

Hi Markus, sure, I will issue the new ticket when meeting this again.
Since now I am fine with your Fluidd, I will try Octoprint later in the near future.
Thanks and regards.

from prind.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.