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

Cannot start Babble on certain devices #20

Closed
joneskm opened this issue Feb 10, 2020 · 3 comments
Closed

Cannot start Babble on certain devices #20

joneskm opened this issue Feb 10, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@joneskm
Copy link
Contributor

joneskm commented Feb 10, 2020

Starting Babble fails with the message:

Cannot initialize engine: Cannot acquire directory lock on "/data/user/0/io.mosaicnetworks.sample/files/babble/io.mosaicnetworks.sample_9tJjG8g4A0Bq_ccc_/badger_db". Another process is using this Badger database.: permission denied

Issue seems to occur on devices running Android 6 only. Error was reproduced on Samsung A3 running Android 6.0.1 and Samsung Galaxy s5 running 6.0.1

This project seems to have the same issue. They observe:

"Log suggest that SELinux is blocking the flock call, and issue seems to be a known bug in android 6. See this.

@joneskm joneskm added the bug Something isn't working label Feb 10, 2020
@jonknight73
Copy link
Contributor

jonknight73 commented Feb 18, 2020

I have experienced the same issue on an Amazon Fire Tablet with a nominal API 22, Android 5.1.1.

02-18 10:11:04.390 28520-28520/io.mosaicnetworks.sample W/networks.sample: type=1400 audit(0.0:725): avc: denied { lock } for path="/data/data/io.mosaicnetworks.sample/files/babble/io.mosaicnetworks.sample_JxSG4f2ohO04_vfc_/badger_db" dev="mmcblk0p13" ino=145743 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:app_data_file:s0 tclass=dir permissive=0

@jonknight73
Copy link
Contributor

jonknight73 commented Feb 18, 2020

The exact issue is this one:

dgraph-io/badger#988

Which mentions a pull request with this commit:
https://github.com/ronaksoft/badger/commit/3a62d2f3c69a0691b7940fca3269fb433844c309

@joneskm
Copy link
Contributor Author

joneskm commented Feb 20, 2020

This has been fixed in the Babble dependency by this pull request.

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

No branches or pull requests

2 participants