Nextcloud Snap not working

Hello all,

I have been running Nextcloud Snap deployed in a VM for the last year without problems. Now i have upgraded my esxi host and apparently, Nextcloud is not working anymore. I can ssh into the machine but don’t know what is the problem.
The nextcloud is deployed as a snap and the data directory is moved on an external share, mounted in the machine. Nextcloud is running on ubuntu 18.0.4.
I don’t know how to tshoot this problem, as my skills on it are 0.
I tried to google it and tried some tshoot steps and maybe the problem is regarding a wrong mapped path, but i am just assuming. What i can say is that i have done no modifications to the Nextcloud.
Here is an example of what i tried (not sure if it is the same problem):

root@robsrvnex:/snap/bin# ll
total 8
drwxr-xr-x 2 root root 4096 Jul 11 12:21 ./
drwxr-xr-x 6 root root 4096 Jun 8 2020 …/
lrwxrwxrwx 1 root root 13 Jul 11 12:21 nextcloud.disable-https → /usr/bin/snap*
lrwxrwxrwx 1 root root 13 Jul 11 12:21 nextcloud.enable-https → /usr/bin/snap*
lrwxrwxrwx 1 root root 13 Jul 11 12:21 nextcloud.export → /usr/bin/snap*
lrwxrwxrwx 1 root root 13 Jul 11 12:21 nextcloud.import → /usr/bin/snap*
lrwxrwxrwx 1 root root 13 Jul 11 12:21 nextcloud.manual-install → /usr/bin/snap*
lrwxrwxrwx 1 root root 13 Jul 11 12:21 nextcloud.mysql-client → /usr/bin/snap*
lrwxrwxrwx 1 root root 13 Jul 11 12:21 nextcloud.mysqldump → /usr/bin/snap*
lrwxrwxrwx 1 root root 13 Jul 11 12:21 nextcloud.occ → /usr/bin/snap*
root@robsrvnex:/snap/bin# sudo nextcloud.occ files:scan --all
cannot create temporary directory for the root file system: Read-only file system
root@robsrvnex:/snap/bin#

I can add some logs and the php file config, but to be honest i cannot see where is the upload file button; i can oly add pictures.

Please, any suggestion would be very helpfull.

Thx.

Hi @panicos

Since you changed nothing on your Nextcloud installation or inside the VM where your Nextcloud is installed, the problem lies most likley somewhere in the ESXi configuration or on your file server. Maybe the ESXi upgrade has changed something in the network configuration of the VMs? I don’t know much about ESXi, so I can’t give you detailed instructions… But that’s where I would look for the issue first…

Advise: Documentation helps a lot in such cases. When you get it working again, write down all steps and configuration changes you made. This is not meant to be a smart-ass lecture, but I had to make this experience painfully for myself… :wink:

it is nothing wrong in the Esxi. i just re-attached the old VM in the new ESXi environment, very simple and basic job. The problem is in the VM (nextcloud), i am sure of that. I cannot run internal commands as i used to in the past (example already provided).

Sorry then I am a bit at a loss… Upgrading the hypervisor, should not actually change anything inside the VM. In this case it would be helpful to know how exactly you set all up and mounted the external share in the first place. To me it looks like the Snap respective Ubuntu has no access to this share anymore, where the data folder is located…

exactly, might be the case, although the mount is reachable from the VM itself.
I am attaching some logs and some config here:

PHP CONFIG FILE

root@robsrvnex:/var/snap/nextcloud/current/logs# cat /var/snap/nextcloud/current/nextcloud/config/config.php
<?php
$CONFIG = array (
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/snap/nextcloud/current/htdocs/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
      'url' => '/extra-apps',
      'writable' => true,
    ),
  ),
  'supportedDatabases' =>
  array (
    0 => 'mysql',
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/tmp/sockets/redis.sock',
    'port' => 0,
  ),
  'passwordsalt' => 'z5NidYTFZyRMkq/0DCQd3SKlV7eq+9',
  'secret' => 'fbZwR85dcZgQXAyM3HDm7Sn2hDmFx7RZG0BMyuPgr6lU4+ur',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'cloud-jder.ddns.net',
    2 => '172.20.20.1',
    3 => '172.20.20.254',
  ),
  'filesystem_check_changes' => 1,
  'datadirectory' => '/mnt/DATA/NEXTCLOUD/',
  'dbtype' => 'mysql',
  'version' => '19.0.12.0',
  'overwrite.cli.url' => 'http://cloud-jder.ddns.net',
  'overwriteprotocol' => 'https',
  'overwritehost' => 'cloud-jder.ddns.net',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'wifu2kymGiX8AzvRblL1hXNhPhN6mhNs3W27XAd-5CUhsozpuDCnvdcnJ4GSidSz',
  'installed' => true,
  'instanceid' => 'ocib36ofo6bo',
  'maintenance' => false,
  'loglevel' => 2,
);

root@robsrvnex:/# df -h
Filesystem           Size  Used Avail Use% Mounted on
udev                 459M     0  459M   0% /dev
tmpfs                 99M  8.5M   90M   9% /run
/dev/sda2            7.9G  7.5G     0 100% /
tmpfs                491M     0  491M   0% /dev/shm
tmpfs                5.0M     0  5.0M   0% /run/lock
tmpfs                491M     0  491M   0% /sys/fs/cgroup
/dev/loop0           100M  100M     0 100% /snap/core/11420
/dev/loop1           253M  253M     0 100% /snap/nextcloud/25104
/dev/loop2           100M  100M     0 100% /snap/core/11316
/dev/loop3           254M  254M     0 100% /snap/nextcloud/28374
/dev/loop4            56M   56M     0 100% /snap/core18/2128
/dev/loop5            56M   56M     0 100% /snap/core18/2074
//172.35.35.5/IT     2.9T  180G  2.8T   7% /mnt/IT
//172.35.35.5/MEDIA  4.8T  2.1T  2.8T  43% /mnt/MEDIA
//172.35.35.5/DATA   2.8T   23G  2.8T   1% /mnt/DATA
tmpfs                 99M     0   99M   0% /run/user/1000
root@robsrvnex:/#


root@robsrvnex:/mnt/DATA/NEXTCLOUD# pwd
/mnt/DATA/NEXTCLOUD
root@robsrvnex:/mnt/DATA/NEXTCLOUD#
root@robsrvnex:/mnt/DATA/NEXTCLOUD#
root@robsrvnex:/mnt/DATA/NEXTCLOUD# ll
total 492
drwxrwx--- 2 root root       0 May 18 18:29 ./
drwxrwx--- 2 root root       0 Jun 14 10:09 ../
drwxrwx--- 2 root root       0 May 18 18:37 appdata_ocib36ofo6bo/
-rwxrwx--- 1 root root     686 May 18 18:19 audit.log*
drwxrwx--- 2 root root       0 May 12  2020 data/
drwxrwx--- 2 root root       0 Jul 12 10:09 files_external/
drwxrwx--- 2 root root       0 May 17  2020 gpxpod/
-rwxrwx--- 1 root root     542 May 18 18:19 .htaccess*
-rwxrwx--- 1 root root       0 May 18 18:19 index.html*
drwxrwx--- 2 root root       0 May 18 18:29 ioana/
-rwxrwx--- 1 root root 8050318 Jul  8 15:31 nextcloud.log*
-rwxrwx--- 1 root root       0 May 14  2020 .ocdata*
drwxrwx--- 2 root root       0 May 15  2020 QesAXGzkB/
drwxrwx--- 2 root root       0 Sep  8  2020 radu/
drwxrwx--- 2 root root       0 May 15  2020 St1fmm593R/
-rwxrwx--- 1 root root       0 May 14  2020 .txt*
root@robsrvnex:/mnt/DATA/NEXTCLOUD#

mysql logs

root@robsrvnex:/var/snap/nextcloud/current/logs# tail -70 mysql_errors.log
2021-08-14T09:37:57.710531Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 5757ms. The settings might not be optimal. (flushed=8 and evicted=0, during the time.)
2021-08-14T09:48:27.105773Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4209ms. The settings might not be optimal. (flushed=1 and evicted=0, during the time.)
2021-08-14T10:17:42.289875Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4260ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-14T10:29:25.406355Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 14755ms. The settings might not be optimal. (flushed=7 and evicted=0, during the time.)
2021-08-14T10:30:12.359042Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 5156ms. The settings might not be optimal. (flushed=5 and evicted=0, during the time.)
2021-08-14T10:30:33.840102Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4506ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-14T10:35:51.751078Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 5222ms. The settings might not be optimal. (flushed=100 and evicted=0, during the time.)
2021-08-14T10:55:33.952633Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 10294ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-14T20:42:03.916613Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4310ms. The settings might not be optimal. (flushed=188 and evicted=0, during the time.)
2021-08-14T21:02:45.812321Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 162781ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-14T21:02:58.616552Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 10028ms. The settings might not be optimal. (flushed=7 and evicted=0, during the time.)
2021-08-14T21:03:14.647777Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 5110ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-14T21:03:30.179829Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 12315ms. The settings might not be optimal. (flushed=24 and evicted=0, during the time.)
2021-08-14T21:04:45.223327Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 72345ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-14T21:04:57.869418Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 11646ms. The settings might not be optimal. (flushed=6 and evicted=0, during the time.)
2021-08-14T21:08:20.302819Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 6225ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-14T21:15:33.213186Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4261ms. The settings might not be optimal. (flushed=75 and evicted=0, during the time.)
2021-08-14T22:24:00.323757Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4112ms. The settings might not be optimal. (flushed=7 and evicted=0, during the time.)
2021-08-14T23:16:58.436934Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4285ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-15T00:27:51.647310Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4415ms. The settings might not be optimal. (flushed=7 and evicted=0, during the time.)
2021-08-15T00:28:24.395819Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4365ms. The settings might not be optimal. (flushed=42 and evicted=0, during the time.)
2021-08-15T01:52:40.553920Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 5690ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-15T01:53:12.641065Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 5006ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-15T03:48:12.697543Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 6655ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-15T03:48:39.914435Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4621ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-15T03:50:20.058446Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 6133ms. The settings might not be optimal. (flushed=200 and evicted=0, during the time.)
2021-08-15T03:59:27.887525Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 6976ms. The settings might not be optimal. (flushed=122 and evicted=0, during the time.)
2021-08-15T03:59:42.872962Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 5802ms. The settings might not be optimal. (flushed=28 and evicted=0, during the time.)
2021-08-15T04:27:00.683202Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 22181ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-15T05:41:18.720015Z mysqld_safe Logging to '/var/snap/nextcloud/28374/mysql/../logs/mysql_errors.log'.
2021-08-15T05:41:18.981604Z mysqld_safe Starting mysqld daemon with databases from /var/snap/nextcloud/28374/mysql
2021-08-15T05:41:18.988395Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2021-08-15T05:41:18.988441Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
2021-08-15T05:41:19.468422Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-08-15T05:41:19.468520Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2021-08-15T05:41:19.468559Z 0 [Note] /snap/nextcloud/28374/bin/mysqld (mysqld 5.7.32) starting as process 2024 ...
2021-08-15T05:41:19.598297Z 0 [Note] InnoDB: PUNCH HOLE support available
2021-08-15T05:41:19.598330Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2021-08-15T05:41:19.598345Z 0 [Note] InnoDB: Uses event mutexes
2021-08-15T05:41:19.598351Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2021-08-15T05:41:19.598357Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-08-15T05:41:19.598374Z 0 [Note] InnoDB: Using Linux native AIO
2021-08-15T05:41:19.613770Z 0 [Note] InnoDB: Number of pools: 1
2021-08-15T05:41:19.646852Z 0 [Note] InnoDB: Using CPU crc32 instructions
2021-08-15T05:41:19.648350Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2021-08-15T05:41:19.706184Z 0 [Note] InnoDB: Completed initialization of buffer pool
2021-08-15T05:41:19.881346Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2021-08-15T05:41:20.153025Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 7059590632
2021-08-15T05:41:20.153080Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 7059590641
2021-08-15T05:41:20.153098Z 0 [Note] InnoDB: Database was not shutdown normally!
2021-08-15T05:41:20.153111Z 0 [Note] InnoDB: Starting crash recovery.
2021-08-15T05:41:24.310329Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2021-08-15T05:41:24.310360Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-08-15T05:41:24.310430Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-08-15T05:41:24.802951Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2021-08-15T05:41:24.803697Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2021-08-15T05:41:24.803711Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2021-08-15T05:41:24.804040Z 0 [Note] InnoDB: Waiting for purge to start
2021-08-15T05:41:24.854264Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 5145ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2021-08-15T05:41:24.855321Z 0 [Note] InnoDB: 5.7.32 started; log sequence number 7059590641
2021-08-15T05:41:24.867475Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/snap/nextcloud/28374/mysql/ib_buffer_pool
2021-08-15T05:41:25.056060Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2021-08-15T05:41:25.056091Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2021-08-15T05:41:25.105876Z 0 [Warning] CA certificate ca.pem is self signed.
2021-08-15T05:41:25.105996Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2021-08-15T05:41:25.110505Z 0 [Warning] Insecure configuration for --pid-file: Location '/tmp' in the path is accessible to all OS users. Consider choosing a different directory.
2021-08-15T05:41:26.650957Z 0 [Note] Event Scheduler: Loaded 0 events
2021-08-15T05:41:26.651132Z 0 [Note] /snap/nextcloud/28374/bin/mysqld: ready for connections.
Version: '5.7.32'  socket: '/tmp/sockets/mysql.sock'  port: 0  MySQL Community Server (GPL)
2021-08-15T05:41:27.183062Z 0 [Note] InnoDB: Buffer pool(s) load completed at 210815  8:41:27
root@robsrvnex:/var/snap/nextcloud/current/logs#

apache logs

root@robsrvnex:/var/snap/nextcloud/current/logs# tail -30 apache_errors.log
[Wed Aug 11 09:12:08.204602 2021] [proxy:error] [pid 5244:tid 140342393292544] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /tmp/sockets/php-fpm.sock (*) failed
[Wed Aug 11 09:12:09.308450 2021] [proxy_fcgi:error] [pid 5244:tid 140342393292544] [client 172.20.20.254:34206] AH01079: failed to make connection to backend: httpd-UDS
[Wed Aug 11 09:12:14.133504 2021] [mpm_event:notice] [pid 2854:tid 140342576523136] AH00491: caught SIGTERM, shutting down
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Wed Aug 11 09:13:57.873519 2021] [ssl:warn] [pid 2863:tid 139960688338816] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Aug 11 09:13:57.883437 2021] [lbmethod_heartbeat:notice] [pid 2863:tid 139960688338816] AH02282: No slotmem from mod_heartmonitor
[Wed Aug 11 09:13:57.884743 2021] [mpm_event:notice] [pid 2863:tid 139960688338816] AH00489: Apache/2.4.46 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Wed Aug 11 09:13:57.884762 2021] [core:notice] [pid 2863:tid 139960688338816] AH00094: Command line: 'httpd -d /snap/nextcloud/28374 -D FOREGROUND'
[Wed Aug 11 09:13:57.890971 2021] [unixd:alert] [pid 2867:tid 139960688338816] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Wed Aug 11 09:13:57.891229 2021] [unixd:alert] [pid 2866:tid 139960688338816] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Wed Aug 11 09:13:57.891434 2021] [unixd:alert] [pid 2868:tid 139960688338816] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Wed Aug 11 09:14:23.984332 2021] [unixd:alert] [pid 3682:tid 139960688338816] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Wed Aug 11 09:25:10.770220 2021] [mpm_event:notice] [pid 2863:tid 139960688338816] AH00491: caught SIGTERM, shutting down
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Wed Aug 11 09:27:20.277309 2021] [ssl:warn] [pid 2825:tid 139814817748864] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Aug 11 09:27:20.277569 2021] [lbmethod_heartbeat:notice] [pid 2825:tid 139814817748864] AH02282: No slotmem from mod_heartmonitor
[Wed Aug 11 09:27:20.278064 2021] [mpm_event:notice] [pid 2825:tid 139814817748864] AH00489: Apache/2.4.46 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Wed Aug 11 09:27:20.278079 2021] [core:notice] [pid 2825:tid 139814817748864] AH00094: Command line: 'httpd -d /snap/nextcloud/28374 -D FOREGROUND'
[Wed Aug 11 09:27:20.287406 2021] [unixd:alert] [pid 2827:tid 139814817748864] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Wed Aug 11 09:27:20.292148 2021] [unixd:alert] [pid 2828:tid 139814817748864] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Wed Aug 11 09:27:20.292521 2021] [unixd:alert] [pid 2829:tid 139814817748864] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Wed Aug 11 09:27:56.207270 2021] [unixd:alert] [pid 3651:tid 139814817748864] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Sun Aug 15 08:40:37.072074 2021] [ssl:warn] [pid 2959:tid 140530809304960] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Aug 15 08:40:37.081146 2021] [lbmethod_heartbeat:notice] [pid 2959:tid 140530809304960] AH02282: No slotmem from mod_heartmonitor
[Sun Aug 15 08:40:37.081712 2021] [mpm_event:notice] [pid 2959:tid 140530809304960] AH00489: Apache/2.4.46 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Aug 15 08:40:37.081730 2021] [core:notice] [pid 2959:tid 140530809304960] AH00094: Command line: 'httpd -d /snap/nextcloud/28374 -D FOREGROUND'
[Sun Aug 15 08:40:37.088517 2021] [unixd:alert] [pid 2963:tid 140530809304960] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sun Aug 15 08:40:37.088824 2021] [unixd:alert] [pid 2962:tid 140530809304960] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sun Aug 15 08:40:37.089206 2021] [unixd:alert] [pid 2964:tid 140530809304960] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
root@robsrvnex:/var/snap/nextcloud/current/logs#

That’s all that i could think off. Problem here is i don’t know where to search and what; don’t know what to look for in order to identify and fix the issue.

I have found this. But it looks ok to me, when I look at your config.php. The permissions of /mnt/DATA/NEXTCLOUD look fine as well. Unfortunately I can’t think of anything else. Maybe someone else here has any ideas, who is more familiar with the Snap package than me…

I have found this.

Yes, i know this link; i configured the nextcloud based on it, about one year ago.

additional errors i found in the console of the nextcloud:

errors

For me it looks like Nextcloud respective the Snap has no write access to the data directory… This could be some bug, some problem with how you mounted the share… I’m not quiete sure.

Maybe this thread helps at least to point you in the right direction…

thanks, i will check that one also.

Maybe this thread helps at least to point you in the right direction…

tried that, not working. i already had it mounted with 0770

Hmm, I’m running out of ideas…

Maybe you could spin up another VM, reinstall everything, and restore your backup. If it works you’re good, if not you would still have the old VM. Not the nicest “solution”, I know… At least the time needed to test this with the snap package should not be too long…

yeah, well. reinstall works. i mean, this was not a tshooting, but just a completely new setup - erase the old machine, build another one.

Yeah not the most elegant solution :wink: But good to hear everything is up and running again… :slight_smile: