Can't login to Admin or change password

Hardware: VPS bought online
YunoHost version: 11.0.10.2 (admin 11.0.11)
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Hi all.
I have moved my yunohost to a new server by doing the clean install on the new VPS and restoring from the backup.
All works except one small thing, I can’t login back to my admin interface.
All passwords are wrong.

I can login by ssh, but when I trying to change the password from ssh I see this:

Error: unable to change admin password : error during LDAP search operation with: base='cn=admin,dc=yunohost,dc=org', filter='(objectClass=*)', attrs=None and exception {'desc': 'No such object', 'matched': 'dc=yunohost,dc=org'}

Hi FreeS,

Could you share which commands you run when you tried to change the password ?

In the bash CLI, passwords must be changed with yunohost user update for a given user or with yunohost tools rootpw. You can append --help to those previous commands to see what values they expect.

Hi, the error abow shown if I use yunohost tools adminpw

New administration password: **********
Confirm new administration password: **********
Error: unable to change admin password : error during LDAP search operation with: base='cn=admin,dc=yunohost,dc=org', filter='(objectClass=*)', attrs=None and exception {'desc': 'No such object', 'matched': 'dc=yunohost,dc=org'}
Error: Unable to change password

With yunohost user update admin -p

Password: **********
Confirm password: **********
Success! User info changed
Warning: E-mail turned off for user admin
firstname: Admin
fullname: Admin
lastname: Admin
mail: admin_legacy
mail-aliases:
mail-forward:
mailbox-quota:
  limit: No quota
  use: ?
username: admin

But with no luck and I can’t login to admin panel anyway.

Well it sounds like you’re running 11.1 and not 11.0 …

yunohost -v

yunohost:
  repo: stable
  version: 11.0.10.2
yunohost-admin:
  repo: stable
  version: 11.0.11
moulinette:
  repo: stable
  version: 11.0.9
ssowat:
  repo: stable
  version: 11.0.9

And yet you have the admin_legacy user existing on your system, so I’m guessing that you somehow ended up on version 11.1 and somehow forced YunoHost back to 11.0 which is not a good idea and was not advised by any developer around, precisely because that kind of shit may happen

Mokay rereading the context in original post, you restored your old server on a new server, so probably the 11.1 → 11.0 happened during this, and I guess you probably ended up on 11.1 through the infamous “11.1 was incorrectly released on the stable channel rather than testing during a few hours” …

Dunno what to do apart from forcing the new server to upgrade to testing and re-restoring the entire server maybe

Just checked my old server and seems that I on testing repo there. Strange…

yunohost:
  repo: testing
  version: 11.1.0.2
yunohost-admin:
  repo: testing
  version: 11.1.0.2
moulinette:
  repo: stable
  version: 11.0.9
ssowat:
  repo: stable
  version: 11.0.11

So, some thought

  1. Can I change my old server from testing to stable? Back up users there and restore them on the new one?
  2. Or I can move my new server to the testing branch and restore users again. And set it back to the stable branch after that.

Should it work?
And how I can change stable to testing and back?

Hi there,
I have experienced the same problems after a server upgrade on my end. The only difference is that I’m not running it on a VPS, but on a bare metal server in my basement. I can’t tell if the old system was running on testing, the new one is running on stable:

root@server:# yunohost -v
yunohost: 
  repo: stable
  version: 11.0.11
yunohost-admin: 
  repo: stable
  version: 11.0.11
moulinette: 
  repo: stable
  version: 11.0.9
ssowat: 
  repo: stable
  version: 11.0.11

Is there any news about the problem solution I would be really interested in. I can also post more logs if that is helpful.

I found this article in the docs:
https://yunohost.org/en/noaccess#you-have-lost-your-admin-
SLAPD is up and running:

root@server:# yunohost service status slapd
configuration: valid
description: Stores users, domains and related info
last_state_change: 2023-01-13 14:03:12
start_on_boot: enabled
status: running

I’m afraid of switching to testing as FreeS asked in suggestion #2, I need my tiny server up and running :melting_face:

Thanks in advance.

and I guess you probably ended up on 11.1 through the infamous “11.1 was incorrectly released on the stable channel rather than testing during a few hours”

Looks like I got stung with this as well… I was trying to migrate to a new host but it looks like my old server was incorrectly upgraded to 11.1 :frowning:. Major bummer. Currently switching the new system to Testing and trying to restore my backup again. Will update with my results.

I would also really like to know how to get off of testing as well.