mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[GH-ISSUE #735] [Bug]: X1C Virtual Printer not accepting Sends #492
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
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-maziggy-1#492
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 @VREmma on GitHub (Mar 17, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/735
Originally assigned to: @maziggy on GitHub.
Bug Description
My X1C Virtual Printer is not accepting SEND jobs in dev or v0.2.2 releases. Works with A1 or H2D models and Virtual Printers already setup. Even changed the X1C to H2D and it worked then (but for wrong printer type). BambuStudio and Virtual Printers are on the same VLAN. Linux VM has no firewall rules loaded.
Expected Behavior
Since I have the virtual printer set to Review mode, I expected it to get the upload, then put it in the archive for review.
Steps to Reproduce
Im BambuStudio, slice a print for X1C, then send it to a virtual printer setup as X1C (In Review Mode).
Printer Model
X1 Carbon
Bambuddy Version
v0.2.2
Printer Firmware Version
N/A
Installation Method
Manual (git clone)
Operating System
Linux (Ubuntu/Debian)
Relevant Logs / Support Package
bambuddy-support-20260317-090445.zip
Screenshots
Additional Context
No response
Checklist
@maziggy commented on GitHub (Mar 17, 2026):
All your VP's are set to mode review :)
@VREmma commented on GitHub (Mar 17, 2026):
Yes, I want to review them so I can name them correctly. I usually print from queue, and this was working fine until my A1's memory card slot died last night, so I started moving it workflow over to the X1C...
@maziggy commented on GitHub (Mar 17, 2026):
Now I also got it. Was on the wrong path. Sorry for that. After the 25th ticket I'm seeing bubbles :)
@maziggy commented on GitHub (Mar 17, 2026):
You're right, the bug only affected the X1C.
Available in branch dev and available with the next release or daily build.
@VREmma commented on GitHub (Mar 17, 2026):
But its still showing the same error when sending to the X1C... Verified in the Virtual Printers that its setup to the new code...
@maziggy commented on GitHub (Mar 17, 2026):
No wait....a git pull didn't show any new files? That cannot be. If you do a git pull you should see latest commit
commit
6be5fa6632(HEAD -> dev, origin/dev)Author: maziggy mz@v8w.de
Date: Tue Mar 17 16:40:16 2026 +0100
when doing a "git log".
@VREmma commented on GitHub (Mar 17, 2026):
@VREmma commented on GitHub (Mar 17, 2026):
bambuddy-support-20260317-110805.zip
@maziggy commented on GitHub (Mar 17, 2026):
Every time you are trying to send the file it shows
Let me check the related code once again.
@maziggy commented on GitHub (Mar 17, 2026):
Still cannot reproduce the issue.
Please do the following:
I've added some more debug logs and we should see what's happening.
@VREmma commented on GitHub (Mar 17, 2026):
bambuddy-support-20260317-115323.zip
@VREmma commented on GitHub (Mar 17, 2026):
Now... it might be something tied to secondary aliases... I can print to the X1C VP when its on the default IP of the server... and I can print to the same thing when I change it to H2D. But I can't print to a printer that's not on the primary IP at this point. So it might not be an X1C thing that Im seeing...
@maziggy commented on GitHub (Mar 17, 2026):
I've been able to reproduce and resolve a similar issue on my end. The root cause was stale or misconfigured iptables NAT rules that redirect port 990 → 9990 (and the passive data port range 50000-50100). When these rules get duplicated or fall out of sync, the FTP connection either gets refused or silently redirected to the wrong place.
Could you try the following?
sudo iptables -t nat -L PREROUTING -n -v --line-numbers
sudo iptables -t nat -D PREROUTING -p tcp --dport 990 -j REDIRECT --to-port 9990
sudo iptables -t nat -D PREROUTING -p tcp --dport 50000:50100 -j REDIRECT
sudo iptables -t nat -I PREROUTING -p tcp --dport 990 -j REDIRECT --to-port 9990
sudo iptables -t nat -I PREROUTING -p tcp --dport 50000:50100 -j REDIRECT
Also, I've added better diagnostics to the VP FTP/MQTT logs in the latest dev build — each log line now shows which virtual printer it belongs to (e.g. [Virtual - X1C]), which will make it much easier to trace issues like this in the future.
Let me know if that resolves it!
@VREmma commented on GitHub (Mar 17, 2026):
Okay, did as you suggested, and even went as far as rebooting (after persisting the rules), and I am still getting the same thing on secondary ips...
bambuddy-support-20260317-123220.zip
@maziggy commented on GitHub (Mar 17, 2026):
It always shows
2026-03-17 12:31:41,526 WARNING [backend.app.services.virtual_printer.ftp_server] [Virtual-X1] FTP failed login from [IP] (access code mismatch)
2026-03-17 12:31:50,973 WARNING [backend.app.services.virtual_printer.mqtt_server] [Virtual-X1] MQTT auth failed for user 'bblp' (access code mismatch)
@maziggy commented on GitHub (Mar 17, 2026):
Sorry, but also when choosing an interface alias I cannot reproduce the issue. Hmmm....let me think about it a little bit.
@maziggy commented on GitHub (Mar 17, 2026):
How many diigits has your access code?
@maziggy commented on GitHub (Mar 17, 2026):
Wait....when looking at your screenshot again: you have no target printer selected?!
@VREmma commented on GitHub (Mar 17, 2026):
I dont have a target printer... because I have multiple of some printers. I end up printing to the VP, and storing it in the archive, so I can have my wife send prints after she clears plates, without having to do slicer stuff herself... I have also hit the logout button in BambuStudio for each Virtual Printer to onboard them again inside the slicer. Its weird, it was working on a previous version (I dont remember the build / tag) until I did upgrades yesterday...
If its just me, i'll live with it.
@maziggy commented on GitHub (Mar 17, 2026):
The error is clear
But why is that?
@VREmma commented on GitHub (Mar 17, 2026):
Each printer had a different access code before.... When I just set them both to the same thing (12345678), they both work now....
@maziggy commented on GitHub (Mar 17, 2026):
OMG, now that's a clue! I'm also using the same code for all my VP.
That should be easy to fix. Will do it tomorrow morning first. Done with today :)
@maziggy commented on GitHub (Mar 18, 2026):
The problem was more complex than I thought.
Anyway...this is fixed in branch dev.
Please note: the new VP setup no longer required port redirection for FTPS. Please check docs/migration-vp-ftp-port.md for required changes.