Offline (Error: Printer requested line ## but no sufficient history is available, can't resend)


#1

What is the problem?
Since the recent update to OctoPrint 1.3.8 I am seeing more and more of these messages with nothing in common, lines ##'s are different and I have tried to print different items that have never had this issue before.
At random I will get(most recent example):
"Offline (Error: Printer requested line 1003 but no sufficient history is available, can't resend)"
The print job stops, the heatbed shuts off, however the printhead stays on. It will do this sometimes mid print, sometimes at 90 percent, basically it doesn't matter where the print job is.

What did you already try to solve it?
Tried different prints, reset controllers

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)

OctoPrint Ver 1.38
OctoPi 0.13.0
Raspberry Pi 3 w/Raspbian Jessie


#2

Just an update, I just 3dprinted one of the items that was timing out with OctoPrint. I wrote it to an sdcard and directly printed it from the printer without any problems.


#3

Still having issues on and off with this, this just happened a few minutes ago, I am forced to use the SDcard at this point if I want something reliable I don't know what else to try, cables were replaced, I was using WiFi, now cabled ethernet, what else can I do?

Recv: ok
Send: N54248 G1 X143.118 Y132.936 E10.2965*102
Recv: Error:Line Number is not Last Line Number+1, Last Line: 54245
Recv: Resend: 54246
Send: N54246 G1 X144.906 Y135.402 E10.1468*102
Recv: ok
Send: N54247 G1 X142.440 Y132.936 E10.2721*110
Recv: ok
Recv: ok
Send: N54248 G1 X143.118 Y132.936 E10.2965*102
Recv: Error:Line Number is not Last Line Number+1, Last LinN5454245
Recv: Resend: 54246
Send: N54249 G1 X145.291 Y135.109 E10.4069*99
Send: N54247 G1 X142.440 Y132.936 E10.2721*110
Recv: ok
Send: N54248 G1 X143.118 Y132.936 E10.2965*102
Recv: ok
Send: N54249 G1 X145.291 Y135.109 E10.4069*99
Recv: ok
Send: N54250 G1 X145.329 Y135.078 E10.4086*111
Recv: Error:Line Number is not Last Line Number+1, Last Line: 54249
Recv: Resend: 54250
Recv: ok
Send: N54250 G1 X145.329 Y135.078 E10.4086*111
Recv: ok
Send: N54251 G1 X145.331 Y135.077 E10.4087*105
Send: N54252 G1 X145.333 Y135.075 E10.4088*101
Recv: ok
Send: N54253 G1 X145.334 Y135.074 E10.4088*98
Recv: Error:Line Number is not Last Line Number+1, Last Line: 54250
Recv: Resend: 54251
Recv: ok
Send: N54251 G1 X145.331 Y135.077 E10.4087*105
Recv: ok
Send: N54252 G1 X145.333 Y135.075 E10.4088*101
Recv: Error:Line Number is not Last Line Number+1, Last Line: 54250
Recv: Resend: 54251
Send: N54253 G1 X145.334 Y135.074 E10.4088*98
Recv: ok
Send: N54251 G1 X145.331 Y135.077 E10.4087*105
Recv: ok
Recv: ok
Send: N54252 G1 X145.333 Y135.075 E10.4088*101
Send: N54253 G1 X145.334 Y135.074 E10.4088*98
Recv: ok
Send: N54254 G1 X145.335 Y135.073 E10.4089*98
Send: N54255 G1 X145.337 Y135.071 E10.4090*107
Recv: Error:Line Number is not Last Line Number+1, Last Line: 54253
Recv: Resend: 54254
Recv: ok
Send: N54254 G1 X145.335 Y135.073 E10.4089*98
Recv: Error:No LinN54254 G with checksum, Last Line: 54253
Send: N54255 G1 X145.337 Y135.071 E10.4090*107
Recv: Error:Line Number is not Last Line Number+1, Last Line: 54253
Recv: Resend: 54254
Recv: ok
Send: N54254 G1 X145.335 Y135.073 E10.4089*98
Send: N54255 G1 X145.337 Y135.071 E10.4090*107
Recv: Error:No Line Number with checksum, Last Line: 54253
Send: N54256 G1 X145.338 Y135.070 E10.4090*102
Recv: ok
Send: N54257 G1 X145.340 Y135.069 E10.4091*97
Recv: ok
Send: N54258 G1 X145.342 Y135.067 E10.4092*97
Recv: Error:Line Number is not Last Line Number+1, Last Line: 54255
Recv: Resend: 54256
Recv: ok
Send: N54256 G1 X145.338 Y135.070 E10.4090*102
Send: N54257 G1 X145.340 Y135.069 E10.4091*97
Recv: Error:No Line Number with checksum, Last Line: 54255
Send: N54258 G1 X145.342 Y135.067 E10.4092*97
Recv: Error:Line Number is not Last Line Number+1, Last Line: 54255
Recv: Resend: 54256
Recv: ok
Send: N54256 G1 X145.338 Y135.070 E10.4090*102
Send: N54257 G1 X145.340 Y135.069 E10.4091*97
Recv: Error:No Line Number with checksum, Last Line: 54255
Send: N54258 G1 X145.342 Y135.067 E10.4092*97
Recv: Error:Line Number is not Last Line Number+1, Last Line: 54255
Recv: Resend: 54256
Recv: ok
Send: N54256 G1 X145.338 Y135.070 E10.4090*102
Recv: ok
Recv: ok
Send: N54257 G1 X145.340 Y135.069 E10.4091*97
Send: N54258 G1 X145.342 Y135.067 E10.4092*97
Recv: ok
Send: N54259 G1 X145.435 Y134.982 E10.4138*101
Send: N54260 G1 X145.579 Y134.850 E10.4208*104
Recv: Error:Line Number is not Last Line Number+1, Last Line: 54258
Recv: Resend: 542N54259Error:Line Number is not Last Line Number+1, Last Line: 54258
Printer requested line 542 but no sufficient history is available, can't resend
Changing monitoring state from "Printing" to "Error: Printer requested line 542 but no sufficient history is available, can't resend"
Changing monitoring state from "Error: Printer requested line 542 but no sufficient history is available, can't resend" to "Offline (Error: Printer requested line 542 but no sufficient history is available, can't resend)"
Connection closed, closing down monitor
Closing down send loop

#4

Looks like quite severe communication errors:

Recv: Error:Line Number is not Last Line Number+1, Last LinN5454245
[...]
Send: N54250 G1 X145.329 Y135.078 E10.4086*111
Recv: ok
Send: N54251 G1 X145.331 Y135.077 E10.4087*105
Send: N54252 G1 X145.333 Y135.075 E10.4088*101
Recv: ok
Send: N54253 G1 X145.334 Y135.074 E10.4088*98
Recv: Error:Line Number is not Last Line Number+1, Last Line: 54250
Recv: Resend: 54251
[...]
Recv: Error:No LinN54254 G with checksum, Last Line: 54253
[...]
Recv: Resend: 542N54259Error:Line Number is not Last Line Number+1, Last Line: 54258

Neither does the printer apparently receive what OctoPrint sends without stuff getting garbled on the way, there's also stuff getting garbled the other way around. No wonder that things are failing, if OctoPrint and the printer can't reliably communicate with each other stuff is bound to go south quickly. A full serial.log might be able to tell more but just based on this I suggest you read the following:

https://discourse.octoprint.org/t/octoprint-keeps-running-into-communication-errors-and-timeouts/227


#5

Thank You so much for getting back to me!
After going through my wiring, I discovered I had not one, but 2 bad USB cables, both are brand new, but I got them a few years ago, I went out and purchased a new cable from our local electronics store and I haven't had any issues since. I have printed 4 hour jobs and not one issue.

I would of never guessed that I had 2 new usb cables that were bad, funny enough the company that made them, went out of business..... That would explain the low price :slight_smile:

Thanks again