Vikunja task disappeared after update

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 ?

6ril

@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.
  • relancer vikunja et croiser les doigts.

Hm, but what is the cause?

Maybe this linking can also help with LDAP? Settings

It does mention LDAP: https://vikunja.io/docs/openid/#linked-accounts

Hi @tmb,

The cause seems to come from an update that take into account LDAP as previous version didn’t : All tasks were gone after update to 2.1.0 · Issue #112 · YunoHost-Apps/vikunja_ynh · GitHub

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.

Yesss !
It works :

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.

When login in, I found all my precious task !!

Thanks,
Cyril