-
Notifications
You must be signed in to change notification settings - Fork 842
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
Can no longer compile two things at once with 2.1.1 from 1.9.3 #4876
Comments
Tried this on some colleagues' machines, seems like it's to do with WSL 😿 p.s. i'm on WSL Ubuntu 18.04 |
The internet says WAL is broken on WSL, is there a choice to not use WAL :)? |
Oh, that's annoying, it certainly would be nice for Stack to work out of the box on WSL. Looks like WAL is enabled by default in |
I'm seeing this same issue running on MacOS with docker. |
Also encountering this on OS X with the docker build on 2.1.1. Went back to 1.9.3 and it was working again. |
Strange, I don't seem to be able to reproduce this on macOS (using the current stable version of Docker for Mac). |
Pull request that disables WAL mode for new databases: #4915 |
Disable WAL mode for SQLite databases (fixes #4876)
@borsboom @snoyberg A comment in microsoft/WSL#2395 says that disabling WAL will not fix the issue, just make it happen less often. Someone else reports working around it by introducing a delay to avoid the race condition. The core issue is microsoft/WSL#1927. This was reported more than two years ago, but so far still no response from Microsoft. |
I think disabling WAL by default is the right choice anyway (since it also can cause problems on network filesystems and with Docker for Mac). I think it's out of scope for Stack to do anything more to work around this issue. SQLite is hardly an esoteric choice for local data storage, and if Microsoft purports Linux compatibility it really should work out of the box. Adding 0.1 second delays before writing to the DB, as suggested in one comment, would be terrible for performance (and I suspect just makes the problem less likely). |
@borsboom Agreed. And this is anyway fixed in WSL2. Thanks! |
It used to be fine compiling a project in different .stack-work directories or different projects at the same time.
After upgrading to stack 2.1.1 I can't even build different projets at the same time let a long the same project.
Just get this error until the first build has finished. After that I can try build the second project.
This makes stack
unusable on CI, andpretty awful to use locally with multiple projects.The text was updated successfully, but these errors were encountered: