Problems migrating from owncloud 10.14.0 (stable)

Hello,

I am testing a migration from OwnCloud to Nextcloud.
My OwnCloud version is 10.14.0, and I am migrating to Nextcloud version 25.0.13, as recommended in the documentation:
https://docs.nextcloud.com/server/latest/admin_manual/maintenance/migrating_owncloud.html
MySQL version: 10.11.6

I am using PHP 7.4:

ii  php-common                       2:95+0~20240927.54+debian12~1.gbpe0084c        all          Common files for PHP packages  
ii  php-sodium                       2.0.23-9+0~20231125.19+debian12~1.gbp064888    amd64        PHP wrapper for the Sodium cryptographic library  
ii  php7.1-cli                       7.1.33-67+0~20241224.99+debian12~1.gbp513ecc   amd64        Command-line interpreter for the PHP scripting language  
ii  php7.1-common                    7.1.33-67+0~20241224.99+debian12~1.gbp513ecc   amd64        Documentation, examples, and common module for PHP  
ii  php7.1-json                      7.1.33-67+0~20241224.99+debian12~1.gbp513ecc   amd64        JSON module for PHP  
ii  php7.1-opcache                   7.1.33-67+0~20241224.99+debian12~1.gbp513ecc   amd64        Zend OpCache module for PHP  
ii  php7.1-phpdbg                    7.1.33-67+0~20241224.99+debian12~1.gbp513ecc   amd64        PHPDBG binary  
ii  php7.1-readline                  7.1.33-67+0~20241224.99+debian12~1.gbp513ecc   amd64        Readline module for PHP  
ii  php7.1-sodium                    2.0.23-9+0~20231125.19+debian12~1.gbp064888    amd64        PHP wrapper for the Sodium cryptographic library  
ii  php7.4-apcu                      5.1.24-1+0~20241124.41+debian12~1.gbpff678c    amd64        APC User Cache for PHP  
ii  php7.4-cli                       1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        Command-line interpreter for the PHP scripting language  
ii  php7.4-common                    1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        Documentation, examples, and common module for PHP  
ii  php7.4-curl                      1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        CURL module for PHP  
ii  php7.4-gd                        1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        GD module for PHP  
ii  php7.4-igbinary                  3.2.16-3+0~20241125.52+debian12~1.gbp2adcb2    amd64        igbinary PHP serializer  
ii  php7.4-intl                      1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        Internationalisation module for PHP  
ii  php7.4-json                      1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        JSON module for PHP  
ii  php7.4-ldap                      1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        LDAP module for PHP  
ii  php7.4-mbstring                  1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        MBSTRING module for PHP  
ii  php7.4-msgpack                   1:3.0.0-1+0~20241125.46+debian12~1.gbp0b61ab   amd64        MessagePack PHP extension  
ii  php7.4-mysql                     1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        MySQL module for PHP  
ii  php7.4-opcache                   1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        Zend OpCache module for PHP  
ii  php7.4-readline                  1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        Readline module for PHP  
ii  php7.4-redis                     6.1.0-2+0~20241127.62+debian12~1.gbp5ec001     amd64        PHP extension for Redis  
ii  php7.4-smbclient                 1.1.2-2+0~20241126.30+debian12~1.gbpb221e0     amd64        PHP wrapper for libsmbclient  
ii  php7.4-xml                       1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        DOM, SimpleXML, XML, and XSL module for PHP  
ii  php7.4-zip                       1:7.4.33-18+0~20241224.97+debian12~1.gbpaac02c amd64        Zip module for PHP  

Following the migration procedure, when I run the command sudo -u www-data php occ upgrade, I get the following error:

sudo -u www-data php occ upgrade  
Nextcloud or one of the apps require an upgrade - only a limited number of commands are available.  
You may use your browser or the occ upgrade command to perform the upgrade.  
Setting log level to debug  
Exception: Updates between multiple major versions and downgrades are unsupported.  
Update failed.  
Maintenance mode is kept active.  
Resetting log level.  

Thank you in advance for your help and advice!

I did a search. Everything should be right in terms of the prerequisites. Have you carried out the previous steps correctly? Have you prepared the old OwnCloud structure according to the specifications? Maybe you can describe all the steps you took.

Also give it a try:

sudo -u www-data php occ upgrade -vv

Hello,

Yes, I believe I have correctly completed the previous steps.

Here are the steps I followed for the migration:

wget https://download.nextcloud.com/server/releases/nextcloud-25.0.13.tar.bz2
tar -xjf nextcloud-25.0.13.tar.bz2
systemctl stop apache2.service
mv nextcloud owncloud
cp owncloud-old/config/config.php owncloud/config/config.php
cp owncloud-old/apps-external/ owncloud/ -r
chown -R www-data:www-data owncloud/
find owncloud/ -type d -exec chmod 750 {} \;
find owncloud -type f -exec chmod 640 {} \;
systemctl start apache2.service
sudo -u www-data php occ upgrade -vv
Nextcloud 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
2025-01-21T08:48:34+00:00 Setting log level to debug
2025-01-21T08:48:34+00:00 Exception: Updates between multiple major versions and downgrades are unsupported.
2025-01-21T08:48:34+00:00 Update failed
2025-01-21T08:48:34+00:00 Maintenance mode is kept active
2025-01-21T08:48:34+00:00 Resetting log level

What are the recommendations for the OwnCloud structure?

Thank you in advance for your help.

I hope you have a backup. Go in your Owncloud/Nextcloud dir an use:

sudo -u www-data php updater/updater.phar

Maybe you get a real error.

Also you can test some other occ-commands e.g.

occ maintenance:repair

Hello,

For the command sudo -u www-data php updater/updater.phar, no error message appeared:

Nextcloud Updater - version: v25.0.11-5-g06c1bad

Current version is 25.0.13.

No update available.

Nothing to do.

However, with the command sudo -u www-data php occ maintenance:repair, there were errors:

sudo -u www-data php occ maintenance:repair
Nextcloud 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
 - Repair MySQL collation
     - All tables already have the correct collation -> nothing to do
 - Repair mime types
     - Fixed image mime types
     - Fixed windows program mime types
     - Fixed geospatial mime types
     - Fixed internet-shortcut mime types
     - Fixed visio mime types
 - Clean tags and favorites
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'uid_lower' in 'where clause'
 - Repair invalid shares
 - Move .step file of updater to backup location
 - Add move avatar background job
     - Add background job
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Add preview cleanup background jobs
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'uid_lower' in 'where clause'
 - Migrate oauth2_clients table to nextcloud schema
     - oauth2_clients table does not exist.
 - Fix potential broken mount points
     - 9 mounts updated
 - Repair language codes
     - Changed 0 setting(s) from "bg_BG" to "bg" in preferences table.
     - Changed 0 setting(s) from "cs_CZ" to "cs" in preferences table.
     - Changed 0 setting(s) from "fi_FI" to "fi" in preferences table.
     - Changed 0 setting(s) from "hu_HU" to "hu" in preferences table.
     - Changed 0 setting(s) from "nb_NO" to "nb" in preferences table.
     - Changed 0 setting(s) from "sk_SK" to "sk" in preferences table.
     - Changed 0 setting(s) from "th_TH" to "th" in preferences table.
 - Add log rotate job
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Clear frontend caches
     - Image cache cleared
     - WARNING: Unable to clear the frontend cache
 - Clear every generated avatar
     - WARNING: Unable to clear the avatar cache
 - Add preview background cleanup job
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Queue a one-time job to cleanup old backups of the updater
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Cleanup invalid photocache files for carddav
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ownclouddev.oc_filecache_extended' doesn't exist
 - Add background job to cleanup login flow v2 tokens
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Remove potentially over exposing share links
     - No need to remove link shares.
 - Clear access cache of projects
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ownclouddev.oc_collres_accesscache' doesn't exist
 - Reset generated avatar flag
 - Keep legacy encryption enabled
 - Check encryption key format
 - Remove old dashboard app config data
 - Add job to cleanup the bruteforce entries
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Queue a one-time job to check for user uploaded certificates
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Repair DAV shares
     - Repaired DAV group shares
 - Add background job to set the lookup server share state for users
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Add token cleanup job
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Clean up abandoned apps
 - Add possibly missing system config
 - Fix component of birthday calendars
     - 1 birthday calendars updated.
 - Regenerating birthday calendars to use new icons and fix old birthday events without year
     - Adding background jobs to regenerate birthday calendar
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Fix broken values of calendar objects
    0 [->--------------------------]
 - Registering building of calendar search index as background job
     - Add background job
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Register building of social profile search index as background job
 - Registering background jobs to update cache for webcal calendars
     - Added 0 background jobs to update webcal calendars
 - Registering building of calendar reminder index as background job
     - Add background job
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Clean up orphan event and contact data
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'c.calendartype' in 'where clause'
 - Remove activity entries of private events
     - Removed 0 activity entries
 - Clean up old calendar subscriptions from deleted users that were not cleaned-up
    0 [----->----------------------]
     - 0 calendar subscriptions without an user have been cleaned up
 - Remove invalid object properties
     - 0 invalid object properties removed.
 - Fix the share type of guest shares when migrating from ownCloud
 - Copy the share password into the dedicated column
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'password' in 'field list'
 - Set existing shares as accepted
 - Update OAuth token expiration times
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ownclouddev.oc_oauth2_access_tokens' doesn't exist
 - Initialize migration of background images from dashboard to theming app
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Add background job to check for backup codes
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Insert UUIDFix background job for user and group in batches
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'
 - Remove deprecated refresh time markers for LDAP user records
 - Populating added database structures for workflows
     - ERROR: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ownclouddev.oc_flow_operations' doesn't exist

Thank you in advance for your help.

You could execute the following command if available.

sudo -u www-data php occ db:add-missing-indices

Can you find something in nextcloud.log in your Nextcloud/OwnCloud directory? Maybe you can increase the log level. Unfortunately, I don’t know whether the occ command writes to the log at all.

I think there are also problems with some parts of the database e.g. uid_lower.

With the command sudo -u www-data php occ db:add-missing-indices

Nextcloud 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
Check indices of the share table.
Adding additional parent index to the share table, this can take some time...
Share table updated successfully.
Adding additional owner index to the share table, this can take some time...
Share table updated successfully.
Adding additional initiator index to the share table, this can take some time...
Share table updated successfully.
Check indices of the filecache table.
Adding additional mtime index to the filecache table, this can take some time...
Filecache table updated successfully.
Adding additional size index to the filecache table, this can take some time...
Filecache table updated successfully.
Adding additional size index to the filecache table, this can take some time...
Filecache table updated successfully.
Adding additional path index to the filecache table, this can take some time...
Filecache table updated successfully.
Adding additional parent index to the filecache table, this can take some time...
Filecache table updated successfully.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Renaming addressbookid_uri_index index to cards_abiduri in the cards table, this can take some time...
Adding cards_abid index to the cards table, this can take some time...
cards table updated successfully.
Check indices of the cards_properties table.
Adding cards_prop_abid index to the cards_properties table, this can take some time...
cards_properties table updated successfully.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Adding schedulobj_principuri_index index to the schedulingobjects table, this can take some time...
schedulingobjects table updated successfully.
Check indices of the oc_properties table.
Adding properties_path_index index to the oc_properties table, this can take some time...

In SchemaException.php line 87:
                                                                   
  There is no column with name 'userid' on table 'oc_properties'.  
                                                                   

db:add-missing-indices [--dry-run]

Log file in debug mode.

==> nextcloud.log <==
{"reqId":"oXlrLRdcMyuunEb71Chc","level":3,"time":"2025-01-21T10:24:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Exception while executing
 repair step Regenerating birthday calendars to use new icons and fix old birthday events without year","userAgent":"--","version":"10.14.0.3","exception":{"Exception":"OC\\DB\\Exceptions\\D
balException","Message":"An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'","Code":1054,"Trace":[{"file"
:"/var/www/owncloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":296,"function":"wrap","class":"OC\\DB\\Exceptions\\DbalException","type":"::"},{"file":"/var/www/owncloud/lib/private
/BackgroundJob/JobList.php","line":153,"function":"executeQuery","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/owncloud/lib/private/BackgroundJob/JobList.php","
line":70,"function":"has","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/owncloud/apps/dav/lib/Migration/RegenerateBirthdayCalendars.php","line":68,"function":"add","cla
ss":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/owncloud/lib/private/Repair.php","line":127,"function":"run","class":"OCA\\DAV\\Migration\\RegenerateBirthdayCalendars","type"
:"->"},{"file":"/var/www/owncloud/core/Command/Maintenance/Repair.php","line":123,"function":"run","class":"OC\\Repair","type":"->"},{"file":"/var/www/owncloud/3rdparty/symfony/console/Comma
nd/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Maintenance\\Repair","type":"->"},{"file":"/var/www/owncloud/3rdparty/symfony/console/Application.php","line":1009
,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/owncloud/3rdparty/symfony/console/Application.php","line":273,"function":"doRunComman
d","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/owncloud/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Compon
ent\\Console\\Application","type":"->"},{"file":"/var/www/owncloud/lib/private/Console/Application.php","line":214,"function":"run","class":"Symfony\\Component\\Console\\Application","type":
"->"},{"file":"/var/www/owncloud/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/owncloud/occ","line":11,"args":["/var/www/owncloud
/console.php"],"function":"require_once"}],"File":"/var/www/owncloud/lib/private/DB/Exceptions/DbalException.php","Line":72,"Previous":{"Exception":"Doctrine\\DBAL\\Exception\\InvalidFieldNa
meException","Message":"An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'","Code":1054,"Trace":[{"file":
"/var/www/owncloud/3rdparty/doctrine/dbal/src/Connection.php","line":1780,"function":"convert","class":"Doctrine\\DBAL\\Driver\\API\\MySQL\\ExceptionConverter","type":"->"},{"file":"/var/www
/owncloud/3rdparty/doctrine/dbal/src/Connection.php","line":1719,"function":"handleDriverException","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/owncloud/3rdparty/doct
rine/dbal/src/Connection.php","line":1067,"function":"convertExceptionDuringQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/owncloud/lib/private/DB/Connection.php"
,"line":261,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/owncloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":345,"function":"e
xecuteQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/owncloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":281,"function":"execute","class":"Doctrine\\DBAL\\Query
\\QueryBuilder","type":"->"},{"file":"/var/www/owncloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":294,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"
},{"file":"/var/www/owncloud/lib/private/BackgroundJob/JobList.php","line":153,"function":"executeQuery","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/owncloud/
lib/private/BackgroundJob/JobList.php","line":70,"function":"has","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/owncloud/apps/dav/lib/Migration/RegenerateBirthdayCalend
ars.php","line":68,"function":"add","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/owncloud/lib/private/Repair.php","line":127,"function":"run","class":"OCA\\DAV\\Migrat
ion\\RegenerateBirthdayCalendars","type":"->"},{"file":"/var/www/owncloud/core/Command/Maintenance/Repair.php","line":123,"function":"run","class":"OC\\Repair","type":"->"},{"file":"/var/www
/owncloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Maintenance\\Repair","type":"->"},{"file":"/var/www/owncloud/3rdparty/symf
ony/console/Application.php","line":1009,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/owncloud/3rdparty/symfony/console/Application
.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/owncloud/3rdparty/symfony/console/Application.php","line":149,"fu
nction":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/owncloud/lib/private/Console/Application.php","line":214,"function":"run","class":"Symfony\\
Component\\Console\\Application","type":"->"},{"file":"/var/www/owncloud/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/owncloud/o
cc","line":11,"args":["/var/www/owncloud/console.php"],"function":"require_once"}],"File":"/var/www/owncloud/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php","Line":65,"Pr
evious":{"Exception":"Doctrine\\DBAL\\Driver\\PDO\\Exception","Message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'","Code":1054,"Trace":[{"file
":"/var/www/owncloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","line":94,"function":"new","class":"Doctrine\\DBAL\\Driver\\PDO\\Exception","type":"::"},{"file":"/var/www/owncloud/
3rdparty/doctrine/dbal/src/Connection.php","line":1057,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDO\\Statement","type":"->"},{"file":"/var/www/owncloud/lib/private/DB/Connection
.php","line":261,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/owncloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":345,"functio
n":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/owncloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":281,"function":"execute","class":"Doctrine\\DBAL\\
Query\\QueryBuilder","type":"->"},{"file":"/var/www/owncloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":294,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type"
:"->"},{"file":"/var/www/owncloud/lib/private/BackgroundJob/JobList.php","line":153,"function":"executeQuery","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/ownc
loud/lib/private/BackgroundJob/JobList.php","line":70,"function":"has","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/owncloud/apps/dav/lib/Migration/RegenerateBirthdayC
alendars.php","line":68,"function":"add","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/owncloud/lib/private/Repair.php","line":127,"function":"run","class":"OCA\\DAV\\M
igration\\RegenerateBirthdayCalendars","type":"->"},{"file":"/var/www/owncloud/core/Command/Maintenance/Repair.php","line":123,"function":"run","class":"OC\\Repair","type":"->"},{"file":"/va
r/www/owncloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Maintenance\\Repair","type":"->"},{"file":"/var/www/owncloud/3rdparty
/symfony/console/Application.php","line":1009,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/owncloud/3rdparty/symfony/console/Applic
ation.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/owncloud/3rdparty/symfony/console/Application.php","line":14
9,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/owncloud/lib/private/Console/Application.php","line":214,"function":"run","class":"Symf
ony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/owncloud/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"->"},

I think i can not really help you.

summary from your post, maybe someone else can help

"message":"Exception while executing
 repair step Regenerating birthday calendars to use new icons and fix old birthday events without year"
"Exception":"OC\\DB\\Exceptions\\D
balException",       "Message":"An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'argument_hash' in 'where clause'",  "Code":1054,

Please find the admin guide, how to convert the Owncloud database to nextcloud:
https://docs.nextcloud.com/server/latest/admin_manual/maintenance/migrating_owncloud.html
It contains several occ commands for conversion and adding missing columns in tables.

1 Like

I found the solution.

You need to modify the files:

vim nextcloud/config.php → 'version' => '10.14.0' (set the OwnCloud version)
vim nextcloud/version.php →

'owncloud' =>  
  array (
    '10.14' => true,
  )

Thanks for your help!

1 Like