1
0
Fork 0
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

Closed
opened 2026-05-07 00:10:49 +02:00 by BreizhHardware · 23 comments

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

Image

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this bug hasn't already been reported
  • I am using the latest version of Bambuddy
  • My printer is set to LAN Only mode
  • My printer has Developer Mode enabled
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](https://github.com/user-attachments/files/26056697/bambuddy-support-20260317-090445.zip) ### Screenshots <img width="606" height="617" alt="Image" src="https://github.com/user-attachments/assets/be52c1bf-9dbc-4cde-85f2-335b50ed4479" /> ### Additional Context _No response_ ### Checklist - [x] I have searched existing issues to ensure this bug hasn't already been reported - [x] I am using the latest version of Bambuddy - [x] My printer is set to LAN Only mode - [x] My printer has Developer Mode enabled
BreizhHardware 2026-05-07 00:10:49 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@maziggy commented on GitHub (Mar 17, 2026):

All your VP's are set to mode review :)

<!-- gh-comment-id:4075517976 --> @maziggy commented on GitHub (Mar 17, 2026): All your VP's are set to mode review :)
Author
Owner

@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...

<!-- gh-comment-id:4075528945 --> @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...
Author
Owner

@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 :)

<!-- gh-comment-id:4075574276 --> @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 :)
Author
Owner

@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.

<!-- gh-comment-id:4075839857 --> @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.
Author
Owner

@VREmma commented on GitHub (Mar 17, 2026):

(venv) bambuddy@bambuddy:/bambuddy$ git pull
Already up to date.
(venv) bambuddy@bambuddy:
/bambuddy$ git status
On branch dev
Your branch is up to date with 'origin/dev'.

nothing to commit, working tree clean
(venv) bambuddy@bambuddy:~/bambuddy$

But its still showing the same error when sending to the X1C... Verified in the Virtual Printers that its setup to the new code...

Image
<!-- gh-comment-id:4076005687 --> @VREmma commented on GitHub (Mar 17, 2026): > (venv) bambuddy@bambuddy:~/bambuddy$ git pull > Already up to date. > (venv) bambuddy@bambuddy:~/bambuddy$ git status > On branch dev > Your branch is up to date with 'origin/dev'. > > nothing to commit, working tree clean > (venv) bambuddy@bambuddy:~/bambuddy$ But its still showing the same error when sending to the X1C... Verified in the Virtual Printers that its setup to the new code... <img width="1263" height="741" alt="Image" src="https://github.com/user-attachments/assets/3c840fe7-a5e1-4381-a231-4f71ada3f3c6" />
Author
Owner

@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

  [Fix] Camera window overlapping modals (#738)

  Floating camera viewer used z-50, same as all modals, causing it to
  render on top of dialogs like Assign Spool. Lowered to z-40 so modals
  always stack above the camera window.

when doing a "git log".

<!-- gh-comment-id:4076040286 --> @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 6be5fa6632bc214d9aa83bf39252e904faafc724 (HEAD -> dev, origin/dev) Author: maziggy <mz@v8w.de> Date: Tue Mar 17 16:40:16 2026 +0100 [Fix] Camera window overlapping modals (#738) Floating camera viewer used z-50, same as all modals, causing it to render on top of dialogs like Assign Spool. Lowered to z-40 so modals always stack above the camera window. when doing a "git log".
Author
Owner

@VREmma commented on GitHub (Mar 17, 2026):

Image
<!-- gh-comment-id:4076126977 --> @VREmma commented on GitHub (Mar 17, 2026): <img width="797" height="487" alt="Image" src="https://github.com/user-attachments/assets/7e4d4b54-a6f1-4e13-839f-66a893abc1ba" />
Author
Owner

@VREmma commented on GitHub (Mar 17, 2026):

bambuddy-support-20260317-110805.zip

<!-- gh-comment-id:4076150114 --> @VREmma commented on GitHub (Mar 17, 2026): [bambuddy-support-20260317-110805.zip](https://github.com/user-attachments/files/26059940/bambuddy-support-20260317-110805.zip)
Author
Owner

@maziggy commented on GitHub (Mar 17, 2026):

Every time you are trying to send the file it shows

2026-03-16 22:01:24,215 INFO [backend.app.services.virtual_printer.ftp_server] FTP -> [IP]: 530 Login incorrect
2026-03-16 22:01:24,215 WARNING [backend.app.services.virtual_printer.ftp_server] FTP failed login from [IP]
2026-03-16 22:01:24,216 INFO [backend.app.services.virtual_printer.ftp_server] FTP session ended from [IP]

Let me check the related code once again.

<!-- gh-comment-id:4076208713 --> @maziggy commented on GitHub (Mar 17, 2026): Every time you are trying to send the file it shows >2026-03-16 22:01:24,215 INFO [backend.app.services.virtual_printer.ftp_server] FTP -> [IP]: 530 Login incorrect >2026-03-16 22:01:24,215 WARNING [backend.app.services.virtual_printer.ftp_server] FTP failed login from [IP] >2026-03-16 22:01:24,216 INFO [backend.app.services.virtual_printer.ftp_server] FTP session ended from [IP] Let me check the related code once again.
Author
Owner

@maziggy commented on GitHub (Mar 17, 2026):

Still cannot reproduce the issue.

Please do the following:

  1. delete your X1C VP
  2. disable all other VP instances
  3. pull dev branch and rrestart Bambuddy
  4. Enable debug logging
  5. Add X1C VP on review mode and set access code
  6. Try again to send files via slicer

I've added some more debug logs and we should see what's happening.

<!-- gh-comment-id:4076360258 --> @maziggy commented on GitHub (Mar 17, 2026): Still cannot reproduce the issue. Please do the following: 1. delete your X1C VP 2. disable all other VP instances 3. pull dev branch and rrestart Bambuddy 4. Enable debug logging 5. Add X1C VP on review mode and set access code 6. Try again to send files via slicer I've added some more debug logs and we should see what's happening.
Author
Owner

@VREmma commented on GitHub (Mar 17, 2026):

bambuddy-support-20260317-115323.zip

<!-- gh-comment-id:4076470819 --> @VREmma commented on GitHub (Mar 17, 2026): [bambuddy-support-20260317-115323.zip](https://github.com/user-attachments/files/26061210/bambuddy-support-20260317-115323.zip)
Author
Owner

@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...

<!-- gh-comment-id:4076480703 --> @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...
Author
Owner

@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?

  1. Check your current iptables NAT rules:
    sudo iptables -t nat -L PREROUTING -n -v --line-numbers
  2. Look for any rules involving ports 990 or 50000:50100. If you see duplicates or stale entries, remove them all:
    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
  3. (Repeat each command until it says "No chain/target/match by that name" — that means all copies are removed.)
  4. Re-add them cleanly:
    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
  5. Restart Bambuddy and try sending again.

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!

<!-- gh-comment-id:4076622315 --> @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? 1. Check your current iptables NAT rules: sudo iptables -t nat -L PREROUTING -n -v --line-numbers 2. Look for any rules involving ports 990 or 50000:50100. If you see duplicates or stale entries, remove them all: 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 2. (Repeat each command until it says "No chain/target/match by that name" — that means all copies are removed.) 3. Re-add them cleanly: 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 4. Restart Bambuddy and try sending again. 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!
Author
Owner

@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...

Image

bambuddy-support-20260317-123220.zip

<!-- gh-comment-id:4076756553 --> @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... <img width="862" height="257" alt="Image" src="https://github.com/user-attachments/assets/a9fd0eaf-149b-447f-9d3a-5e55ac621716" /> [bambuddy-support-20260317-123220.zip](https://github.com/user-attachments/files/26062302/bambuddy-support-20260317-123220.zip)
Author
Owner

@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)

<!-- gh-comment-id:4076810648 --> @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)
Author
Owner

@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.

<!-- gh-comment-id:4076833096 --> @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.
Author
Owner

@maziggy commented on GitHub (Mar 17, 2026):

How many diigits has your access code?

<!-- gh-comment-id:4076857553 --> @maziggy commented on GitHub (Mar 17, 2026): How many diigits has your access code?
Author
Owner

@maziggy commented on GitHub (Mar 17, 2026):

Wait....when looking at your screenshot again: you have no target printer selected?!

Image
<!-- gh-comment-id:4076896150 --> @maziggy commented on GitHub (Mar 17, 2026): Wait....when looking at your screenshot again: you have no target printer selected?! <img width="1263" height="741" alt="Image" src="https://github.com/user-attachments/assets/2cc8cdbb-5072-423f-bc9e-79f2b254269c" />
Author
Owner

@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.

<!-- gh-comment-id:4076938006 --> @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.
Author
Owner

@maziggy commented on GitHub (Mar 17, 2026):

The error is clear

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)

But why is that?

<!-- gh-comment-id:4076973110 --> @maziggy commented on GitHub (Mar 17, 2026): The error is clear >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) But why is that?
Author
Owner

@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....

<!-- gh-comment-id:4077062826 --> @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....
Author
Owner

@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 :)

<!-- gh-comment-id:4077084698 --> @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 :)
Author
Owner

@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.

<!-- gh-comment-id:4080494251 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy-maziggy-1#492
No description provided.