Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your .ocdata are missing in the Nextcloud data folder. #2606

Closed
JSchimmelpfennig opened this issue Jan 3, 2024 · 3 comments
Closed

Your .ocdata are missing in the Nextcloud data folder. #2606

JSchimmelpfennig opened this issue Jan 3, 2024 · 3 comments
Labels

Comments

@JSchimmelpfennig
Copy link

JSchimmelpfennig commented Jan 3, 2024

Steps To Reproduce

Hello there :)
I'm trying to install Nextcloud with the scripts on my fresh Ubuntu 22.04 VM on Proxmox:
https://docs.hanssonit.se/s/bj0vl1ihv0jgrmfm08j0/build-your-own/d/bj0vl4ahv0jgrmfm0950/nextcloud-vm

With the first script everything worked fine and now I'm running the second script and I get the following error:

Your .ocdata are missing in the Nextcloud data folder. This probably means that you failed to mount the second drive, or that it failed to import during boot of the system. We can't continue without it, so please shutdown the machine and double check that the second disk is correctly mounted in your hypervisor/server then try again.

I selected the "manual" selection for the data directory as I have mounted a virtual HDD to /mnt/ncdata. For testing purposes I changed the permissions to 777.

uadmin@nextcloud:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0  63.4M  1 loop /snap/core20/1974
loop1    7:1    0  63.9M  1 loop /snap/core20/2105
loop2    7:2    0 111.9M  1 loop /snap/lxd/24322
loop3    7:3    0  53.3M  1 loop /snap/snapd/19457
loop4    7:4    0  40.9M  1 loop /snap/snapd/20290
sda      8:0    0    32G  0 disk
├─sda1   8:1    0     1M  0 part
└─sda2   8:2    0    32G  0 part /
sdb      8:16   0   2.4T  0 disk
└─sdb1   8:17   0   2.4T  0 part /mnt/ncdata

uadmin@nextcloud:~$ blkid
/dev/sdb1: LABEL="storage-btrfs" UUID="d8f52caf-63cc-4646-beb1-d0363df90a86" UUID_SUB="e4a4238c-2834-4c27-b7f5-0eb2ea2991cc" BLOCK_SIZE="4096" TYPE="btrfs" PARTUUID="7012e1db-4fca-7844-aaa4-aa6b76e7d51e"
/dev/sda2: UUID="36dd7633-bdd8-42e3-b12a-2280e30f07af" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="b25d4069-946c-41f6-865c-6dbd5bbcd4fe"

uadmin@nextcloud:~$ ls -liha /mnt/ncdata/
total 20K
   256 drwxrwxrwx 1 uadmin root    0 Jan  3 12:30 .
524289 drwxr-xr-x 3 root   root 4.0K Jan  3 12:07 ..
uadmin@nextcloud:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           1.6G  1.2M  1.6G   1% /run
/dev/sda2        32G  8.8G   21G  30% /
tmpfs           7.9G   28K  7.9G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/sdb1       2.5T  3.4M  2.5T   1% /mnt/ncdata
tmpfs           1.6G  4.0K  1.6G   1% /run/user/1000

uadmin@nextcloud:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during curtin installation
/dev/disk/by-uuid/36dd7633-bdd8-42e3-b12a-2280e30f07af / ext4 defaults 0 1
/swap.img       none    swap    sw      0       0
UUID=d8f52caf-63cc-4646-beb1-d0363df90a86 /mnt/ncdata btrfs defaults 0 0

I also rebooted the machine and executed the script again with sudo bash /var/scripts/nextcloud-startup-script.sh from the user "uadmin". Any ideas why the .ocdata is not created?

Expected Result

.ocdata should be created.

Actual Result

.ocdata is not created.

Screenshots, Videos, or Pastebins

No response

Additional Context

No response

Build Version

28

Environment

By using the scripts

Environment Details

uadmin@nextcloud:~$ uname -a
Linux nextcloud 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

@enoch85
Copy link
Member

enoch85 commented Jan 3, 2024

.ocdata is there, but the disk is failing to mount when you boot.

I've done about 100 installs on Proxmox and none have failed, so it must be something you've done that's not working. If you stick to the defaults I'm sure it will work. :)

@enoch85
Copy link
Member

enoch85 commented Jan 3, 2024

Also a useful command: cat /etc/mtab

@JSchimmelpfennig
Copy link
Author

JSchimmelpfennig commented Jan 4, 2024

I decided to go now with the ZFS and let the script generate the filesystem by itself on /dev/sdb. Works nice and the performance is great, I get 112MB/s in my home network (everything is 1Gb/s). Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants