Questions tagged [tmp]
The tmp tag has no usage guidance.
92 questions
0
votes
1
answer
101
views
How to delete non root-owned files from Unix /tmp folder
We have some Ubuntu v22 servers that get a lot of files dumped into the /tmp directory, in spite of our best code efforts to clean up after the processes are done. What we would like to do is run a ...
1
vote
1
answer
742
views
Docker-Compose Error on CentOS 7: Shared Library Mapping Issue
I've encountered an issue with Docker on CentOS 7. Although I have successfully installed both Docker and Docker-Compose, when I run docker-compose --version, I receive the following error:
docker-...
3
votes
1
answer
1k
views
Why are tmp files in /var/tmp/systemd-private-* excluded from automatic deletion?
I'm running a CGI application on an Apache instance, and lately I've been noticing errors like the following, which appear to be causing some issues:
ERR012: Unable to create temporary file "/var/...
1
vote
2
answers
895
views
Logrotate is not working in /tmp
I'm facing a strange problem with logrotate on my Debian 10 server.
All in one, logrotate (v3.20.1) is working and rotating fine... except for some files in /tmp that I want to "skrink" ...
0
votes
1
answer
708
views
Delete files from /tmp/ CentOS6
I'm running Centos6 and inside mt /tmp/ folder I see these files
drwxr-xr-x. 2 root root 4096 Jan 14 2016 fileinstall-1059639640221211034
drwxr-xr-x. 2 root root 4096 Jan 30 2021 ...
0
votes
0
answers
398
views
Wordpress error PCLZIP_ERR_MISSING_FILE (-4) when I'm trying to install, update a plugin, but the error is solved temporarily if I restart the server
Whenever I try to install or update a wordpress plugin, I get this error:
PCLZIP_ERR_MISSING_FILE (-4)
This is also happening if I edit a template from a layout manager or if I do anything that ...
0
votes
2
answers
4k
views
what's root cause of "A start job is running for Create Volatile Files and Directories"
Stuck at "A start job is running for Create Volatile Files and Directories" after reboot a server(Debian 9.5, 64bit), and solve by this "boot-stuck-at-a-start-job-is-running-for-create-...
1
vote
2
answers
3k
views
Why is Docker volume world-writable if set to /tmp?
For the context :
docker --version
Docker version 20.10.7, build 20.10.7-0ubuntu5~20.04.2
test 1 : volume is /myvolume
Here's my Dockerfile
FROM alpine:latest
USER 1000:1000
VOLUME /myvolume
and ...
1
vote
0
answers
254
views
Windows Creating tmp Files When Rotating Images
Windows server 2016 Standard
Client PC's Windows 2010 Enterprise 2019
We have a shared folder that contains images (jpgs), we've noticed that when an image is opened in the default windows image ...
2
votes
1
answer
6k
views
Why even my root user cannot write in the /tmp directory?
I cannot write in the /tmp directory.
This as a non root user:
europasprak@vps-xxxxxxxx:~$ echo 'ok' > /tmp/dummy
-bash: /tmp/dummy: Operation not permitted
and
europasprak@vps-xxxxxxxx:~$ sudo ...
1
vote
1
answer
6k
views
PHP can't write to /tmp folder anymore after Apache update
Linux dist: Ubuntu 18.04.5 LTS
Server version: Apache/2.4.29
PHP Version: 7.4.20 with PHP-FPM
Recently this server did an automatic upgrade of Apache and ever since PHP can't write to /tmp breaking ...
0
votes
0
answers
34
views
Trojan:PHP/Obfuse.AR!MSR Detection by Windows Defender [duplicate]
I have an AWS server running Windows 2016 Datacenter. From the past few days, Windows Defender has been reporting Trojan:PHP/Obfuse.AR!MSR pointing to random phpXXXX.tmp files inside C:\Windows\Temp ...
5
votes
1
answer
8k
views
How exactly to use systemd private temporary directory feature?
Systemd has a nice feature that is private temporary directory (/tmp). But it is not clear from the dense manual what are the correct ways to use it and implementation gotchas (get the feeling the ...
8
votes
1
answer
38k
views
Boot stuck at "A start job is running for Create Volatile Files and Directories"
I think something generated millions of files or folders in my /tmp on Ubuntu 18.04, as I'm unable to run ls /tmp or even rm -rf /tmp/*. So I tried rebooting, but now my machine's stuck at the step:
...
0
votes
1
answer
741
views
How large should the mysql temp folder be when altering table information like auto increment?
If I have 500GB table size, how big should the temp folder be in order to alter table information? I will be configuring temp in my.cnf and, in this example, I have 64 GB physical ram.
0
votes
2
answers
1k
views
Linux Mint 19 through WDS PXE does not boot
I find myself stuck trying to make linux mint 19 available from my wds.
I can boot windows, ubuntu, centos, debian, kali linux AND linux mint 18 with minimal problems but linux mint 19 just won't boot....
5
votes
1
answer
5k
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-...
2
votes
1
answer
4k
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 ...
2
votes
1
answer
3k
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 ...
2
votes
0
answers
166
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
0
answers
126
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
1
answer
2k
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 ...
4
votes
3
answers
25k
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
2
answers
592
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 ...
2
votes
1
answer
4k
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 ...
5
votes
1
answer
21k
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
1
answer
2k
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
2
answers
1k
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
2
answers
235
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 ...
8
votes
1
answer
26k
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
1
answer
794
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
1
answer
1k
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
2
answers
167
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
3
answers
2k
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
1
answer
2k
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
...
2
votes
2
answers
10k
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 ...
8
votes
3
answers
26k
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
1
answer
289
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
1
answer
78
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
1
answer
3k
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
1
answer
979
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
2
answers
3k
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 ...
24
votes
1
answer
33k
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
2
answers
11k
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
1
answer
321
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
2
answers
4k
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
1
answer
225
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
1
answer
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
0
answers
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/#...
2
votes
1
answer
3k
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. ...