-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuck at $sudo npm start, dhcp server fail? Raspberry Pi 3 Model B #28
Comments
That is super odd, are you running the latest source? I really should tag these for releases, I suppose I will do that once we fix these gaps :) Let me run this on my Pi3 once I am home and try and debug some of this. |
The ADDR in use sounds like the server is already running. Could it be that when you rebooted it - the service that kicks it off on boot started it? Also - did you read the bit about the denyinterface thingy in the README? |
Big thanks for the reply! I did indeed do the denyinterface part and yes I am running the latest version of Raspbian and the latest version of the code comes with the git clone that is listed in the instruction right? Did you check out my full terminal log? https://pastebin.com/BZNDsfhn I did everything correct right and in order? Could you possibly post an image with a working version if you are not sure what to try? Again super big thanks for the reply! |
In your case, the very last line in your full terminal output seems to indicate that when running as Try to check and see if you have an instance of node still running with: Can you confirm that the This "tool" is just a collection of terminal commands followed by a http server which conveys the Sorry this is so buggy, this was mostly a script that I threw together ages ago when I had to constantly get our companies army of pi2 on a new wifi network often. I am happy to help you work this out, however. |
Okay I just got home and plan to be on for several more hours and it seems that you just made that post. Right now I am going to install the latest flash and say step by step what I will be doing. If you plan to be on for a little longer I should respond pretty quick. |
Yessir, I should be on and off tonight - happy to help! |
Okay so here I am giving it another try. In this post I will post the exact order that I do things. I am going to post a full log at the end so you can see everything. To start off, this is a fresh install of raspbian stretch from their website.
So if I am correct the instructions say that I need the NodeJS from Underscore, async, and express so,
Then as the instructions say the next thing to do is get bower so,
Then Ill paste the key to github and now I can resume the installation.
(Just want to point out here that when this npm run-script was run at the bottom there is some red code saying stuff failed, I will post a gyazo to hopefully make it easier for you to find https://gyazo.com/ecd57e8b84f4c266b11bc6b2616fd03d ) Ya well and we fail at the same spot. Is it because I am already using wifi? Should I be using ethernet to install? Should I not have chromium open when I do this? (I use it to copy and paste) Should I not have VNC enabled? I really don't know why its working for other people but not me? Heres the full log, https://pastebin.com/cRUbZsaW |
Thoughts? Or anything I should try? |
Oh man - you can |
*Facepalm XD I am still learning, I was wondering why other projects didnt make me do this. If I reset again now I know lmao |
The red thing at the bottom is def your DHCP server failing to start. This could perhaps be because The Try that and let me know. |
Hehe - I updated the readme to avoid that :) Also your log states this:
|
So I have nothing in the ifplugd file? Its just blank, heres the nano. https://gyazo.com/a7ba619c082cd80de0e86db6f8485e4e EDIT: I dont even have the file? https://gyazo.com/d9d73a2c31da8df5913b59d5a88e023f |
Try doing this: |
Ok done and I get this (keep in mind this is the next day so my pi has been rebooted)
Also note that this kills my console so I have to close it and open another to enter another command. In other words it does let me put in more commands after this. |
It seems like it started ok that time, could you do that first, and then start the app on another terminal just to see if things play nicely? Maybe we just need to try to start the dhcp service on failure. |
So you want me to run the dhcp restart command and then try the start command. I will try that when I get home tonight. My raspberry pi has been powered on and off since then which should be okay right? Anyways I'll let you know what happens when I try tonight. |
No problem. I will try and reproduce a from-scratch-with-latest test since it seems like more then one person has this symptom. |
Well clearly I didn't get to it last night, but here it is. I did separate terminals like you said and still nothing.
And second,
|
So those are all good looking statuses. Are you sure you do not see the config access point running? Remember that if you run the |
Oh no I didn't say that I could not see the wireless point from my phone. I can indeed see it, but if I connect to it, and go to that IP it does not show up. Here are some screenshots from my phone of what I mean. You can see the pictures here, https://imgur.com/a/OLkKN . If you notice, once I am connected with my phone, you can not see the wifi bars at the top of the screen. And yes I have tried this on another device as well and it is the same thing. Were you not able to recreate this scenario? If not then maybe its the new Pi's? Also, Ill be on for the next 5 hours or so expect fast replies :D |
If you would prefer to talk via skype and do a screen share, feel free to add me at smallzZz8. |
It seems like our github-timezones do not agree with each other. I am sorry I missed you. Lets chat on skype. |
I do not see a request? Ill added a user named sabhiram. If thats you accept. If not whats your username? |
Again ill probably be here for the next 5 hours or so. |
I'll hop in on this if we can get it working.... @sabhiram , any luck with a fresh and latest Raspbian install? Thanks in advance! |
@sabhiram Thoughts on my previous comment?
|
That tells me that the DHCP server is not doing what we think it should be (unless the HTTP server is not working either...). Let me check once I find time w/ a raspberry pi 3 and report back. Been very busy lately. |
Okay well I will be waiting here for a request. Trying to get this working before I continue the rest of my project. Thanks again man! |
@sabhiram Any luck yet? |
@sabhiram Note that it does the same thing with a Pi0W. I think it's related to Raspbian, not necessarily hardware... |
I actually disagree. I tried to install with an older version of raspian and it still did not work. I think it has to do with all RPi 3's especially since the project was built in 2017. It sucks to know that it doesn't work on the pi zero though because I just ordered one yesterday hoping that it would work. Hopefully @sabhiram will find a solution soon. |
Well my Rpi Zero W came in today and I did the same steps as listed above and got the same results. It appears to be an issue for all Rpi 3s. Unfortunately I do not know how to fix this problem and would greatly appreciate anyone's efforts to try to fix it as this as I need it for something that I am working on. As for @sabhiram if you are unable to find your Rpi 3 i would be willing to send you a new one if your able to look at this code again. |
I am facing the same issue.. Followed the steps, the script seems to run, but it won't create a wifi AP.. |
Ok, seems like a lot of folk are trying to get this thing to work on a Pi3. I apologize for how long this has taken me, but I went from closing up my startup of 2.5 years to trying to get going on another one, so my time has been sparse. I will do my best to give this a shot this week as I should be less busy around Easter. Thanks for your comments, I hope to help resolve them. I have a Pi3 somewhere, so that should not be an issue. |
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 To debug you can enable the Would appreciate if someone else can confirm the same. |
There has recently been a bunch of work done in #33 which should make things a bit nicer on a Pi3. If people are still having issues, that branch might be useful - will merge it once I test it. |
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
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
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!!
The text was updated successfully, but these errors were encountered: