-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error: Doctrine\DBAL\Exception\DriverException #6104
Comments
cc @enoch85 |
@BernhardPosselt You seem to know PostgreSQL well. Do you know what's happened here? |
Check the error it's a deadlock |
@BernhardPosselt Yea, I can read that much, just wondered if you knew what could have caused it. |
A quick googleing of the issue: https://stackoverflow.com/a/18299180 @mwries Slow server? |
|
cc @icewind1991 @nickvergessen Any idea? |
Check the transaction isolation level, is it repeatable-read? |
I have a similar deadlock issue running Postgres 9.5.8 and nextcloud 12.0.2 on Ubuntu 16.04.3 LTS. This is a fresh install of nextcloud with an almost totally standard config, the only thing that I've changed is adding an S3 external storage backend. I have changed the transaction isolation level to repeatable-read but it made no difference. My postgres logs are full of the following errors:
Every now and then there are long runs of the following:
Let me know if you need any more info. |
@nickvergessen Do you need more info? |
Sorry, I was asking if it was that value, because that one doesn't work. |
READ_COMMITED is the default in PosgreSQL and also in the VM as I haven't changed anything: https://www.postgresql.org/docs/9.6/static/sql-set-transaction.html |
In more recent versions (13.0.4 and 12.0.9) we reduced drastically the amount of lock statements which should avoid most of the problems in here. Thus I will close it. If there is still stuff that breaks have a look at #9305 and it's linked issues. |
@MorrisJobke Sorry to bother but I seem to be having a similar issue here: #12343 I'm not entirely clear on what this issue actually is though? It seems that it has something to do with a bunch of files being locked due to something with pgsql? |
Fatal webdav Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'SELECT The response has been 'Not a Error' and closed the issue. Hmmm.... What is needed is the remote peer's nicname that called this into effect, then look over that unknown at this moment remote peers activity on Nextcloud. This looks like a deliberate attack until the unknown peer's nicname is found and their activity's are looked over. Ubuntu Bionic LTS/ Mint 19 Tara Clean install on the OS, Snap Nextcloud, newest snap nextcloud release. |
I have the same issue as in the first post with Nextcloud 16.0.3. As ASMith is mentioning an "attack", do i have to worry? If yes what measures are to be taken? |
No, there is no known attack vector here. |
Steps to reproduce
not known
Expected behaviour
not an error
Actual behaviour
3 fatal errors. all within 3 seconds and similar to the one below:
=================
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'UPDATE "oc_filecache" SET "mtime" = GREATEST("mtime", ?), "etag" = ? WHERE ("storage" = ?) AND ("path_hash" IN ('d41d8cd98f00b204e9800998ecf8427e', '45b963397aa40d4a0063e0d85e4fe7a1', '523eddca5f2dcfc94b3e48d2ebbd3174', '27d148ba2b121948face1754ddf230f8'))' with params [1501241136, "5991554a980d3", 7]: SQLSTATE[40P01]: Deadlock detected: 7 ERROR: deadlock detected DETAIL: Process 617 waits for ShareLock on transaction 458102; blocked by process 615. Process 615 waits for ShareLock on transaction 458104; blocked by process 617. HINT: See server log for query details. CONTEXT: while updating tuple (15,135) in relation "oc_filecache"
{main}
=================
General server configuration
Operating system: Linux nextcloud.systemsnavigator.com 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64
Web server: Apache/2.4.18 (Ubuntu) (apache2handler)
Database: pgsql PostgreSQL 9.5.7 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609, 64-bit
PHP version: 7.0.22-0ubuntu0.16.04.1
PHP-modules loaded
Nextcloud configuration
Nextcloud version: 12.0.1 - 12.0.1.5
Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install
Where did you install Nextcloud from:
VM
Are you using external storage, if yes which one: files_external is disabled
Are you using encryption: no
Are you using an external user-backend, if yes which one: YOUR ANSWER HERE (LDAP/ActiveDirectory/Webdav/...)
Signing status
Enabled apps
Disabled apps
Content of config/config.php
Client configuration
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063
Operating system:
Windows 10
Logs
Nextcloud log (data/nextcloud.log)
The text was updated successfully, but these errors were encountered: