Your printer's firmware reported an error. Due to that OctoPrint will disconnect. Reported error: Failed to enable Bed Leveling"

What is the problem?

I've installed octoprint on my Raspberry Pi which is connected to wireless and plugged into printer via USB. Previously none of the controls were working so I updated the motherboard & LCD screen firmware for my CR10S pro (version 1) and now get the following error when trying to connect octoprint:

"Your printer's firmware reported an error. Due to that OctoPrint will disconnect. Reported error: Failed to enable Bed Leveling"

What did you already try to solve it?

Restarted raspberry pi & 3D printer

Have you tried running in safe mode and if so did it solve the issue?

Don't know how to do this

Additional information about your setup

Printer: CR10s pro (version 1)
Raspberry Pi: 3B+
OctoPrint version: 1.4.2
OctoPi version: 0.1.7.0
printer, firmware: motherboard & LCD screen both 1.70.1
browser: Google Chrome
operating system: Window 10

click on the word safe mode :slight_smile:
Please upload your logs (octoprint.log and serial.log)

Same error. See logs attached

octoprint.log (128.6 KB) serial.log (2.1 KB)

As it says there, it's the firmware that is running into a (non recoverable) error here. You need to either figure out why your firmware fails to enable bed leveling, or configure it so it doesn't try to perform bed leveling.

I've just turn off auto bed levelling from the menus in the printer and now I'm able to connect and print from Octoprint.

I'm not sure is the is a fix or just workaround because now before printing the probe just goes up and down a few times calibrate the Z axis in the center then prints. Instead of using measuring multiple areas of the bed before it starts.

That's all on your firmware. I guess you need to compile a new build that's properly configured for your setup (and not as broken as Creality firmware usually is).

Flash the motherboard & LCD screen again but not with stock firmware from creatity's website?

To update the firmware I like to recommend this video:

Hi everybody,

I´m a newbie and I do have the same problem:
Failed to enable Bed Leveling

Anycubic Mega S with Marlin 1.1.9 David Ramiro

latest Octopi-Build OctoPi 0.18.0 & OctoPrint 1.7.2

See the logs attached

What´s my failure in this case?

Thx

octoprint.log (130.8 KB)
serial.log (12.2 KB)

Hello @Feuer-Fritz !

I assume a BL-Touch is installed?

1 Like

No, no BL-Touch is installed.

Then the (automatic) Bed-Levelling will not work.

There are some manual ways, but the firmware has to be setup for that:

Thx at first:

How can I fix that? I don´t know how to build a new firmware for my Mega S.
Is there any way to set the option of automatic bed levelling to inhibit?

Printing by SD-Card works without problems.

I use the Marlin-Ai3M-v1.4.6-stock_drivers.hex from this website.

I assume the G29 command appears in one of the start code sections, either in the slicer or in OctoPrint.
If there is one, you might comment it out (Putting a ; in front of it).

Neither in the slicer (Cura)

G21 ; metric values
G90 ; absolute positioning
M82 ; set extruder to absolute mode
M107 ; start with the fan off
M140 S{material_bed_temperature} ; Start heating the bed
G4 S60 ; wait 1 minute
M104 S{material_print_temperature} ; start heating the hot end
M190 S{material_bed_temperature} ; wait for bed
M109 S{material_print_temperature} ; wait for hotend
M300 S1000 P500 ; BEEP heating done
G28 X0 Y10 Z0 ; move X/Y to min endstops
M420 S1 ; Enable leveling
M420 Z2.0 ; Set leveling fading height to 2 mm
G0 Z0.15 ; lift nozzle a bit
G92 E0 ; zero the extruded length
G1 X50 E25 F500 ; Extrude 25mm of filament in a 5cm line.
G92 E0 ; zero the extruded length again
G1 E-2 F500 ; Retract a little
G1 X120 F4000 ; Quickly wipe away from the filament line

nor in the settings of Octoprint

G21 ; metric values
G90 ; absolute positioning
M82 ; set extruder to absolute mode
M107 ; start with the fan off
M140 S{material_bed_temperature} ; Start heating the bed
G4 S60 ; wait 1 minute
M104 S{material_print_temperature} ; start heating the hot end
M190 S{material_bed_temperature} ; wait for bed
M109 S{material_print_temperature} ; wait for hotend
M300 S1000 P500 ; BEEP heating done
G28 X0 Y10 Z0 ; move X/Y to min endstops
M420 S1 ; Enable leveling
M420 Z2.0 ; Set leveling fading height to 2 mm
G0 Z0.15 ; lift nozzle a bit
G92 E0 ; zero the extruded length
G1 X50 E25 F500 ; Extrude 25mm of filament in a 5cm line.
G92 E0 ; zero the extruded length again
G1 E-2 F500 ; Retract a little
G1 X120 F4000 ; Quickly wipe away from the filament line

is a G29 command available.

Do you actually have the same start code of Cura in OctoPrint?

Besides this is not necessary, terms like

are not processed by OctoPrint correctly, because OctoPrint does not know the value of material_bed_temperature and will set it to 0.

You have command M420 included.

This recalls levelling data from a levelling that did not happen. Therefor the error.
You might comment out the two lines with M420.

1 Like

thx, i´ll try and report again :slight_smile:

EDIT: Is there an answer about why this isn´t relevant when printing by SD-card?

EDIT2: while testing: Is it sufficient when the start commands only in Cura are?
Is it possible to clear the Octoprint setting fully and only use the commands by Cura?

1 Like

Usually because when printing from the SD card, the printer just ignores the error and continues. The M420 S1 command will definitely be your problem, if you don't have auto bed levelling installed.

1 Like

Thx :slight_smile:
I did unsubscribe the M420 command lines and now it works :+1:

Only my last question is now left to be answered:
Is it sufficient when the start commands only in Cura are?
Is it possible to clear the Octoprint setting fully and only use the commands by Cura?

EDIT:
I cleared my octoprint command lines and tried to print by Cura gcode and it works very well.

I do thank all of you while helping my problem to get solved :slight_smile:

1 Like

I wrote all the sensor types but it keeps giving an error

Your printer's firmware reported an error. Due to that OctoPrint will disconnect. Reported error: Option 'sensor type' in section 'heater bed' must be specified