Printer stoped. Conection closed

Hello. I installed Ubuntu and Repetier Server on my Orange Pi Zero 3. I loaded the backups of the 3D printers that I had on another Orange Pi and set everything up. However, the problem I'm having is that whenever I try to print, regardless of the printer, I encounter the same issue. It starts printing, but then randomly stops. Sometimes, the print gets stuck, only laying down a few lines before getting stuck again, repeating the process. Other times, it just stops altogether and doesn't work anymore. These are the errors that the different log files are throwing:


Gcodefile.log:

Send:2:58:25.921: N68101 G1 X114.777 Y231.079 E.0759
Recv:2:58:25.968: ok (N68101)
Send:2:58:25.969: N68102 G1 X114.784 Y231.088 E.00059
Recv:2:58:25.994: ok (N68102)
Send:2:58:25.994: N68103 G1 X115.538 Y232.203 E.06954
Recv:2:58:26.001: ok (N68103)
Send:2:58:26.001: N68104 G1 X116.172 Y233.263 E.06427
Recv:2:58:26.038: ok (N68104)
Send:2:58:26.038: N68105 G1 X116.697 Y234.24 E.05753
Mesg:2:58:30.047: Warning: Communication timeout - resetting communication buffer.
Mesg:2:58:30.047: This means that a expected firmware response was not seen within the expected time.
Mesg:2:58:30.048: The typical reason is a communication error and print should continue after the communication reset.
Mesg:2:58:30.048: Connection status: Buffered:38, Manual Commands: 0, Job Commands: 5000
Mesg:2:58:30.048: Buffer used:38 Enforced free byte:0 lines stored:1
Send:2:58:30.048: N68106 G1 X116.966 Y234.833 E.03357
Mesg:2:58:34.048: Warning: Communication timeout - resetting communication buffer.


server.log:

2024-03-24 01:17:15: Connection started: (B1) Ender-3 Max - H2
2024-03-24 01:17:15: Internal reset printer (B1) Ender-3 Max - H2
2024-03-24 01:17:15: Reset printer (B1) Ender-3 Max - H2
2024-03-24 01:46:33: Updating info for /var/lib/Repetier-Server/printer/B1_Ender3_Max__H2/jobs/00000073_35896_TextCora-Unicornio.g printer B1_Ender3_Max__H2
2024-03-24 01:46:35: start printjob 35896_TextCora-Unicornio on printer (B1) Ender-3 Max - H2
2024-03-24 01:46:43: Time analysing /var/lib/Repetier-Server/printer/B1_Ender3_Max__H2/jobs/00000073_35896_TextCora-Unicornio.g:10208571 us
2024-03-24 02:35:15: usbreset: /usr/bin/sudo /usr/local/Repetier-Server/bin/usbreset /dev/serial/by-path/platform-5200000.usb-usb-0:1.4:1.0-port0
2024-03-24 02:35:15: error: Reading conection failed: End of file. Closing connection. 
2024-03-24 02:35:15: (B1) Ender-3 Max - H2: Your OS syslog contains these messages close to this disconnect that might help to understand:
2024-03-24 02:35:15: (B1) Ender-3 Max - H2: syslog:  [  251.488734] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
2024-03-24 02:35:15: (B1) Ender-3 Max - H2: syslog:  [ 3002.348966] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
2024-03-24 02:35:15: Connection closed during print ... trying reconnect for 10 seconds to continue ...
2024-03-24 02:35:15: Port closed for (B1) Ender-3 Max - H2
2024-03-24 02:35:15: Connection closed: (B1) Ender-3 Max - H2
2024-03-24 02:35:15: Connection continued: (B1) Ender-3 Max - H2
2024-03-24 02:58:37: usbreset: /usr/bin/sudo /usr/local/Repetier-Server/bin/usbreset /dev/serial/by-path/platform-5200000.usb-usb-0:1.4:1.0-port0
2024-03-24 02:58:37: error: Reading conection failed: End of file. Closing connection. 
2024-03-24 02:58:37: (B1) Ender-3 Max - H2: Your OS syslog contains these messages close to this disconnect that might help to understand:
2024-03-24 02:58:37: (B1) Ender-3 Max - H2: syslog:  [ 4415.420926] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
2024-03-24 02:58:37: Connection closed during print ... trying reconnect for 10 seconds to continue ...
2024-03-24 02:58:37: Port closed for (B1) Ender-3 Max - H2
2024-03-24 02:58:37: Connection closed: (B1) Ender-3 Max - H2


syslog

Mar 24 02:40:09 orangepizero3 systemd[1]: Starting system activity accounting tool...
Mar 24 02:40:09 orangepizero3 systemd[1]: sysstat-collect.service: Deactivated successfully.
Mar 24 02:40:09 orangepizero3 systemd[1]: Finished system activity accounting tool.
Mar 24 02:45:01 orangepizero3 CRON[3455]: (root) CMD (/usr/lib/orangepi/orangepi-truncate-logs)
Mar 24 02:45:01 orangepizero3 CRON[3456]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Mar 24 02:50:23 orangepizero3 systemd[1]: Starting system activity accounting tool...
Mar 24 02:50:23 orangepizero3 systemd[1]: sysstat-collect.service: Deactivated successfully.
Mar 24 02:50:23 orangepizero3 systemd[1]: Finished system activity accounting tool.
Mar 24 02:55:01 orangepizero3 CRON[3734]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Mar 24 02:58:26 orangepizero3 kernel: [ 4404.347093] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
Mar 24 02:58:37 orangepizero3 kernel: [ 4415.420926] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
Mar 24 02:58:37 orangepizero3 kernel: [ 4415.421054] ch341 1-1.4:1.0: device disconnected
Mar 24 02:58:37 orangepizero3 kernel: [ 4415.498510] usb 1-1.4: reset full-speed USB device number 4 using ehci-platform
Mar 24 02:58:52 orangepizero3 kernel: [ 4430.882481] usb 1-1.4: device descriptor read/64, error -110
Mar 24 02:59:08 orangepizero3 kernel: [ 4446.498433] usb 1-1.4: device descriptor read/64, error -110
Mar 24 02:59:08 orangepizero3 kernel: [ 4446.686409] usb 1-1.4: reset full-speed USB device number 4 using ehci-platform
Mar 24 02:59:23 orangepizero3 kernel: [ 4462.114363] usb 1-1.4: device descriptor read/64, error -110
Mar 24 02:59:39 orangepizero3 kernel: [ 4477.730303] usb 1-1.4: device descriptor read/64, error -110
Mar 24 02:59:39 orangepizero3 kernel: [ 4477.918294] usb 1-1.4: reset full-speed USB device number 4 using ehci-platform
Mar 24 02:59:50 orangepizero3 kernel: [ 4488.610256] usb 1-1.4: device not accepting address 4, error -110
Mar 24 02:59:50 orangepizero3 kernel: [ 4488.690251] usb 1-1.4: reset full-speed USB device number 4 using ehci-platform
Mar 24 03:00:01 orangepizero3 kernel: [ 4499.362225] usb 1-1.4: device not accepting address 4, error -110
Mar 24 03:00:01 orangepizero3 kernel: [ 4499.362846] usb 1-1.4: USB disconnect, device number 4
Mar 24 03:00:01 orangepizero3 systemd[1]: Starting system activity accounting tool...
Mar 24 03:00:01 orangepizero3 systemd[1]: sysstat-collect.service: Deactivated successfully.
Mar 24 03:00:01 orangepizero3 systemd[1]: Finished system activity accounting tool.
Mar 24 03:00:01 orangepizero3 kernel: [ 4499.442267] usb 1-1.4: new full-speed USB device number 5 using ehci-platform
Mar 24 03:00:01 orangepizero3 CRON[3875]: (root) CMD (/usr/lib/orangepi/orangepi-truncate-logs)
Mar 24 03:00:16 orangepizero3 kernel: [ 4514.850154] usb 1-1.4: device descriptor read/64, error -110
Mar 24 03:00:32 orangepizero3 kernel: [ 4530.470111] usb 1-1.4: device descriptor read/64, error -110
Mar 24 03:00:32 orangepizero3 kernel: [ 4530.658056] usb 1-1.4: new full-speed USB device number 6 using ehci-platform
Mar 24 03:00:47 orangepizero3 kernel: [ 4546.082031] usb 1-1.4: device descriptor read/64, error -110
Mar 24 03:01:03 orangepizero3 kernel: [ 4561.697974] usb 1-1.4: device descriptor read/64, error -110
Mar 24 03:01:03 orangepizero3 kernel: [ 4561.810115] usb 1-1-port4: attempt power cycle
Mar 24 03:01:04 orangepizero3 kernel: [ 4562.413965] usb 1-1.4: new full-speed USB device number 7 using ehci-platform
Mar 24 03:01:14 orangepizero3 kernel: [ 4573.089929] usb 1-1.4: device not accepting address 7, error -110
Mar 24 03:01:14 orangepizero3 kernel: [ 4573.169926] usb 1-1.4: new full-speed USB device number 8 using ehci-platform
Mar 24 03:01:25 orangepizero3 kernel: [ 4583.841869] usb 1-1.4: device not accepting address 8, error -110
Mar 24 03:01:25 orangepizero3 kernel: [ 4583.842112] usb 1-1-port4: unable to enumerate USB device
Mar 24 03:05:01 orangepizero3 CRON[4017]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Mar 24 03:10:01 orangepizero3 CRON[4153]: (root) CMD (test -e /run/systemd/system || SERVICE_MODE=1 /sbin/e2scrub_all -A -r)
Mar 24 03:10:23 orangepizero3 systemd[1]: Starting system activity accounting tool...
Mar 24 03:10:23 orangepizero3 systemd[1]: sysstat-collect.service: Deactivated successfully.
Mar 24 03:10:23 orangepizero3 systemd[1]: Finished system activity accounting tool.
Mar 24 03:10:45 orangepizero3 systemd[1]: Starting Online ext4 Metadata Check for All Filesystems...
Mar 24 03:10:45 orangepizero3 systemd[1]: e2scrub_all.service: Deactivated successfully.
Mar 24 03:10:45 orangepizero3 systemd[1]: Finished Online ext4 Metadata Check for All Filesystems.
Mar 24 03:15:01 orangepizero3 CRON[4291]: (root) CMD (/usr/lib/orangepi/orangepi-truncate-logs)
Mar 24 03:15:01 orangepizero3 CRON[4292]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Mar 24 03:17:01 orangepizero3 CRON[4354]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Mar 24 03:20:23 orangepizero3 systemd[1]: Starting system activity accounting tool...
Mar 24 03:20:23 orangepizero3 systemd[1]: sysstat-collect.service: Deactivated successfully.
Mar 24 03:20:23 orangepizero3 systemd[1]: Finished system activity accounting tool.
Mar 24 03:25:01 orangepizero3 CRON[4577]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Mar 24 03:30:01 orangepizero3 CRON[4714]: (root) CMD (test -e /run/systemd/system || SERVICE_MODE=1 /usr/lib/aarch64-linux-gnu/e2fsprogs/e2scrub_all_cron)
Mar 24 03:30:01 orangepizero3 CRON[4715]: (root) CMD (/usr/lib/orangepi/orangepi-truncate-logs)
Mar 24 03:30:20 orangepizero3 systemd[1]: Starting system activity accounting tool...
Mar 24 03:30:20 orangepizero3 systemd[1]: sysstat-collect.service: Deactivated successfully.
Mar 24 03:30:20 orangepizero3 systemd[1]: Finished system activity accounting tool.

Comments

  • I see 2 things. Problem onw seem
    2024-03-24 02:35:15: (B1) Ender-3 Max - H2: syslog:  [  251.488734] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
    which might be the reason you get communication issues. Then you have usb reconnect on timeout set and I guess it is on early so server tries to recover the connection be resetting the usb line, which is why linux restarts driver after you see 
    2024-03-24 02:35:15: usbreset: /usr/bin/sudo /usr/local/Repetier-Server/bin/usbreset /dev/serial/by-path/platform-5200000.usb-usb-0:1.4:1.0-port0

    So first try setting it to never to see if this is the ugly reason why we implemented it - driver crash due to communication errors. If it just gets an error and continues it should stay that way. If it hangs until you reset usb manually it is required and you should check if there are sources of electric interference or unstable power for pi (see bolt menu in server if you had undervoltage). These can improve likeliness of errors.
Sign In or Register to comment.