Problem upgrading 14.03 to 14.04; and need help understanding directory structure

Nextcloud version: 14.03
Operating system and version: Debian / Open Media Vault / Odroid XU4
Apache or nginx version: 1.10.3
PHP version: 7.0.33-0+deb9u1

The issue you are facing:
I try to update 14.03 to 14.04 and the Check for expected files stage of stage of the updater returns the following error:

The following extra files have been found:

* Peter
* Gabriele
* appdata_ocgcf2pktzr0
* nextcloud.log
* files_external
* Andrew
* updater-ocgcf2pktzr0
* .ocdata
* updater.log 

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

Steps to replicate it:

  1. Press “Open updater” from admin / overview page.
  2. Press “Start update”.

The output of your Nextcloud log in Admin > Logging:

Nothing from the same date as the attempt to update

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

The nextcloud directory is /sharedfolders/nextcloud/
Is there a problem with the above and ‘datadirectory’ => ‘/sharedfolders/www/nextcloud’?

I also notice that /sharedfolders/nextcloud/ and /sharedfolders/www/nextcloud/ seem to have exactly the same content. Is one a link to the other? How do I tell?

<?php
$CONFIG = array (
  'instanceid' => 'ocgcf2pktzr0',
  'passwordsalt' => '#######',
  'secret' => '#######',
  'trusted_domains' => 
  array (
    0 => 'cloud.myhost.com.au',
  ),
  'datadirectory' => '/sharedfolders/www/nextcloud',
  'dbtype' => 'mysql',
  'version' => '14.0.3.0',
  'overwrite.cli.url' => 'https://192.168.178.70',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_Andrew',
  'dbpassword' => '######',
  'installed' => true,
  'mail_from_address' => 'nextcloud',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'myhost.com.au',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => 'mail.myhost.com.au',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '465',
  'mail_smtpname' => 'andrew@myhost.com.au',
  'mail_smtppassword' => '######',
  'maintenance' => false,
  'updater.secret' => '#######',
);

The output of your Apache/nginx/system log in /var/log/____:

150.101.157.78 - Andrew [04/Jan/2019:00:09:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:10:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:10:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:11:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:11:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:12:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:12:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:13:13 +1100] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 375 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:13:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:13:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:14:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:14:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:15:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:15:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:16:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:16:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:17:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:17:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:18:13 +1100] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 375 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:18:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:18:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:19:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:19:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:20:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:20:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:21:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:21:36 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"
150.101.157.78 - Andrew [04/Jan/2019:00:21:36 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"
150.101.157.78 - Andrew [04/Jan/2019:00:21:36 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"
150.101.157.78 - Andrew [04/Jan/2019:00:21:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:21:50 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"
150.101.157.78 - Andrew [04/Jan/2019:00:21:50 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"
150.101.157.78 - Andrew [04/Jan/2019:00:22:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:22:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:23:13 +1100] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 375 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:23:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:23:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:24:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:24:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:25:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:25:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:26:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:26:21 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"
150.101.157.78 - Andrew [04/Jan/2019:00:26:22 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"
150.101.157.78 - Andrew [04/Jan/2019:00:26:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:27:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:27:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:28:13 +1100] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 375 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:28:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:28:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:29:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:29:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:30:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:30:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:31:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:31:25 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"
150.101.157.78 - Andrew [04/Jan/2019:00:31:25 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"
150.101.157.78 - Andrew [04/Jan/2019:00:31:45 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:32:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:32:25 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"
150.101.157.78 - Andrew [04/Jan/2019:00:32:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:33:13 +1100] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 375 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:33:13 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:33:24 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"
150.101.157.78 - Andrew [04/Jan/2019:00:33:24 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"
150.101.157.78 - Andrew [04/Jan/2019:00:33:43 +1100] "PROPFIND /remote.php/dav/files/Andrew/ HTTP/1.1" 207 398 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
150.101.157.78 - Andrew [04/Jan/2019:00:33:44 +1100] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"

... and more

I’m confused about my folder structure. NextCloud is installed on a machine running Open Media Vault (OMV). I created a ‘sharedfolder’ to store all the user generated data that users and apps may need - anything other than OS stuff.

Here is the content of ‘sharedfolder’:

user@NAS:/sharedfolders# ls -l
total 16
drwxrwsr-x+  4 root     users    4096 Dec 30 21:06 Backups
drwxrws---+ 21 www-data www-data 4096 Jan  2 14:34 nextcloud
drwxrwsr-x   3 root     users    4096 Nov 13 11:07 www

Here is the content of ‘sharedfolders/nextcloud’:

user@NAS:/sharedfolders/nextcloud# ls -l
total 76308
drwxr-s---+ 33 www-data www-data     4096 Nov 10 14:19 3rdparty
drwxrws---+  7 www-data www-data     4096 Nov 11 01:10 Andrew
drwxrws---+ 10 www-data www-data     4096 Nov 10 18:00 appdata_ocgcf2pktzr0
drwxr-s---+ 42 www-data www-data     4096 Dec 14 18:05 apps
-rw-r-----+  1 www-data www-data    12063 Nov 10 14:19 AUTHORS
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:23 config
-rw-r-----+  1 www-data www-data     3650 Nov 10 14:19 console.php
-rw-r-----+  1 www-data www-data    34520 Nov 10 14:19 COPYING
drwxr-s---+ 18 www-data www-data     4096 Nov 10 14:19 core
-rw-r-----+  1 www-data www-data     4979 Nov 10 14:19 cron.php
drwxrws---+  2 www-data www-data     4096 Nov 10 14:39 data
drwxrws---+  2 www-data www-data     4096 Nov 10 14:41 files_external
drwxrws---+  4 www-data www-data     4096 Jan  2 14:34 Gabriele
-rw-r-----+  1 www-data www-data        0 Nov 10 14:40 index.html
-rw-r-----+  1 www-data www-data     3171 Nov 10 14:19 index.php
drwxr-s---+  6 www-data www-data     4096 Nov 10 14:19 lib
-rw-r-----+  1 www-data www-data 77801796 Jan  2 10:30 nextcloud.log
-rw-r-----+  1 www-data www-data      283 Nov 10 14:19 occ
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 ocm-provider
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 ocs
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 ocs-provider
drwxrws---+  5 www-data www-data     4096 Nov 19 15:35 Peter
-rw-r-----+  1 www-data www-data     2971 Nov 10 14:19 public.php
-rw-r-----+  1 www-data www-data     5139 Nov 10 14:19 remote.php
drwxr-s---+  4 www-data www-data     4096 Nov 10 14:19 resources
-rw-r-----+  1 www-data www-data       26 Nov 10 14:19 robots.txt
drwxr-s---+ 12 www-data www-data     4096 Nov 10 14:19 settings
-rw-r-----+  1 www-data www-data     2232 Nov 10 14:19 status.php
drwxr-s---+  3 www-data www-data     4096 Nov 10 14:19 themes
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 updater
-rw-rw----+  1 www-data www-data    30808 Jan  4 09:00 updater.log
drwxrws---+  2 www-data www-data     4096 Jan  4 09:00 updater-ocgcf2pktzr0
-rw-r-----+  1 www-data www-data      362 Nov 10 14:19 version.php

Here is the content of ‘sharedfolders/www/nextcloud’:

root@NAS:/sharedfolders/www/nextcloud# ls -l
total 76308
drwxr-s---+ 33 www-data www-data     4096 Nov 10 14:19 3rdparty
drwxrws---+  7 www-data www-data     4096 Nov 11 01:10 Andrew
drwxrws---+ 10 www-data www-data     4096 Nov 10 18:00 appdata_ocgcf2pktzr0
drwxr-s---+ 42 www-data www-data     4096 Dec 14 18:05 apps
-rw-r-----+  1 www-data www-data    12063 Nov 10 14:19 AUTHORS
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:23 config
-rw-r-----+  1 www-data www-data     3650 Nov 10 14:19 console.php
-rw-r-----+  1 www-data www-data    34520 Nov 10 14:19 COPYING
drwxr-s---+ 18 www-data www-data     4096 Nov 10 14:19 core
-rw-r-----+  1 www-data www-data     4979 Nov 10 14:19 cron.php
drwxrws---+  2 www-data www-data     4096 Nov 10 14:39 data
drwxrws---+  2 www-data www-data     4096 Nov 10 14:41 files_external
drwxrws---+  4 www-data www-data     4096 Jan  2 14:34 Gabriele
-rw-r-----+  1 www-data www-data        0 Nov 10 14:40 index.html
-rw-r-----+  1 www-data www-data     3171 Nov 10 14:19 index.php
drwxr-s---+  6 www-data www-data     4096 Nov 10 14:19 lib
-rw-r-----+  1 www-data www-data 77801796 Jan  2 10:30 nextcloud.log
-rw-r-----+  1 www-data www-data      283 Nov 10 14:19 occ
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 ocm-provider
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 ocs
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 ocs-provider
drwxrws---+  5 www-data www-data     4096 Nov 19 15:35 Peter
-rw-r-----+  1 www-data www-data     2971 Nov 10 14:19 public.php
-rw-r-----+  1 www-data www-data     5139 Nov 10 14:19 remote.php
drwxr-s---+  4 www-data www-data     4096 Nov 10 14:19 resources
-rw-r-----+  1 www-data www-data       26 Nov 10 14:19 robots.txt
drwxr-s---+ 12 www-data www-data     4096 Nov 10 14:19 settings
-rw-r-----+  1 www-data www-data     2232 Nov 10 14:19 status.php
drwxr-s---+  3 www-data www-data     4096 Nov 10 14:19 themes
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 updater
-rw-rw----+  1 www-data www-data    30808 Jan  4 09:00 updater.log
drwxrws---+  2 www-data www-data     4096 Jan  4 09:00 updater-ocgcf2pktzr0
-rw-r-----+  1 www-data www-data      362 Nov 10 14:19 version.php

Those two folders seem to be exactly the same - they have the same size. But neither directory is a link to the other:

user@NAS:/sharedfolders# ls -l
total 16
drwxrwsr-x+  4 root     users    4096 Dec 30 21:06 Backups
drwxrws---+ 21 www-data www-data 4096 Jan  2 14:34 nextcloud
drwxrwsr-x   3 root     users    4096 Nov 13 11:07 www

I don’t understand how or why I ended up with two folders that seem to be the same. Which one do I need to keep? And which one can I safely delete? How do I delete it? If I create a new user in nextcloud (via the web interface) a folder for that user appears in both sharedfolders/www/nextcloud and sharedfolders/nextcloud.

I could start all over again, but I would end up doing the same install and probably getting the same problem. Any help in understanding this situations would be greatly appreciated.

Thanks in advance to anyone who can help - and I hope you all have a great 2019. :smiley:

Both ls -l were from the same directory :wink:
Maybe /sharedfolders/www/nextcloud is a link to /sharedfolders/nextcloud.
So the problem here definitely is, that your data directory is inside the nextcloud folder.
That is unfortunately very insecure.

Thanks for your prompt reply. I’ll try to edit the post. I’ve done separete listings here. I can’t see any links. All the directories have a ‘d’ at the start… wouldn’t I expect to see an ‘l’ if they were links?

root@NAS:/sharedfolders# ls -l
total 16
drwxrwsr-x+  4 root     users    4096 Dec 30 21:06 Backups
drwxrws---+ 21 www-data www-data 4096 Jan  2 14:34 nextcloud
drwxrwsr-x   3 root     users    4096 Nov 13 11:07 www
root@NAS:/sharedfolders# cd nextcloud
root@NAS:/sharedfolders/nextcloud# ls -l
total 76308
drwxr-s---+ 33 www-data www-data     4096 Nov 10 14:19 3rdparty
drwxrws---+  7 www-data www-data     4096 Nov 11 01:10 Andrew
drwxrws---+ 10 www-data www-data     4096 Nov 10 18:00 appdata_ocgcf2pktzr0
drwxr-s---+ 42 www-data www-data     4096 Dec 14 18:05 apps
-rw-r-----+  1 www-data www-data    12063 Nov 10 14:19 AUTHORS
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:23 config
-rw-r-----+  1 www-data www-data     3650 Nov 10 14:19 console.php
-rw-r-----+  1 www-data www-data    34520 Nov 10 14:19 COPYING
drwxr-s---+ 18 www-data www-data     4096 Nov 10 14:19 core
-rw-r-----+  1 www-data www-data     4979 Nov 10 14:19 cron.php
drwxrws---+  2 www-data www-data     4096 Nov 10 14:39 data
drwxrws---+  2 www-data www-data     4096 Nov 10 14:41 files_external
drwxrws---+  4 www-data www-data     4096 Jan  2 14:34 Gabriele
-rw-r-----+  1 www-data www-data        0 Nov 10 14:40 index.html
-rw-r-----+  1 www-data www-data     3171 Nov 10 14:19 index.php
drwxr-s---+  6 www-data www-data     4096 Nov 10 14:19 lib
-rw-r-----+  1 www-data www-data 77801796 Jan  2 10:30 nextcloud.log
-rw-r-----+  1 www-data www-data      283 Nov 10 14:19 occ
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 ocm-provider
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 ocs
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 ocs-provider
drwxrws---+  5 www-data www-data     4096 Nov 19 15:35 Peter
-rw-r-----+  1 www-data www-data     2971 Nov 10 14:19 public.php
-rw-r-----+  1 www-data www-data     5139 Nov 10 14:19 remote.php
drwxr-s---+  4 www-data www-data     4096 Nov 10 14:19 resources
-rw-r-----+  1 www-data www-data       26 Nov 10 14:19 robots.txt
drwxr-s---+ 12 www-data www-data     4096 Nov 10 14:19 settings
-rw-r-----+  1 www-data www-data     2232 Nov 10 14:19 status.php
drwxr-s---+  3 www-data www-data     4096 Nov 10 14:19 themes
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 updater
-rw-rw----+  1 www-data www-data    30808 Jan  4 09:00 updater.log
drwxrws---+  2 www-data www-data     4096 Jan  4 09:00 updater-ocgcf2pktzr0
-rw-r-----+  1 www-data www-data      362 Nov 10 14:19 version.php
root@NAS:/sharedfolders/nextcloud# cd ../www/nextcloud
root@NAS:/sharedfolders/www/nextcloud# ls -l
total 76308
drwxr-s---+ 33 www-data www-data     4096 Nov 10 14:19 3rdparty
drwxrws---+  7 www-data www-data     4096 Nov 11 01:10 Andrew
drwxrws---+ 10 www-data www-data     4096 Nov 10 18:00 appdata_ocgcf2pktzr0
drwxr-s---+ 42 www-data www-data     4096 Dec 14 18:05 apps
-rw-r-----+  1 www-data www-data    12063 Nov 10 14:19 AUTHORS
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:23 config
-rw-r-----+  1 www-data www-data     3650 Nov 10 14:19 console.php
-rw-r-----+  1 www-data www-data    34520 Nov 10 14:19 COPYING
drwxr-s---+ 18 www-data www-data     4096 Nov 10 14:19 core
-rw-r-----+  1 www-data www-data     4979 Nov 10 14:19 cron.php
drwxrws---+  2 www-data www-data     4096 Nov 10 14:39 data
drwxrws---+  2 www-data www-data     4096 Nov 10 14:41 files_external
drwxrws---+  4 www-data www-data     4096 Jan  2 14:34 Gabriele
-rw-r-----+  1 www-data www-data        0 Nov 10 14:40 index.html
-rw-r-----+  1 www-data www-data     3171 Nov 10 14:19 index.php
drwxr-s---+  6 www-data www-data     4096 Nov 10 14:19 lib
-rw-r-----+  1 www-data www-data 77801796 Jan  2 10:30 nextcloud.log
-rw-r-----+  1 www-data www-data      283 Nov 10 14:19 occ
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 ocm-provider
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 ocs
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 ocs-provider
drwxrws---+  5 www-data www-data     4096 Nov 19 15:35 Peter
-rw-r-----+  1 www-data www-data     2971 Nov 10 14:19 public.php
-rw-r-----+  1 www-data www-data     5139 Nov 10 14:19 remote.php
drwxr-s---+  4 www-data www-data     4096 Nov 10 14:19 resources
-rw-r-----+  1 www-data www-data       26 Nov 10 14:19 robots.txt
drwxr-s---+ 12 www-data www-data     4096 Nov 10 14:19 settings
-rw-r-----+  1 www-data www-data     2232 Nov 10 14:19 status.php
drwxr-s---+  3 www-data www-data     4096 Nov 10 14:19 themes
drwxr-s---+  2 www-data www-data     4096 Nov 10 14:19 updater
-rw-rw----+  1 www-data www-data    30808 Jan  4 09:00 updater.log
drwxrws---+  2 www-data www-data     4096 Jan  4 09:00 updater-ocgcf2pktzr0
-rw-r-----+  1 www-data www-data      362 Nov 10 14:19 version.php
root@NAS:/sharedfolders/www/nextcloud#

Anyway… even if it is a link, it shouldn’t be like it is… so is it best just to back it up, restructure it, and then upload the data again? Can I just change the following line in the config file? Or do I have to start over?

‘datadirectory’ => ‘/sharedfolders/www/nextcloud’,

Can you post the output of:
ls -l /sharedfolders/www/

root@NAS:~# ls -l /sharedfolders/www/
total 12
drwxrws---+ 21 www-data www-data 4096 Jan  2 14:34 nextcloud
-rw-r--r--   1 root     users      60 Nov 13 10:39 test.html

This is the same INUM, so it looks very much like a hard link.
I’m not 100% sure, but from what I read, it should be safe, to delete a hard link without loosing the data. I’d do a backup anyway.

Here is a Howto move the data directory after the installation:

However, if you just started the installation and there is no user data yet, I would start from the scratch. If you might loose data, you could still

  • backup all the user data
  • backup your config file /sharedfolders/www/nextcloud/config/config.php
  • re-create a fresh directory structure
  • copy the content of https://download.nextcloud.com/server/releases/nextcloud-14.0.3.zip to your NC folder (/sharedfolders/www/nextcloud/)
  • copy the backup of your user data to new data folder (I suggest /sharedfolders/ncdata/ then)
  • restore your config.php to /sharedfolders/www/nextcloud/config/ (make adaptions to the config file according to the howto regarding the moved data directory
  • perform the steps from the howto

Afterwards you should be able to login in again, see all your files and perform the upgrade successfully.

1 Like

That’s excellent. It’s nearly midnight here. I will work through that process in the morning and let you know how I go. Thanks so much for your advice.