It is because perhaps I have the user admin with a home directory and email set up…
Perhaps just have to delete the user admin, but first do the necessary to connect with other user !
Help !! comment finir la migration ??? L’utilisateur admin n’existe plus, il a du être supprimé avec la migration ??? Mais je ne peux plus me connecter avec la webadmin et j’ai garder une console connectée en SSH (pour combien de temps)… Comment résoudre cette erreur qui empêche la migration ???
NFO - attribute 'mail' with value 'admin@maindomain.tld' is not unique
2023-02-03 10:52:48,661: WARNING - Impossible de migrer... tentative de restauration du système.
2023-02-03 10:52:48,790: INFO - Système rétabli dans son état initial.
2023-02-03 10:52:48,791: ERROR - La migration 0026_new_admins_group a échoué avec l'exception La mise à jour du groupe 'admins' a échoué : L'attribut LDAP 'mail' existe déjà avec la valeur 'admin@maindomain.tld' : annulation
Ok, I found how resolve on support chat. First check existing aliases: sudo yunohost user list --fields mail-alias
In my case, a user have few aliases to delete (abuse@domain_tld, postmaster@domain_tld, webmaster@domain_tld, admin@domain_tld) So first delete them, for example: sudo yunohost user update <first_user> --remove-mailalias <postmaster@mydomain.tld>
Then you can run the migration sudo yunohost migation run
With the new version, the aliases will be automatically attributed to users in the group admins, non need add the aliases for the system…
Bonjour,
Ce jour Yunohost propose une mise à jour 11.1.5.3. Devons-nous effectuer cette mise à jour ?
Je trouve ceci comme info sur la release:
Update changelog for 11.1.5.3
dev
debian/11.1.5.3
@alexAubin
alexAubin committed Feb 3, 2023
1 parent 2107a84 commit c255fe24955e00c2041d93766624c06b39c5b984
Showing 1 changed file with 8 additions and 1 deletion.
9
debian/changelog
@@ -1,4 +1,11 @@
yunohost (11.1.5.2) testing; urgency=low
yunohost (11.1.5.3) stable; urgency=low
- helpers/appsv2: replacement of __PHPVERSION__ should use the phpversion setting, not YNH_PHP_VERSION (13d4e16e)
- appv2 resources: document the fact that the apt resource may create a phpversion setting when the dependencies contain php packages (2107a848)
-- Alexandre Aubin <xxxxxx@xxxx.org> Fri, 03 Feb 2023 03:05:11 +0100
yunohost (11.1.5.2) stable; urgency=low
Pourquoi ne devriez-vous pas ? Je trouve la question inquiétante.
Comme indiqué dans le changelog, ce sont des patchs mineurs sur le packaging v2, avec une urgence basse.
Donc tu devras faire la mise à jour tôt ou tard, et de manière imposée quand une de tes apps utilisant le packaging v2 devra faire appel aux helpers corrigés.
Ok, en effet, c’est à cause du pb avec la Release libérée par erreur il y a quelques temps et parce que ça me surprenais 2 commit en 2 jours.
Mais aussi, et surtout, je suis loin d’être un expert.
C’est bien d’être circonspect. Dans le cas présent, il est assez sûr de faire les mises à jour au sein des mêmes versions majeures (11.1.x vers 11.1.x). Pour les changements de version majeure, il y a une annonce de faite sur le forum, comme celle-ci ici.
Bravo pour tout ! Yunohost continue de m’étonner depuis déjà plusieurs années et j’ai bien l’impression que ce n’est pas prêt de s’arrêter ! Merci infiniment !
I updated manually via command line but didn’t notice that it was a major upgrade. So I was confused and a bit worried (because I was 100% sure that I didn’t change any config myself and I’m the only administrator on this server) when I received an email about an “Activity on Nextcloud” with the info “An administrator added you to group admins” and several “Undelivered Mail Returned to Sender” (Diagnostic-Code: x-unix; user unknown) for emails sent to the old admin user.
It took me a while to find out that this was caused by the upgrade a few hours earlier. I think it would be a good idea to send an email to the admin user(s) after such upgrades to notify them about the changes and link to the announcement on the forum.
Apart from that everything went well and the new interface is great! Thanks a lot to all contributors for all your work on YunoHost!
Had the same issue, but reading the error message thoroughly gave me the clue…
One of your users probably is configured to use the email from the error message (admin@mydomain.example) a mail alias.
I was able to do the migration after I deleted the respective mail alias from the command line: yunohost user update username --remove-mailalias admin@mydomain.example
Small problem after the update with SSH. I might be my setup and the “old age” of the server
Everything is fine in the webui and the “legacy_admin”. Issue happens when I ssh with my user “gofannon” instead of the default one. I do not have a “home directory”
ssh connection:
Local IP: 1.2.3.4
Local SSL CA X509 fingerprint:
XXXXXX
SSH fingerprints:
- SHA256:XXXX (ECDSA)
- SHA256:XXX (ED25519)
- SHA256:XXX (RSA)
You have no mail.
Could not chdir to home directory /home/gofannon: No such file or directory
gofannon@yuno:/$ pwd
/
gofannon@yuno:/$
gofannon@yuno:/$ ls -1 /home/
admin
user1
user2
yunohost.airsonic
yunohost.app
yunohost.backup
yunohost.multimedia
yunohost.simple-torrent
yunohost.transmission
Conclusion
gofannon user should have a “home dir.” as well as others users shown in the webui
I can recreated them by hand as I know how to use the linux cli. I might not the only one in this case so I let it to the “core dev” to check if something needs to be done about it (in the ‘diagnosis panel’ or in the documentation)
Issue could be because of a faulty app uninstall in the past or my fault (hello my dear rm)
Connection is fine, just a warning while login. I wanted to try to ssh with the “new admin user” gofannon and move my ssh key from /home/admin/.ssh/authorized_keys
Thanks, too cryptic for me unfortunately. I have knowledge with IAM and SSO protocols OpenID and SAML so I wanted to give a look but my time is limited
It’s less about refactoring the SSO layer itself and more about separating the user portal (and rewriting the portal with modern technology + having a proper “user API”) from the SSO layer