Questions tagged [tmp]

The traditional name of directories (especially on Unix and Unix-like operating systems) used to store temporary files. Also, the filename extension of temporary files.

317 questions
0
votes
2 answers

Folder /tmp is not working in Vercel Production. Giving error of EORFs

Folder Structure image# Multer.js File const multer = require("multer"); const path = require("path"); const fs = require("fs"); const httpStatus = require("http-status"); const ApiError = require("../utils/ApiError") const logger =…
0
votes
1 answer

/tmp permission denied while trying to run `npm run build` on linux

I've laravel application deployed to Linux/Debian server, one of the steps that I have to do is to run npm run build for production I got the following error: npm run build > build > vite build /tmp/build-ade1100b.sh: 1: vite: Permission denied I…
Fadi Ramzi
  • 119
  • 1
  • 9
0
votes
0 answers

How to wait until in node js

I want to see if the file is downloaded in the download folder? After downloading the file has to be saved in another folder. let files = fs.readdirSync('C:\\Users\\xyz\\Downloads') let tmpfiles+= files.map(file =>file.split('.').pop()=='tmp'?…
Satyendra
  • 14
  • 4
0
votes
1 answer

Is it possible to read a short-lived file reliably in /tmp due to periodic cleanup?

I'm considering making my application create a file in /tmp. All I'm doing is making a temporary file that I'll copy to a new location. On a good day this looks like: Write the temp file Move the temp file to a new location However on my system…
karobar
  • 1,250
  • 8
  • 30
  • 61
0
votes
2 answers

Php shell_exec "File "/tmp/phpG4jVlp" does not exist."

I have a php file and it takes 11 minutes to upload and process excel. I want to do this in the background with shell_exec, but I get an error like this. File "/tmp/phpG4jVlp" does not exist. The command I am using is as…
0
votes
1 answer

privateTmp=no/false not working for Tomcat 9 on Ubuntu 20

I have an application on Tomcat 9 which is installed on Ubuntu 20.04.4 LTS. My applications has to write its temp files into to /tmp folder to work properly. After the server update (Ubuntu 16 to 20) the temp files are created inside…
chaosKP
  • 41
  • 3
0
votes
0 answers

I'm trying to turn a data frame into a sql in python, but I'm aways getting this output: sqlite3.OperationalError: disk I/O error

I've looked for similar topics on stack overflow and google, but I couldn't find any similar case. Can anyone help me? import os import tempfile import sqlite3 import pandas as pd tmp = tempfile.mktemp() try: tmpDb =…
vini8cs
  • 1
  • 1
0
votes
1 answer

Set temporary directory: open_mfdataset xarray, dask(?), python

I am opening multiple files with xarray.open_mfdataset and storing them again as one dataset. As I am doing so, my temporary directory runs out of memory. How do I change the path to the temporary directory? My code looks something like: import…
henke a
  • 1
  • 1
0
votes
0 answers

Docker PHP-FPM: tmp directory grows very fast

I have a problem. I use PHP-FPM docker (php:8.0-fpm). After 2 days, I have found that the tmp directory is very big: 20.1 GB. And it still grows. The Problem is, that my server has a storage only 30 GB :( Do you know, is it normal, that tmp…
krut1
  • 21
  • 4
0
votes
1 answer

how to gzip files in tmp folder

Using an AWS Lambda function, I download an S3 zipped file and unzip it. For now I do it using extractall. Upon unzipping, all files are saved in the tmp/ folder. s3.download_file('test','10000838.zip','/tmp/10000838.zip') with…
x89
  • 2,798
  • 5
  • 46
  • 110
0
votes
1 answer

unzip file without creating temporary files

I download a zip file from AWS S3 and unzip it. Upon unzipping, all files are saved in the tmp/ folder. s3 = boto3.client('s3') s3.download_file('testunzipping','DataPump_10000838.zip','/tmp/DataPump_10000838.zip') with…
x89
  • 2,798
  • 5
  • 46
  • 110
0
votes
0 answers

How Can I Rename Certain File Extensions In A PHP Uploader?

I am trying to make it so when a user uploads a .sh file it will change the file extension to .txt before it gets on my server. My current code is $fileName = $_FILES["file"]["name"]; $fileSize = $_FILES["file"]["size"]; $fileExt = explode(".",…
0
votes
2 answers

Create xlsx file, save in tmp and attach it in firebase mail

I've created a Google Cloud Function which, when it is trigged, it creates an xlsx file with exceljs and attaches it in an email sent with firebase-send-mail. This is my code: (data is dummy for test) exports.onEventReservCreate = functions …
0
votes
2 answers

Uploading chunked files to s3 with php

I have a php script where I store a file uploaded by the user in a tmp folder and then move it to s3. I also check if the emails they entered are valid in the database. I am using chunking so that large files can get uploaded to the server quickly.…
user15901634
0
votes
1 answer

VSCode restore file from tmp file

I Accidentally discarded some changed files in VScode and lost alot of work. I believe I have found them saved as tmp files in the /users/appdata/local/temp/1 directory, but when I try to open it's just symbols/binary encoding that I am not familar…
DLateef
  • 231
  • 1
  • 4
  • 17