sqllinuxsqlitetup

tup SQL reset error: database is locked


Just installed tup on ubuntu 16.04 and got the following error:

$ tup init  
.tup repository initialized.  
SQL reset error: database is locked  
Statement was: commit  

Also tup upd has error as well.

$ tup upd
.tup/shared: No such file or directory
tup error: Unable to open lockfile.

Any ideas on how I can get tup to work?

EDIT: I downloaded the source from git (https://github.com/gittup/tup) and stepped through it and the error appears to be in src/tup/db.c:tup_db_commit() line 933

rc = sqlite3_step(*stmt);  

sqlite3_step function is returning SQLITE_BUSY(5).
My noob guess is that I'm using a newer version of sqlite and some cleanup isn't being done correctly anymore. But it definitely seems like some sort of sqllite3 issue.


Solution

  • according to multiple other questions/answers on stackoverflow, you are not supposed to use sqlite3 on a network drive. So by association, you should not use tup on a network drive.