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

DBAccessError permission denied in app #71

Closed
Firnagzen opened this issue Jan 8, 2014 · 1 comment
Closed

DBAccessError permission denied in app #71

Firnagzen opened this issue Jan 8, 2014 · 1 comment

Comments

@Firnagzen
Copy link

Having successfully built and pushed the app to my phone, a Samsung Galaxy Nexus (maguro, GSM version), the app displays a kivy loading screen before crashing. The logcat, from buildozer android logcat, is as follows:

Traceback (most recent call last):
  File "/usr/local/bin/buildozer", line 5, in <module>
    run()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 1195, in run
    Buildozer().run_command(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 833, in run_command
    self.set_target(command)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 121, in set_target
    self.check_build_layout()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 351, in check_build_layout
    self.state = shelve.open(join(self.buildozer_dir, 'state.db'))
  File "/usr/lib/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/usr/lib/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/usr/lib/python2.7/anydbm.py", line 85, in open
    return mod.open(file, flag, mode)
  File "/usr/lib/python2.7/dbhash.py", line 18, in open
    return bsddb.hashopen(file, flag, mode)
  File "/usr/lib/python2.7/bsddb/__init__.py", line 364, in hashopen
    d.open(file, db.DB_HASH, flags, mode)
bsddb.db.DBAccessError: (13, 'Permission denied')

There are currently no read/write operations in my app; I commented them out for testing purposes. Furthermore, I have given the permissions READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE in the buildozer.spec, just in case.

@tito
Copy link
Member

tito commented Apr 21, 2014

Hi, This issue wasn't about a read/write in your app, but Buildozer's database that fail to be opened for an unknow reason. We changed the storage to json now, and it has another read/save mechanism, so it might help.

Ensure you have no runned the buildozer with sudo one time, and without sudo next time. You must NEVER use sudo with buildozer.

@tito tito closed this as completed Apr 21, 2014
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

2 participants