DatabaseError at /registration/login/
0
Hi.
I was using GitStack flawlessly until suddenly, after rebooting my PC,
I started getting a DatabaseError at /registration/login/.
I tried reinstalling GitStack to the latest version, to no avail.
Is there anything I can do to solve this issue? Below you may find the stack trace reported by the app. Thanks in advance.
Tags: asked April 28, 2014
Environment:
Request Method: GET
Request URL: http://localhost/registration/login/?next=/gitstack/
Django Version: 1.4.8
Python Version: 2.7.2
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'gitstack',
'rest')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "E:\Programas\GitStack\python\lib\site-packages\django\core\handlers\base.py" in get_response
188. response = middleware_method(request, response)
File "E:\Programas\GitStack\python\lib\site-packages\django\contrib\sessions\middleware.py" in process_response
36. request.session.save()
File "E:\Programas\GitStack\python\lib\site-packages\django\contrib\sessions\backends\db.py" in save
58. obj.save(force_insert=must_create, using=using)
File "E:\Programas\GitStack\python\lib\site-packages\django\db\models\base.py" in save
463. self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "E:\Programas\GitStack\python\lib\site-packages\django\db\models\base.py" in save_base
551. result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "E:\Programas\GitStack\python\lib\site-packages\django\db\models\manager.py" in _insert
203. return insert_query(self.model, objs, fields, **kwargs)
File "E:\Programas\GitStack\python\lib\site-packages\django\db\models\query.py" in insert_query
1593. return query.get_compiler(using=using).execute_sql(return_id)
File "E:\Programas\GitStack\python\lib\site-packages\django\db\models\sql\compiler.py" in execute_sql
912. cursor.execute(sql, params)
File "E:\Programas\GitStack\python\lib\site-packages\django\db\backends\util.py" in execute
40. return self.cursor.execute(sql, params)
File "E:\Programas\GitStack\python\lib\site-packages\django\db\backends\sqlite3\base.py" in execute
344. return Database.Cursor.execute(self, query, params)
Exception Type: DatabaseError at /registration/login/
Exception Value: unable to open database file
barba
0
1 Answer
0
Very weird. The data which contains only your admin password is corrupted. Could you try to replace your C:/GitStack/data/data.db file with the one located at: https://github.com/smart-mobile-software/gitstack/tree/master/data ?
Your GitStack admin password will be reverted to the default one. No other info is contained in this database.
Your GitStack admin password will be reverted to the default one. No other info is contained in this database.
Your Answer
Please login to post questions.