On Core24 with NC31 and after a snap restore: Missing nextcloud.log

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Hi,

Edit: It’s been a while since I check the browswer and iOS app, now all seems fine suddenly, can’t explain really…

sorry to bother… I got confused:
My journey is from a happy RPi4 with nc31 on old WD PiDrive to a RPi5 8GB with 512G SSD.
I managed to transport the snap saved snapshot to the rpi5 (not the snap-exported file). Big: 115GB.
Then moved it to the snapshot directory and ran snap restore <id>

This seemed to have worked, I can log in fine with my user etc.; but:
As soon as going to the Files on current Firefox or Chrome on Linux: I get “Internal server error”, internal-IP of my router and a “Request ID”.

I did run a nextcloud.occ files:scan --all -vvv

On iOS I could upload photos, and I do see files, which I can download and use. But only on root level, not in any subfolders. But this is not consistent either, some level1 folders show files if there are subfolders… very weird.

Trying to find more from logs, it seems like there is no file:
/var/snap/nextcloud/current/logs/nextcloud.log
as per Managing logs · nextcloud-snap/nextcloud-snap Wiki · GitHub

Any tips where to go from here?

:memo: edit:
A long chatbot session later (CoPilot): Seems like the mount that the SSD on the hat creates may break/conflict with confinement:
/dev/nvme0n1p4 on /var/snap type ext4 (rw,nosuid,relatime)

So, possibly best with human input:
:red_question_mark: Recommendations for a good setup that is compatible with all the beauty of auto-updates that snap
(and the great folks around nextcloud, like @kyrofa THANK YOU :folded_hands:)
enables ?

The Basics

  • Nextcloud Server version (snap):
    • nextcloud 31.0.14snap1 52250 31/stable nextcloudâś“ -
  • Operating system and version:
    • Ubuntu Core on RPi5 8G with SSD Pineboards hat core18, core22, core24

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "apps_paths": [
            {
                "path": "\/snap\/nextcloud\/current\/htdocs\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
                "url": "\/extra-apps",
                "writable": true
            }
        ],
        "supportedDatabases": [
            "mysql"
        ],
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.local",
            "mydyndnsdomain.io",
            "192.168.1.77"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "http:\/\/nextcloud.local",
        "dbtype": "mysql",
        "version": "31.0.14.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "loglevel": "2",
        "maintenance": false,
        "enable_previews": "false",
        "theme": "",
        "maintenance_window_start": 1,
        "enabledPreviewProviders": "[\"OC\\Preview\\PNG\", \"OC\\Preview\\JPEG\", \"OC\\Preview\\GIF\", \"OC\\Preview\\XBitmap\"]",
        "memories.db.triggers.fcu": true,
        "memories.exiftool": "\/var\/snap\/nextcloud\/52250\/nextcloud\/extra-apps\/memories\/bin-ext\/exiftool-aarch64-glibc",
        "memories.vod.path": "\/var\/snap\/nextcloud\/52250\/nextcloud\/extra-apps\/memories\/bin-ext\/go-vod-aarch64",
        "enablePreviews": "false",
        "app_install_overwrite": []
    }
}

Seems like there are leftovers from the preview experiment that I did earlier…

Apps

Enabled:

  • activity: 4.0.0
  • app_api: 5.0.2
  • bruteforcesettings: 4.0.0
  • circles: 31.0.0
  • cloud_federation_api: 1.14.0
  • comments: 1.21.0
  • contactsinteraction: 1.12.1
  • cookbook: 0.11.7
  • dashboard: 7.11.0
  • dav: 1.33.0
  • federatedfilesharing: 1.21.0
  • federation: 1.21.0
  • files: 2.3.1
  • files_downloadlimit: 4.0.0
  • files_pdfviewer: 4.0.0
  • files_reminders: 1.4.0
  • files_sharing: 1.23.2
  • files_trashbin: 1.21.0
  • files_versions: 1.24.0
  • firstrunwizard: 4.0.0
  • logreader: 4.0.0
  • lookup_server_connector: 1.19.0
  • nextcloud_announcements: 3.0.0
  • notes: 5.0.1
  • oauth2: 1.19.1
  • password_policy: 3.0.0
  • photos: 4.0.0
  • privacy: 3.0.0
  • profile: 1.0.0
  • provisioning_api: 1.21.0
  • recommendations: 4.0.0
  • related_resources: 2.0.0
  • serverinfo: 3.0.0
  • settings: 1.14.0
  • sharebymail: 1.21.0
  • support: 3.0.0
  • survey_client: 3.0.0
  • systemtags: 1.21.1
  • text: 5.0.2
  • theming: 2.6.1
  • twofactor_backupcodes: 1.20.0
  • user_status: 1.11.0
  • viewer: 4.0.0
  • webhook_listeners: 1.2.0
  • workflowengine: 2.13.0
    Disabled:
  • admin_audit: 1.21.0
  • encryption: 2.19.0
  • files_external: 1.23.1
  • notifications: 4.0.0 (installed 4.0.0)
  • suspicious_login: 9.0.1
  • twofactor_nextcloud_notification: 5.0.0
  • twofactor_totp: 13.0.0-dev.0
  • user_ldap: 1.22.0
  • weather_status: 1.11.0 (installed 1.2.0)

This is what mountgives at the moment:
I got the idea from the chatbot that there is no /writeable mountpoint.

tmpfs on /run type tmpfs (rw,nosuid,nodev,size=1625564k,nr_inodes=819200,mode=755,inode64)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
/dev/nvme0n1p2 on /run/mnt/ubuntu-boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/nvme0n1p1 on /run/mnt/ubuntu-seed type vfat (rw,nosuid,nodev,noexec,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/nvme0n1p4 on /run/mnt/data type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p3 on /run/mnt/ubuntu-save type ext4 (rw,nosuid,nodev,noexec,relatime)
/run/mnt/data/system-data/var/lib/snapd/snaps/pi_151.snap on /run/mnt/gadget type squashfs (ro,relatime,errors=continue,threads=single)
/run/mnt/data/system-data/var/lib/snapd/snaps/core24_1644.snap on / type squashfs (ro,relatime,errors=continue,threads=single)
/dev/nvme0n1p4 on /writable type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/writable type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/dbus-1 type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/hosts type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/iproute2 type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/modprobe.d type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/modules-load.d type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/netplan type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/network/if-up.d type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/ssh type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/sudoers.d type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/systemd type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/udev/rules.d type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/cloud type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/sysctl.d type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/default/swapfile type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/environment type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/machine-id type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/motd.d type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/update-motd.d type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/security/pwquality.conf type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/polkit-1/actions type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /etc/polkit-1/rules.d type ext4 (rw,nosuid,relatime)
tmpfs on /etc/fstab type tmpfs (rw,nosuid,nodev,size=1625564k,nr_inodes=819200,mode=755,inode64)
/dev/nvme0n1p4 on /snap type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /var/snap type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /var/lib/snapd type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /usr/lib/firmware type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /usr/lib/modules type ext4 (rw,nosuid,relatime)
/run/mnt/data/system-data/var/lib/snapd/snaps/pi-kernel_1142.snap on /writable/system-data/snap/pi-kernel/1142 type squashfs (ro,nodev,relatime,errors=continue,threads=single)
/run/mnt/data/system-data/var/lib/snapd/snaps/pi-kernel_1142.snap on /snap/pi-kernel/1142 type squashfs (ro,nodev,relatime,errors=continue,threads=single)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=4096k,nr_inodes=1003466,mode=755,inode64)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=5511)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p1 on /boot/piboot type vfat (rw,nosuid,nodev,noexec,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/nvme0n1p4 on /home type ext4 (rw,nosuid,relatime)
tmpfs on /media type tmpfs (rw,relatime,inode64)
tmpfs on /host type tmpfs (rw,nosuid,nodev,size=1625564k,nr_inodes=819200,mode=755,inode64)
/dev/nvme0n1p4 on /root type ext4 (rw,nosuid,relatime)
tmpfs on /mnt type tmpfs (rw,relatime,inode64)
/var/lib/snapd/snaps/console-conf_41.snap on /snap/console-conf/41 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/console-conf_80.snap on /snap/console-conf/80 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/core18_2983.snap on /snap/core18/2983 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/core18_3002.snap on /snap/core18/3002 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/core22_2412.snap on /snap/core22/2412 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/run/mnt/data/system-data/var/lib/snapd/snaps/core24_1644.snap on /snap/core24/1644 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/core24_1269.snap on /snap/core24/1269 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/htop_6106.snap on /snap/htop/6106 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/core24_424.snap on /snap/core24/424 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/htop_5385.snap on /snap/htop/5385 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/run/mnt/data/system-data/var/lib/snapd/snaps/pi_151.snap on /snap/pi/151 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/nextcloud_52250.snap on /snap/nextcloud/52250 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/pi_142.snap on /snap/pi/142 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/pi-kernel_1069.snap on /snap/pi-kernel/1069 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/pi-kernel_852.snap on /snap/pi-kernel/852 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/snapd_21761.snap on /snap/snapd/21761 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/snapd_25939.snap on /snap/snapd/25939 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
tmpfs on /tmp type tmpfs (rw,relatime,inode64)
/dev/nvme0n1p4 on /var/cache/apparmor type ext4 (rw,nosuid,relatime)
/var/lib/snapd/snaps/snapd_26869.snap on /snap/snapd/26869 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/dev/nvme0n1p4 on /var/cache/snapd type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /var/lib/cloud type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /var/lib/console-conf type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /var/lib/dhcpcd type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /var/lib/dbus type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /var/lib/extrausers type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /var/lib/misc type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /var/lib/private/systemd type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p3 on /var/lib/snapd/save type ext4 (rw,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p1 on /var/lib/snapd/seed type vfat (ro,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/nvme0n1p4 on /var/lib/systemd type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /var/lib/waagent type ext4 (rw,nosuid,relatime)
tmpfs on /var/lib/sudo type tmpfs (rw,relatime,mode=700,inode64)
/dev/nvme0n1p4 on /var/tmp type ext4 (rw,nosuid,relatime)
/dev/nvme0n1p4 on /var/log type ext4 (rw,nosuid,relatime)
/var/lib/snapd/snaps/snapd_26869.snap on /usr/lib/snapd type squashfs (ro,nodev,relatime,errors=continue,threads=single)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,size=1625564k,nr_inodes=819200,mode=755,inode64)
nsfs on /run/snapd/ns/nextcloud.mnt type nsfs (rw)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=812780k,nr_inodes=203195,mode=700,uid=1000,gid=1000,inode64)
/var/lib/snapd/snaps/core20_2870.snap on /snap/core20/2870 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/lnav_2767.snap on /snap/lnav/2767 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
nsfs on /run/snapd/ns/lnav.mnt type nsfs (rw)

Hey @geolrud, welcome to the Nextcloud community and thanks for supporting Nextcloud snap :handshake:

Sorry to hear you are having issues with your Nextcloud snap installation. If you’ve come this far, you’re on the right track! There is a good chance someone in the community has had a similar issue and knows how to resolve it.

In order to help you we’ll need some Information to get an Idea of your setup, so complete the required support template and post the output of the following command allowing us to look at your redacted configuration file:

sudo nextcloud.occ config:list

Nextcloud logs are very verbose, thus your logs will certainly help resolve your issue. access your logs by following how to manage Nextcloud snap logs or you could run the debugging script and post the result here or paste the result of the following command:

sudo tail -n 20 /var/snap/nextcloud/current/logs/nextcloud.log

Below are some links to how-to’s answering frequently asked questions and may help you help yourself;

Also, please do give a few additional information as your setup seems unusual to me:

  1. Please give the output of snap list
  2. What is the output of uname -a?
  3. You mentioned that you use an external drive. Where is that mounted? The mount output is rather lengthy… (and unclear to me)
  4. Why do you think Nextcloud uses core 24? Is there any indication of that? We are on core 20 at the moment.

if you have changed your datadirectory, which is unclear from the above, you’ll find the log file there see:

  • Logs for Nextcloud: /var/snap/nextcloud/current/logs/nextcloud.log
    • Note that this won’t be the case if you’ve configured a custom* data directory, for example somewhere in /media or /mnt. The nextcloud logs will then be stored on that same directory.