bambulab / BambuStudio

PC Software for BambuLab and other 3D printers
GNU Affero General Public License v3.0
1.93k stars 267 forks source link

Sending print over the lan failed (Err -4020) #3575

Open ReverantGR opened 7 months ago

ReverantGR commented 7 months ago

Bambu Studio Version

v01.08.04.51_20240117

Where is the application from?

Bambu Lab github releases

OS version

OpenSUSE 15.4

Additional system information

AMD 5950x 64GB RAM AMD RX6600XT

Printer

Bambu Lab X1E (Ethernet, LAN Mode) Fw 01.00.02.00

How to reproduce

Open Bambu Studio, open any project, slice, click Print Plate, click Send.

Actual results

Sending print job over LAN failed. Error: -4020 Error: Failed to upload print file to FTP. Please the network status and try again. Extra info: [ftp code]: 9 [reason]: Access denied to remote resource: Server denied you to change to the given directory.

Expected results

Printer should proceed with the print and not deny. Works fine on Windows on v1.8.2.56.

Project file & Debug log uploads

log.zip 0.20mm-Bambu-PLA-Profile.zip

Checklist of files to include

walterwongbbl commented 7 months ago

@ReverantGR 4020 indicates an attempt to establish a connection with the printer, but failed. Usually, this type of failure is related to the network. You can try using your computer to ping the printer's IP and check if it is connected. Also, please provide the log of Studio. https://wiki.bambulab.com/en/x1/troubleshooting/bambu-studio-log

elvenwhite commented 7 months ago

Same symptom here. Able to ping the printer, also able to connect it via FTP. I was able to Send, but unable to Print plate.

Tried power cycling, turning Lan only mode off then on, and resetting access code. No success.

walterwongbbl commented 7 months ago

Hi. @elvenwhite May I ask if you can provide Studio's LOG logs? I will help you analyze the issue.

elvenwhite commented 7 months ago

bambulab.zip Hope this helps. I suspect there's something with character set, because the problem occurs with some specific 3MF only.

LayerCakeMakes commented 6 months ago

I didn't get the logs at the time but this just happened to me yesterday again too on my X1C. 2024-03-08 13_09_54-Send print job to

Viewing the local lan video stream through bambu studio worked fine but the upload always failed.

So far this has happened twice too me and the only way to get it working again is doing a printjob through the cloud and then switching to LAN mode again.

I also noticed that the status website linked in the error message showed that the "Printer Services" -> "Binding" was experiencing issues this time, I hope this is not related as everything should be local ... but maybe it isn't.

LayerCakeMakes commented 6 months ago

It seems to happen for me with this print profile for example: https://makerworld.com/en/models/59601#profileId-62387 I just opened it in Bambu Studio switched to X1C as the printer and 0.2 Standard profile.

walterwongbbl commented 6 months ago

@LayerCakeMakes We will try to reproduce and fix this issue

serpent213 commented 5 months ago

Just stumbled upon the same thing. I think it happened when I used Unicode in the Fusion project title (a “–” in this case) and then exported (“3D Print”) the design as 3MF project (even though the 3MF filename did NOT contain Unicode later on).

Edit: Full title was like Filter Adapter 1"–1/4"; could well be one of the other symbols. Escaping the slash...?

Running in LAN mode, macOS.

eolder commented 5 months ago

I've experienced this with many models from Makerworld. I cannot reproduce with the above linked profile, so I've included an example that causes this for me - https://makerworld.com/en/models/174561#profileId-191936

EDIT: LAN-Mode P1S running firmware v01.05.02.00

EDIT 2: I can also confirm the export to .stl fixes the issue, but also strips color.

Element115sw commented 5 months ago

Ditto. This model https://makerworld.com/en/models/239797?from=search#profileId-263097 after changing nozzle from 0.4mm to 0.2mm.

EDIT: Saving to .stl works but is annoying.

MostHated commented 5 months ago

I am getting this -4020 error when trying to print from lan with the following: https://makerworld.com/en/models/162780#profileId-215962

The issue presents as being network related, but isn't. I am printing something else right now as we speak, streaming the video of it via ffplay. It certainly does seem like there is something wrong/corrupt with the project file or something along those lines.

There are a few project downloads I have done which do this, and exporting to stl worked, but this particular project is 9 plates and setup quite specifically. I would much rather figure out what the actual issue is so things work as intended, so I don't have to try and recreate the entire setup again from scratch via exporting dozens of items to stl's. Especially trying to recreate it while barely being able to read a good portion of the UI.

AngelDLM08 commented 5 months ago

Recently updated firmware on X1C from stock one, and problem starts... Used only in LAN-only before and got no issues at all. Now I have FTP errors -4020 but two different codes: 28: Timeout was reached: FTP response timeout and after closing and opening OrcaSlicer 25: Upload failed (at start/before it took off): Failed FTP upload: 533

I suspect it something with bambu network plugin that OrcaSlicer installs from bambu since the only way I was able to sent print via wifi is reboot printer, disable network plugin, reboot OrcaSlicer, enable network plugin and only then send print file

walterwongbbl commented 5 months ago

We have reproduced this issue, which seems to be related to the character set. We will fix this issue.

walterwongbbl commented 5 months ago

If the model file comes from Maker World, it will enforce the use of names from Maker World when sending prints. However, if the name contains special characters, it can cause the sending to fail. We will take some measures, such as filtering out special characters from the name.

probonopd commented 4 months ago

Same issue trying to print https://makerworld.com/en/models/206463?from=search#profileId-226622 using Bambu Studio on Windows 11 (German) and A1 mini with factory firmware (not updated because updating is apparently not possible in LAN mode)

image

Editing the name to just "honey" did not help:

image

Is there any workaround?

AngelDLM08 commented 4 months ago

I suspect it something with bambu network plugin that OrcaSlicer installs from bambu since the only way I was able to sent print via wifi is reboot printer, disable network plugin, reboot OrcaSlicer, enable network plugin and only then send print file

Was wrong about that, just coincidence, find a way - connecting through another subnet and all works like a charm. Seems after updating X1C to 01.07.03.00 it suffers from unclear for me network issue

AngelDLM08 commented 4 months ago

Same issue trying to print https://makerworld.com/en/models/206463?from=search#profileId-226622 using Bambu Studio on Windows 11 (German) and A1 mini with factory firmware (not updated because updating is apparently not possible in LAN mode)

image

Editing the name to just "honey" did not help:

image

Is there any workaround?

Try FileZilla to connect to FTP, IP - on printer username - bblp password - same as for studio port - 990

probonopd commented 4 months ago

Other files can be printed. So it must be something about this 3mf file from Maker World.

AngelDLM08 commented 4 months ago

Other files can be printed. So it must be something about this 3mf file from Maker World.

Try to print that using OrcaSlicer, fork of bambu studio

probonopd commented 4 months ago

Just tried that, fails in the same way. Other files print.

walterwongbbl commented 4 months ago

@probonopd @AngelDLM08 We have fixed this issue and a new version will be released later.

probonopd commented 4 months ago

Thanks @walterwongbbl, it works for me in the version 1.9.1 Public Official. 👍

eolder commented 4 months ago

Thanks @walterwongbbl and team.

eolder commented 4 months ago

looks like it was this commit, 1bcf30c, for anyone who was curious :)

AngelDLM08 commented 4 months ago

Recently updated firmware on X1C from stock one, and problem starts... Used only in LAN-only before and got no issues at all. Now I have FTP errors -4020 but two different codes: 28: Timeout was reached: FTP response timeout and after closing and opening OrcaSlicer 25: Upload failed (at start/before it took off): Failed FTP upload: 533

I suspect it something with bambu network plugin that OrcaSlicer installs from bambu since the only way I was able to sent print via wifi is reboot printer, disable network plugin, reboot OrcaSlicer, enable network plugin and only then send print file

I found solution for my problem - disable windows firewall, IDK why that matter since with A1mini works fine. Got nothing with that issue, but still can be relevant for someone

JW97 commented 1 month ago

On a similar note, I've also been struggling with FTP -4020 errors on a corporate network (after lots of issues getting discovery functioning in our network config). We have prints get through to the printer on occasion, but quite often we get 'FTP Timeout errors'.

The file makes it to the printer, as removing and re-inserting the SD Card to trigger a refresh pulls in the file.

Very annoying, and not what we expected purchasing this machine.

Does anyone, or Bamnu themselves have any suggestions?

tudi55 commented 2 weeks ago

If you use SolidWorks, exporting as AP203 instead of AP214 solved the problem for me in some cases.

houseofbugs commented 1 week ago

Tried all the things in the suggestions here. Still having this issue with the ftp error 9. Really sad that a $1400 machine fails at printing over the network vs my crappy ender machines with octoprint..