Cannot connect to Webmin 11.1

My YunoHost server

Hardware: VPS (Hetzner)
YunoHost version: 11.1.6
I have access to my server : Through SSH | through the webadmin

Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

After upgrading tot 11.1.6 (through 11.1.2), I cannot connect to the webadmin. The admin-legacy user still exists, as does my regular user (patrick). I have removed the offending admin@ mailalias from that regular user, but seem to be unable to force the migrations to run (again):

$ yunohost tools migrations state
migrations:
  0021_migrate_to_bullseye: skipped
  0022_php73_to_php74_pools: skipped
  0023_postgresql_11_to_13: skipped
  0024_rebuild_python_venv: skipped
  0025_global_settings_to_configpanel: done
  0026_new_admins_group: done
$ yunohost tools migrations run
Info: No migrations to run

Trying to log in with both the admin legacy user and my own user through the webadmin login results in an incorrect user/password error. Connecting through ssh is possible, so the users and passwords exist and are correct. Any more steps to try?

Thanks for the help!

So let’s double check that slapd is up with

systemctl status slapd

I have the same problem when i try to login i get wrong password

slapd is running

yunohost --version
yunohost:
repo: stable
version: 11.1.6
yunohost-admin:
repo: stable
version: 11.1.5
moulinette:
repo: stable
version: 11.1.4
ssowat:
repo: stable
version: 11.1.4

log:
ended_at: 2023-02-08 17:40:36.895785
error: ‘Migration 0026_new_admins_group did not complete, aborting. Error: Could not
update the group ‘‘admins’’: LDAP attribute ‘‘mail’’ already exists with value ‘‘abuse@maindomain.tld’’’
interface: cli
operation: tools_migrations_migrate_forward
parent: null
started_at: 2023-02-08 17:40:33.730607
success: false
yunohost_version: 11.1.6

============

2023-02-08 17:40:33,767: INFO - Running migration 0026_new_admins_group…
2023-02-08 17:40:33,769: INFO - Creating a backup of LDAP database and apps settings prior to the actual migration.
2023-02-08 17:40:34,589: DEBUG - initializing ldap interface
2023-02-08 17:40:36,331: INFO - attribute ‘mail’ with value ‘abuse@maindomain.tld’ is not unique
2023-02-08 17:40:36,332: WARNING - Could not migrate… trying to roll back the system.
2023-02-08 17:40:36,813: INFO - System rolled back.
2023-02-08 17:40:36,814: ERROR - Migration 0026_new_admins_group did not complete, aborting. Error: Could not update the group ‘admins’: LDAP attribute ‘mail’ already exists with value ‘abuse@maindomain.tld’
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/yunohost/user.py”, line 1232, in user_group_update
ldap.validate_uniqueness({“mail”: mail})
File “/usr/lib/python3/dist-packages/yunohost/utils/ldap.py”, line 294, in validate_uniqueness
raise YunohostError(
yunohost.utils.error.YunohostError: LDAP attribute ‘mail’ already exists with value ‘abuse@maindomain.tld’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/yunohost/tools.py”, line 775, in tools_migrations_run
migration.run()
File “/usr/lib/python3/dist-packages/yunohost/tools.py”, line 995, in func
run(self, backup_folder)
File “/usr/lib/python3/dist-packages/yunohost/migrations/0026_new_admins_group.py”, line 116, in run
user_group_add_mailalias(
File “/usr/lib/python3/dist-packages/yunohost/user.py”, line 1361, in user_group_add_mailalias
return user_group_update(groupname, add_mailalias=aliases, sync_perm=False)
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 410, in func_wrapper
result = func(*args, **kwargs)
File “/usr/lib/python3/dist-packages/yunohost/user.py”, line 1234, in user_group_update
raise YunohostError(“group_update_failed”, group=groupname, error=e)
yunohost.utils.error.YunohostError: Could not update the group ‘admins’: LDAP attribute ‘mail’ already exists with value ‘abuse@maindomain.tld’

Somehow either none of you users has either the root@, admin@, or postmaster@ alias … or another user has the abuse@ alias without having the other aliases …

Sorry, i cant understand this and the error is since the last update
How can i fix this ?
fullname: Reiner Loeffel
loginShell: /bin/bash
mail: root@rlart.sytes.net
mail-aliases:

You should remove this alias from your user …

After remove abuse@rlart.nohost.me

yunohost user update reiner --remove-mailalias abuse@rlart.nohost.me

I cant connect to the webadmin and get allways a timeout

and when i try to get it back i get these

root@rlart:~# yunohost user update reiner --add-mailalias abuse@rlart.nohost.me
Error: This e-mail address is reserved for the admins group

Then you need to rerun the migration with yunohost tools migrations run

[ yunohost tools migrations run
Info: Running migration 0026_new_admins_group…
Info: Creating a backup of LDAP database and apps settings prior to the actual migration.
Info: Updating aliases for group ‘admins’
Success! Group ‘admins’ updated
Success! Group ‘admins’ updated
Success! Migration 0026_new_admins_group completed
root@rlart:~# yunohost tools migrations state
migrations:
0015_migrate_to_buster: skipped
0016_php70_to_php73_pools: skipped
0017_postgresql_9p6_to_11: skipped
0018_xtable_to_nftable: skipped
0019_extend_permissions_features: skipped
0020_ssh_sftp_permissions: done
0021_migrate_to_bullseye: done
0022_php73_to_php74_pools: done
0023_postgresql_11_to_13: done
0024_rebuild_python_venv: done
0025_global_settings_to_configpanel: done
0026_new_admins_group: done

Done and get allways wrong password

Have you tried to create a new user and do this?
yunohost user group add admins 'the_new_user'

Its now working, Thank You

@ReiLO what did you do to get it working?

My slapd is running, but it does give an error ten times:

Feb 09 07:08:50 admin._______.org slapd[4163577]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16

I did try Poines suggestion to create a new user and added to the admins group, but this one still gets an error; running yunohost tools migrations run gives me ‘no migrations to run’.
@Aleks: I have one user besides the admin_legacy, me, and I do not have any of those aliases:

$ yunohost user info patrick
fullname: Patrick D
loginShell: /bin/bash
mail: patrick@_________.org
mail-aliases: 
  - cabal@________.org
  - tinc@_________.org
mail-forward: 
mailbox-quota: 
  limit: No quota
  use: 1.6K
username: patrick

$ yunohost user info admin
Warning: E-mail turned off for user admin
fullname: Admin
loginShell: /bin/bash
mail: admin_legacy
mail-aliases: 
mail-forward: 
mailbox-quota: 
  limit: No quota
  use: ?
username: admin

$ yunohost user group info admins
mail-aliases: 
  - root@admin._______org
  - webmaster@admin.________.org
  - admins@admin._________.org
  - admin@admin.__________.org
  - abuse@admin._________.org
  - postmaster@admin._________org
members: 
  - admin
  - patrick
permissions: 

I wonder, shouldn’t there be any permissions listed under that group?

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