#Installing mainsail on Debian klippy_state: "error"

35 messages · Page 1 of 1 (latest)

robust hawk
#

{"result": {"klippy_connected": true, "klippy_state": "error", "components": ["klippy_connection", "application", "websockets", "internal_transport", "dbus_manager", "database", "file_manager", "klippy_apis", "secrets", "template", "shell_command", "machine", "data_store", "proc_stats", "job_state", "job_queue", "http_client", "announcements", "webcam", "extensions", "history", "octoprint_compat", "update_manager", "authorization"], "failed_components": [], "registered_directories": ["config", "logs", "gcodes", "config_examples", "docs"], "warnings": [], "websocket_count": 0, "moonraker_version": "v0.8.0-138-gfe12095", "missing_klippy_requirements": [], "api_version": [1, 3, 0], "api_version_string": "1.3.0"}} Doing the manual install for https://docs.mainsail.xyz/setup/getting-started/manual-setup and got to the http://<printer-ip>:7125/server/info step without any problems and when I got to the website I got this error. Does the web ui rely on the printer firmware? I tried to flash it and I am 99% sure I flashed it correctly

echo quiver
#

Have you loaded your printer specific config file and added the required lines yet?

wary lynx
#

How about simple and a klipper.log …

willow anvil
#

And just to be sure, that you know that this output isn't any problem for the installation process. This step is just to show that moonraker is working. You can go on with the manual. If everything is setup then, you should see a better message describing the error, with a button to download the klipper log

robust hawk
#

from systemctl status nginx

     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2023-08-11 15:25:44 CEST; 46s ago
       Docs: man:nginx(8)
    Process: 420 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCES>
    Process: 435 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 444 (nginx)
      Tasks: 2 (limit: 2307)
     Memory: 13.6M
        CPU: 45ms
     CGroup: /system.slice/nginx.service
             ├─444 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
             └─446 nginx: worker process

Aug 11 15:25:43 Mainsail systemd[1]: Starting A high performance web server and a reverse proxy server...
Aug 11 15:25:44 Mainsail systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Aug 11 15:25:44 Mainsail systemd[1]: Started A high performance web server and a reverse proxy server.```
#

from systemctl status moonraker

● moonraker.service - API Server for Klipper SV1
     Loaded: loaded (/etc/systemd/system/moonraker.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2023-08-11 15:25:44 CEST; 2min 33s ago
   Main PID: 461 (python)
      Tasks: 4 (limit: 2307)
     Memory: 39.7M
        CPU: 860ms
     CGroup: /system.slice/moonraker.service
             └─461 /home/hjalle/moonraker-env/bin/python /home/hjalle/moonraker/moonraker/moonraker.py -d /home/hjalle/printer_data

Aug 11 15:25:48 Mainsail python[461]: [app.py:register_remote_handler()] - Registering HTTP endpoint: (GET POST) /printer/objects/subscribe
Aug 11 15:25:48 Mainsail python[461]: [websockets.py:register_api_handler()] - Registering Websocket JSON-RPC methods: printer.objects.subscribe
Aug 11 15:25:48 Mainsail python[461]: [klippy_connection.py:_request_initial_subscriptions()] - Webhooks Subscribed
Aug 11 15:25:48 Mainsail python[461]: [klippy_connection.py:_request_initial_subscriptions()] - GCode Output Subscribed
Aug 11 15:25:48 Mainsail python[461]: [klippy_connection.py:_check_ready()] -
Aug 11 15:25:48 Mainsail python[461]: Option 'serial' in section 'mcu' must be specified
Aug 11 15:25:48 Mainsail python[461]: Once the underlying issue is corrected, use the "RESTART"
Aug 11 15:25:48 Mainsail python[461]: command to reload the config and restart the host software.
Aug 11 15:25:48 Mainsail python[461]: Printer is halted
Aug 11 15:26:16 Mainsail python[461]: [authorization.py:_check_trusted_connection()] - Trusted Connection Detected, IP: 192.168.1.195```
wary lynx
#

I really really recommend the use of kiauh to install Mainsail/moonraker if you can not use a MainsailOS

wary lynx
#

Kiauh should works on any linux distribution

#

But that insures the e.g. the nginx files are as we expect them to be

#

Because your problem now is nginx

robust hawk
#

oh i assumed it didn't work since it mentioned raspian oslite

wary lynx
#

Not sure why you believed that

#

But I would recommend removing moonraker and mainsail with kiauh and then installing both again

#

It can not be more broken than now 😂 and if it works as I expect it, it would solve all of us a lot of time

robust hawk
robust hawk
wary lynx
#

Nope, but the recommendation would be pi lite for pi‘s and any Debian distribution for the rest

#

Before the shortage at least 90% of SBCs used in Klipper printers where PIs, that the reason why any guide/tool mentioned them

echo quiver
#

I used KIAUH on Debian 11 and 12 systems without issue

#

@robust hawk is this a system dedicated to the printer for the most part? If so I have some recommendations.

robust hawk
#

if you know what that is

echo quiver
#

Do you have to use their os, or can it be installed over any installed distribution?

#

I did a lot to get mainsail/klipper installed on Debian 12. 11 was easier but no where near as streamlined as using Raspberry Pi's distro of bullseye with their desktop.

#

Only downside is it's a 32bit system.

robust hawk
#

proxmox is a virtualization operating system

#

so it's a os with a bunch of virtual machines

#

so I can have any os

echo quiver
#

Everything in this is package is where kiauh expects it to be

#

Also uses raspi-config like shown in mainsail's docs

robust hawk
robust hawk
#

It worked perfectly! I'm configuring mainsail rn tysm