Nextcloud - data location / Userdata

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
dinesh88
Posts: 13
Joined: Thu Dec 14, 2017 4:59 pm

Nextcloud - data location / Userdata

Post by dinesh88 »

Hello everyone,

Just needed some help in figuring out the problem with my NEXTCLOUD storage location.

I have done a fresh install of Dietpi on my XU4 and currently booting from my eMMC and have also added an SD card on my XU4. Before I installed Nextcloud, I had moved user_data to my SD card as it has more space in it 64GB. but, after the nextcloud was installed, I can see that somehow the Nextcloud storage space is only limited to my eMMC storage that is 16GB.

How can I fix this and move all my nextcloud data storage to my SD card and have a capacity of 64GB for my nextcloud.

Please help and advice.

Thank you
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud - data location / Userdata

Post by MichaIng »

@dianakev
How did you move your dietpi_userdata? Via dietpi-drive_manager?

Please verify that it is indeed linked to the SDcard: ls -Al /mnt/

Nextcloud by default places it's userdata into /mnt/dietpi_userdata/nextcloud_data, so if the above shows that dietpi_userdata is indeed linked to the SDcard, everything should be fine.
Did you verify that the SDcard indeed has it's full size allocated? df

Btw. it is possible to have Nextcloud data installed to an individual location independently from dietpi_userdata. Check /DietPi/dietpi.txt the software sections in second half, there you can change it. But it needs to be done prior to the Nextcloud install.

And just for completeness, if you have already setup you Nextcloud too far, there is a possibility to move data post-install as well: https://help.nextcloud.com/t/howto-chan ... u=michaing
dinesh88
Posts: 13
Joined: Thu Dec 14, 2017 4:59 pm

Re: Nextcloud - data location / Userdata

Post by dinesh88 »

Hello MichaIng

Thanks for reviewing my post and replying.
I had used "dietpi-drive_manager" to move my user data to this location. Rechecked thriugh drive manager and user data check boxed is crossed on my SD CARD
Checked with "ls -Al /mnt/" and it shows that dietpi_userdata has been moved to my SDCARD
Also, full size has been allocated, checked with df

So, as you said, it seems that NEXTCLOUD independently has located itself onto /mnt/dietpi_userdata/nextcloud_data , I checked in /DietPi/dietpi.txt

So, if I change that location to the SDCARD location /media/root/boot/dietpi_userdata and reinstall NEXTCLOUD again then this should fix the problem?

Kindly advise and thanks for helping.
Attachments
Screenshot (24).png
Screenshot (23).png
Screenshot (21).png
Screenshot (20).png
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud - data location / Userdata

Post by MichaIng »

@dinesh88
Okay, so as /mnt/dietpi_userdata is correctly linked to the SDcard, /mnt/dietpi_userdata/nextcloud_data is as well. No need to move anything.

So the question is why Nextcloud shows wrong storage size. Where exactly do you see this? In the user overview, if I don't limit anyone's quota, I just see "unlimited".
dinesh88
Posts: 13
Joined: Thu Dec 14, 2017 4:59 pm

Re: Nextcloud - data location / Userdata

Post by dinesh88 »

Hi,

I see the storage data when I log into my nextcloud account through the APPLE iOS app, it give mes limit size as 11gb that is the partition size of my eMMC. So I belive for some reason nextcloud storage is in eMMC. I did the /DietPi/dietpi.txt check I got the attached info, it shows that the nextcloud location to be in my eMMC. :x

So, should I uninstall and change the /DietPi/dietpi.txt file and then reinstall nextcloud?

Kindly advise. Thanks
Attachments
Screenshot (24).png
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud - data location / Userdata

Post by MichaIng »

As said, according to you mount, the Nextcloud data dir correctly located on the SDcard.

To check this very clearly, you can use the following command to e.g. check the Nextcloud logs physical drive location:
df /mnt/dietpi_userdata/nextcloud_data/nextcloud.log

I hope Nextcloud log is really there :roll:, otherwise choose any other file or directory in the nextcloud_data dir.
Post Reply