mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 05:35:30 +02:00
[GH-ISSUE #167] [Bug]: Printer MQTT cant connect #106
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy#106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LucHeart on GitHub (Jan 28, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/167
Originally assigned to: @maziggy on GitHub.
Bug Description
Trying to setup bambuddy, via docker, network mode host
Input the IP, my serial number, and access code.
I know these are correct since they work in both orca and via the home assistant integration. Lan mode is obviously enabled.
I think its important to note that im on an old firmware version, due to the authorization drama, and my printer has not access to WAN.
My printer is reachable from the host machine, and pingable.
Expected Behavior
It should work.
Steps to Reproduce
Honestly, not sure, i suspect it has todo with my firmware version if anything.
Printer Model
P1S
Bambuddy Version
v0.1.6b11
Printer Firmware Version
01.07.00.00
Installation Method
Docker
Operating System
Linux (Ubuntu/Debian)
Relevant Logs / Support Package
Screenshots
No response
Additional Context
bambuddy-support-20260128-110721.zip
Checklist
@cadtoolbox commented on GitHub (Jan 28, 2026):
Based on my experience, the firmware not being more recent is definitely the cause of this issue. I'm not sure of your network situation but without updated firmware, connecting outside of the current subnet is impossible.
@LucHeart commented on GitHub (Jan 28, 2026):
its in the same subnet, and the printer is reachable, guess ill update afterall
@cadtoolbox commented on GitHub (Jan 28, 2026):
@LucHeart The more recent firmware allows for offline updates using the SD card. The trick is getting it updated to the version that allows this if you're not on WAN to start with. I just had to do this recently by turning off LAN mode only and Wi-Fi on temporarily using my phone as a hotspot. Now that it's updated through, it's much easier in LAN mode using the SD card method.
@maziggy commented on GitHub (Jan 28, 2026):
To debug the issue please attach a support package -> https://wiki.bambuddy.cool/features/system-info/?h=debug#enable-debug-logging
@LucHeart commented on GitHub (Jan 28, 2026):
there is already one attached with relevant logs inside...
@maziggy commented on GitHub (Jan 28, 2026):
Oh...sorry. Shouldn't do that much things at the same time. Will check.
@maziggy commented on GitHub (Jan 28, 2026):
I also suspect the old firmware. MQTT connection is using SSL. Python's ssl.create_default_context() disables TLS 1.0 and TLS 1.1 by default for security reasons.
I'm sorry.
@LucHeart commented on GitHub (Jan 28, 2026):
I will update and report back if that worked.
@LucHeart commented on GitHub (Jan 28, 2026):
That did not fix it, same exact errors.
@maziggy commented on GitHub (Jan 28, 2026):
There must be something wrong with your environment, there are already a lot of P1S users. Also the logs don't show any errors.
@LucHeart commented on GitHub (Jan 28, 2026):
Yes
Yes
Yes
Yes
I can even open a mqtt connection to the printer with a script...
@LucHeart commented on GitHub (Jan 28, 2026):
this is my current docker compose, printer is in the same network, all ports are open
i got curious and checked via a program if its really reachable from this vm, and yes it is. This outputs a json with various info about the printer, so the connection works.
@maziggy commented on GitHub (Jan 28, 2026):
So you ran the script in Bambuddy's Docker container?
Very curious.
Can you run it without Docker for a short test?
@maziggy commented on GitHub (Jan 28, 2026):
And I would suggest to use branch 0.1.6-final.
@LucHeart commented on GitHub (Jan 28, 2026):
i'll try that
@maziggy commented on GitHub (Jan 29, 2026):
Does it work?
@LucHeart commented on GitHub (Jan 29, 2026):
Soo i cloned main, set it up locally, works.
Funny enough, I delete the printer on my docker hosted one, re-add it, and it works.
Not sure what is going on here, couldnt have been the access code since i reapplied that one anyways after firmware updating. Maybe that didnt save? Or it was broken in some other way, it works now. Thanks for you help regardless, even though its very unsatisfying for the issue to just vanish after readding the printer.
@maziggy commented on GitHub (Jan 29, 2026):
Shit happens! ;)