Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error restoring backup #5582

Closed
3 tasks done
Gravity2106 opened this issue Jan 31, 2024 · 0 comments · Fixed by #5585
Closed
3 tasks done

Error restoring backup #5582

Gravity2106 opened this issue Jan 31, 2024 · 0 comments · Fixed by #5585
Labels
bug Something isn't working

Comments

@Gravity2106
Copy link

Steps to reproduce

Do a backup
Change the instance
Restore the backup

Expected behavior

The backup should leave the app as before without the pop up.
It doesn't work neither for the backups of the playlists, a lot of videos are lost

Actual behavior

android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: LocalPlaylist.id (code 1555 SQLITE_CONSTRAINT_PRIMARYKEY)
	at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
	at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:961)
	at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:790)
	at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:89)
	at androidx.sqlite.db.framework.FrameworkSQLiteStatement.executeInsert(SourceFile:3)
	at com.github.libretube.db.dao.LocalPlaylistsDao_Impl$8.call(SourceFile:68)
	at androidx.room.CoroutinesRoom$Companion$execute$2.invokeSuspend(SourceFile:6)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
	at kotlinx.coroutines.DispatchedTask.run(SourceFile:115)
	at androidx.work.impl.WorkerWrapper$$ExternalSyntheticLambda0.run(SourceFile:278)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
	at java.lang.Thread.run(Thread.java:1012)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@c28fec9, Dispatchers.IO]
    

LibreTube version

versión 0.21.1

Android version

Android 14

Other details

Thank you for your work

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant