[Owncloud] ownCloud 6 RC4
Thomas Müller
thomas.mueller at tmit.eu
Tue Dec 10 13:14:10 UTC 2013
Yes - please open an issue on github!
THX
Am Dienstag, den 10.12.2013 um 13:53 schrieb Tornóci László:
> On 12/10/2013 01:35 PM, Thomas Müller wrote:
> >
> > Am Dienstag, den 10.12.2013 um 13:24 schrieb Tornóci László:
> >> On 12/10/2013 12:44 PM, Thomas Müller wrote:
> >> ...
> >>>>
> >>>> I had some time to play with OC6. A fresh install was fine, except I
> >>>> couldn't get my LDAP settings recognized. It kept saying "incomplete
> >>>> settings" and the cogwheels kept spinning trying to get to
> >>>> objectclasses. I couldn't force OC to accept my setting, even if I
> >>>> manually set my user etc. filters in "raw mode".
> >>>>
> >>>> So I made a copy of my 5.0.13 service and tried to upgrade that to
> >>>> OC6RC4. I got a blank screen, and in the apache log I got:
> >>>> PHP Fatal error: Cannot redeclare class OC_Config in
> >>>> /var/www/oc2/lib/config.php on line 41
> >>>>
> >>>
> >>> How did you upgrade your installation?
> >>> /var/www/oc2/lib/config.php is the old file as of oc5 - the correct location would be /var/www/oc2/lib/private/config.php
> >>>
> >>> Tom
> >>
> >> I see, there is a bunch of files now under .../lib/private/ that used to
> >> be in .../lib. So now I have both copies of all those files. I simply
> >> copied the oc6 files over to the oc5 installation (just like a usual
> >> upgrade). What's the correct way to do it for 5.0.13 -> 6.0 ?
> >>
> >
> > We move almost all files from lib to lib/private to have a clear separation of public and private API.
> > Looks like we need to enhance the updating documentation.
> >
> > Generally speaking:
> > In order to get a clean update I'd kill all files/folder besides config and data.
>
> Thanks, Tom.
>
> If I do that, the upgrade starts, but fails with this:
>
> {"app":"core","message":"Failed to update database structure (exception
> 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint
> violation: 1062 Du
> plicate entry 'torlasz-settings-email' for key 'PRIMARY'' in
> \/var\/www\/oc2\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php:742\nStack
> trace:
> \n#0 [internal function]: PDO->query('ALTER TABLE `oc...')\n#1
> \/var\/www\/oc2\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php(742):
> call_user
> _func_array(Array, Array)\n#2
> \/var\/www\/oc2\/lib\/private\/db\/mdb2schemamanager.php(152):
> Doctrine\\DBAL\\Connection->query('ALTER TABLE `oc...')\n#3 \/va
> r\/www\/oc2\/lib\/private\/db\/mdb2schemamanager.php(91):
> OC\\DB\\MDB2SchemaManager->executeSchemaChange(Object(Doctrine\\DBAL\\Schema\\SchemaDiff))\n#4
> \/va
> r\/www\/oc2\/lib\/private\/db.php(373):
> OC\\DB\\MDB2SchemaManager->updateDbFromStructure('\/var\/www\/oc2\/db...')\n#5
> \/var\/www\/oc2\/lib\/private\/updater
> .php(106): OC_DB::updateDbFromStructure('\/var\/www\/oc2\/db...')\n#6
> \/var\/www\/oc2\/core\/ajax\/update.php(34): OC\\Updater->upgrade()\n#7
> {main}\n\nNext
> exception 'Doctrine\\DBAL\\DBALException' with message 'An exception
> occurred while executing 'ALTER TABLE `oc_preferences` ADD PRIMARY KEY
> (`userid`, `appid
> `, `configkey`)':\n\nSQLSTATE[23000]: Integrity constraint violation:
> 1062 Duplicate entry 'torlasz-settings-email' for key 'PRIMARY'' in
> \/var\/www\/oc2\/3r
> dparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php:47\nStack
> trace:\n#0
> \/var\/www\/oc2\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connectio
> n.php(744):
> Doctrine\\DBAL\\DBALException::driverExceptionDuringQuery(Object(PDOException),
> 'ALTER TABLE `oc...')\n#1 \/var\/www\/oc2\/lib\/private\/db\/mdb2
> schemamanager.php(152): Doctrine\\DBAL\\Connection->query('ALTER TABLE
> `oc...')\n#2
> \/var\/www\/oc2\/lib\/private\/db\/mdb2schemamanager.php(91): OC\\DB\\MDB
> 2SchemaManager->executeSchemaChange(Object(Doctrine\\DBAL\\Schema\\SchemaDiff))\n#3
> \/var\/www\/oc2\/lib\/private\/db.php(373): OC\\DB\\MDB2SchemaManager->up
> dateDbFromStructure('\/var\/www\/oc2\/db...')\n#4
> \/var\/www\/oc2\/lib\/private\/updater.php(106):
> OC_DB::updateDbFromStructure('\/var\/www\/oc2\/db...')\n#5
> \/var\/www\/oc2\/core\/ajax\/update.php(34):
> OC\\Updater->upgrade()\n#6
> {main})","level":4,"time":"2013-12-10T12:44:35+00:00"}
>
> Should I report it as a bug on github?
>
> Yours: Laszlo
>
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
>
More information about the Owncloud
mailing list