You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you didnt check if mysql for example: mysql> "show full processlist ;" to see the active mysql questions that are locking, might give a hint on which script is issuing the question.
yea thought more about the equivalent for sqlite, seems to be:
"You can look into sp_who and sp_who2 to see if they give you what you need. Otherwise, SQL Profiler can often help with problem diagnoses." just thinking it would help to know the question that is activly locking the db.
Yeah, the database is SQLite, hence tagged this issue like that. The problem went away after a refresh but it’s still confusing and might point to a different problem?
Someone told me that SQLite has a database based lock, which means that every access to the DB locks every other connection out for a while. Not sure whether the message you saw was due to a timeout when the lock took too much time.
Then comes the question about what was accessing your DB for so long 😟
yea and there lies the problem, without seeing the active questions in the db at the time I feel this bug needs to be closed and reopened again with additional info if the issue re occurs. Knowing which questions that were active seems crusial.
Please provide more information. Are you accessing the sqlite database in any other way than ownCloud? E.g. using a sqlite browser. Which version of PHP are you using? Which version of sqlite is this? Which operating system is this on?
SQLite can't properly deal with concurrent accesses. It it very likely that a background job kept the database busy which ended up in a timeout for the actual webinterface access. @PVince81 Does that make sense to you?
No, ownCloud is the only way which the database is being accessed. I sometimes access it via sqlite3 but only to recover ownCloud from error states. ;)
@bantu as said above: »Right before this I uploaded 3 files and before that I moved 2 files to a new folder.« They were images, each only ~300kB. This happened while I was using the web interface exclusively.
@VicDeo yes there are. No desktop sync client atm but 2 Androids and an iOS device (I only access one of the Androids frequently).
FYI: I have "Database is locked" error very frequently - see here #9701.
In short: it is enough to mount external storage with 500000 files and you have this error very often.
I agree and wish I had gone with mysql from the start vs. having to now convert later. I'd actually prefer that mysql was the default DB choice of owncloud to avoid users having this problem and then having to migrate later.
Not sure if this helps for you, but in my case a VACUUM; did the trick. The timeouts disappeared. Not sure if owncloud does this automatically already? I guess it should at least once a week or so.
I've also noticed that auto vaccum is disabled by default. Maybe that would also help.
Activity
kiranos commentedon Nov 4, 2013
you didnt check if mysql for example: mysql> "show full processlist ;" to see the active mysql questions that are locking, might give a hint on which script is issuing the question.
VicDeo commentedon Nov 4, 2013
IMO locking is exclusively related to Sqlite.
kiranos commentedon Nov 4, 2013
yea thought more about the equivalent for sqlite, seems to be:
"You can look into sp_who and sp_who2 to see if they give you what you need. Otherwise, SQL Profiler can often help with problem diagnoses." just thinking it would help to know the question that is activly locking the db.
jancborchardt commentedon Nov 4, 2013
Yeah, the database is SQLite, hence tagged this issue like that. The problem went away after a refresh but it’s still confusing and might point to a different problem?
PVince81 commentedon Nov 4, 2013
Someone told me that SQLite has a database based lock, which means that every access to the DB locks every other connection out for a while. Not sure whether the message you saw was due to a timeout when the lock took too much time.
Then comes the question about what was accessing your DB for so long 😟
kiranos commentedon Nov 4, 2013
yea and there lies the problem, without seeing the active questions in the db at the time I feel this bug needs to be closed and reopened again with additional info if the issue re occurs. Knowing which questions that were active seems crusial.
bantu commentedon Nov 4, 2013
Please provide more information. Are you accessing the sqlite database in any other way than ownCloud? E.g. using a sqlite browser. Which version of PHP are you using? Which version of sqlite is this? Which operating system is this on?
For reference: See http://www.sqlite.org/lockingv3.html for information SQLite 3 locking.
bantu commentedon Nov 4, 2013
SQLite can't properly deal with concurrent accesses. It it very likely that a background job kept the database busy which ended up in a timeout for the actual webinterface access. @PVince81 Does that make sense to you?
PVince81 commentedon Nov 5, 2013
@bantu yes, sounds likely. Just not sure what kind of background job it could be without further information.
jancborchardt commentedon Nov 5, 2013
Any more info you need?
bantu commentedon Nov 5, 2013
@jancborchardt Thanks.
@PVince81 Would it be possible to find out which job was running given the access log of the webserver?
@jancborchardt Do you remember when exactly you got the error?
VicDeo commentedon Nov 5, 2013
@jancborchardt and there is no sync client or mobile app that is configured to sync with this instance?
jancborchardt commentedon Nov 5, 2013
@bantu as said above: »Right before this I uploaded 3 files and before that I moved 2 files to a new folder.« They were images, each only ~300kB. This happened while I was using the web interface exclusively.
@VicDeo yes there are. No desktop sync client atm but 2 Androids and an iOS device (I only access one of the Androids frequently).
bantu commentedon Nov 5, 2013
@jancborchardt I mean timewise, as in absolute time. E.g. 5 Nov 2013, 12:34
jancborchardt commentedon Nov 5, 2013
As far as I remember I filed the issue right when it occured: 2013-11-03 12:04:10
12 remaining items
ukirfan commentedon Jan 2, 2014
getting error message on accesing through web
"An exception occured while executing insert into oc_permissions ('permissions' , 'user', 'field) '".....
i am using owcloud 6 and installed on iis server with mysql as database
karlitschek commentedon Jan 3, 2014
@ukirfan How is this related to the original issue described here? I suggest that you open a new issue as described in the issue template here. Thanks. https://github.com/owncloud/core/blob/master/CONTRIBUTING.md
bartv2 commentedon Mar 11, 2014
Sqlite doc about this: https://www.sqlite.org/cvstrac/wiki?p=DatabaseIsLocked
None of the listed points can happen in Owncloud, maybe the NFS one.
@jancborchardt is you database accessed through NFS?
jancborchardt commentedon Mar 12, 2014
As this issue is 4 months old, I have trouble reproducing this.
cdamken commentedon May 19, 2014
I have that problem again, I have a description and some new logs:
+FUJITSU Fibre Channel based on SATA Disks
You can find the files in S3-ownCloud\Shared\owncloud\support\customer-tickets-history\SQLite\
@jancborchardt @PVince81
cdamken commentedon May 20, 2014
Additionally: SQLite Version 3.7.13
cdamken commentedon May 28, 2014
I will close this issue taking in consideration: #6457
macmacy commentedon Jul 17, 2014
FYI: I have "Database is locked" error very frequently - see here #9701.
In short: it is enough to mount external storage with 500000 files and you have this error very often.
PVince81 commentedon Jul 17, 2014
I think for that many files you should rather switch to MySQL or PostgreSQL.
SQLite will only slow you down for that amount of data.
fleish commentedon Aug 8, 2014
I agree and wish I had gone with mysql from the start vs. having to now convert later. I'd actually prefer that mysql was the default DB choice of owncloud to avoid users having this problem and then having to migrate later.
djtm commentedon Sep 9, 2014
Not sure if this helps for you, but in my case a VACUUM; did the trick. The timeouts disappeared. Not sure if owncloud does this automatically already? I guess it should at least once a week or so.
I've also noticed that auto vaccum is disabled by default. Maybe that would also help.