Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNoah Fields
13,985 PointsWhat exactly is the "database is locked" error?
In a this video it is mentioned that we may run into a "database is locked" error, and have to run the command "rm social.db" for the program to work. Every time I've tried to run app.py, I have gotten this error and had to execute the above command, even if app.py was only open for a few seconds before a typo or edit forced it to close and be restarted from the console. While the fix for this issue is simple and quick, being just one brief command, what I don't know is what exactly is happening when this error occurs and is fixed in this manner. Can anyone gives an explanation of what exactly is happening with this error?