First User not created

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.0
How are you able to access your server: The webadmin
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

tl;dr First user account appears not be be created. WebAdmin goes to Login page but Login button not active. SSH login returns password incorrect.

Details:
microSD flashed with latest version (12.0) and used to boot Raspberry Pi. WebAdmin gives ‘Installation Successful’ screen and goes through process of selecting domain and giving details for first user. Then goes to first login screen but the Login button greyed out. Page reload takes us back to start of the process. SSH from terminal rejects password just created.

Remedies tried with no luck:

  1. Reflashed microSD and started again.
  2. All domain options (my own, Yunohost Dynamic DNS, local only).
  3. All ports required forwarded manually at router rather than UPnP (and tested).
  4. Public IP tested (by routing my domain to it temporaily).
  5. Accessed WebAdmin with both yunohost.local and the Pi’s static IP address.
  6. Read First user created, not possible to connect

About me:
Linux user comfortable with following CLI instructions. Have successfully installed YunoHost on a VPS before.

Thanks,

Tom

Share relevant logs or error messages

n/a

Hmokay, you should still be able to connect using root via SSH (from the local network) and direct access though, can you confirm this ?

Assuming you’re able to, we can try digging into why it’s not possible to login using that user … First of all, could it be there’s anything specific to your username ? (unusual amount of character … or maybe only number or whatever)

Otherwise let’s try to confirm that slapcat | grep "dn.*<youruser>.*user" returns something (replacing <youruser> with the actual username) and same for id <youruser>

1 Like

Is there a default root password for YunoHost?

If you performed the postinstall, the root password should now be the password chosen for the first user

That doesn’t work for root or for the first user login. The first user username is just three letters. I have checked with SSH to yunohost.local and the static IP.

Since I haven’t been able to connect to the Pi which is running YunoHost via SSH, I am not sure what you mean by your second suggestion.

FWIW, I am not on the network right now but connecting remotely to another Pi’s shell to run the SSH. That shouldn’t make a difference, should it?

root login is disabled on yunohost outside of the local network to reduce the attack surface, you need to do this from the local network, and using the local IP of the RPi

I should have said, I have remote access to the shell of a device on the network. But I will try non-remote access when I get home after work. Thanks for all your help so far!

No difference on local network. Also re-ran post install and still not able to login with web or SSH.

Mokay so assuming the postinstall didn’t actually go through … are you able to connect using root with the default password yunohost ?

(You may also try to run the postinstall from the CLI using yunohost tools postinstall right after flashing the sd card and booting the board)

Yes, that worked. Have SSH now

Ran postinstall on CLI and all working now. Thank-you for your help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.