<class 'RuntimeError'> File
/home/vladtseytkin/web2py-vt/applications/vt/databases/c8b669d15150d7109e5f7ab36744a5b7_podcast.table
appears corrupted
I haven't changed or updated anything for a while, so it's not caused by
anything that I would have done. Any ideas on how to restore the good
behavior and get rid of this problem? It seems that it's something
internal...
*Traceback (most recent call last):*
* File
"/home/vladtseytkin/web2py-vt/gluon/packages/dal/pydal/migrator.py", line
296, in create_table*
* sql_fields_old = pickle.load(tfile)*
*EOFError: Ran out of input*
*During handling of the above exception, another exception occurred:*
*Traceback (most recent call last):*
* File "/home/vladtseytkin/web2py-vt/gluon/restricted.py", line 219, in
restricted*
* exec(ccode, environment)*
* File "/home/vladtseytkin/web2py-vt/applications/vt/models/db.py", line
168, in <module>*
* Field('explicit', default='no'))*
* File "/home/vladtseytkin/web2py-vt/gluon/packages/dal/pydal/base.py",
line 590, in define_table*
* table = self.lazy_define_table(tablename, *fields, **kwargs)*
* File "/home/vladtseytkin/web2py-vt/gluon/packages/dal/pydal/base.py",
line 624, in lazy_define_table*
* polymodel=polymodel)*
* File
"/home/vladtseytkin/web2py-vt/gluon/packages/dal/pydal/adapters/base.py",
line 798, in create_table*
* return self.migrator.create_table(*args, **kwargs)*
* File
"/home/vladtseytkin/web2py-vt/gluon/packages/dal/pydal/migrator.py", line
299, in create_table*
* raise RuntimeError('File %s appears corrupted' % table._dbt)*
*RuntimeError: File
/home/vladtseytkin/web2py-vt/applications/vt/databases/c8b669d15150d7109e5f7ab36744a5b7_podcast.table
appears corrupted*
Error snapshot help
RuntimeError(File
/home/vladtseytkin/web2py-vt/applications/vt/databases/c8b669d15150d7109e5f7ab36744a5b7_podcast.table
appears corrupted)
Frames
File /home/vladtseytkin/web2py-vt/gluon/restricted.py in restricted at line
219
File /home/vladtseytkin/web2py-vt/applications/vt/models/db.py in <module>
at line 168
File /home/vladtseytkin/web2py-vt/gluon/packages/dal/pydal/base.py in
define_table at line 590
File /home/vladtseytkin/web2py-vt/gluon/packages/dal/pydal/base.py in
lazy_define_table at line 624
File /home/vladtseytkin/web2py-vt/gluon/packages/dal/pydal/adapters/base.py
in create_table at line 798
File /home/vladtseytkin/web2py-vt/gluon/packages/dal/pydal/migrator.py in
create_table at line 299
*Code listing*
* tfile = self.file_open(table._dbt, 'rb')*
* try:*
* sql_fields_old = pickle.load(tfile)*
* except EOFError:*
* self.file_close(tfile)*
* raise RuntimeError('File %s appears corrupted' %
table._dbt)*
* self.file_close(tfile)*
* # add missing rnames*
* for key, item in sql_fields_old.items():*
* tmp = sql_fields.get(key)*
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/313db595-fe76-40c8-b0ec-b880cc6d5eb9n%40googlegroups.com.