What hardware are you using for hosting klipper and mainsail? Are you using a pi and mainsail os or a pi with raspberry pi os and kiauh to setup klipper and mainsail? Could you post your klippy.log?
3DPrinting
3DPrinting is a place where makers of all skill levels and walks of life can learn about and discuss 3D printing and development of 3D printed parts and devices.
The r/functionalprint community is now located at: [email protected] or [email protected]
There are CAD communities available at: [email protected] or [email protected]
Rules
-
No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia. Code of Conduct.
-
Be respectful, especially when disagreeing. Everyone should feel welcome here.
-
No porn (NSFW prints are acceptable but must be marked NSFW)
-
No Ads / Spamming / Guerrilla Marketing
-
Do not create links to reddit
-
If you see an issue please flag it
-
No guns
-
No injury gore posts
If you need an easy way to host pictures, https://catbox.moe may be an option. Be ethical about what you post and donate if you are able or use this a lot. It is just an individual hosting content, not a company. The image embedding syntax for Lemmy is ![](URL)
Moderation policy: Light, mostly invisible
Hardware is a Pi4, 4GB. I've looked through the log, don't know how to upload file here for you to look through it, and it's too long for character limit. It does indicate issues with the serial port, either permission denied in the case i tried tty0 symlink, or no such file or directory when going strait to the serial/by-id.
I've tried many setups. First was following https://www.klipper3d.org/Installation.html#obtain-a-klipper-configuration-file With octopi. Next was another guide that I can't seem to find the link to again. But was a default raspbian lite x32, and installing klipper and mainsail on top with kiauh. next was this guide https://www.obico.io/blog/install-klipper-ender-3/ which I modified for the Ender5+ (what processor to compile for)
I've had varying success, initial try the USB wouldn't show in serial/by-id, I swapped cables and still had no entry. Swapped cables back and tried the next guide/OS, and that gave me the entry in serial/by-id.
also I Tried using the symlink tty0, but that didn't work either.
For the current OS/Setup I think i've messed with too many things, and just need to start over from fresh OS. But I can't think of anything different to try.
Since you mention permissions/access denied, have you given your user permissions to use serial? You can do this with:
sudo usermod -a -G dialout $USER
What is the output of:
ls -al /dev/serial/by-id/*
This is likely the problem. I'll try it when I get off work.
Thanks!!
Thank you for pointing me in the right direction.
Pi Imager lets you option for a username change. I changed it originally, and mainsail is setup for "pi" user normally.
I reflashed with pi Imager, without changing username, and it all is working now.
Awesome, I’m glad you we were able to get it solved and it get everything back working.
I forgot you will also need tty access, so you'll also need to do:
sudo usermod -a -G tty $USER
After that you will need to relogin in order for the changes to take effect. I'd say just to reboot so you know everything is reloaded with:
sudo reboot now
These are all of course assumptions based on your mentioning permissions, and without any logs to verify. If you decide to go with the nuclear option and redo the OS and setup I'd recommend looking at using https://github.com/th33xitus/kiauh. It will allow you to setup Mainsail, but also you can try other front end options as well. Just something to consider if you decide not to continue troubleshooting and opt to start over.
Also, make sure [include mainsail.cfg] is present in your printer.cfg file. Apparently this is important when changing frontends (octoprint -> mainsail).
Have you tried using another USB cable? I got stuck for too long on account of using a non-data cable...
Have you verified the /dev/serial/.... file path to the printer? Have you tried changing the path to match other people's config file? I believe the path is determined by the STM chip on the printer mainboard, so anyone else with an Ender 5+ might have the correct path.
Only other suggestion is to check if the host is successfully opening the connection with the printer. You can try lsusb and dmesg and scrub through the output to see if the STM device is being registered properly.
This is my best advice as a Linux novice. When in doubt, as much as I hate to say it, there might be an old Reddit post of someone having the same issue.
Would you mind sharing how you found the port ID and the line you made for it in printer.cfg? Assuming the USB cable works, this is the next thing I'd check.
Found the port ID by ls /dev/serial/by-id/* I only have one usb device connected, the printer.
I didn't make a new line in the printer.cfg, just edited the [mcu] serial: /dev/serial/by-id/usbXXXXXXXX To match the id I found in the previous command.
That sounds right. And "klipper" is in the XXXXXX part, right?
How did you install klipper? Are you using mainsailos, or did you install manually? Or with KIAUH? I have an ender 3 and ender 5+, both running klipper. I used the official raspberry pi imager program to install mainsailos to both SD cards, and things went fairly smoothly.
What error message are you seeing in mainsail? I'm wondering if klipper doesn't have permission to access the USB device, but that seems unlikely if you are using mainsailos.
Are you still having issues? I just rebuilt my e5p (Klipper, Fluidd, bigtreetech skr mini e3 v3, and new screen) and have been working out the bugs. Everything is working good so far, but still need to find tune the printer.
Nope, found my problem with the install of mainsail being a permissions thing.
I'm still running the stock board, but have upgraded to a remote direct drive extruder.