Hi I got a pretty big problem. My web2py seems to be completly broken. even
my last backup won't work. when I go to my site I get:
Internal errorTicket issued: unknown
and I can't access the appadmin.
I tried to use the console to backup the database:
python web2py.py -S appname -M
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2018
Version 2.14.6-stable+timestamp.2016.05.10.00.21.47
Database drivers available: sqlite3, imaplib, pyodbc, pymysql, pg8000
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/restricted.py", line 227, in restricted
exec ccode in environment
File "applications/appname/models/menu.py", line 79, in <module>
_()
File "applications/appname/models/menu.py", line 52, in _
if auth.has_membership('Author'):
File "/home/www-data/web2py/gluon/tools.py", line 4360, in has_membership
group_id = self.id_group(group_id) # interpret group_id as a role
File "/home/www-data/web2py/gluon/tools.py", line 4331, in id_group
rows = self.db(self.table_group().role == role).select()
File "/home/www-data/web2py/gluon/packages/dal/pydal/objects.py", line
2020, i n select
return adapter.select(self.query, fields, attributes)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/sqlite.py",
line 123, in select
return super(SQLiteAdapter, self).select(query, fields, attributes)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py",
line 1 296, in select
return self._select_aux(sql,fields,attributes)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py",
line 1 253, in _select_aux
self.execute(sql)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py",
line 1 388, in execute
return self.log_execute(*a, **b)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py",
line 1 382, in log_execute
ret = self.get_cursor().execute(command, *a[1:], **b)
OperationalError: unable to open database file
how would you guys try to fix it? I know I neglected my site for quite a
while but I have no idea why it stopped working. (when I noticed it the
oldest backup was overwritten with a non working version.
I am expecting some damage from it but I want the least amount of damage
(obviously)
Thanks for your help.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.