Comments (14)
Hi,
Yes i was asked several times if kiauh will support multi instances anytime soon or if its planned. At the moment, i am not working on such a functionality but i see that its frequently requested. I have to see if i can manage to wrap my head around a way to provide such functions.
from kiauh.
@teikjoon That is something the webinterface has to support. If you take a look at Mainsail for example, you will see that it's already possible there and it will show the additional services. Fluidd doesn't support that yet and needs an update to do so.
Thanks for quick reply @th33xitus - I guess I'll have to go log an issue with Fluidd then :)
from kiauh.
Just a short update.
One might already have noticed, there is a second branch named kiauh-rework
where i am reworking quite a lot of the script.
Mainly due to implementing multi instance installer capabilities.
It is still not 100% complete but already functional. So if anyone feels adventurous, feel free to checkout kiauh-rework
. @1N4148
from kiauh.
Should be solved with 16e6dde
Closing...
from kiauh.
Switched to a single Pi per printer so I cannot test at the moment. But I'll prepare a test environment the next days to test your work :)
from kiauh.
Awesome :) Feedback and further testing is always welcome! I will reopen this issue here, so we can just continue in here then.
from kiauh.
Found your tool by accident and looks great as i want to run multiple printers.
But i have the FluiddPi image and seems as your installer did not install everything it wont work to make multiple instances of Moonraker / Klipper.
Any idea how to proceed?
from kiauh.
@Prutsium If you are starting off a fresh FluiddPi image you already have Klipper and Moonraker installed.
You need to uninstall the pre-installed installations first, then run the KIAUH Installer for Klipper again. You will then get asked how many instances you want to set up.
My own tests with MainsailOS and FluiddPi worked.
from kiauh.
@Prutsium If you are starting off a fresh FluiddPi image you already have Klipper and Moonraker installed.
You need to uninstall the pre-installed installations first, then run the KIAUH Installer for Klipper again. You will then get asked how many instances you want to set up.My own tests with MainsailOS and FluiddPi worked.
Ok might be something for the readme in that case :) Anyway thanks will try this (and hope i dont screw up my config :) )
from kiauh.
@Prutsium If you are starting off a fresh FluiddPi image you already have Klipper and Moonraker installed.
You need to uninstall the pre-installed installations first, then run the KIAUH Installer for Klipper again. You will then get asked how many instances you want to set up.My own tests with MainsailOS and FluiddPi worked.
Sorry to tag you again but ok i have 2 x Klipper, 2 x Moonraker and both api's are up.
Now i want to add the 2nd printer to Fluidd but how do i enter it? add printer and IP:port seems not be the way.
from kiauh.
@Prutsium If you are starting off a fresh FluiddPi image you already have Klipper and Moonraker installed.
You need to uninstall the pre-installed installations first, then run the KIAUH Installer for Klipper again. You will then get asked how many instances you want to set up.
My own tests with MainsailOS and FluiddPi worked.Sorry to tag you again but ok i have 2 x Klipper, 2 x Moonraker and both api's are up.
Now i want to add the 2nd printer to Fluidd but how do i enter it? add printer and IP:port seems not be the way.
I solved this but using the IP address of the host (e.g. 192.168.0.200:7126) for the 2nd instance of moonraker (and by extension klipper)
from kiauh.
Not sure if I should necro this old thread instead of opening a new one, but it seems the multiple instance is working...I have 2x klipper/moonraker running on one host and everything works, except for the 'restart' functions.
This is probably since fluidd is trying to restart the service 'klipper' instead of 'klipper-1' or 'klipper-2' that is set up by KIAUH.
Is there any way we can have one more configuration variable, i.e. a sequence # or simply some variable which we can define the service name (e.g. klipper-1, moonraker-1) so that the 'restart service' button works?
Thanks.
from kiauh.
@teikjoon That is something the webinterface has to support. If you take a look at Mainsail for example, you will see that it's already possible there and it will show the additional services. Fluidd doesn't support that yet and needs an update to do so.
from kiauh.
Simple fix:
create /etc/systemd/system/klipper.service
[Unit]
Description=Bundle all klipper-x services
After=network.service
[Service]
Type=oneshot
ExecStart=/bin/true
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
create /etc/systemd/system/moonraker.service
[Unit]
Description=Bundle all moonraker-x services
After=network.service
[Service]
Type=oneshot
ExecStart=/bin/true
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
in klipper-*.service replace the Unit and Install section...
[Unit]
Description=Starts klipper instance 1 on startup
After=klipper.service
PartOf=klipper.service
[Install]
WantedBy=klipper.service
in moonraker-*.service replace the Unit and Install section...
[Unit]
Description=Starts Moonraker xxx on startup
After=moonraker.service
PartOf=moonraker.service
[Install]
WantedBy=moonraker.service
execute
sudo systemctl daemon-reload
sudo systemctl enable klipper.service moonraker.service
sudo systemctl start klipper.service moonraker.service
Now "sudo systemctl restart klipper" restarts all klipper instances w/o any change to the frontend.
from kiauh.
Related Issues (20)
- Cloning Klipper from https://github.com/Klipper3d/klipper : failed! HOT 3
- Set name to access in local network HOT 2
- local dep for unzip missing in fluidd.sh and mainsail.sh HOT 1
- Bad ref for git/logs/refs/remotes/origin/protoupdate
- BeagleBone Black and Replicape
- feat: only git clone --depth 1 HOT 1
- Add to main menu installation for BDsensor
- Kiauh custom repo reports differently than what is installed
- Nginx upstreams.conf edit breaks RatOS 2.1 HOT 1
- Repo branch has "()" in the name HOT 1
- Extend the Katapult support for the full automation of MCU updates
- Update menu error when Spoolman not installed HOT 1
- Feature Request: Access to home directory via `~/` for `[gcode_shell_command]` HOT 1
- possible `rm -rf /` during screen installation HOT 4
- bug: missing nacl Libs HOT 8
- Virtualenv error on fresh bookworm install HOT 3
- Broken link to "OctoApp For Klipper" in readme file HOT 1
- allow offline install from local github repositories for local installation and network resource management HOT 3
- unable to select new klipper repo added to klipper_repos.txt HOT 1
- Unable to install using custom Repo 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 kiauh.