-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Labels
verifiedAll test cases were verified successfullyAll test cases were verified successfully
Milestone
Description
The migration from NS7 to NS8 can't be completed after release of Core 3.6.0.
This is a regression introduced in #7229
After syncing the Mail, Nextcloud, and ejabberd modules without issues, when the user finalize the operation the email module fails.
Steps to reproduce
- Start a migration from NS7 to NS8
- Access NS8, the user list is not visible
Expected behavior
The user list should be visible and the migration can be completed from NS7.
Actual behavior
The user list is not visible and the migrations can't be completed.
Components
core-3.6.0
Error Logs
On NS8:
Traceback (most recent call last):
File "/var/lib/nethserver/cluster/actions/list-domain-users/50list_users", line 33, in <module>
users = Ldapclient.factory(**domain).list_users()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/agent/pypkg/agent/ldapclient/rfc2307.py", line 135, in list_users
max_pwd_age = self.get_pwd_max_age()
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/agent/pypkg/agent/ldapclient/rfc2307.py", line 30, in get_pwd_max_age
response = self.ldapconn.search(f'cn=default,ou=PPolicy,{self.base_dn}', '(objectClass=pwdPolicy)', attributes=['pwdMaxAge'])[2]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/agent/pyenv/lib64/python3.11/site-packages/ldap3/core/connection.py", line 836, in search
raise LDAPAttributeError(self.last_error)
ldap3.core.exceptions.LDAPAttributeError: invalid attribute type pwdMaxAge
On NS7:
The errors appearing on NethServer 7 are:
The following command failed:
nethserver-ns8-migration/migration/update
echo '{"app":"nethserver-mail","action":"sync"}' | /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-ns8-migration/migration/update | jq
{"context":{"action":"import-module","data":{"credentials":["mail1","58905ea0b1b5b-7a5a-48c0-a95a-2efde8387e29"],"port":20007,"volumes":["dovecot-data","rspamd-redis"]},"extra":{"description":"ns8-action endpoint http://10.5.4.1:9311","isNotificationHidden":false,"title":"module/mail1/import-module"},"id":"73085b9b-3bbf-4be6-a308-00a834974c96","parent":"","queue":"module/mail1/tasks","timestamp":"2025-03-17T20:52:05.054149569Z","user":"ns7admin2"},"status":"validation-failed","progress":0,"subTasks":[],"validated":false,"result":{"error":"","exit_code":2,"file":"task/module/mail1/73085b9b-3bbf-4be6-a308-00a834974c96","output":[{"error":"module_already_imported","field":"none","parameter":"none","value":""}]}}
See also
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
verifiedAll test cases were verified successfullyAll test cases were verified successfully
Type
Projects
Status
Done