Skip to content

sqlite error on macOS: cannot change into wal mode from within a transaction #509

@mattmaddux

Description

@mattmaddux

I'm getting this error repeatedly on Mac OS 10.11 (El Capitan). Haven't been able to get it working correctly yet. I actually totally wiped the system after seeing the error the first time (for another reason) and figured I'd try again after the new install. I see the same thing every time, though not always on the same command. After running into the error I found the suggestion in the FAQ to use env no_proxy='*' on macOS, so I've done so, but it didn't solve the problem.

Any suggestions?

Here's my command line:

Media-Server:~ *****$ pip3 install --upgrade --pre acdcli
Collecting acdcli
  Using cached acdcli-0.3.2-py3-none-any.whl
Requirement already up-to-date: python-dateutil in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from acdcli)
Requirement already up-to-date: requests!=2.9.0,>=2.1.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from acdcli)
Requirement already up-to-date: requests-toolbelt!=0.5.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from acdcli)
Requirement already up-to-date: fusepy in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from acdcli)
Requirement already up-to-date: appdirs in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from acdcli)
Requirement already up-to-date: colorama in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from acdcli)
Requirement already up-to-date: six>=1.5 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from python-dateutil->acdcli)
Installing collected packages: acdcli
Successfully installed acdcli-0.3.2
Media-Server:~ $ env no_proxy='' acd_cli init
For the one-time authentication a browser (tab) will be opened at https://tensile-runway-92512.appspot.com/.
Please accept the request and save the plaintext response data into a file called "oauth_data" in the directory "/Users/
/Library/Caches/acd_cli".
Press a key to open a browser.

Press a key if you have saved the "oauth_data" file into "/Users/******/Library/Caches/acd_cli".

16-12-29 00:13:30.294 [CRITICAL] [acd_cli] - Root node not found. Please sync.
Media-Server:~ ****$ env no_proxy='' acd_cli sync
Getting changes..
Inserting nodes.
Media-Server:~ $ env no_proxy='' acd_cli -nl mount -ro /Users/
/cloud_drive
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/bin/acd_cli", line 11, in
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.6/bin/acd_cli.py", line 1574, in main
    cache = db.NodeCache(CACHE_PATH, SETTINGS_PATH, args.check)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/acdcli/cache/db.py", line 78, in init
    self._execute_pragma('journal_mode', self._conf['sqlite']['journal_mode'])
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/acdcli/cache/db.py", line 88, in _execute_pragma
    c.execute('PRAGMA %s=%s;' % (key, value))
sqlite3.OperationalError: cannot change into wal mode from within a transaction
Media-Server:~ ******$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions