Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ./create_db.py
- error: in the config file: /etc/roxy-wi/roxy-wi.cfg: No section: 'mysql'
- Traceback (most recent call last):
- File "/usr/lib/python3/dist-packages/peewee.py", line 3096, in connect
- self._state.set_connection(self._connect())
- File "/usr/lib/python3/dist-packages/peewee.py", line 3432, in _connect
- conn = sqlite3.connect(self.database, timeout=self._timeout,
- sqlite3.OperationalError: unable to open database file
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/var/www/haproxy-wi/app/./create_db.py", line 832, in <module>
- create_tables()
- File "/var/www/haproxy-wi/app/modules/db/db_model.py", line 594, in create_tables
- with conn:
- File "/usr/lib/python3/dist-packages/peewee.py", line 3064, in __enter__
- self.connect()
- File "/usr/lib/python3/dist-packages/peewee.py", line 3095, in connect
- with __exception_wrapper__:
- File "/usr/lib/python3/dist-packages/peewee.py", line 2933, in __exit__
- reraise(new_type, new_type(exc_value, *exc_args), traceback)
- File "/usr/lib/python3/dist-packages/peewee.py", line 191, in reraise
- raise value.with_traceback(tb)
- File "/usr/lib/python3/dist-packages/peewee.py", line 3096, in connect
- self._state.set_connection(self._connect())
- File "/usr/lib/python3/dist-packages/peewee.py", line 3432, in _connect
- conn = sqlite3.connect(self.database, timeout=self._timeout,
- peewee.OperationalError: unable to open database file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement