Nextcloud - data location / Userdata Topic is solved

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: 2776
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 /boot/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: 2776
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: 2776
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.
Matt
Posts: 3
Joined: Wed Oct 14, 2020 4:31 pm

Re: Nextcloud - data location / Userdata

Post by Matt »

MichaIng wrote: Sun Feb 24, 2019 4:47 pm @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
Hi,

I have just built a new DietPi Machine. And I am ready to install NextCloud from dietpi-software. But before I do that I want to change the data location for NextCloud. I am looking for /DietPi/dietpi.txt on my new install and I can not find it. What am I doing wrong?

Thanks
User avatar
Joulinar
Posts: 4170
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud - data location / Userdata

Post by Joulinar »

Hi,

many thanks for your message. Well, the post you are referring to is more than 1,5 years old and thinks have changed in meantime ;)

All files located in /DietPi/ have been migrated to /boot/. Therefore the file you are looking for is located at /boot/dietpi.txt
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Matt
Posts: 3
Joined: Wed Oct 14, 2020 4:31 pm

Re: Nextcloud - data location / Userdata

Post by Matt »

Thanks Joulinar

I am still very new at this :)

I managed to find and edit /boot/dietpi.txt and now everything is installed as I want it.

And now I want to do some more tweaking. I have a fan attached to my Raspberry Pi 3B+ (DietPi as OS). It is just a fan with two wires. It is NOT a PoE-HAT with a fan. My fan is on the whole time. Will I be able to tweak my Pi so that the fan is not on the whole time?

I have read through this Forum and found that you can edit the /boot/config.txt file, and add the following line dtparam=poe_fan_temp0=55000,poe_fan_temp1=60000 to the file.

I'm not sure this will work as I just have a fan, NOT a PoE-HAT with a fan.
User avatar
Joulinar
Posts: 4170
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud - data location / Userdata

Post by Joulinar »

Nope, if the fan is just connected to the board, it will spin whole time until you removed power. To have it controlled, you need additional stuff. There are a couple of guides on the web. Just search for "raspberry fan control"
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply