Skip to content

[BUG] 2.23.0beta2 exportCollectionPackage: Failed to create file in '/data/local/tmp': Permission denied #19545

@david-allison

Description

@david-allison

https://ankidroid.org/acra/app/1/bug/359357/report/e0221922-b4d3-4674-886b-57439e6db04e

I don't believe this is new

net.ankiweb.rsdroid.BackendException$BackendCardTypeException: Failed to create file in '/data/local/tmp': Permission denied (os error 13) at path "/data/local/tmp/.tmpiWbHuw"
	at net.ankiweb.rsdroid.exceptions.BackendIoException.<init>(BackendIoException.java:23)
	at net.ankiweb.rsdroid.BackendException$Companion.fromError(BackendException.kt:197)
	at net.ankiweb.rsdroid.BackendKt.unpackResult(Backend.kt:317)
	at net.ankiweb.rsdroid.BackendKt.access$unpackResult(Backend.kt:1)
	at net.ankiweb.rsdroid.Backend.runMethodRaw$lambda$1(Backend.kt:133)
	at net.ankiweb.rsdroid.Backend.withBackend(Backend.kt:145)
	at net.ankiweb.rsdroid.Backend.runMethodRaw(Backend.kt:132)
	at anki.backend.GeneratedBackend.exportCollectionPackageRaw(GeneratedBackend.kt:2745)
	at anki.backend.GeneratedBackend.exportCollectionPackage(GeneratedBackend.kt:2754)
	at com.ichi2.anki.BackendExportingKt.exportCollectionPackage(BackendExporting.kt:131)
	at com.ichi2.anki.BackendExportingKt.access$exportCollectionPackage(BackendExporting.kt:1)
	at com.ichi2.anki.BackendExportingKt$exportCollectionPackage$2$1.invokeSuspend$lambda$0(BackendExporting.kt:59)
	at com.ichi2.anki.CollectionManager.withCol$lambda$1(CollectionManager.kt:146)
	at com.ichi2.anki.CollectionManager$withQueue$3.invokeSuspend(CollectionManager.java:128)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.java:113)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)
11-19 10:05:02.264 I/AnkiDroid( 6734): isLegacyStorage(): current dir: /data/local/tmp/external/AnkiDroid
11-19 10:05:02.264 I/AnkiDroid( 6734): scoped external dirs: /data/local/tmp/external
11-19 10:05:02.264 I/AnkiDroid( 6734): scoped internal dir: /data/user/0/com.ichi2.anki/files
11-19 10:05:02.264 I/AnkiDroid( 6734): isLegacyStorage(): current dir: /data/local/tmp/external/AnkiDroid
11-19 10:05:02.264 I/AnkiDroid( 6734): scoped external dirs: /data/local/tmp/external
11-19 10:05:02.264 I/AnkiDroid( 6734): scoped internal dir: /data/user/0/com.ichi2.anki/files

Metadata

Metadata

Assignees

No one assigned

    Type

    Priority

    None yet

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions