no login after uprading from Beta3 to Beta4 instead "Failed to upgrade "search_lucene"."
Hi, i tried to upgrade from beta3 to beta4 and after the uprade process i´m not coming to the login page. Owncloud gives me the error "Failed to upgrade "search_lucene""
running Ubuntu Linux 12.04.2,Apache version 2.4.6 , MySQL version 5.5.32,
thanks
Do you see any error in the Apache error log and owncloud.log ?
Where do i find the logs from owncloud itself? I can not log into the owncloud anymore...
Not sure where you installed ownCloud. You might find it here: /var/www/owncloud/data/owncloud.log or /srv/www/owncloud/data/owncloud.log
and the apache log: /var/log/apache2/error_log
i got tons of this error in the owncloud-log:
{"app":"index","message":"Exception: Failed to upgrade "search_lucene".","level":4,"time":"2013-11-13T19:40:41+00:00"}
{"app":"core","message":"Failed to update database structure (exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '350' for key 'PRIMARY'' in /var/www/braincloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:742\nStack trace:\n#0 [internal function]: PDO->query('ALTER TABLE oc...')\n#1 \/var\/www\/braincloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php(742): call_user_func_array(Array, Array)\n#2 \/var\/www\/braincloud\/lib\/private\/db\/mdb2schemamanager.php(150): Doctrine\\DBAL\\Connection->query('ALTER TABLEoc...')\n#3 /var/www/braincloud/lib/private/db/mdb2schemamanager.php(89): OC\DB\MDB2SchemaManager->executeSchemaChange(Object(Doctrine\DBAL\Schema\SchemaDiff))\n#4 /var/www/braincloud/lib/private/db.php(373): OC\DB\MDB2SchemaManager->updateDbFromStructure('/var/www/brainc...')\n#5 /var/www/braincloud/lib/private/app.php(965): OC_DB::updateDbFromStructure('/var/www/brainc...')\n#6 /var/www/braincloud/lib/private/app.php(867): OC_App::updateApp('search_lucene')\n#7 /var/www/braincloud/lib/private/app.php(92): OC_App::checkUpgrade('search_lucene')\n#8 /var/www/braincloud/lib/private/app.php(66): OC_App::loadApp('search_lucene')\n#9 /var/www/braincloud/lib/base.php(517): OC_App::loadApps()\n#10 /var/www/braincloud/lib/base.php(930): OC::init()\n#11 /var/www/braincloud/cron.php(49): require_once('/var/www/brainc...')\n#12 {main}\n\nNext exception 'Doctrine\DBAL\DBALException' with message 'An exception occurred while executing 'ALTER TABLE oc_lucene_status ADD PRIMARY KEY (fileid)':\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '350' for key 'PRIMARY'' in /var/www/braincloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:47\nStack trace:\n#0 /var/www/braincloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(744): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(PDOException), 'ALTER TABLE oc...')\n#1 \/var\/www\/braincloud\/lib\/private\/db\/mdb2schemamanager.php(150): Doctrine\\DBAL\\Connection->query('ALTER TABLEoc...')\n#2 /var/www/braincloud/lib/private/db/mdb2schemamanager.php(89): OC\DB\MDB2SchemaManager->executeSchemaChange(Object(Doctrine\DBAL\Schema\SchemaDiff))\n#3 /var/www/braincloud/lib/private/db.php(373): OC\DB\MDB2SchemaManager->updateDbFromStructure('/var/www/brainc...')\n#4 /var/www/braincloud/lib/private/app.php(965): OC_DB::updateDbFromStructure('/var/www/brainc...')\n#5 /var/www/braincloud/lib/private/app.php(867): OC_App::updateApp('search_lucene')\n#6 /var/www/braincloud/lib/private/app.php(92): OC_App::checkUpgrade('search_lucene')\n#7 /var/www/braincloud/lib/private/app.php(66): OC_App::loadApp('search_lucene')\n#8 /var/www/braincloud/lib/base.php(517): OC_App::loadApps()\n#9 /var/www/braincloud/lib/base.php(930): OC::init()\n#10 /var/www/braincloud/cron.php(49): require_once('/var/www/brainc...')\n#11 {main})","level":4,"time":"2013-11-13T19:40:41+00:00"}
{"app":"cron","message":"Failed to upgrade "search_lucene".","level":4,"time":"2013-11-13T19:40:41+00:00"}
@butonic @icewind1991 please have a look.
Would it be safe to clear that table and let it reindex from scratch after migration ?
how to do that?
I was asking these guys about it.
If you want to try, please backup your DB and execute the following SQL:
DELETE FROM oc_lucene_status;
This will delete all entries in this table (and indirectly solve the duplicate keys issue)
ok - with this "DELETE FROM oc_lucene_status;" i can login again... thanks!
Thanks. Leaving this ticket open to fix the migration..
OK - and another funny thing - on the admín page it still shows beta 3 - >"ownCloud 6.0 beta 3 (testing)"
@karlitschek can you check the version name ?
@Hausmarke @PVince81 yes. Fixed now
search_lucene is maintained in the apps repo please continue the discussion of that issue there - thx
@karlitschek do we ship search_lucene? THX
@DeepDiver1975 Yes. We do. A radical approach could be to drop the complete index and rebuild it. @butonic What do you think?
might be related to https://github.com/owncloud/apps/issues/1491
migration fixed, see https://github.com/owncloud/apps/issues/1536