Hello
thsi is what I saw when I logged in today. The user updated one of his contacts (added a second address). It worked, the contact got updated but it generated the error beneath.
Fatal - webdav - Exception: {"Message":"An exception occurred while executing 'INSERT INTO
oc_file_locks(
key,
lock,
ttl) SELECT ?,?,? FROM
oc_file_locksWHERE
key` = ? HAVING COUNT(*) = 0’ with params
[“files\/33aac9d624f6d5fe4ffb840bb0303a2d”, 1, 1466678204,
“files\/33aac9d624f6d5fe4ffb840bb0303a2d”]:\n\nSQLSTATE[23000]:
Integrity constraint violation: 1062 Duplicate entry
’files/33aac9d624f6d5fe4ffb840bb0303a2d’ for key
’lock_key_index’",“Exception”:“Doctrine\DBAL\Exception\UniqueConstraintViolationException”,“Code”:0,“Trace”:"#0
/home/xxxxx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(116):
Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException(‘An
exception oc…’, Object(Doctrine\DBAL\Driver\PDOException))\n#1
/home/xxxxx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(996):
Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver),
Object(Doctrine\DBAL\Driver\PDOException), ‘INSERT INTO oc...', Array)\n#2 \/home\/xxxxx\/nextcloud\/lib\/private\/db\/connection.php(205): Doctrine\\DBAL\\Connection->executeUpdate('INSERT INTO
oc…’,
Array, Array)\n#3
/home/xxxxx/nextcloud/lib/private/db/adapter.php(93):
OC\DB\Connection->executeUpdate(‘INSERT INTO `*P…’, Array)\n#4
/home/xxxxx/nextcloud/lib/private/db/connection.php(243):
OC\DB\Adapter->insertIfNotExist(‘PREFIXfile_lo…’, Array,
Array)\n#5
/home/xxxxx/nextcloud/lib/private/lock/dblockingprovider.php(113):
OC\DB\Connection->insertIfNotExist(‘PREFIXfile_lo…’, Array,
Array)\n#6
/home/xxxxx/nextcloud/lib/private/lock/dblockingprovider.php(158):
OC\Lock\DBLockingProvider->initLockField(‘files/33aac9d62…’,
1)\n#7
/home/xxxxx/nextcloud/lib/private/files/storage/common.php(663):
OC\Lock\DBLockingProvider->acquireLock(‘files/33aac9d62…’,
1)\n#8
/home/xxxxx/nextcloud/lib/private/files/storage/wrapper/wrapper.php(577):
OC\Files\Storage\Common->acquireLock(‘files/KeePass/c…’, 1,
Object(OC\Lock\DBLockingProvider))\n#9
/home/xxxxx/nextcloud/lib/private/files/storage/wrapper/wrapper.php(577):
OC\Files\Storage\Wrapper\Wrapper->acquireLock(‘files/KeePass/c…’,
1, Object(OC\Lock\DBLockingProvider))\n#10
/home/xxxxx/nextcloud/lib/private/files/storage/wrapper/wrapper.php(577):
OC\Files\Storage\Wrapper\Wrapper->acquireLock(‘files/KeePass/c…’,
1, Object(OC\Lock\DBLockingProvider))\n#11
/home/xxxxx/nextcloud/lib/private/files/view.php(1888):
OC\Files\Storage\Wrapper\Wrapper->acquireLock(‘files/KeePass/c…’,
1, Object(OC\Lock\DBLockingProvider))\n#12
/home/xxxxx/nextcloud/lib/private/files/view.php(1990):
OC\Files\View->lockPath(’/KeePass/cgai.k…’, 1, false)\n#13
/home/xxxxx/nextcloud/lib/private/files/view.php(1083):
OC\Files\View->lockFile(’/KeePass/cgai.k…’, 1)\n#14
/home/xxxxx/nextcloud/lib/private/files/view.php(943):
OC\Files\View->basicOperation(‘fopen’, ‘KeePass/cgai.kd…’,
Array, ‘rb’)\n#15
/home/xxxxx/nextcloud/apps/dav/lib/connector/sabre/file.php(304):
OC\Files\View->fopen(‘KeePass/cgai.kd…’, ‘rb’)\n#16
/home/xxxxx/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(83):
OCA\DAV\Connector\Sabre\File->get()\n#17 [internal function]:
Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#18
/home/xxxxx/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#19
/home/xxxxx/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(459):
Sabre\Event\EventEmitter->emit(‘method:GET’, Array)\n#20
/home/xxxxx/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(248):
Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#21
/home/xxxxx/nextcloud/apps/dav/appinfo/v1/webdav.php(55):
Sabre\DAV\Server->exec()\n#22
/home/xxxxx/nextcloud/remote.php(138):
require_once(’/home/xxxxx/…’)\n#23
{main}",“File”:"/home/xxxxx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php",“Line”:66,“User”:“xxxx”}`
Do you have any idea how I can avoid this fatal error?
Kind regards
//neph