You are not logged in.

#1 2017-09-02 05:38:07

lhy70
Member
Registered: 2017-09-02
Posts: 2

Error - Connection Refused

Hi all,

Had this weird error pop up for me today. Have been using NanoDLP with my D7 for the past 2 months or so and mainly was smooth sailing.

However, today halfway through slicing a print (was already connect to it), it suddenly started to give the white error white screen in Chrome and throw a Connection Refused error -- "192.168.0.142 refused to connect."

Wondering if anyone has faced the same problem before, and if so, what could be a possible solution to it?

Many thanks in advance!

Offline

#2 2017-09-02 06:42:56

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Error - Connection Refused

It could be a network issue or nanodlp crash. Is it become accessible after restart?

Offline

#3 2017-09-02 07:58:39

lhy70
Member
Registered: 2017-09-02
Posts: 2

Re: Error - Connection Refused

Have tried to power off and on again couple of time but it doesn't seem to have helped...

Sometime it just tries to load the page (via the browser) to no end. Pinging the IP address works ok though.

Not sure if it could be something to do with how I turn off the Raspberry Pi (by just turning off the main power)? :S

Offline

#4 2017-09-02 19:51:40

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Error - Connection Refused

if ping works but nanodlp is not accessible, it is probably crash you could see error message after restart.

Offline

#5 2018-05-05 15:09:12

miserovitch
Member
Registered: 2018-02-21
Posts: 15

Re: Error - Connection Refused

Hi

I am currently having the same issue.
I tried to extand the file system and then the connection to nanodlp is refused.
However ping is working and I can ssh the RPI.

I have restarted many time the RPI but nothing change. So without access to nanodlp I don't know how to get the log.

It is not the first time it happen, it happen previously when I forced a stop during a slicing operation. It seems that NanoDLP crash but then do not restart.

Last time I had to reinstall completely the nanodlp image on the RPI.

Is there any command to do into ssh to restart nanodlp?

BR

Laurent

Offline

#6 2018-05-06 02:13:15

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Error - Connection Refused

After SSH you can run nanodlp with commands below to see what is the issue
cd /home/pi/printer
sudo ./printer

Offline

#7 2018-05-06 07:10:40

miserovitch
Member
Registered: 2018-02-21
Posts: 15

Re: Error - Connection Refused

Hi,

I tried and I get following messages in SSH:
pi@nanodlp:~/printer $ sudo ./printer
2018/05/06 09:06:57.650411 {"Layer":"1","module":"Hardware","level":"Notice","msg":"Initializing build # 1827 - generic"}
2018/05/06 09:06:57.651063 {"Layer":"1","module":"SLAVE","level":"Error","msg":"Serial port could not be activated no such file or directory"}
2018/05/06 09:06:57.651460 {"Layer":"1","module":"Gcode","level":"Error","msg":"Could not access LCD write /dev/i2c-1: input/output error"}
2018/05/06 09:06:57.652168 {"Layer":"1","module":"Terminal","level":"Notice","msg":"Terminal Reader Activated"}
2018/05/06 09:06:57.654747 {"Layer":"1","module":"Server","level":"Error","msg":"Could not setup server. listen tcp :8080: bind: address already in use"}

Access in browser is still refused.

Ps: the D7 is off, i just kept the rpi on.

Laurent

Last edited by miserovitch (2018-05-06 11:13:58)

Offline

#8 2018-05-08 02:38:15

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Error - Connection Refused

OK Looks like your nanodlp listening on port 8080 and not 80 so you need to access it through http://ip:8080/ address

Error below indicate nanodlp already running on port 8080. Or another program occupy the port 8080
2018/05/06 09:06:57.654747 {"Layer":"1","module":"Server","level":"Error","msg":"Could not setup server. listen tcp :8080: bind: address already in use"}

Offline

#9 2018-05-10 07:13:35

miserovitch
Member
Registered: 2018-02-21
Posts: 15

Re: Error - Connection Refused

Hi Shahin,

It is solved, thanks for your help.

I restarted from scratch and reinstalled nanodlp. I had the same issue and this time when I run your command it told me that everything is ok.
NanoDLP was working fine after that.

PS: I noticed that when I setup wifi connection in txt file in SD card the fact that it is connected to wifi is not visible in nanodlp page. If then I try to connect through nanodlp (even if already connected) then nanodlp crash and I have no other solution than reinstall the nanodlp image on sd card.

Offline

Board footer

Powered by FluxBB