#Webinterface not working

1 messages · Page 1 of 1 (latest)

fringe bluff
#

Hi there! After 2 weeks of owning the Centauri and one FW Update (i think from 1.1.25 to 1.1.46) my webinterface stopped working. The only thing that works is the information about the printer state and the temperatures. no files, no print history, no camera.

console says repeatedly:
[Error] WebSocket connection to 'ws://x.x.x.x:3030/websocket' failed: The network connection was lost.
[Error] ERROR – SyntaxError: JSON Parse error: Unexpected EOF — main.a2c4cc1113991bcca762.js:38148
SyntaxError: JSON Parse error: Unexpected EOF — main.a2c4cc1113991bcca762.js:38148
kr (main.a2c4cc1113991bcca762.js:1:170120)
handleError (main.a2c4cc1113991bcca762.js:1:170294)
next (main.a2c4cc1113991bcca762.js:1:252430)
__tryOrUnsub (main.a2c4cc1113991bcca762.js:1:745903)
next (main.a2c4cc1113991bcca762.js:1:745140)
_next (main.a2c4cc1113991bcca762.js:1:744311)
next (main.a2c4cc1113991bcca762.js:1:744086)
next (main.a2c4cc1113991bcca762.js:1:741834)
emit (main.a2c4cc1113991bcca762.js:1:235855)
run (polyfills.cbade4b333952df5eb42.js:1:1944)
onHandleError (main.a2c4cc1113991bcca762.js:1:246263)
runTask (polyfills.cbade4b333952df5eb42.js:1:2618)
invokeTask (polyfills.cbade4b333952df5eb42.js:1:8214)
g (polyfills.cbade4b333952df5eb42.js:1:20815)
y (polyfills.cbade4b333952df5eb42.js:1:21102)

sidenote: when i browse http://x.x.x.x:3031/video - the camera works!

how can i fix this? In elegoo slicer its the same problem - no information besides status and temperatures in the "devicetab"

any advice / help appreciated! running OC 0.2.0

quartz timber
#

Iirc the webui, or rather the websocket connection, does die when doing something specific (i suspect sending a character of a specific kind)

#

Did you have this issue before or after upgrading to oc?

#

A factory reset of the files might help here

fringe bluff
#

Thank you for your reply! It happend afaik when I installed the latest FW from Elegoo. I was hoping to get rid of these errors when switching to OC - a factory reset means that i will lose my print history, right?

quartz timber
#

Yes

fringe bluff
#

ok, i'll accept that and will try that in the evening 🙂

fringe bluff
#

it worked! thank you!

leaden scroll
#

I have the same issue no Camera stream no print progress and when i connect via :3031/video i see the camera stream.

Tried a factory reset on the printer, delete of de slicer config directory nothing is helping and i put in a ticket at elegoo sofar no reply .....

quartz timber
#

Are you on OC as well?

leaden scroll
#

After some mail traffic with Elegoo they are going to send a new motherboard they think that will solve the problem .... we will see

#

@quartz timber i'm on firmware 1.1.46 standaard elegoo firmware i'm reading in to OC to see what it will bring to me 😉

quartz timber
#

i see

quartz timber
leaden scroll
#

@quartz timber lot of chinees language but when i push the play video stream i see an error regharding Websocket connection failed

quartz timber
#

Can you give me a screenshot?

leaden scroll
quartz timber
#

Ok so the same decode utf8 issue

#

Whyyy

#

Where does that come from

#

Luckily that's not just an OC issue then

leaden scroll
#

nope it's also in the stadaard Elegoo firmware and i wonder why this is being resolved by changing my motherboard looks more into a software issue then hardware ?

quartz timber
#

Everything or only specific things

leaden scroll
#

everything

quartz timber
#

I wonder what happens if you just rm -rf /board-resource/* 😅

#

And /user-resource/*

distant sentinel
quartz timber
#

@distant sentinel i might have fixed this in 0.3.0 (before it was a bug that the app always considered itself offline, now it considers itself online if it's connected to a LAN network)

leaden scroll
#

i really don't get it yesterday I could see the video stream via my IP address 192.168.178.1762:3031/video and now this also stop working .... is this sign of crappy software or is my motherboard breaking down day by day ?

fringe bluff
#

i have some really interesting news for you about these problems - its about how many connections you have to the printer

#

i managed to create a bash/pythonscript on one of my home automation raspberries that checks the centauri carbon for its status. therefore you need to connect to it via the websocket (python script). If you are watching the printer via the printer tab in the slicer and on your smartphone or webinterface - that's to many connections and it will likely show nothing on one of these pages. also, if you have many instances of the slicer, each slicer opens another connection to the printer (which is not good).

#

but the most annoying thing (I'm not sure if its 100% correct) is that open connections to the printer won't be closed correctly by the printer if closed on the other side. e.g. you have to close your browser completly to get rid of the connection, but the printer has some kind of "zombie-process" running. if you are familiar with ssh and connect to your printer you can check how many connections are open with 'netstat -ntp | grep 3030' if there are more than 2 or 3 different IP Adresses in the 5th column you might have a problem seeing the printer in the webinterface.

#

i tried it myself right now - i have an open connection to my notifier script (bash/python on raspberry pi with telegram notifications of paused/failured/finished prints) - the slicer is open and the webinterface (on the same PC). I have the controls on the webinterface but no video. If I close the slicer and reload the webpage, the video appears. so it's more about a multiple connection/socket - software problem than anything else.

deft belfry
#

no video and no printing feedback

quartz timber
#

Dammit

#

Useless firmware

#

Could you send me a copy of /board-resource and /user-resource @deft belfry?

deft belfry
#

I deleted everything of /user-resource, then rebooted. it works now

deft belfry
#

it seems the server only allows 2 websocket connections, more than that will get connection errors

#

if it's true, please mention it at somewhere

quartz timber
#

If you're running HA the elegoo plugin creates a proxy so you don't have to worry about this

deft belfry
quartz timber
#

home assistant

deft belfry
#

oh, I need to do some homework on it, don't know there's home assistant

deft belfry
quartz timber
deft belfry
#

ty

lilac prawn
#

Same exact issue (I think). But my machine works perfectly on 1.1.40. It's only when I do any version above this, including OC 0.3.0, that I get this issue.

#

I tried to factory reset mine, and I didn't get the same luck.

#

I factory reset through the LCD, though... @fringe bluff, did you do it this way, or the other method I've heard whispers about that requires more effort?

#

It has three items to check when you do it through the LCD, so if you did do it this way, I'd love to know what you checked!

lilac prawn
#

I actually originally tried OC because I wanted it to work with this exact HA plugin being discussed here. The latest official (Elegoo) updates broke my web functionality. I went to OC 0.3.0 and 0.2.0, and the web interface did not work for HA... it wouldn't let me add a new device. I even tried downgrading to 1.1.40, then back to OC 0.3.0, then to 0.2.0. No dice.

#

It's possible you need to add it prior to updating to OC? Otherwise, it's not a working solution.

shadow jetty
#

I had this problem with firmware 1.1.46. The web interface http://10.1.2.8/network-device-manager/network/control and the device tab in the slicer would show only some stuff, the camera, progress data and the file lists were all blank. It did display the temperatures, and status (printing, idle etc.). The video interface http://10.1.2.8:3031/video worked OK. After much discussion with Elegoo support, I tried earlier versions of their firmware and many other suggestions without success. Finally I got a new mainboard, supplied by Elegoo. That fixed it.

leaden scroll
#

I recieved yesterday a new motherboard and also for me that was the solution.

vocal helm
#

For those who come after, i can confirm that i had the same exact problem and i fixed it by connecting to the printer via SSH and then clearing
-/user-resource/file_info
-/user-resource/aic_tlp
-/user-resource/video_mp4
and the gcode files from /user-resource

I obviously lost all gcode files and timelapse videos but i can confirm everything else is there, even the print history

quartz timber
#

@vocal helm so the latest dev build of oc actually fixes corruption in a specific file that causes this issue

#

So this is no longer nessesary to do

#

(If anyone comes across this and would like to test, let me know)

keen radish
#

@quartz timber I'd be happy to test, I posted some other issues I have with the patched firmware too (that I did not have with the stock firmware too in #patched-fw (I just found these threads, will create a new topic here too) but I am definitely having issues with the web interface.

shadow jetty
quartz timber
#

👀

odd oak
#

Hi guys, facing the same issue right now. Have not attempted Epico's fix, but found this in some logs
[sdcp_v3][964][Info][10100470]:c close . ws_client_unregister ret = -499
[sdcp_v3][724][Warn][10100783]:websocket client count is over 5

Mght be related, not very sure :D

quartz timber
#

If you want more consider using the home assistant proxy

lilac prawn
#

I've tried Home Assistant as well... I really want to make that work, but it never finds my printer no matter what I do.

#

Perhaps it really is a mainboard issue.