Skip to content
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

can't log into dash on sudowrt 0.3.0 #138

Closed
jnny opened this issue Jun 24, 2018 · 12 comments
Closed

can't log into dash on sudowrt 0.3.0 #138

jnny opened this issue Jun 24, 2018 · 12 comments

Comments

@jnny
Copy link
Member

jnny commented Jun 24, 2018

Excited about this release and the debut of autoconf! (or is it zeroconf?)

Was able to successfully flash two MyNet N600s with the new firmware on Ubuntu 14.04, however am unable to login to the admin dashboard. Am able to ssh into the device as root using default password 'meshtheplanet', but same attempt on the admin panel fails.

@bennlich
Copy link
Collaborator

Sanity check: are you accessing the dashboard over http or https? Last I checked, login only works over http.

@bennlich
Copy link
Collaborator

I just flashed a node with 0.3.0 and was able to successfully log in to the admin dashboard over http with default creds.

@jnny
Copy link
Member Author

jnny commented Jun 25, 2018

I was using http - as I had to add a security exception. Seems like the admin panel isn't loading properly in the browser...
@Juul can confirm.

@bennlich
Copy link
Collaborator

Hmm. Could you send a screenshot of the entire browser window and errors in the JavaScript console?

@jnny
Copy link
Member Author

jnny commented Jun 26, 2018

Looking for solutions, I discovered that the password for the private "pplsopen-admin" SSID is in fact "meshtheworld," not "meshtheplanet": https://github.com/sudomesh/sudowrt-firmware/blob/master/files/opt/mesh/autoconf [line 22]

Further down in that file, I noticed the IP "172.30.0.0" - and took that as a lead, after which I was actually able to log into a newly-flashed router by resetting the ethernet address to 172.30.0.10 and hitting http://172.30.0.1 in my browser. I've not been able to recreate this scenario, however, on a re-flashed N600 using Mint.

Screenshot and log of Mint attempting to connect via 172.22.0.1
(yes, all browser security disabled):

sudowrt-firmware_bug138

debuglog_console_bug138.pdf

Will try resetting the ethernet IP again and using Chromium (tried on older Firefox and Quantum)

Update: was able to log into 172.30.0.1 after waiting patiently for it to get an IP address!
Probably should make separate feature request, but there's no feedback when setting the private SSIDs (cuz of course changes are applied instantly, which kicks you off the network, then you have to log in with 'meshtheworld' again before you can reset the password)

@muxlux
Copy link
Contributor

muxlux commented Jun 26, 2018 via email

@bennlich
Copy link
Collaborator

bennlich commented Jun 26, 2018

@jnny in 0.3.0 you can log in w/o ethernet by connecting to the private SSID and pointing your browser to http://172.30.0.1

To connect over ethernet, you must be plugged into port 3 (on N600 or 750), and you have to give yourself a 172.30.0.10 IP like you did.

Loading from 172.22.0.1 or from https:// (which it looks like you are using in your screenshot?) will not work. But I think both of these issues were resolved a couple of days ago in the fix to sudomesh/peoplesopen-dash#1.

I don't think anyone has rebuilt the firmware yet. We should test it a bit and put the fix in a patch to 0.3.0.

@bennlich
Copy link
Collaborator

Update: was able to log into 172.30.0.1 after waiting patiently for it to get an IP address!

@jnny where did the IP address come from?

@jnny
Copy link
Member Author

jnny commented Jun 26, 2018

I couldn't connect without ethernet until I figured out the password to the private net, and then.wasn't patient enough the first go-around.

Also the ports are different in this new batch of N600s - peoplesopen-dash images don't match up (eg, my extender node shows up as a private client device because it's hooked into port 4). will submit an issue..

Re: 172.22.0.1 - update to Walkthrough is loaded in my other comp's browser (next after coffee..). With images! .

@Juul
Copy link
Member

Juul commented Jul 11, 2018

I think I found out why this is happening. The previous /opt/mesh/pw_reset script was actually deleting the entire /etc/shadow file at midnight (not 24 hours later, just the next time the router is on during midnight) and the /etc/shadow file also contains the password hash for the dashboard admin login so it is impossible to log in after that happens. I proposed a fix to both this issue and issue #142 in this comment but it needs testing.

paidforby pushed a commit that referenced this issue Aug 6, 2018
@paidforby
Copy link

As suggested by @Juul, we think this is caused by the password reset confusion (i.e. mostly lazy coding/communication on my part). We corrected this issue in #142, I still have some reservations about the dashboard (which maybe addressed soon by issues like sudomesh/peoplesopen-dash#1 and sudomesh/peoplesopen-dash#5) and have noticed some idiosyncrasies with the mapping of ports to IPs (like why should port 3 hand out 172.22.0.1/24 addresses before configuring, but afterwards handouts 172.30.0.1/24 addresses) and, of course, the inaccuracies of the dashboard's port displays as described in sudomesh/peoplesopen-dash#3.

I vote for leaving this issue open, as a way of linking progress on the dashboard issues back to the firmware.

@bennlich
Copy link
Collaborator

bennlich commented May 5, 2019

closing this because you can log into the dash on 0.3.0, and pw_reset change suggested by @Juul was implemented. feel free to reopen if I'm missing something.

@bennlich bennlich closed this as completed May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants