Hello all,
The OC server I installed a while ago as a showcase, has now climbed the hierarchy to the production server level.
Initially I configured the server as a simple plain vanilla stand-alone instance, using sqlite and no particular mem caches etc.
Now my superiors want to make this really serious and add a plethora of new user accounts, files, folders and whatnot.
Thus I proceeded to convert the sqlite3 db to mariasql, which supposedly is a mysql equivalent and reported to be just fine with OC.
I almost immediately ran into problems.
Please see the below conversion routine I got from here; https://doc.owncloud.com/server/10.0/admin_manual/configuration/database/db_conversion.html?highlight=database.
[root@owncloud owncloud]# sudo -u apache ./occ db:convert-type mysql owncloud localhost owncloud
Enter a new password:
Creating schema in new database
The following tables will not be converted:
oc_account_terms
oc_accounts
oc_addressbookchanges
oc_addressbooks
oc_calendarchanges
oc_calendarobjects
oc_calendars
oc_calendarsubscriptions
oc_cards
oc_cards_properties
oc_dav_shares
oc_external_applicable
oc_external_config
oc_external_mounts
oc_external_options
oc_federated_reshares
oc_files_trash
oc_migrations
oc_notifications
oc_properties
oc_schedulingobjects
oc_share
oc_share_external
oc_trusted_servers
Please note that tables belonging to available but currently not installed apps
can be included by specifying the --all-apps option.
Continue with the conversion (y/n)? [n] y
oc_activity
389/389 [============================] 100%oc_activity_mq
0 [>---------------------------]oc_appconfig
104/104 [============================] 100%oc_authtoken
0 [>---------------------------]oc_comments
0 [>---------------------------]oc_comments_read_markers
0 [>---------------------------]oc_credentials
0 [>---------------------------]oc_file_locks
9/9 [============================] 100%oc_filecache
452/452 [============================] 100%oc_group_admin
4/4 [============================] 100%oc_group_user
30/30 [============================] 100%oc_groups
5/5 [============================] 100%oc_jobs
1/14 [==>-------------------------] 7%
[Doctrine\DBAL\Exception\InvalidFieldNameException]
An exception occurred while executing âINSERT INTOoc_jobs
(id
,class
,argument
,last_run
,last_checked
,reserved_at
,exe cution_duration
) VALUES(?, ?, ?, ?, ?, ?, ?)â with params [â1â, âOCA\Activity\BackgroundJob\EmailNotificationâ, ânullâ, â1510665308â
, â1510666207â, â0â, â0â]:
SQLSTATE[42S22]: Column not found: 1054 Unknown column âexecution_durationâ in âfield listâ
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[42S22]: Column not found: 1054 Unknown column âexecution_durationâ in âfield listâ
[PDOException]
SQLSTATE[42S22]: Column not found: 1054 Unknown column âexecution_durationâ in âfield listâ
db:convert-type [âport PORT] [âpassword PASSWORD] [âclear-schema] [âall-apps] [âchunk-size CHUNK-SIZE] [â]
[root@owncloud owncloud]#
I did try to run the conversion with the --all-apps flag after this failed, but ran into the same problem.
I canât make any sense of whatâs wrong, except that some column in a table is missing.
Sql databases is not quite my forté yet, but I try, so please, can anybody hint or point me in the direction of what to do next?
I run this OC instance on a CentOS 7 x64-server and php is v5.6.
Thanks in advance for any feedback.