#can connect ssh but cant connect web interface

105 messages · Page 1 of 1 (latest)

hollow plume
#

hey guys i just have a problem. i can connect ssh with no problem but when i try to connect web interface i cant, it says server not found.i connected just once when i set the pi but after i reboot the pi i cannot connect anymore.im using orangepi2zero

hexed coral
#

The warning at the bottom says that there are errors in your moonraker.conf. Can you send your moonraker.log?
You can access your files with something like WinSCP.

hollow plume
#

yeah i can

#

i logged in with filezilla

hexed coral
#

The path should be something like ~/printer_data/logs

hollow plume
#

u need both or just the moonraker.conf

hexed coral
#

moonraker.log, that should have already logged the conf

hollow plume
#

thats what u need right?

hexed coral
#

Ok, it doesn't log your not working one. Please send your ~/printer_data/config/moonraker.conf

hollow plume
hexed coral
#

Did you delete the [update_manager fluidd] manually?

#

Or did your file got corrupted

hollow plume
#

i just tried to install fluid to another port to see if its something wrong with the mainsail

#

and no i didnt delete anything

#

i just installed everything via kiauh

hollow plume
hexed coral
#

Can you edit your moonraker.conf and delete the last line?
I don't think that will solve your original problem but then it takes your moonraker.conf again instead of a backup

hollow plume
#

okay im trying

#

u mean line 43 right?

hexed coral
#

yes

#

bit corrupted somehow

hollow plume
#

okay i've done it

hexed coral
#

Can you restart your pi and see if the warning on the moonraker site is gone?

hollow plume
#

okay

#

looks like gone

#

but as u said main problem remains

hexed coral
#

Can you send the output of the command systemctl status nginx?

hollow plume
#

can something wrong with the clock?

#

it doesnt match

hexed coral
#

What do you mean? Your time and the time on the pi?

hollow plume
#

yeah

hexed coral
#

That shouldn't matter for that

#

Somehow the nginx webserver is crashing but I don't have any expertise on that. I will google real quick if I can find something otherwise I will get someone else for you

hollow plume
#

okay man thank u so much for your efforts

#

im just waiting

hexed coral
#

sudo nginx -t

hollow plume
#

trying

#

do u need nginx.conf?

hexed coral
#

Not really, but you can send it and I will compare them

hollow plume
#

okay

hexed coral
#

I hoped for some more information from that command

hollow plume
#

where should it be located?

hollow plume
hexed coral
#

That should be the full path /etc/nginx/nginx.conf

#

For me it's there

hollow plume
#

oh wait

#

i got it my bad

#

i just deleted the nginx.conf

hexed coral
#

That's bad

hollow plume
#

sorry i dont have not much experience with ftp hehe

hexed coral
#

Can you send your /etc/nginx/sites-enabled/fluidd?

#

As it's already saying, the error lies there ^^. I'm just dumb sometimes

hollow plume
hexed coral
#

Did you already set up anything big in mainsail or moonraker?

#

According to that issue it could be just solved with a reinstall

hollow plume
#

not really

#

i've reinstalled the firmware for several times

hexed coral
#

And always the same issue?

hollow plume
#

yeah

#

if i cant connect to ssh i would say hardware issue but i can connect to internet to ssh idk thats weird

hollow plume
hexed coral
#

I thought maybe just a setup error once, or something went bad during installation

#

but multiple times is pretty suspicious

#

I get you someone with more expertise then

hollow plume
#

and it happened by itself

#

i just printed part with no problems

#

after 1 hour i tried to print another file but i couldnt connect to the webinterface

#

first it says cant connect to moonraker

#

then i decided to reflash the pi and i started to see this error

hexed coral
#

@unborn isle He got an Orange Pi Zero 2. Seems like his nginx can't start anymore with following error nginx: [emerg] host not found in upstream "apiserver" in /etc/nginx/sites-enabled/fluidd:40. The procedure what he made is described directly above this message.
His moonraker.conf got corrupted too somehow after uninstalling fluidd. Last line was full of NULL symbols. But that is already fixed.
So now only nginx has to be fixed again.
Everything installed with kiauh

hollow plume
#

just one more note

#

just after reflash i can connect to webinterface with no problem

#

but if i reboot the pi i cannot anymore

hollow plume
#

i removed the fluidd using kiauh

#

it says this now

hollow plume
hard pawn
#

Remove also mainsail via kiauh and install it new, that normally setup nginx new

#

Not sure if someone tested a dual ui on an orange pi

hollow plume
#

im not using dual ui

#

i just want to see if its something wrong with mainsail

#

i tried with mainsail first but when i saw the issue i wanted to try with fluidd also

#

i removed mainsail

#

and im installing again

hard pawn
#

If all of you simple would understand that if something is not working installing something else on top makes it simple only harder …

hollow plume
#

i got this feedback

#

now i'll try to reboot the pi

hollow plume
#

but web ui still doesnt come up

#

solved

#

very interesting

hard pawn
#

And what solved it?

hollow plume
#

i think reisntalling mainsail

#

but it doesnt make any sense

#

beacuse i flashed pi for several times and anything changed

#

anyways thanks for your help guysmainsail_heart