Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [tmp]

The tag has no usage guidance.

3
votes
1answer
2k views

Accidentally deleted /tmp/systemd-private-015eb2a30-apache2.service-9h6i

I accidentally deleted systemd-private-015eb2e9f67b4eef862c68e99fe0ba30-apache2.service-9h6i08 from my /tmp folder: sudo rm -R /tmp/systemd-private-015eb2e9f67b4eef862c68e99fe0ba30-apache2.service-...
0
votes
0answers
13 views

Saturation of /tmp partition, df and du commands show different results [duplicate]

When I check my partitions space with df -h command i notice that my /tmp partition is full (between 90% and 100%), but when i'm looking into the /tmp partition with du -sh command I notice that there ...
0
votes
1answer
283 views

lsof shows tmp growing file marked as deleted

I have a cron that generated a lot (15GB) of PHP warnings and was writing them in a log file. I killed the process and as a temporary measure I stopped redirecting stderr to stdout so I don't fill up ...
1
vote
1answer
193 views

tmpfiles.d — difference between `x` and `X` options?

I'm configuring tmp cleanup on CentOS 7. The docs for tmpfiles are a little unclear to me when explaining the difference between the X and x options in tmp.conf. The difference according to the docs ...
1
vote
0answers
51 views

Unexplained massive rmagick temporarily file

Problem We recently ran into a situation whereby some of our server instances were suddenly running out of disc space, evidenced by below graph: The reason for running out of disc space is a single /...
0
votes
0answers
58 views

Is /tmp ever cleared on my servers and VM that don't get

Random curiosity had me look up when exactly /tmp was cleared, to discover that most OS do it at shutdown or boot up. I had always thought it was more of a "whenever we need to reclaim space" logic. ...
0
votes
1answer
399 views

Cannot create symlink from /var/tmp to /tmp. Cannot delete /var/tmp - CentOS 7

I cannot delete /var/tmp as it says, # rm -Rf /var/tmp rm: cannot remove ‘/var/tmp’: Device or resource busy Because of this, I cannot create a symbolic link from /var/tmp to /tmp. How can I ...
2
votes
3answers
2k views

git reports “No space left on device”, but df -h says there is is 2.5G available [duplicate]

I have an EC2 node running Ubuntu 14.04. On a deploy this morning, I received the following error message from git fetch: error: unable to create temporary file: No space left on device I logged ...
0
votes
2answers
49 views

Windows Server: any built-in application that cleans TEMP folder(s)

Using Windows Server 2012 R2: My application creates many temp files in a service account's temp folder: C:\Users\SVC_ACCT\AppData\Local\Temp\ I need to build a PowerShell script that cleans the ...
1
vote
1answer
950 views

How to prevent tmpfs /tmp causing machine to run out of memory?

I have a virtual server (Debian 8.5, OpenVZ) that seems to run out of memory* when tmpfs-based /tmp is about 60% full. (* while the system reports 2GB of memory still free, processes start to behave ...
1
vote
1answer
3k views

Are directories with mode `drwxrwxrwt` safe in /tmp on a *nix system?

drwxrwxrwt 2 root root 4096 Aug 20 2015 .font-unix drwxrwxrwt 2 root root 4096 Aug 20 2015 .ICE-unix -rw------- 1 root root 0 Aug 20 2015 ipt.err -rw------- 1 root ...
-1
votes
1answer
565 views

How to cleaning up /tmp

I have a CentOS web server with many clients on it. I see the /tmp reached DISKCRITICAL just after about two months since I made 8 GB (after expansion from 4 GB)! I want to know the reasons that make ...
0
votes
2answers
223 views

Unable to clear up tmp

I had a bunch of files in /tmp that I cleared up by doing $ rm -rf ./tmp/*. However, I'm still unable to 'clear' that information, even after a reset. Here is what I have now: $ cd Av-bash: cannot ...
2
votes
2answers
191 views

Dumped a large amount of small files in /tmp/ and rebooted… server not coming back up

I stupidly created a reasonably deep tree (4 folders deep) with the leaf folders containing a large amount of smallish files (over 1 million files around 200kb to 1mb in size). In total the count ...
4
votes
1answer
6k views

Error: No space left on device when starting/stopping services only

I know there are multiple questions like this already, but none of their answers applies to my problem. So I tried to upgrade from Debian 7.7 to Debian 8.1. Every works fine, but certain operations ...
-2
votes
1answer
257 views

Var folder maxing out /dev/mapper/vg00-var

Over the past few years we have had multiple linux servers have the same problem time and time again, our /dev/mapper/vg00-var folder max out at 100%. which means all sites on the server die. We have ...
0
votes
1answer
449 views

Debian 8 + PHP: /tmp/ Permission denied

I had a website running fine on Debian 7 + PHP 5.6, and recently decided to upgrade my Debian installation to Debian 8. Everything went fine, except for a small thing. While running the same code, ...
-5
votes
2answers
143 views

Why isnt this sudoer command run as root? [closed]

I want to give PHP access to a very specific script using a configuration under /etc/sudoers.d. So I did the following: visudo -f /etc/sudoers.d/99-php And entered this sudo rule: www-data ALL = (...
2
votes
3answers
961 views

What is making /tmp/info-html*.tmp files and how do I stop it?

What is making /tmp/info-html*.tmp files and how do I stop it or configure it to clean these up and/or make these somewhere else? For example, # ll /tmp/info-html* -rw-r--r-- 1 user user 0 Oct 30 ...
-1
votes
1answer
808 views

Is It safe to delete all files/directories from /tmp folder on ubuntu 14.04 rackspace server? [closed]

I am getting error unable to connect with mysql. when I googled I found It's because of size. It's showing /tmp 100% used. so can I completely remove all files from/tmp folder ? #df -m /tmp ...
0
votes
2answers
3k views

PDFTK: unable to open file for output

I am making use of PDFTK to watermark PDF files using the following command: pdftk /tmp/55180af7c8c88.pdf stamp /tmp/stamp55180af7c95b84.58412952.pdf output /tmp/55180af7c95c81.06110501.pdf However ...
7
votes
3answers
12k views

No space left on device error, but df reports as more space available

My PHP sessions on my Debian webserver using Apache2 with mod_php seem to be failing randomly, saying that there’s no space to write them: sudo tail -60 /var/log/apache2/error.log [Fri Jan 30 15:55:...
0
votes
1answer
76 views

deletion of tmp directory content on RHEL

we have installed Web logic server 10.3.6 in RHEL 5.8.There also a "tmp" folder inside "domains/servers/tmp" folder..this is the path of tmp folder in my case.Now My query is "Is it Mandatory to ...
-2
votes
1answer
66 views

PHP website grinds to halt for an hour, then runs fine…how to debug?

I have a PHP website which uses $_SESSION variables. It runs on Apache, Mysql and Ubuntu 14.04 on a very resourceful server (Amazon EC2 - M3.X-large) For some unknown reason, the website virtually ...
1
vote
1answer
1k views

Can't create/write to file '/mnt/temp/something' (Errcode: 13)

I changed the tmp directory of the mysql configuration to a mounted disk and on service mysql restart I get following error: Can't create/write to file '/mnt/temp/something' (Errcode: 13) To my ...
1
vote
1answer
756 views

Suspicious Linux binary file in /tmp/ - Munin?

I have a CENTOS 6.6 x86_64 server running ConfigServer Firewall (installed by us) and Munin (installed by the datacentre). CSF has recently (and for no apparent reason) started sending us warnings, ...
0
votes
2answers
611 views

How to backup your MySQL database when /tmp is read only?

I have an Ubuntu server 12.04 with a corrupted ext4 file system on my /tmp partition : $ dmesg | tail [25300713.878456] end_request: I/O error, dev vda, sector 2019854 [25300713.882430] Aborting ...
8
votes
1answer
11k views

php script can't access /tmp folder

I have no open_basedir, php can access /etc /usr /proc /home etc… but not /tmp. tmpfs is mount on /tmp (/tmp type tmpfs (rw)) That's also the reason I want to use the /tmp folder. My files are owned ...
-4
votes
2answers
6k views

insufficient space in download directory /var/cache/yum/updates/packages [closed]

I try to install vim-enhanced using #yum install vim-enhanced I got an error like this insufficient space in download directory /var/cache/yum/updates/packages I found some answers to the this ...
1
vote
1answer
264 views

Re-ocurring issue with keys on temp tables

We run a large forum with lots of reads and writes, particularly to the posts and topics tables which are both innodb. Last week I started doing 12 hourly backups with innobackupex because mysqldump ...
0
votes
2answers
1k views

removed files from /tmp/ directory - can't login anymore

I'm a system integrator(evidently noob), and today i've made my first scan with rkhunter, a tool that look into the system for check the presence of rootkits. After that scan i -foolishly- decided to ...
1
vote
1answer
144 views

Temporary file security threat? [duplicate]

We use CentOS. We've been hacked and trying to figure out why. Looking at the /tmp folder I'm wondering if these are security threats: -rw-rw---- 1 mysql mysql 11665408 Apr 3 18:59 #...
3
votes
1answer
1k views

Increase TMP size Centos 6.5 whm/cpanel

I'd like to increase it from 2G to 10G Using CENTOS 6.5 WHM 11.40.1 (build 11) I have tried: #vi /scripts/securetmp and looked for a line like “my $tmpdsksize” its not there. But this is what is ...
0
votes
0answers
1k views

Mysql tmp file cause site exception error crash

Running Magento and every 3-15 days or so (fairly random) I get this error: exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#...
1
vote
1answer
2k views

/var/tmp size increasing. MYD file eating memory

i don't know much about linux file's system. there is centos installed on my machine. suddenly my web stopped working. sql_2031_0.MYD file in /var/tmp/ getting large when something browses in website. ...
1
vote
1answer
95 views

Will changes to periodic.conf file be picked-up by the system automatically?

I have made some changes to my /etc/defaults/periodic.conf file to change how it cleans the /tmp dir. Do I need to do anything else such as log-out or reboot to get the system (Mac OS 10.8.4) to see ...
0
votes
1answer
800 views

Email queue won't send - No disc space left (running Centos 6.3)

I hope anyone can help me out with the following issue. I'm no longer receiving emails because they are getting stuck in the email queue. I've tried the following: System reboot (even between the ...
0
votes
3answers
99 views

/tmp flooded with “.myapp” files

On my new server (dedicated, CentOs5), 2 or 3 .myapp files (like "51b9dc4cc246f.myapp", ~500 Mo) is created every minute under /tmp, fulling my harddisk at an alarming speed. There is nothing in ...
1
vote
1answer
918 views

tmpwatch not deleting folders and mp3 files in /tmp

I have a process which moves files from our EC2 server to s3, we're not sure why but it stores them in /tmp whilst moving them, but for some reason it also leaves them there once the process has ...
8
votes
2answers
13k views

/tmp used 100% where is files?

On Centos 6.3 server I noticed that /tmp has no longer free space to store files. [root@]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg0-lv_root ...
0
votes
3answers
268 views

Purge tmp directory per user

I've created on my fresh server a directory structure like this: /home/$username/$domain/ (for example: /home/domaincom/domain.com/) - public_html - logs - conf - tmp Everything works well, but ...
1
vote
1answer
5k views

How much space is in a Solaris /tmp filesystem?

On Solaris, the /tmp filesystem is a filesystem of type "tmpfs". It's implemented in the kernel by allocated space from the virtual memory pool. That means allocation interacts with the available RAM ...
3
votes
1answer
677 views

sudo does not preserve TMPDIR

The sudo manpage tells me, that I can preserve the environment by passing the -E option, which does not work in the case of $TMPDIR: > env | grep TMPDIR TMPDIR=/localdata/tmp > sudo env | grep ...
0
votes
1answer
120 views

Ephemeral Amazon disc mounted in /tmp

I would like to know what do you think about mounting the ephemeral disc in /tmp when using Ubuntu in AWS.
0
votes
1answer
211 views

using /tmp partition instead tmp folder under root partition

I’m very new on using Linux (Debian) and have following question. I installed debian and during the process also created separate partition for /tmp. How can I now make sure that server programs use ...
0
votes
2answers
4k views

How long do uploaded files stay in the tmp folder in Linux Ubuntu?

I am building a web application where my users will be able to upload files. After the files are uploaded I need to send the files to two other servers, and after they will be deleted from the server ...
1
vote
1answer
1k views

Compiling passenger-install-nginx-module; “C compiler gcc is not found”

I am in the middle of a process of installing Redmine served with passenger and nginx with this tutorial. With the passenger-install-nginx-module, it works fine and during compiling it outputs an ...
0
votes
1answer
752 views

/tmp always gets full even after resize

I have a cPanel Server with 4GB of Ram and 4GB of /tmp space. I always get this error: Will this cause slow performance? and can I delete everything? Drive Critical: /tmp (/var/tmp) is 95% full ...
7
votes
2answers
8k views

Using tmpfs + a very large swap partition for /tmp instead of a regular filesystem?

I have Linux server and I have a spare 500GB disk partition. I wanted to format it and use it for /tmp. The server occasionally runs some large data processing tasks so it can happen that /tmp will ...
0
votes
4answers
9k views

mysql: Shall I change the mysql tmpdir from /tmp to /var/lib/mysql/tmp

Recently on one of the prodcution servers we have seen the replication being stopped due to the space issues on the /tmp drive which is having less space allocated. I would like to move the tmpdir ...