Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading fails (timeout) #82

Closed
Nuc1eoN opened this issue Dec 25, 2023 · 12 comments
Closed

Uploading fails (timeout) #82

Nuc1eoN opened this issue Dec 25, 2023 · 12 comments

Comments

@Nuc1eoN
Copy link

Nuc1eoN commented Dec 25, 2023

Hello I have just installed Cura2MoonrakerPlugin and configured my printers IP including port number.

However uploading fails:
image

Cura log:

INFO - [MainThread] MoonrakerConnection.MoonrakerOutputDevice._onUploadFilenameAccepted [254]: Connecting to Moonraker at http://192.168.0.107:7125
/.
DEBUG - [MainThread] UM.TaskManagement.HttpRequestManager._onRequestError [369]: request[3e301e85][get][PyQt6.QtCore.QUrl('')][timeout=None][no-data] got an QNetworkReplyError Error transferring  - server replied: Bad Request. The server returned: b'<html>\r\n<head><title>400 Bad Request</title></head>\r\n<body>\r\n<center><h1>400 Bad Request</h1></center>\r\n<hr><center>nginx/1.18.0</center>\r\n</body>\r\n</html>\r\n'

The mailsail interface is reachable over my web browser. Moonraker also is up and running:
http://192.168.0.107:7125/server/info

{"result": {"klippy_connected": true, "klippy_state": "ready", "components": ["klippy_connection", "application", "jsonrpc", "internal_transport", "websockets", "dbus_manager", "database", "file_manager", "klippy_apis", "secrets", "template", "shell_command", "machine", "data_store", "proc_stats", "job_state", "job_queue", "http_client", "announcements", "webcam", "extensions", "history", "update_manager", "octoprint_compat", "authorization"], "failed_components": [], "registered_directories": ["config", "logs", "gcodes", "config_examples", "docs"], "warnings": [], "websocket_count": 2, "moonraker_version": "v0.8.0-231-gcc5dea7", "missing_klippy_requirements": [], "api_version": [1, 4, 0], "api_version_string": "1.4.0"}}

http://192.168.0.107:7125/
image

I have also checked firewall but it all seems ok. Only the Cura2MoonrakerPlugin seems to have a problem connecting.

Cura v5.6

EDIT:
I was thinking of chiming in on #81 however my printer is turned ON and the upload still fails.
Here is the http://192.168.0.107:7125/printer/info response:

{"result": {"state": "ready", "state_message": "Printer is ready", "hostname": "asx1", "klipper_path": "/home/printman/klipper", "python_path": "/home/printman/klippy-env/bin/python", "process_id": 520, "user_id": 1000, "group_id": 1000, "log_file": "/home/printman/printer_data/logs/klippy.log", "config_file": "/home/printman/printer_data/config/printer.cfg", "software_version": "v0.12.0-40-g77619e91", "cpu_info": "4 core ARMv7 Processor rev 4 (v7l)"}}
@ThGIGA
Copy link

ThGIGA commented Jan 4, 2024

The same thing is happening to me. Please help. !!!

I'm using the OctoPrint plugin at the moment which "does work" (kinda), but it's missing information when I see Mainsail.

However, I would prefer to use the Moonraker plugin because when i upload the file to the printer because it appears with more information un the web.

@Nuc1eoN
Copy link
Author

Nuc1eoN commented Jan 4, 2024

@ThGIGA just for your information, orcaslicer works great with mainsail out of the box, no need for a plugin!

@emtrax-ltd
Copy link
Owner

Are you using the latest version 1.7.2 of the plugin?

@ThGIGA
Copy link

ThGIGA commented Jan 5, 2024

@emtrax-ltd, yes ,I have downloaded it from the market and from here, Github. And I haven't been able to get it to work.

@Nuc1eoN
Copy link
Author

Nuc1eoN commented Jan 6, 2024

@emtrax-ltd I am on v1.7.2 from marketplace, yes.

@emtrax-ltd
Copy link
Owner

Try out this branch: https://github.com/emtrax-ltd/Cura2MoonrakerPlugin/tree/pwrdevfix - in this branch are some changes in the process of connecting and uploading

@ThGIGA
Copy link

ThGIGA commented Jan 9, 2024

Sin título

Still not working ... Sad

@emtrax-ltd
Copy link
Owner

Sin título

Still not working ... Sad

I don't know about your Moonraker/Klipper installation, but it looks like the Moonraker API is not reverse-proxyed (Nginx) over port 80. Therefore, it is probably necessary to specifically specify the port of the Moonraker API in the plugin configuration -> http://192.168.0.127:7125

@ThGIGA
Copy link

ThGIGA commented Jan 10, 2024

@emtrax-ltd
It seems to be working now with the latest version and setting the IP with the port as shown in the image of the plugin

@Nuc1eoN Try this with the latest version, see if it works for you too.
image
image
image

@Nuc1eoN
Copy link
Author

Nuc1eoN commented Jan 11, 2024

It does not work here:
image

I don't know about your Moonraker/Klipper installation, but it looks like the Moonraker API is not reverse-proxyed (Nginx) over port 80. Therefore, it is probably necessary to specifically specify the port of the Moonraker API in the plugin configuration -> http://192.168.0.127:7125/

I have the stock mainsail OS setup on raspi pretty much.

@ThGIGA
Copy link

ThGIGA commented Jan 13, 2024

@Nuc1eoN
Copy link
Author

Nuc1eoN commented Jan 13, 2024

Yes that is the branch I've used.

Before I've used that branch, the error message was different (timeout). Now it says 'NetworkError...' like in the screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants