/tmp is full

webizen

Well-Known Member
#3
maybe lsws swap (/tmp/lshttpd/swap) takes much of /tmp space. If so, change path to swap (Web Console -> Configuration -> Server -> Server Process -> Swap Directory) to a bigger file system
 

pooyan

Well-Known Member
#4
do followings and paste output here:
df -ih /tmp
df -h /tmp
df -sh /tmp/*
df -ih /tmp
Filesystem Inodes IUsed IFree IUse% Mounted on
/usr/tmpDSK 126K 38 125K 1% /tmp


df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/usr/tmpDSK 485M 168M 292M 37% /tmp



df -sh /tmp/*
df: invalid option -- s
Try `df --help' for more information.
 

pooyan

Well-Known Member
#5
maybe lsws swap (/tmp/lshttpd/swap) takes much of /tmp space. If so, change path to swap (Web Console -> Configuration -> Server -> Server Process -> Swap Directory) to a bigger file system
I created a new Folder in /

mkdir lswstmp
mkdir lshttpd
mkdir swap

/lswstmp/lshttpd/swap

now, past in Web Console -> Configuration -> Server -> Server Process -> Swap Directory ?
 

webizen

Well-Known Member
#6
Sorry for the typo. Use this command instead.
du -sh /tmp/*
According to the output, your /tmp isn't full.
df -ih /tmp
Filesystem Inodes IUsed IFree IUse% Mounted on
/usr/tmpDSK 126K 38 125K 1% /tmp


df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/usr/tmpDSK 485M 168M 292M 37% /tmp
Yes, put "/lswstmp/lshttpd/swap" in it.
/lswstmp/lshttpd/swap

now, past in Web Console -> Configuration -> Server -> Server Process -> Swap Directory ?
Also make sure permission is correct:
chmod 750 /lswstmp/lshttpd
chown nobody.nobody /lswstmp/lshttpd
chmod 700 /lswstmp/lshttpd/swap
chown nobody.nobody /lswstmp/lshttpd/swap
 

pooyan

Well-Known Member
#7
chmod 750 /lswstmp/lshttpd
chmod: cannot access `/lswstmp/lshttpd': No such file or directory



chown nobody.nobody /lswstmp/lshttpd
chown: cannot access `/lswstmp/lshttpd': No such file or directory



chmod 700 /lswstmp/lshttpd/swap
chmod: cannot access `/lswstmp/lshttpd/swap': No such file or directory



du -sh /tmp/*
18K /tmp/lshttpd
0 /tmp/mysql.sock

I cleared tmp via this command: rm -rf /tmp/*
 

webizen

Well-Known Member
#8
I thought you already created "/lswstmp/lshttpd/swap"

I created a new Folder in /

mkdir lswstmp
mkdir lshttpd
mkdir swap

/lswstmp/lshttpd/swap

now, past in Web Console -> Configuration -> Server -> Server Process -> Swap Directory ?
If /tmp full issue comes up again, do this
mkdir -p /lswstmp/lshttpd/swap
chmod 750 /lswstmp/lshttpd
chown nobody.nobody /lswstmp/lshttpd
chmod 700 /lswstmp/lshttpd/swap
chown nobody.nobody /lswstmp/lshttpd/swap
Then put "/lswstmp/lshttpd/swap" in Web Console -> Configuration -> Server -> Server Process -> Swap Directory. Save and Apply changes and Graceful restart LSWS.
 

Pong

Administrator
Staff member
#10
YOu can not define the size. You should make /tmp larger enough to hold necessary swap files and gzip compression cache for static files. Swap file doesn't use much normally, but if you have a lot of accounts with a lot of static files, gzip compression may take up space. You can set it gzip cache for another location with enough space. or You can setup you own cron script for disk alert. https://docs.litespeedtech.com/cp/cpanel/tunings/
 
Top