please tell us more about the conditions that cause it.
If you use the shell (or background process) at the same time as the
web app make sure you unlock the db with periodic db.commit()

Massimo

On Jun 12, 9:42 pm, dbb <[email protected]> wrote:
> Help resolving this issue, the database keeps locking, the trace is :
>
> Traceback (most recent call last):
>   File "C:\web2pyy\gluon\restricted.py", line 173, in restricted
>     exec ccode in environment
>   File "C:/web2pyy/applications/ET/models/db.py", line 58, in <module>
>     db.vho.import_from_csv_file(open('C:/data/
> xxx.csv','r'),migrate=migrate)
>   File "C:\web2pyy\gluon\sql.py", line 1968, in import_from_csv_file
>     new_id = self.insert(**dict(items))
>   File "C:\web2pyy\gluon\sql.py", line 1879, in insert
>     self._db._execute(query)
>   File "C:\web2pyy\gluon\sql.py", line 895, in <lambda>
>     self._execute = lambda *a, **b: self._cursor.execute(*a, **b)
> OperationalError: database is locke

Reply via email to