raspberry-wifi-conf: Stuck at $sudo npm start, dhcp server fail? Raspberry Pi 3 Model B
So I have tried installing this several times but I am getting stuck at the last step. I freshly installed the newest version of raspbian stretch and I follow the installation steps but when I get to $sudo npm start my terminal says this
pi@raspberrypi:~/raspberry-wifi-conf $ sudo npm start
> raspberry-wifi-conf@0.0.1 start /home/pi/raspberry-wifi-conf
> node server.js
Wifi is not enabled, Enabling AP for self-configure
Force reconfigure enabled - reset AP
... dhcp server failed! -
ifdown wlan0 successful...
ifup wlan0 successful...
... hostapd restarted!
... AP Enable Success!
HTTP server running...
Why is this happening? I would post my full terminal but I thought it was too long so if you need to see my full terminal with how everything installed it can be found here https://pastebin.com/BZNDsfhn .
Now since it gets stuck at that command I am forced to restart my terminal since I cant type anymore and if I re-enter the command $sudo npm start I get this
pi@raspberrypi:~ $ cd raspberry-wifi-conf
pi@raspberrypi:~/raspberry-wifi-conf $ sudo npm start
> raspberry-wifi-conf@0.0.1 start /home/pi/raspberry-wifi-conf
> node server.js
Wifi is not enabled, Enabling AP for self-configure
Force reconfigure enabled - reset AP
... dhcp server restarted!
ifdown wlan0 successful...
ifup wlan0 successful...
... hostapd restarted!
... AP Enable Success!
HTTP server running...
events.js:163
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::88
at Object.exports._errnoException (util.js:1050:11)
at exports._exceptionWithHostPort (util.js:1073:20)
at Server.setupListenHandle [as _listen2] (net.js:1259:14)
at listenInCluster (net.js:1307:12)
at Server.listen (net.js:1406:7)
at Function.app.listen (/home/pi/raspberry-wifi-conf/node_modules/express/lib/application.js:559:24)
at module.exports (/home/pi/raspberry-wifi-conf/app/api.js:76:9)
at start_http_server (/home/pi/raspberry-wifi-conf/server.js:70:32)
at /home/pi/raspberry-wifi-conf/node_modules/async/lib/async.js:607:21
at /home/pi/raspberry-wifi-conf/node_modules/async/lib/async.js:246:17
npm ERR! Linux 4.9.41-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! raspberry-wifi-conf@0.0.1 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the raspberry-wifi-conf@0.0.1 start script 'node server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the raspberry-wifi-conf package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs raspberry-wifi-conf
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls raspberry-wifi-conf
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/.npm/_logs/2017-09-27T06_10_58_899Z-debug.log
pi@raspberrypi:~/raspberry-wifi-conf $
I assume that is probably happening because the first start did not work but maybe it has some information in it that can help you determine the issue. Looking at the first code I posted at the top could it be something to do with my dhcp server failing? How do I fix this? Thank you for any help!!
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 37 (16 by maintainers)
At my home raspberryPi 3b - I was able to get to the point where it said “HTTP Server started” and I observed that the AP was not visible. I manually rebooted the server with
sudo npm startand this time - saw that the HTTP server was up.To debug you can enable the
force_reconfigureoption in the config file.Would appreciate if someone else can confirm the same.