*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Moving lightttpd tmp files to another drive

Webserver service.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
schafferm
NewUser
NewUser
Posts: 6
Joined: 09 Jun 2014 14:56
Status: Offline

Moving lightttpd tmp files to another drive

#1

Post by schafferm » 28 Dec 2014 16:47

Hi..

A little background first. I have lighttpd running with owncloud installed and working. When I try to transfer a lot of files via owncloud into a directory, owncloud goes to work, and in the process it looks like it creates a lot of temp files in /var/tmp. Specifically a lot of sess_XXXXX files - until such a point that the directory/drive fills up (it's a small partition for freenas).

I tried changing the Upload directory in the webserver page for freenas - but files still appear here.

I noticed that lighttpd_Uploaddir still points to /var/tmp which is the genesis of my question below - but I'm not sure if that will fix the problem... Has anyone else come across this?

I tried the option in FreeNas to relocate it, however that does not work...



I'm trying to change the default lighttpd_uploaddir=${lighttpd_uploaddir:-"/var/tmp"} to point to a tmp directory on one of my mounted drives.

Should I put the following statement into the Auxiliary Parameters under Webserver as

lighttpd_uploaddir=${lighttpd_uploaddir:-"/mnt/drive1/tmp"} ? or am I missing something?

User avatar
sea1150
experienced User
experienced User
Posts: 100
Joined: 23 Jun 2012 07:01
Location: South Urals
Contact:
Status: Offline

Re: Moving lightttpd tmp files to another drive

#2

Post by sea1150 » 28 Dec 2014 18:41

try create a file in a folder with OwnCloud .user.ini and write in it:

Code: Select all

upload_tmp_dir = /mnt/drive1/tmp
XigmaNAS 11.3.0.4 x64-embedded on - ASUS P8H61-I LX R2.0-GLAN, i5-3570 CPU @ 3.40GHz, 16GB Memory Kit, PCIEx2 Marvell 88SE9230 AHCI 4xSATA controller, HDD: 2x2Tb-UFS, 4x1Tb-RaidZ & 1xSSD L2ARC.
XigmaNAS 11.3.0.4 x64-embedded in - VM on ESXi 6.7U3, 16GB ECC RAM, LSI SAS2008 IT passtrough mode on HP Proliant DL180G6 2xL5640, 64GB RAM, HDD: 12Bay
- and more... My work and all versions

schafferm
NewUser
NewUser
Posts: 6
Joined: 09 Jun 2014 14:56
Status: Offline

[SOLVED]: Moving lightttpd tmp files to another drive

#3

Post by schafferm » 29 Dec 2014 22:51

Thanks... That didn't solve the problem, but found someplace else that this is a known bug? for now set service to run as ROOT - which I know is not advisable...

User avatar
alexey123
Moderator
Moderator
Posts: 1563
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Moving lightttpd tmp files to another drive

#4

Post by alexey123 » 29 Dec 2014 23:20

Hmm
What is lighttpd_uploaddir=${lighttpd_uploaddir:-"/var/tmp"} where you find it ?

You use full version?
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
New XigmanasXigmaNAS version 11.2.0.4.6026 on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

Post Reply

Return to “WebServer”