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.

So it went well enough. Still having an issue with "Migrate to the new ‘multiple admins’ system ". I’m guessing because I’ve already (partially?) migrated?

Migration 0026_new_admins_group did not complete, aborting. Error: error during LDAP search operation with: base=‘cn=admin,dc=yunohost,dc=org’, filter=‘(objectClass=*)’, attrs={‘userPassword’} and exception {‘desc’: ‘No such object’, ‘matched’: ‘dc=yunohost,dc=org’}

As far as I can tell getting off testing is as easy as editing /etc/apt/sources.list.d/yunohost.list and removing the testing keyword. I’ve not done this yet as rolling back to 11.0 isn’t really possible, so I’m waiting for 11.1 to be out.

Classic confusion but this does not “remove”/“rollback” you from testing to stable". This only disable upgrading from newer packages that would be shipped on the testing channel

Still struggling to solve the migration issue. Here is the full log if that is of assistance:

https://paste.yunohost.org/raw/asabiqonek

It’s not clear what you’re trying to achieve or what is the context … This was somebody else’s topic initially … Please create a proper new topic and provide a clear explanation of what you are trying to achieve and what is the context …

1 Like

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