Migration from Owncloud 9 to Nextcloud issues with calendar

I am migrating both from Owncloud to Nextcloud and to a new server. To start with I wanted to migrate from Owncloud to Nextcloud before switching servers. I had Owncloud 9.0.x (I don’t remember the exact version). I followed the migration instructions to the letter and ‘upgraded’ to Nextcloud 9.0.54. As per instructions it said that apps would need to be re-enabled. I went to apps and straight away noticed there was no appstore access. And that because of that Calendar, Tasks and Contacts were missing. These three are our primary use for Own/Nextcloud. I realised that in migrating the config.php file, the appstore lines were missing so I added

  'appstoreenabled' => true,
  'appstoreurl' => 'https://apps.nextcloud.com/api/v0',

However, the appstore is still not working and in the log I get

Error 	core 	Could not get application: Client error response [url] https://apps.nextcloud.com/api/v0/content/data/164356?version=9x0x54x5 [status code] 404 [reason phrase] Not Found 

Before fixing that problem I thought I would at least get the Calendar, Contacts and Tasks back manually. So I copied those app directories from the Owncloud backup to the Nextcloud apps folder. With experiemental apps turned on, those apps now appeared and I was able to enable them.
HOWEVER, the data within those apps is now missing. i.e. they are completely blank.

I have no idea what has gone wrong and where to go from here in restoring the apps data and getting the appstore to work correctly. TIA!

Nextcloud version 9.0.54
Operating system and version: (Dreamhost shared hosting) Linux benjy 4.4.126-0.ksplice-lts-generic x86_64
Apache or nginx version: Apache (unknown version, can’t find that info)
PHP version: 5.6

Is this the first time you’ve seen this error?: Yes

Steps to replicate it:

1. Followed instructions here: https://nextcloud.com/migration/ Backed up Owncloud folder and database. Downloaded Nextcloud. Uploaded to server and unzipped.
2. Deleted config folder in Nextcloud folder.
3. Copied Data and Config folder from Owncloud backup to Nextcloud folder.
4. Renamed Owncloud folder to owncloud-backup
5. Renamed Nextcloud folder to owncloud.
6. Went to web login. Let Nextcloud do updating. (Was successful)
7. Logged in, went to apps, noticed there was nothing but ‘Enabled’ and ‘Not enabled’. Enabled experimental but made no difference.
8. Checked the config file and found the appstore lines missing. Added them as above.
9. Refreshed the app page but still no appstore.
10. Manually copied the Calendar, Tasks and Contacts folders from the Owncloud backup to the Nextcloud apps folder.
11. Refreshed the Apps page. Found Calendar, Tasks and Contacts under ‘Not enabled’ (experimental) and enabled them.
12. Went to calendar app. Found that it was blank and no calendar items from previous install were there.

The output of your Nextcloud log in Admin > Logging: https://pastebin.com/3whLQ2zX

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => ***********
  'passwordsalt' =>  ***********
  'secret' =>  ***********
  'trusted_domains' => 
  array (
    0 =>  ***********
    1 =>  ***********
  'datadirectory' => ' ***********/owncloud/data',
  'overwrite.cli.url' => 'http://www. ***********/owncloud',
  'dbtype' => 'mysql',
  'version' => '',
  'dbname' => ***********
  'dbhost' => ' ***********',
  'dbtableprefix' => 'oc_',
  'dbuser' => ' ***********_oc',
  'dbpassword' => ' ***********',
  'logtimezone' => 'UTC',
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'mail_from_address' =>  ***********
  'mail_smtpmode' => 'php',
  'mail_domain' =>  ***********
  'htaccess.RewriteBase' => '/owncloud',
  'updater.secret' => ***********
  'updater.release.channel' => 'stable',
  'appstoreenabled' => true,
  'appstoreurl' => 'https://apps.nextcloud.com/api/v0',
  'appstore.experimental.enabled' => true,

The output of your Apache/nginx/system log in /var/log/____:
Don’t have access to this.

Your issue is that you’ve waited too long and the store does not ship compatible calendar versions for your installation. Remove the apps/calendar/ folder and simply install it again once you are fully updated. You might also need to do that for other apps.

PS: appstoreurl is not used anymore and https://apps.nextcloud.com/api/v0 has also been removed

Thanks for your response :slight_smile: Is there any easy or at least straightforward way of transferring calendar and contacts data across? I have an .ics file backup of the calendar. Can that just be imported back into Nextcloud? Can something similar be done for contacts?

At least calendar and contacts should only be a frontend so there should be no need to migrate the data. Make a backup nontheless

1 Like