Skip to content
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

Error in database updating from 8.0.3 to 8.1.1 #18248

Closed
GustavoMarcante opened this issue Aug 12, 2015 · 9 comments
Closed

Error in database updating from 8.0.3 to 8.1.1 #18248

GustavoMarcante opened this issue Aug 12, 2015 · 9 comments

Comments

@GustavoMarcante
Copy link

While updating OwnCloud from 8.0.3 to 8.1.1 I got this error:

Doctrine\DBAL\Exception\UniqueConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_jobs"("class", "argument", "last_run") VALUES(?, ?, 0)' with params ["OCA\\Files_sharing\\Lib\\DeleteOrphanedSharesJob", "null"]: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "oc_jobs_pkey" DETAIL: Key (id)=(2) already exists.

Can anybody help me?

@MorrisJobke
Copy link
Contributor

@gustavoguerra Can I ask you to provide more information about your setup as listed in the issue template https://raw.githubusercontent.com/owncloud/core/master/issue_template.md

Thanks

@GustavoMarcante
Copy link
Author

Hi, Morris.

  I'm sending the information attached.
  Thank you very much for your attention.

  Gustavo


  On 12-08-2015 18:55, Morris Jobke wrote:


  @gustavoguerra
    Can I ask you to provide more information about your setup as
    listed in the issue template https://raw.githubusercontent.com/owncloud/core/master/issue_template.md
  Thanks
  —
    Reply to this email directly or view
      it on GitHub.

@MorrisJobke
Copy link
Contributor

@gustavoguerra Attaching anything to the email doesn't work on Github, because they only append the content of the email to the Github conversation. Can you send the info right inside the email? Thanks.

@GustavoMarcante
Copy link
Author

Steps to reproduce

Use de update manager through menu Admin to change OwnCloud from version 8.0.3 to 8.1.1.

Expected behaviour

Keep the normal behavior.

Actual behaviour

During installation, I received this message (in Portuguese):

Atualizando ownCloud para a versão 8.1.1, isso pode demorar um pouco.
Ativar modo de manutenção
Verificado atualização do esquema de banco de dados
Verificar atualização do esquema de banco de dados para aplicativos
Atualizar o banco de dados

Doctrine\DBAL\Exception\UniqueConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_jobs"("class", "argument", "last_run") VALUES(?, ?, 0)' with params ["OCA\Files_sharing\Lib\DeleteOrphanedSharesJob", "null"]: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "oc_jobs_pkey" DETAIL: Key (id)=(3) already exists.
The update was unsuccessful. Please report this issue to the ownCloud community.

Then, trying to log in, I got this message (in Portuguese):

ownCloud será atualizado para a versão 8.1.1.
Por favor, certifique-se de que o banco de dados, a pasta config e a pasta de dados foram copiados antes de prosseguir.
[ Iniciar atualização ]
Para evitar tempos de espera com instalações maiores, você pode em vez disso executar o seguinte comando a partir do diretório de instalação:
./occ upgrade

And the I got the same message above

After some tries, the update finished, and now I can log in.
But the synchronization is not working properly.
I tried to create a teste folder “Teste AAAAA” locally, but it not uploaded.
I tried to create a folder using the web interface, and I got this response:

An exception occurred while executing 'INSERT INTO "oc_filecache" ("mimepart","mimetype","mtime","size","etag","storage_mtime","permissions","parent","path_hash","path","name","storage") SELECT ?,?,?,?,?,?,?,?,?,?,?,? FROM "oc_filecache" WHERE "storage" = ? AND "path_hash" = ? HAVING COUNT(*) = 0' with params [1, 2, 1439476892, -1, "55ccac9cd7099", 1439476892, 31, 17034, "9099837e99b70dfd8bd8e45f2ab915d8", "files/Documentos/1 Geral/Teste BBBBBB", "Teste BBBBBB", 1, 1, "9099837e99b70dfd8bd8e45f2ab915d8"]: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "oc_filecache_pkey" DETAIL: Key (fileid)=(22997) already exists.

The log file jumped to 16MB, there are a lot of messages. The last ones are these two, that are repeated many times:

2015-08-13T14:45:17+00:00
Error PHP
Cannot modify header information - headers already sent by (output started at /home/celestin/www/baby/lib/private/eventsource.php:99) at /home/celestin/www/baby/lib/private/response.php#103

2015-08-13T14:45:17+00:00
Fatal index Exception: {"Exception":"Doctrine\DBAL\Exception\DriverException","Message":"An exception occurred while executing 'SELECT "fileid", "storage", "path", "parent", "name", "mimetype", "mimepart", "size", "mtime",\n\t\t\t\t\t "storage_mtime", "encrypted", "etag", "permissions"\n\t\t\t\tFROM "oc_filecache" WHERE "storage" = ? AND "path_hash" = ?' with params [2, "7866dc0e71a218b0015a71ce303c816e"]:\n\nSQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block","Code":0,"Trace":"#0 /home/celestin/www/baby/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(116): Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))\n#1 /home/celestin/www/baby/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(172): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOPgSql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'SELECT "fileid"...', Array)\n#2 /home/celestin/www/baby/lib/private/db/statementwrapper.php(73): Doctrine\DBAL\Statement->execute(Array)\n#3 /home/celestin/www/baby/lib/private/db.php(147): OC_DB_StatementWrapper->execute(Array)\n#4 /home/celestin/www/baby/lib/private/files/cache/cache.php(203): OC_DB::executeAudited('SELECT fileid...', Array)\n#5 /home/celestin/www/baby/lib/private/files/cache/cache.php(468): OC\Files\Cache\Cache->get('manutencao/file...')\n#6 /home/celestin/www/baby/lib/private/files/cache/scanner.php(207): OC\Files\Cache\Cache->remove('manutencao/file...')\n#7 /home/celestin/www/baby/lib/private/files/cache/scanner.php(370): OC\Files\Cache\Scanner->removeFromCache('manutencao/file...')\n#8 /home/celestin/www/baby/lib/private/files/cache/scanner.php(267): OC\Files\Cache\Scanner->scanChildren('manutencao/file...', true, 1, Array, true)\n#9 /home/celestin/www/baby/lib/private/files/cache/scanner.php(419): OC\Files\Cache\Scanner->scan('manutencao/file...', true, 1)\n#10 /home/celestin/www/baby/lib/private/files/utils/scanner.php(124): OC\Files\Cache\Scanner->backgroundScan()\n#11 /home/celestin/www/baby/apps/files/ajax/scan.php(55): OC\Files\Utils\Scanner->backgroundScan('')\n#12 /home/celestin/www/baby/lib/private/route/route.php(154) : runtime-created function(1): require_once('/home/celestin/...')\n#13 [internal function]: __lambda_func(Array)\n#14 /home/celestin/www/baby/lib/private/route/router.php(274): call_user_func('?lambda_1174', Array)\n#15 /home/celestin/www/baby/lib/base.php(873): OC\Route\Router->match('/apps/files/aja...')\n#16 /home/celestin/www/baby/index.php(40): OC::handleRequest()\n#17 {main}","File":"/home/celestin/www/baby/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php","Line":91}

Server configuration

Operating system:
Linux

Web server:
Apache

Database:
Postgres (PostgreSQL 9.3.1 on x86_64-pc-linux-gnu, compiled by x86_64-pc-linux-gnu-gcc (Gentoo 4.6.3 p1.9, pie-0.5.2) 4.6.3, 64-bit

PHP version:
5.5

ownCloud version: (see ownCloud admin page)
8.0.3

Updated from an older ownCloud or fresh install:
Updated from an older ownCloud using update manager

List of activated apps:

The content of config/config.php:

'ocnmb5dc3udc', 'passwordsalt' => xxx 'secret' => xxx, 'trusted_domains' => array ( 0 => 'baby.celestin.net', 1 => 'baby.criamosjuntos.com', 2 => 'baby.tecitura.com', 3 => 'celestin.net', 4 => 'criamosjuntos.com', 5 => 'tecitura.com', 6 => 'www.celestin.net', 7 => 'www.criamosjuntos.com', 8 => 'www.tecitura.com', 9 => 'nuvem.celestin.net', 10 => 'nuvem.criamosjuntos.com', 11 => 'nuvem.tecitura.com', 12 => 'baby.criamosjuntos.com.br', ), 'datadirectory' => '/home/celestin/Dados-da-nuvem', 'dbtype' => 'pgsql', 'dbhost' => 'pgsql.celestin.net', 'dbname' => 'celestin', 'dbuser' => 'celestin', 'dbpassword' => xxx, 'version' => '8.1.1.3', # Before here was 'version' => '8.0.3.4', 'installed' => true, 'theme' => '', 'maintenance' => false, ); **Are you using external storage, if yes which one:** local/smb/sftp/... No **Are you using encryption:** yes/no No **Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/... No ### Client configuration **Browser:** Firefox 40.0 **Operating system:** Ubuntu 14.04 ### Logs #### Web server error log ? #### ownCloud log (data/owncloud.log) I will send in the next message, because is too big. #### Browser log ?

@GustavoMarcante
Copy link
Author

The end of the log (the last day log is veeery big, like 8 MB):

{"reqId":"VcytUH8AAAEAACf6GaQAAABW","remoteAddr":"177.18.156.155","app":"PHP","message":"Cannot modify header information - headers already sent by (output started at /home/celestin/www/baby/lib/private/eventsource.php:99) at /home/celestin/www/baby/lib/private/response.php#103","level":3,"time":"2015-08-13T14:44:34+00:00"}
{"reqId":"VcytV38AAAEAAHXRbOIAAACi","remoteAddr":"177.18.156.155","app":"index","message":"Exception: {"Exception":"Doctrine\DBAL\Exception\DriverException","Message":"An exception occurred while executing 'SELECT \"fileid\", \"storage\", \"path\", \"parent\", \"name\", \"mimetype\", \"mimepart\", \"size\", \"mtime\",\n\t\t\t\t\t \"storage_mtime\", \"encrypted\", \"etag\", \"permissions\"\n\t\t\t\tFROM \"oc_filecache\" WHERE \"storage\" = ? AND \"path_hash\" = ?' with params [2, \"7866dc0e71a218b0015a71ce303c816e\"]:\n\nSQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block","Code":0,"Trace":"#0 \/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php(116): Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))\n#1 \/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Statement.php(172): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOPgSql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'SELECT \"fileid\"...', Array)\n#2 \/home\/celestin\/www\/baby\/lib\/private\/db\/statementwrapper.php(73): Doctrine\DBAL\Statement->execute(Array)\n#3 \/home\/celestin\/www\/baby\/lib\/private\/db.php(147): OC_DB_StatementWrapper->execute(Array)\n#4 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/cache.php(203): OC_DB::executeAudited('SELECT fileid...', Array)\n#5 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/cache.php(468): OC\Files\Cache\Cache->get('manutencao\/file...')\n#6 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(207): OC\Files\Cache\Cache->remove('manutencao\/file...')\n#7 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(370): OC\Files\Cache\Scanner->removeFromCache('manutencao\/file...')\n#8 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(267): OC\Files\Cache\Scanner->scanChildren('manutencao\/file...', true, 1, Array, true)\n#9 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(419): OC\Files\Cache\Scanner->scan('manutencao\/file...', true, 1)\n#10 \/home\/celestin\/www\/baby\/lib\/private\/files\/utils\/scanner.php(124): OC\Files\Cache\Scanner->backgroundScan()\n#11 \/home\/celestin\/www\/baby\/apps\/files\/ajax\/scan.php(55): OC\Files\Utils\Scanner->backgroundScan('')\n#12 \/home\/celestin\/www\/baby\/lib\/private\/route\/route.php(154) : runtime-created function(1): require_once('\/home\/celestin\/...')\n#13 [internal function]: __lambda_func(Array)\n#14 \/home\/celestin\/www\/baby\/lib\/private\/route\/router.php(274): call_user_func('?lambda_2950', Array)\n#15 \/home\/celestin\/www\/baby\/lib\/base.php(873): OC\Route\Router->match('\/apps\/files\/aja...')\n#16 \/home\/celestin\/www\/baby\/index.php(40): OC::handleRequest()\n#17 {main}","File":"\/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/AbstractPostgreSQLDriver.php","Line":91}","level":4,"time":"2015-08-13T14:44:41+00:00"}
{"reqId":"VcytV38AAAEAAHXRbOIAAACi","remoteAddr":"177.18.156.155","app":"PHP","message":"Cannot modify header information - headers already sent by (output started at /home/celestin/www/baby/lib/private/eventsource.php:99) at /home/celestin/www/baby/lib/private/response.php#103","level":3,"time":"2015-08-13T14:44:41+00:00"}
{"reqId":"VcytX38AAAEAAFkZdIMAAAA6","remoteAddr":"177.18.156.155","app":"index","message":"Exception: {"Exception":"Doctrine\DBAL\Exception\DriverException","Message":"An exception occurred while executing 'SELECT \"fileid\", \"storage\", \"path\", \"parent\", \"name\", \"mimetype\", \"mimepart\", \"size\", \"mtime\",\n\t\t\t\t\t \"storage_mtime\", \"encrypted\", \"etag\", \"permissions\"\n\t\t\t\tFROM \"oc_filecache\" WHERE \"storage\" = ? AND \"path_hash\" = ?' with params [2, \"7866dc0e71a218b0015a71ce303c816e\"]:\n\nSQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block","Code":0,"Trace":"#0 \/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php(116): Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))\n#1 \/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Statement.php(172): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOPgSql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'SELECT \"fileid\"...', Array)\n#2 \/home\/celestin\/www\/baby\/lib\/private\/db\/statementwrapper.php(73): Doctrine\DBAL\Statement->execute(Array)\n#3 \/home\/celestin\/www\/baby\/lib\/private\/db.php(147): OC_DB_StatementWrapper->execute(Array)\n#4 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/cache.php(203): OC_DB::executeAudited('SELECT fileid...', Array)\n#5 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/cache.php(468): OC\Files\Cache\Cache->get('manutencao\/file...')\n#6 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(207): OC\Files\Cache\Cache->remove('manutencao\/file...')\n#7 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(370): OC\Files\Cache\Scanner->removeFromCache('manutencao\/file...')\n#8 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(267): OC\Files\Cache\Scanner->scanChildren('manutencao\/file...', true, 1, Array, true)\n#9 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(419): OC\Files\Cache\Scanner->scan('manutencao\/file...', true, 1)\n#10 \/home\/celestin\/www\/baby\/lib\/private\/files\/utils\/scanner.php(124): OC\Files\Cache\Scanner->backgroundScan()\n#11 \/home\/celestin\/www\/baby\/apps\/files\/ajax\/scan.php(55): OC\Files\Utils\Scanner->backgroundScan('')\n#12 \/home\/celestin\/www\/baby\/lib\/private\/route\/route.php(154) : runtime-created function(1): require_once('\/home\/celestin\/...')\n#13 [internal function]: __lambda_func(Array)\n#14 \/home\/celestin\/www\/baby\/lib\/private\/route\/router.php(274): call_user_func('?lambda_2530', Array)\n#15 \/home\/celestin\/www\/baby\/lib\/base.php(873): OC\Route\Router->match('\/apps\/files\/aja...')\n#16 \/home\/celestin\/www\/baby\/index.php(40): OC::handleRequest()\n#17 {main}","File":"\/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/AbstractPostgreSQLDriver.php","Line":91}","level":4,"time":"2015-08-13T14:44:48+00:00"}
{"reqId":"VcytX38AAAEAAFkZdIMAAAA6","remoteAddr":"177.18.156.155","app":"PHP","message":"Cannot modify header information - headers already sent by (output started at /home/celestin/www/baby/lib/private/eventsource.php:99) at /home/celestin/www/baby/lib/private/response.php#103","level":3,"time":"2015-08-13T14:44:48+00:00"}
{"reqId":"VcytZX8AAAEAACghPQgAAACe","remoteAddr":"177.18.156.155","app":"index","message":"Exception: {"Exception":"Doctrine\DBAL\Exception\DriverException","Message":"An exception occurred while executing 'SELECT \"fileid\", \"storage\", \"path\", \"parent\", \"name\", \"mimetype\", \"mimepart\", \"size\", \"mtime\",\n\t\t\t\t\t \"storage_mtime\", \"encrypted\", \"etag\", \"permissions\"\n\t\t\t\tFROM \"oc_filecache\" WHERE \"storage\" = ? AND \"path_hash\" = ?' with params [2, \"7866dc0e71a218b0015a71ce303c816e\"]:\n\nSQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block","Code":0,"Trace":"#0 \/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php(116): Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))\n#1 \/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Statement.php(172): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOPgSql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'SELECT \"fileid\"...', Array)\n#2 \/home\/celestin\/www\/baby\/lib\/private\/db\/statementwrapper.php(73): Doctrine\DBAL\Statement->execute(Array)\n#3 \/home\/celestin\/www\/baby\/lib\/private\/db.php(147): OC_DB_StatementWrapper->execute(Array)\n#4 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/cache.php(203): OC_DB::executeAudited('SELECT fileid...', Array)\n#5 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/cache.php(468): OC\Files\Cache\Cache->get('manutencao\/file...')\n#6 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(207): OC\Files\Cache\Cache->remove('manutencao\/file...')\n#7 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(370): OC\Files\Cache\Scanner->removeFromCache('manutencao\/file...')\n#8 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(267): OC\Files\Cache\Scanner->scanChildren('manutencao\/file...', true, 1, Array, true)\n#9 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(419): OC\Files\Cache\Scanner->scan('manutencao\/file...', true, 1)\n#10 \/home\/celestin\/www\/baby\/lib\/private\/files\/utils\/scanner.php(124): OC\Files\Cache\Scanner->backgroundScan()\n#11 \/home\/celestin\/www\/baby\/apps\/files\/ajax\/scan.php(55): OC\Files\Utils\Scanner->backgroundScan('')\n#12 \/home\/celestin\/www\/baby\/lib\/private\/route\/route.php(154) : runtime-created function(1): require_once('\/home\/celestin\/...')\n#13 [internal function]: __lambda_func(Array)\n#14 \/home\/celestin\/www\/baby\/lib\/private\/route\/router.php(274): call_user_func('?lambda_1100', Array)\n#15 \/home\/celestin\/www\/baby\/lib\/base.php(873): OC\Route\Router->match('\/apps\/files\/aja...')\n#16 \/home\/celestin\/www\/baby\/index.php(40): OC::handleRequest()\n#17 {main}","File":"\/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/AbstractPostgreSQLDriver.php","Line":91}","level":4,"time":"2015-08-13T14:44:55+00:00"}
{"reqId":"VcytZX8AAAEAACghPQgAAACe","remoteAddr":"177.18.156.155","app":"PHP","message":"Cannot modify header information - headers already sent by (output started at /home/celestin/www/baby/lib/private/eventsource.php:99) at /home/celestin/www/baby/lib/private/response.php#103","level":3,"time":"2015-08-13T14:44:55+00:00"}
{"reqId":"VcytbX8AAAEAAHgEuC0AAACS","remoteAddr":"177.18.156.155","app":"index","message":"Exception: {"Exception":"Doctrine\DBAL\Exception\DriverException","Message":"An exception occurred while executing 'SELECT \"fileid\", \"storage\", \"path\", \"parent\", \"name\", \"mimetype\", \"mimepart\", \"size\", \"mtime\",\n\t\t\t\t\t \"storage_mtime\", \"encrypted\", \"etag\", \"permissions\"\n\t\t\t\tFROM \"oc_filecache\" WHERE \"storage\" = ? AND \"path_hash\" = ?' with params [2, \"7866dc0e71a218b0015a71ce303c816e\"]:\n\nSQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block","Code":0,"Trace":"#0 \/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php(116): Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))\n#1 \/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Statement.php(172): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOPgSql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'SELECT \"fileid\"...', Array)\n#2 \/home\/celestin\/www\/baby\/lib\/private\/db\/statementwrapper.php(73): Doctrine\DBAL\Statement->execute(Array)\n#3 \/home\/celestin\/www\/baby\/lib\/private\/db.php(147): OC_DB_StatementWrapper->execute(Array)\n#4 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/cache.php(203): OC_DB::executeAudited('SELECT fileid...', Array)\n#5 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/cache.php(468): OC\Files\Cache\Cache->get('manutencao\/file...')\n#6 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(207): OC\Files\Cache\Cache->remove('manutencao\/file...')\n#7 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(370): OC\Files\Cache\Scanner->removeFromCache('manutencao\/file...')\n#8 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(267): OC\Files\Cache\Scanner->scanChildren('manutencao\/file...', true, 1, Array, true)\n#9 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(419): OC\Files\Cache\Scanner->scan('manutencao\/file...', true, 1)\n#10 \/home\/celestin\/www\/baby\/lib\/private\/files\/utils\/scanner.php(124): OC\Files\Cache\Scanner->backgroundScan()\n#11 \/home\/celestin\/www\/baby\/apps\/files\/ajax\/scan.php(55): OC\Files\Utils\Scanner->backgroundScan('')\n#12 \/home\/celestin\/www\/baby\/lib\/private\/route\/route.php(154) : runtime-created function(1): require_once('\/home\/celestin\/...')\n#13 [internal function]: __lambda_func(Array)\n#14 \/home\/celestin\/www\/baby\/lib\/private\/route\/router.php(274): call_user_func('?lambda_1137', Array)\n#15 \/home\/celestin\/www\/baby\/lib\/base.php(873): OC\Route\Router->match('\/apps\/files\/aja...')\n#16 \/home\/celestin\/www\/baby\/index.php(40): OC::handleRequest()\n#17 {main}","File":"\/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/AbstractPostgreSQLDriver.php","Line":91}","level":4,"time":"2015-08-13T14:45:04+00:00"}
{"reqId":"VcytbX8AAAEAAHgEuC0AAACS","remoteAddr":"177.18.156.155","app":"PHP","message":"Cannot modify header information - headers already sent by (output started at /home/celestin/www/baby/lib/private/eventsource.php:99) at /home/celestin/www/baby/lib/private/response.php#103","level":3,"time":"2015-08-13T14:45:04+00:00"}
{"reqId":"VcytdX8AAAEAAErMbQsAAAAg","remoteAddr":"177.18.156.155","app":"index","message":"Exception: {"Exception":"Doctrine\DBAL\Exception\DriverException","Message":"An exception occurred while executing 'SELECT \"fileid\", \"storage\", \"path\", \"parent\", \"name\", \"mimetype\", \"mimepart\", \"size\", \"mtime\",\n\t\t\t\t\t \"storage_mtime\", \"encrypted\", \"etag\", \"permissions\"\n\t\t\t\tFROM \"oc_filecache\" WHERE \"storage\" = ? AND \"path_hash\" = ?' with params [2, \"7866dc0e71a218b0015a71ce303c816e\"]:\n\nSQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block","Code":0,"Trace":"#0 \/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php(116): Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))\n#1 \/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Statement.php(172): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOPgSql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'SELECT \"fileid\"...', Array)\n#2 \/home\/celestin\/www\/baby\/lib\/private\/db\/statementwrapper.php(73): Doctrine\DBAL\Statement->execute(Array)\n#3 \/home\/celestin\/www\/baby\/lib\/private\/db.php(147): OC_DB_StatementWrapper->execute(Array)\n#4 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/cache.php(203): OC_DB::executeAudited('SELECT fileid...', Array)\n#5 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/cache.php(468): OC\Files\Cache\Cache->get('manutencao\/file...')\n#6 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(207): OC\Files\Cache\Cache->remove('manutencao\/file...')\n#7 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(370): OC\Files\Cache\Scanner->removeFromCache('manutencao\/file...')\n#8 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(267): OC\Files\Cache\Scanner->scanChildren('manutencao\/file...', true, 1, Array, true)\n#9 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(419): OC\Files\Cache\Scanner->scan('manutencao\/file...', true, 1)\n#10 \/home\/celestin\/www\/baby\/lib\/private\/files\/utils\/scanner.php(124): OC\Files\Cache\Scanner->backgroundScan()\n#11 \/home\/celestin\/www\/baby\/apps\/files\/ajax\/scan.php(55): OC\Files\Utils\Scanner->backgroundScan('')\n#12 \/home\/celestin\/www\/baby\/lib\/private\/route\/route.php(154) : runtime-created function(1): require_once('\/home\/celestin\/...')\n#13 [internal function]: __lambda_func(Array)\n#14 \/home\/celestin\/www\/baby\/lib\/private\/route\/router.php(274): call_user_func('?lambda_2567', Array)\n#15 \/home\/celestin\/www\/baby\/lib\/base.php(873): OC\Route\Router->match('\/apps\/files\/aja...')\n#16 \/home\/celestin\/www\/baby\/index.php(40): OC::handleRequest()\n#17 {main}","File":"\/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/AbstractPostgreSQLDriver.php","Line":91}","level":4,"time":"2015-08-13T14:45:11+00:00"}
{"reqId":"VcytdX8AAAEAAErMbQsAAAAg","remoteAddr":"177.18.156.155","app":"PHP","message":"Cannot modify header information - headers already sent by (output started at /home/celestin/www/baby/lib/private/eventsource.php:99) at /home/celestin/www/baby/lib/private/response.php#103","level":3,"time":"2015-08-13T14:45:11+00:00"}
{"reqId":"VcytfH8AAAEAAF7GQ3QAAAAd","remoteAddr":"177.18.156.155","app":"index","message":"Exception: {"Exception":"Doctrine\DBAL\Exception\DriverException","Message":"An exception occurred while executing 'SELECT \"fileid\", \"storage\", \"path\", \"parent\", \"name\", \"mimetype\", \"mimepart\", \"size\", \"mtime\",\n\t\t\t\t\t \"storage_mtime\", \"encrypted\", \"etag\", \"permissions\"\n\t\t\t\tFROM \"oc_filecache\" WHERE \"storage\" = ? AND \"path_hash\" = ?' with params [2, \"7866dc0e71a218b0015a71ce303c816e\"]:\n\nSQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block","Code":0,"Trace":"#0 \/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php(116): Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))\n#1 \/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Statement.php(172): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOPgSql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'SELECT \"fileid\"...', Array)\n#2 \/home\/celestin\/www\/baby\/lib\/private\/db\/statementwrapper.php(73): Doctrine\DBAL\Statement->execute(Array)\n#3 \/home\/celestin\/www\/baby\/lib\/private\/db.php(147): OC_DB_StatementWrapper->execute(Array)\n#4 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/cache.php(203): OC_DB::executeAudited('SELECT fileid...', Array)\n#5 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/cache.php(468): OC\Files\Cache\Cache->get('manutencao\/file...')\n#6 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(207): OC\Files\Cache\Cache->remove('manutencao\/file...')\n#7 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(370): OC\Files\Cache\Scanner->removeFromCache('manutencao\/file...')\n#8 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(267): OC\Files\Cache\Scanner->scanChildren('manutencao\/file...', true, 1, Array, true)\n#9 \/home\/celestin\/www\/baby\/lib\/private\/files\/cache\/scanner.php(419): OC\Files\Cache\Scanner->scan('manutencao\/file...', true, 1)\n#10 \/home\/celestin\/www\/baby\/lib\/private\/files\/utils\/scanner.php(124): OC\Files\Cache\Scanner->backgroundScan()\n#11 \/home\/celestin\/www\/baby\/apps\/files\/ajax\/scan.php(55): OC\Files\Utils\Scanner->backgroundScan('')\n#12 \/home\/celestin\/www\/baby\/lib\/private\/route\/route.php(154) : runtime-created function(1): require_once('\/home\/celestin\/...')\n#13 [internal function]: __lambda_func(Array)\n#14 \/home\/celestin\/www\/baby\/lib\/private\/route\/router.php(274): call_user_func('?lambda_1174', Array)\n#15 \/home\/celestin\/www\/baby\/lib\/base.php(873): OC\Route\Router->match('\/apps\/files\/aja...')\n#16 \/home\/celestin\/www\/baby\/index.php(40): OC::handleRequest()\n#17 {main}","File":"\/home\/celestin\/www\/baby\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/AbstractPostgreSQLDriver.php","Line":91}","level":4,"time":"2015-08-13T14:45:17+00:00"}
{"reqId":"VcytfH8AAAEAAF7GQ3QAAAAd","remoteAddr":"177.18.156.155","app":"PHP","message":"Cannot modify header information - headers already sent by (output started at /home/celestin/www/baby/lib/private/eventsource.php:99) at /home/celestin/www/baby/lib/private/response.php#103","level":3,"time":"2015-08-13T14:45:17+00:00"}
{"reqId":"VcythH8AAAEAAHXWdVUAAACx","remoteAddr":"177.18.156.155","app":"PHP","message":"opendir(/tmp/): failed to open dir: Permission denied at /home/celestin/www/baby/lib/private/tempmanager.php#179","level":3,"time":"2015-08-13T14:45:26+00:00"}

@GustavoMarcante
Copy link
Author

cat /proc/version
Linux version 3.12.42 (root@ttemplate-centos6.6-minimal) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) ) #12 SMP Thu Jul 30 15:19:53 BRT 2015

@PVince81
Copy link
Contributor

So if I understand well, even a simple action like creating a brand new folder will produce the duplicate key error ? This shouldn't happen unless maybe two people are creating the same folder at the same time.
It almost looks like as if there were two processes running the same PHP script at the same time ?!

@PVince81
Copy link
Contributor

PVince81 commented Oct 9, 2015

@gustavoguerra did you have any more luck with 8.1.3 ? Some update issues were fixed meanwhile

@PVince81 PVince81 closed this as completed Mar 2, 2016
@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants