Custom 'Temp Directory' Setting is Ignored

Steps to reproduce

  1. Add line to nextcloud .user.ini file:
    upload_tmp_dir = /mnt/my8TBeZ/nextcloud/data/tmp

  2. Add line to config.php:
    'tempdirectory' => '/mnt/my8TBeZ/nextcloud/data/tmp'

  3. Trigger a transfer and monitor disk usage

Expected behaviour

The SD card (RPi) should be left alone!

Actual behaviour

There are continuous ~100 MB writes/deletes to the SD during any transfer.

Server configuration

Operating system:
RPi Raspbian
Web server:
Apache
Database:
MySQL
PHP version:
7.3
Nextcloud version: (see Nextcloud admin page)
18.0.1.3
Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install
Where did you install Nextcloud from:
Nextcloud servers

which permissions are set on those 2 directories? and who owns them?

I ran

sudo chown -R www-data:www-data /mnt/my8TBeZ/nextcloud/

and

sudo chmod 0770 /mnt/my8TBeZ/nextcloud/

how is this drive mounted?

I did:

sudo blkid

To list partitions

sudo mkdir /mnt/my8TBez

Then

sudo mount /dev/sda1 /mnt/my8TBez

Then added a line to my fstab file for automatic mounting.

I can read and write just fine to this drive, NC has no issues putting data on it. The issue is this hand-off behavior from the SD to the external HDD.

Edit:

Here is my fstab file. The last line is commented out, it was an attempt to fix the issue:

proc            /proc           proc    defaults          0       0
PARTUUID=5e3da3da-01  /boot           vfat    defaults          0       2
PARTUUID=5e3da3da-02  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
UUID=EA6AExxxxxx1 /mnt/my8TBeZ ntfs-3g auto,users,permissions 0 0
#/dev/sda1 /mnt/my8TBeZ ntfs defaults,uid=1000,grid=1000 umask=007 0 1

it could be that it all comes from that ntfs-drive… ntfs is known to not (fully) support linux-permissions.

In my reading ntfs-3g is the solution to this issue.

And again, I am writing and reading from the drive just fine. All of the files end up on the drive in the end, but during the transfer the SD card is being used way too much. Surely if there was a permission issue with the drive I’d see behavior worse than this?

awww sorry. i totally misunderstood you. that really my bad. so the posted links do work but there’s still activity on your sd-card. i see.

so maybe these 100mb are the chunk-size of your chunked uploads? i dunno.

if you wanna left it all alone on itself you could try berryboot or moving your nextcloud-dir to your hdds or such…

It’s quite okay, just frustrating hearing nothing from the NC github or this forum after both sides tell me to talk to the other.

But yes, I do believe it’s writing chunks to the SD card and then transferring to my external.

The data directory is already on my external drive, but I’ve never heard of berryboot. I’ll look into it.

Thanks for your responses. :slightly_smiling_face: