-
Notifications
You must be signed in to change notification settings - Fork 599
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
Error: Can't connect to the database: file is encrypted or is not a database #3181
Comments
@AdeHub I've already been to that page and nothing on there applies to my issue. I did look through all the links, but there is nothing in there to resolve the issue. |
Have you tried it? |
Have I tried what? There is nothing there about not being able to connect to a database. I have no corruption. There are 4 referenced posts about different things. |
I followed the information here: #1981 (comment). That seemed to fix the issue. I guess anytime there is a database issue, we should run that first. The first time, after many years, that I've ever had an issue with Headphones. |
I am getting this error below. It worked fine, but for now I cannot get it to run.
06-Jan-2019 16:21:29 - INFO :: MainThread : Checking to see if the database has all tables.... 06-Jan-2019 16:21:29 - ERROR :: MainThread : Can't connect to the database: file is encrypted or is not a database 06-Jan-2019 16:21:29 - INFO :: MainThread : Retrieving latest version information from GitHub 06-Jan-2019 16:21:31 - INFO :: MainThread : Comparing currently installed version with latest GitHub version 06-Jan-2019 16:21:31 - INFO :: MainThread : New version is available. You are 5 commits behind 06-Jan-2019 16:21:31 - INFO :: MainThread : Starting Headphones web server on http://0.0.0.0:8181/ 06-Jan-2019 16:21:34 - INFO :: MainThread : Scheduled background task: Search for Wanted 06-Jan-2019 16:21:34 - INFO :: MainThread : Scheduled background task: Download Scan 06-Jan-2019 16:21:34 - INFO :: MainThread : Scheduled background task: Library Scan 06-Jan-2019 16:21:34 - INFO :: MainThread : Scheduled background task: MusicBrainz Update 06-Jan-2019 16:21:34 - INFO :: MainThread : Scheduled background task: Check GitHub for updates 06-Jan-2019 16:21:34 - INFO :: MainThread : Scheduled background task: Torrent removal check
And this in the browser:
`500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "C:\Users\Vincent\AppData\Roaming\Headphones\lib/cherrypy_cprequest.py", line 670, in respond
response.body = self.handler()
File "C:\Users\Vincent\AppData\Roaming\Headphones\lib/cherrypy\lib\encoding.py", line 217, in call
self.body = self.oldhandler(*args, **kwargs)
File "C:\Users\Vincent\AppData\Roaming\Headphones\lib/cherrypy_cpdispatch.py", line 61, in call
return self.callable(*self.args, **self.kwargs)
File "C:\Users\Vincent\AppData\Roaming\Headphones\headphones\webserve.py", line 68, in home
myDB = db.DBConnection()
File "C:\Users\Vincent\AppData\Roaming\Headphones\headphones\db.py", line 49, in init
self.connection.execute("PRAGMA synchronous = OFF")
DatabaseError: file is encrypted or is not a database
`
The text was updated successfully, but these errors were encountered: