Open fossxplorer opened 7 years ago
Data is not lost - please have a look at the old table and see if you can manually recover the event
It's now 777 of such events. It's a pretty big instance we are talking about with thousands of users. But i'm running a pre-upgrade test environment to test the upgrade to oC 9 so the prod env isn't touched yet (still on stable8.2).
Is there a way to avoid this prior to the upgrade to oC 9 and contacts 1.3.3? Thanks @DeepDiver1975 :)
Is there a way to avoid this prior to the upgrade to oC 9 and contacts 1.3.3?
the only option I see is to extract all events from the database and fix them. Pretty bad situation ....
@DeepDiver1975 I'm running this again couple in advance of a real migration in couple of days. It seems the contacts get migrated good actually, but when that parts finishes, i get out of memory error. The samme happened a while back. How can i continue with calendar migration now?
$ time php -c /home/oc/php.ini ./occ upgrade --skip-migration-test --no-app-disable -vvv ownCloud or one of the apps require upgrade - only a limited number of commands are available You may use your browser or the occ upgrade command to do the upgrade
*PREFIX*filecache
ADD COLUMN checksum varchar(255) DEFAULT NULL AFTER permissions;
Continue with update (y/n)
y
2017-03-08T01:34:03+00:00 Set log level to debug
2017-03-08T01:34:03+00:00 Repair step: Repair encryption app incompatibility
2017-03-08T01:34:03+00:00 Repair info: No repair necessary
2017-03-08T01:34:03+00:00 Repair step: Repair MySQL database engine
2017-03-08T01:34:03+00:00 Repair step: Repair MySQL collation
2017-03-08T01:34:03+00:00 Repair step: Repair SQLite autoincrement
2017-03-08T01:34:03+00:00 Repair step: Repair duplicate entries in oc_lucene_status
2017-03-08T01:34:03+00:00 Repair info: removing duplicate entries from lucene_status
2017-03-08T01:34:03+00:00 Repair step: Copy the rewrite base to the config file
2017-03-08T01:34:03+00:00 Updating database schema
2017-03-08T01:34:03+00:00 Updated database
2017-03-08T01:34:04+00:00 Disabled incompatible app: sharelinks
2017-03-08T01:34:04+00:00 Updating real 1079m28.892s user 44m33.818s sys 2m40.499s
I've now changed the memory_limit to 4GB and trying to rerun:
2017-03-08T20:01:20+00:00 Set log level to debug
2017-03-08T20:01:20+00:00 Repair step: Repair encryption app incompatibility
2017-03-08T20:01:20+00:00 Repair info: No repair necessary
2017-03-08T20:01:20+00:00 Repair step: Repair MySQL database engine
2017-03-08T20:01:20+00:00 Repair step: Repair MySQL collation
2017-03-08T20:01:20+00:00 Repair step: Repair SQLite autoincrement
2017-03-08T20:01:20+00:00 Repair step: Repair duplicate entries in oc_lucene_status
2017-03-08T20:01:20+00:00 Repair info: removing duplicate entries from lucene_status
2017-03-08T20:01:20+00:00 Repair step: Copy the rewrite base to the config file
2017-03-08T20:01:20+00:00 Updating database schema
2017-03-08T20:01:20+00:00 Updated database
2017-03-08T20:01:21+00:00 dav: An exception occurred while executing 'CREATE TABLE oc_addressbooks
(id
BIGINT UNSIGNED AUTO_INCREMENT NOT NULL, principaluri
VARCHAR(255) DEFAULT NULL, displayname
VARCHAR(255) DEFAULT NULL, uri
VARCHAR(255) DEFAULT NULL, description
VARCHAR(255) DEFAULT NULL, synctoken
INT UNSIGNED DEFAULT 1 NOT NULL, UNIQUE INDEX addressbook_index (principaluri
, uri
), PRIMARY KEY(id
)) DEFAULT CHARACTER SET utf8 COLLATE utf8_bin ENGINE = InnoDB':
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'oc_addressbooks' already exists 2017-03-08T20:01:21+00:00 Repair step: Repair mime types
Naturally it's complaning oc_addressbooks is there, but it's continuing with the upgrade process it seems. But i didn't see any calendar upgrade at all. Is that also ignored due to contacts table error?
@DeepDiver1975
Steps to reproduce
1.Upgrade from oC stable8.2 to stable9 with updating contacts to current version 2.Follow the oC log
Expected behaviour
Contact gets updated to recent version
Actual behaviour
Lots of error as given in the subject field
Server configuration
Operating system: CentOS 7
Web server: Apache 2.4
Database: MariaDB 10.x
PHP version: 5.6.x
ownCloud version: (see ownCloud admin page)
Contacts version: 1.3.3
Updated from an older ownCloud or fresh install: From stable8.2
Signing status (ownCloud 9.0 and above):
List of activated apps: nabled:
Insert your ownCloud log here
Have many of the ^^ lines and i wonder if those events are lost after migration? I won't be able to confirm since it's still in the process!
Thanks.