ankidroid / ankidroid/Anki-Android

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

Open
#19,545 8 comments 0 reactions 0 assignees View on GitHub
2.23 Priority-Low
Dominant language
Kotlin
Stars
11.8k
Forks
2.9k
Avg merge
2d 3h
Merged PRs (30d)
171

Description

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.(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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.