Skip to content
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

Internal Server error when trying to register #1009

Closed
bileckme opened this issue Sep 25, 2013 · 2 comments
Closed

Internal Server error when trying to register #1009

bileckme opened this issue Sep 25, 2013 · 2 comments

Comments

@bileckme
Copy link

Everytime I try load the listing page for a project I get the following message.

"
Internal Server Error
There was an internal server error while processing your request.

You may reference this error as 5e69a298b69542809bead3bd3675fe26.
"

The following is the stack trace:

DatabaseError: attempt to write a readonly database
Internal Server Error: /register/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/utils/decorators.py", line 91, in _wrapped_view
response = view_func(request, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/views/decorators/cache.py", line 89, in _wrapped_view_func
response = view_func(request, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/transaction.py", line 223, in inner
return func(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/sentry-6.2.3-py2.7.egg/sentry/web/frontend/accounts.py", line 71, in register
user = form.save()
File "/usr/local/lib/python2.7/dist-packages/sentry-6.2.3-py2.7.egg/sentry/web/forms/accounts.py", line 47, in save
user.save()
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/models/base.py", line 546, in save
force_update=force_update, update_fields=update_fields)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/models/base.py", line 650, in save_base
result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/models/manager.py", line 215, in _insert
return insert_query(self.model, objs, fields, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/models/query.py", line 1675, in insert_query
return query.get_compiler(using=using).execute_sql(return_id)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/models/sql/compiler.py", line 937, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/backends/sqlite3/base.py", line 366, in execute
six.reraise(utils.DatabaseError, utils.DatabaseError(_tuple(e.args)), sys.exc_info()[2])
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/backends/sqlite3/base.py", line 362, in execute
return Database.Cursor.execute(self, query, params)
DatabaseError: attempt to write a readonly database

@dcramer dcramer closed this as completed Sep 26, 2013
@bileckme
Copy link
Author

After following your lead, I managed to do the following:

sudo chmod 0777 /etc/sentry.db
sudo chown www-data:www-data /etc/sentry.db

But I stilll get the error. See the stack trace.

Internal Server Error: /register/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/utils/decorators.py", line 91, in _wrapped_view
response = view_func(request, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/views/decorators/cache.py", line 89, in _wrapped_view_func
response = view_func(request, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/transaction.py", line 223, in inner
return func(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/sentry-6.2.3-py2.7.egg/sentry/web/frontend/accounts.py", line 71, in register
user = form.save()
File "/usr/local/lib/python2.7/dist-packages/sentry-6.2.3-py2.7.egg/sentry/web/forms/accounts.py", line 47, in save
user.save()
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/models/base.py", line 546, in save
force_update=force_update, update_fields=update_fields)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/models/base.py", line 650, in save_base
result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/models/manager.py", line 215, in _insert
return insert_query(self.model, objs, fields, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/models/query.py", line 1675, in insert_query
return query.get_compiler(using=using).execute_sql(return_id)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/models/sql/compiler.py", line 937, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/backends/sqlite3/base.py", line 366, in execute
six.reraise(utils.DatabaseError, utils.DatabaseError(_tuple(e.args)), sys.exc_info()[2])
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.4-py2.7.egg/django/db/backends/sqlite3/base.py", line 362, in execute
return Database.Cursor.execute(self, query, params)
DatabaseError: unable to open database file

@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants