Advertisement
boubou

Untitled

Apr 5th, 2023
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | Help | 0 0
  1. # ./create_db.py
  2. error: in the config file: /etc/roxy-wi/roxy-wi.cfg: No section: 'mysql'
  3. Traceback (most recent call last):
  4. File "/usr/lib/python3/dist-packages/peewee.py", line 3096, in connect
  5. self._state.set_connection(self._connect())
  6. File "/usr/lib/python3/dist-packages/peewee.py", line 3432, in _connect
  7. conn = sqlite3.connect(self.database, timeout=self._timeout,
  8. sqlite3.OperationalError: unable to open database file
  9.  
  10. During handling of the above exception, another exception occurred:
  11.  
  12. Traceback (most recent call last):
  13. File "/var/www/haproxy-wi/app/./create_db.py", line 832, in <module>
  14. create_tables()
  15. File "/var/www/haproxy-wi/app/modules/db/db_model.py", line 594, in create_tables
  16. with conn:
  17. File "/usr/lib/python3/dist-packages/peewee.py", line 3064, in __enter__
  18. self.connect()
  19. File "/usr/lib/python3/dist-packages/peewee.py", line 3095, in connect
  20. with __exception_wrapper__:
  21. File "/usr/lib/python3/dist-packages/peewee.py", line 2933, in __exit__
  22. reraise(new_type, new_type(exc_value, *exc_args), traceback)
  23. File "/usr/lib/python3/dist-packages/peewee.py", line 191, in reraise
  24. raise value.with_traceback(tb)
  25. File "/usr/lib/python3/dist-packages/peewee.py", line 3096, in connect
  26. self._state.set_connection(self._connect())
  27. File "/usr/lib/python3/dist-packages/peewee.py", line 3432, in _connect
  28. conn = sqlite3.connect(self.database, timeout=self._timeout,
  29. peewee.OperationalError: unable to open database file
Tags: roxy_wi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement