05-14-2020, 05:14 PM | #1 |
Groupie
Posts: 164
Karma: 31650
Join Date: May 2011
Location: Asuncion (Paraguay)
Device: Several Kindle 3 KB's
|
Use another directory than /tmp for temporary files ?
I keep having problems when adding or converting book, with and error message "no space left on device".
My /tmp partition has only 500 mb free. Is there a way to force Calibre to use another directory than /tmp to store its temporary files, for instance using ~/tmp ? |
05-14-2020, 05:22 PM | #2 |
null operator (he/him)
Posts: 20,544
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
Advert | |
|
05-14-2020, 06:31 PM | #3 | |
Groupie
Posts: 164
Karma: 31650
Join Date: May 2011
Location: Asuncion (Paraguay)
Device: Several Kindle 3 KB's
|
Quote:
But if I may impose further, the link you gave me tells where to store the environment variables under Windows. Alas, I am running under Linux, and the manual is strangely silent about the location of macos-env.txt in that OS ;-3( Would you perchance know where it is supposed to be kept ? |
|
05-14-2020, 07:49 PM | #4 |
the rook, bossing Never.
Posts: 11,072
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Ah, so you can also make a link so /tmp is somewhere else or on an added disk mounted at /tmp
I too run Linux. If you show "hidden" files there is .config in your home directory and in it is calibre for the user. I've no idea about the environment variable. Perhaps simply creating the enviroment variable in the console in the normal manner with the desired location works. |
05-14-2020, 10:01 PM | #5 |
creator of calibre
Posts: 43,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
How you set environment variables in linux depends on the linux distribution, google it for your distribution.
|
Advert | |
|
01-15-2022, 08:17 AM | #6 |
Member
Posts: 11
Karma: 10
Join Date: Oct 2021
Device: ipad
|
Hello
I have the same problem. (And I also am under Ubuntu) my /tmp is not only used by calibre and I don't want to creat symlink... I set the env variable CALIBRE_TEMP_DIR in "/etc/environment" and after reboot the echo $CALIBRE_TEMP_DIR give the good answer whatever the user (root, calibre, or another user) is. but after a stop and start calibre the calibre files are stil in the /tmp directory... Any idea to make it work |
01-15-2022, 09:59 AM | #7 |
creator of calibre
Posts: 43,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
/etc/environment is used by shells. Unless you arerunning the server via shell it wont see that.
|
01-15-2022, 10:36 AM | #8 | |
Member
Posts: 11
Karma: 10
Join Date: Oct 2021
Device: ipad
|
I have seen "environment variables can be accessed system-wide, by any user or process"
So I thought it would works... So I have set in the service calibre-server the following line : Quote:
Thanks |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre could not create temporary directory | JosephWebber | Calibre | 1 | 02-03-2020 08:12 PM |
Files in /tmp/calibre_2.79.0_tmp_uvwxyz | rolgiati | Calibre | 2 | 02-14-2017 09:21 PM |
Moon+ reader does not cleanup tmp files | DrChiper | Android Devices | 6 | 09-19-2013 11:31 PM |
Multiple files, *-tmp.epub, are left in /tmp/Sigil/scratchpad after closing Sigil | Ahmad Samir | Sigil | 8 | 11-28-2012 04:27 AM |
does kindle 3 delete tmp-files after crash? | comet | Amazon Kindle | 0 | 03-25-2012 02:59 PM |