What app is this about, and its version: Vikunja 2.8.0~ynh1 What YunoHost version are you running: YunoHost 12.1.43 What type of hardware are you using: Virtual machine
Describe your issue
After an update (not sure which one) all my tasks disappeared.
I check the database with PGAdmin 4.
Tasks are still there but assigned to user n°1, who use local authentication.
I suppose I’m login with user n°2, who use LDAP.
Both users have the same name.
Someone used a workaround to solve this issue by changing the config.yml file to disabled LDAP.
I tried by that didn’t help me.
What do you think I can try ?
Disabling LDAP + removing user N°2. Restart the service and login again ?
Edit all table about task and change value of user assignation ?
@Cyril
Deux utilisateurs avec le même nom d’utilisateur (username), c’est quand même étrange.
yunohost app shell vikunja
./vikunja user list
Tu peux simplement tenter mettre à jour dans pgadmin les champs de chaque utilisateur -ou simplement inverser certains champs-. Ce n’est pas sans risque et une sauvegarde complète (c’est à dire bdd comprise) préalable semble plus prudente.
D’abord, arrêter vikunja
Puis, en gros, changer la valeur du champ issuer pour l’utilisateur 1 de local à ldap et de faire en sorte que les champs propres aux utilisateurs ldap soient bien remplis (name, subject) -a priori en copiant ceux de l’utilisateur 2.
Puis changer le nom de l’utilisateur 2, le passer de ldap à local, etc.
Thanks for the URL.
It seems that linking is used if you want your local user authentication done with SSO (openID or LDAP)
The new user, that show none of my tasks is already an LDAP user from Yunohost.
I would like to see tasks that was created by the user with local authentication.
Hello @otm33
Oui, c’est lié à une mise à jour de Vikunja qui prend en charge le LDAP, ce que l’application ne faisait pas avant.
Et comme j’avais créé un compte local identique à mon compte yunohost, ça fait doublon.
Merci pour l’idée !
Plutôt que de changer les id dans les tasks, je vais inverser les utilisateurs !!
J’ai bien des backups avec Borg et ils fonctionnent : j’avais tenté de restaurer une ancienne version.
With pgAdmin 4, I copied values from the new LDAP user to the local one (username, issuer, subject) and remove the password.
Then I deleted the new user. Changing the username wasn’t enough.