-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Running smos-sync-client sync results in SQLITE_BUSY error #202
Comments
Wow I've never seen this before. Is it reproducible on your machine? How can I reproduce it? |
It is 100% reproducible on my machine - is there away to enable trace / debug logs so I can send more information? |
@jhbertra you can use |
@NorfairKing debug logging didn't have any new information - I checked the directories and these were the contents
|
Does smos-sync-client create multiple connections inside |
Here is the debug log: I might have been premature to claim it showed nothing new... it looks like the error is happening after
|
No,
Could it be that the database was somehow left in a locked state? What happens if you remove |
Yeah, I found that when I started digging into the code a bit.
Same thing happens. I looked through Ironically, it was added to address the exact issue I'm facing. I'm guessing this is a bug in |
Interesting. I think I just found another issue that may be related to this:
I think that if you just add |
Hey, that worked! Want me to PR this change? |
That would be great! I can't explain it but I'm not going to complain about that too much :P |
It could be something related to running on MacOS, or it could be something with my specific sqlite3 version... either way, if this is a change you want regardless then great! |
Yes absolutely! I wrote that line of code before I really understood how file locking works. |
Actually, would you mind summarizing how this works for my benefit? I don't really understand the change I just PR'd, so had a hard time summarizing it. From the looks of the |
@jhbertra I responded to your question here: #203 (comment) |
Reproduction Steps:
smos-sync-client login
and provide passwordsmos-sync-client sync
Expected Result:
Actual Result:
Environment info:
The text was updated successfully, but these errors were encountered: