Bug 1154359 - [abrt] graphite-web: base.py:347:get_new_connection:OperationalError: unable to open database file
Summary: [abrt] graphite-web: base.py:347:get_new_connection:OperationalError: unable ...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: graphite-web
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jonathan Steffan
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:930de6d57b00e131283e9efa1aa...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-19 09:15 UTC by ssabchew
Modified: 2014-11-22 20:59 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-11-22 20:59:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.28 KB, text/plain)
2014-10-19 09:15 UTC, ssabchew
no flags Details
File: environ (2.46 KB, text/plain)
2014-10-19 09:15 UTC, ssabchew
no flags Details

Description ssabchew 2014-10-19 09:15:11 UTC
Version-Release number of selected component:
graphite-web-0.9.12-5.fc20

Additional info:
reporter:       libreport-2.2.3
cmdline:        python /usr/lib/python2.7/site-packages/graphite/manage.py syncdb
dso_list:       python-django-1.6.7-1.fc20.noarch
executable:     /usr/lib/python2.7/site-packages/graphite/manage.py
kernel:         3.16.3-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
base.py:347:get_new_connection:OperationalError: unable to open database file

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/graphite/manage.py", line 13, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 415, in handle
    return self.handle_noargs(**options)
  File "/usr/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 57, in handle_noargs
    cursor = connection.cursor()
  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 162, in cursor
    cursor = util.CursorWrapper(self._cursor(), self)
  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 132, in _cursor
    self.ensure_connection()
  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 127, in ensure_connection
    self.connect()
  File "/usr/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 127, in ensure_connection
    self.connect()
  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 115, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/usr/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 347, in get_new_connection
    conn = Database.connect(**conn_params)
OperationalError: unable to open database file

Local variables in innermost frame:
conn_params: {u'detect_types': 3, u'check_same_thread': False, u'database': '/opt/graphite/storage/graphite.db'}
self: <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x21fcc90>

Comment 1 ssabchew 2014-10-19 09:15:14 UTC
Created attachment 948206 [details]
File: backtrace

Comment 2 ssabchew 2014-10-19 09:15:16 UTC
Created attachment 948207 [details]
File: environ

Comment 3 Jonathan Steffan 2014-11-22 20:59:53 UTC
Please see the README.fedora.

=========== README.fedora ===========

You must first run a syncdb to configure the webapp:

# python /usr/lib/python2.6/site-packages/graphite/manage.py syncdb


Note You need to log in before you can comment on or make changes to this bug.