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

'Permission denied' during export #339

Closed
jbaiter opened this issue Jun 3, 2015 · 2 comments
Closed

'Permission denied' during export #339

jbaiter opened this issue Jun 3, 2015 · 2 comments

Comments

@jbaiter
Copy link

jbaiter commented Jun 3, 2015

Whenever I try to export, no matter which format, I get a 'permission denied' toast.

Here is the relevant part of the log:

I/ExportDialogFragment( 6219): Commencing async export of transactions
W/System.err( 6219): java.io.FileNotFoundException: /storage/emulated/0/Android/data/org.gnucash.android/files/20150603_135620_gnucash_export.qif: open failed: EACCES (Permission denied)
W/System.err( 6219):    at libcore.io.IoBridge.open(IoBridge.java:456)
W/System.err( 6219):    at java.io.FileOutputStream.<init>(FileOutputStream.java:87)
W/System.err( 6219):    at java.io.FileOutputStream.<init>(FileOutputStream.java:72)
W/System.err( 6219):    at org.gnucash.android.export.ExporterAsyncTask.doInBackground(ExporterAsyncTask.java:115)
W/System.err( 6219):    at org.gnucash.android.export.ExporterAsyncTask.doInBackground(ExporterAsyncTask.java:52)
W/System.err( 6219):    at android.os.AsyncTask$2.call(AsyncTask.java:288)
W/System.err( 6219):    at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err( 6219):    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
W/System.err( 6219):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/System.err( 6219):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/System.err( 6219):    at java.lang.Thread.run(Thread.java:818)
W/System.err( 6219): Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
W/System.err( 6219):    at libcore.io.Posix.open(Native Method)
W/System.err( 6219):    at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
W/System.err( 6219):    at libcore.io.IoBridge.open(IoBridge.java:442)
W/System.err( 6219):    ... 10 more
E/ExporterAsyncTask( 6219): /storage/emulated/0/Android/data/org.gnucash.android/files/20150603_135620_gnucash_export.qif: open failed: EACCES (Permission denied)

Funnily enough, the parent directory of the file to be created does exist and seems to be writeable:

root@titan_umtsds:/ # ls -l /storage/emulated/0/Android/data/org.gnucash.andro>
drwxrwx--- root     sdcard_r          2015-06-03 13:33 files

My phone is a Moto G 2014 running Lolipop. I also have a MicroSD card, which is mounted at /storage/sdcard1. The app was installed via F-Droid, the version is 1.5.5.

@codinguser
Copy link
Owner

This should be fixed in v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants