commercialhaskell / commercialhaskell/stack
Ubuntu 20.04 on Hyper-V: SQLite3 returned ErrorBusy while attempting to perform step: database is locked
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
I'm running Ubuntu 20.04 on Hyper-V on Windows 10. I have no issues running v1.9.3, however, if I try to build a project using 2.7.3 I receive an error `SQLite3 returned ErrorBusy while attempting to perform step: database is locked`.
I've followed the instructions to delete the stack database in the suggestion location, as well as in ~/.stack, but nothing seems to work.
At this point, any stack command gives me a 'database is locked' message.
I've uninstalled + reinstalled stack. I've tried with a fresh project also, just to make sure there wasn't anything strange in my existing .stack-work folders.
```
Version 2.7.3, Git revision 7927a3aec32e2b2e5e4fb5be76d0d50eddcc197f x86_64 hpack-0.34.4
```
Thanks,
N
Contributor guide
Research direction
Start by reproducing the failure on Ubuntu 20.04 under Hyper-V with Stack 2.7.3, comparing it with version 1.9.3 and a fresh project. Trace the SQLite database access involved in a build and subsequent Stack commands; done means the lock error no longer occurs and normal commands work in the reported environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell, sqlite
- Domain
- cli, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100