Error/ Cannot Empty Backup Temp_dir
are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: error/moodle/cannot empty backup temp dir. This results from a file permissions error in the moodledata directory. Ensure file ownership and permissions are correct. Retrieved from "https://docs.moodle.org/22/en/index.php?title=error/moodle/cannot_empty_backup_temp_dir&oldid=95693" Category: Error 2.2 docs 3.1 docs3.0 docs2.9 docs2.7 docs Views ArticlePage CommentsView sourceHistory Personal tools Log in Navigation Main page Table of contents Recent changes Docs overview Tools What links here Related changes Special pages Printable version Permanent link Search This page was last modified on 7 February 2012, at 17:00. Content is available under GNU General Public License unless otherwise noted. About MoodleDocs Disclaimers
from a file permissions error in the moodledata directory. Ensure file ownership https://docs.moodle.org/22/en/error/moodle/cannot_empty_backup_temp_dir and permissions are correct. Retrieved from "https://docs.moodle.org/29/en/index.php?title=error/moodle/cannot_empty_backup_temp_dir&oldid=114036" Category: Error 2.9 docs 3.1 docs3.0 docs2.7 docs Views ArticlePage CommentsView sourceHistory Personal https://docs.moodle.org/29/en/error/moodle/cannot_empty_backup_temp_dir tools Log in Navigation Main page Table of contents Recent changes Docs overview Tools What links here Related changes Special pages Printable version Permanent link Search In other languages EspaƱol This page was last modified on 7 August 2014, at 21:42. Content is available under GNU General Public License unless otherwise noted. Privacy policy About Moodle Docs Disclaimers
Sign in Pricing Blog Support Search GitHub https://github.com/moodle/moodle/blob/master/backup/moodle2/backup_stepslib.php This repository Watch 274 Star 1,546 Fork 2,486 moodle/moodle mirrored from git://git.moodle.org/moodle.git Code Pull requests 0 Projects 0 Pulse Graphs http://stackoverflow.com/questions/6307836/fatal-error-cannot-mkdir-r-tempdir Permalink Branch: master Switch branches/tags Branches Tags MOODLE_13_STABLE MOODLE_14_STABLE MOODLE_15_STABLE MOODLE_16_STABLE MOODLE_17_STABLE MOODLE_18_STABLE MOODLE_19_STABLE MOODLE_20_STABLE MOODLE_21_STABLE MOODLE_22_STABLE MOODLE_23_STABLE MOODLE_24_STABLE MOODLE_25_STABLE MOODLE_26_STABLE error/ cannot MOODLE_27_STABLE MOODLE_28_STABLE MOODLE_29_STABLE MOODLE_30_STABLE MOODLE_31_STABLE master Nothing to show v3.1.2 v3.1.1 v3.1.0 v3.1.0-rc2 v3.1.0-rc1 v3.1.0-beta v3.0.6 v3.0.5 v3.0.4 v3.0.3 v3.0.2 v3.0.1 v3.0.0 v3.0.0-rc4 v3.0.0-rc3 v3.0.0-rc2 v3.0.0-rc1 v3.0.0-beta v2.9.8 v2.9.7 v2.9.6 v2.9.5 v2.9.4 v2.9.3 v2.9.2 v2.9.1 v2.9.0 v2.9.0-rc2 v2.9.0-rc1 v2.9.0-beta v2.8.12 v2.8.11 v2.8.10 error/ cannot empty v2.8.9 v2.8.8 v2.8.7 v2.8.6 v2.8.5 v2.8.4 v2.8.3 v2.8.2 v2.8.1 v2.8.0 v2.8.0-rc2 v2.8.0-rc1 v2.8.0-beta v2.7.16 v2.7.15 v2.7.14 v2.7.13 v2.7.12 v2.7.11 v2.7.10 v2.7.9 v2.7.8 v2.7.7 v2.7.6 v2.7.5 v2.7.4 v2.7.3 v2.7.2 v2.7.1 v2.7.0 v2.7.0-rc2 v2.7.0-rc1 v2.7.0-beta v2.6.11 v2.6.10 v2.6.9 v2.6.8 v2.6.7 v2.6.6 v2.6.5 v2.6.4 v2.6.3 v2.6.2 v2.6.1 v2.6.0 v2.6.0-rc1 v2.6.0-beta v2.5.9 v2.5.8 v2.5.7 v2.5.6 v2.5.5 v2.5.4 v2.5.3 v2.5.2 v2.5.1 v2.5.0 v2.5.0-rc1 v2.5.0-beta v2.4.11 v2.4.10 v2.4.9 v2.4.8 v2.4.7 v2.4.6 v2.4.5 v2.4.4 Nothing to show Find file Copy path moodle/backup/moodle2/backup_stepslib.php Fetching contributors… Cannot retrieve contributors at this time Raw Blame History 2608 lines (2001 sloc) 99.7 KB
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Fatal error: cannot mkdir R_TempDir up vote 14 down vote favorite 2 When attempting to run R, I get this error: Fatal error: cannot mkdir R_TempDir I found two possible fixes for this problem by googling around. The first was to ensure my tmp directory didn't contain a load of subdirectories - it doesn't and it's virtually empty. The second fix was to ensure that TMP, TMPDIR, and R_USER in my environment weren't set to non-existent paths - I didn't even have these set. Therefore, I created a tmp directory in my home directory and added it's path to TMP in my environment. I was able to run R once and then I got the fatal error again. Nothing was in the TMP directory that I set in my environment. Does anyone know what else I can try? Thanks. r share|improve this question asked Jun 10 '11 at 14:34 Dan 7314 5 If you've googled your way to this question, scroll down to the last answer regarding disk space –Ricardo Saporta Nov 12 '13 at 6:24 2 yup. disk space was the issue for me –eyaler Mar 6 '14 at 6:16 add a comment| 4 Answers 4 active oldest votes up vote 13 down vote accepted Your default temporary directory appears to have the wrong permissions. Here I have $ ls -ld /tmp drwxrwxrwt 22 root root 4096 2011-06-10 09:17 /tmp The key part is 'everybody' can read or write. You need that too. It certainly can contain subdirectories. Are you running something like AppArmor or SE Linux? Edit 2011-07-21: As someone just deemed it necessary to downvote this answer -- help(tempfile) is very clear on what values tmpdir (the default directory for temporary files or directories) tries: By default, 'tmpdir' will be the directory given by 'tempdir()'. This will be a subdirectory of the temporary directory found by the following rule. The environment variables 'TMPDIR', 'TMP' and 'TEMP' are checked in turn and the first found which points to a writable directory is used: if none succeeds '/tmp' is used. So my money is on checking those three environment variables. But AppArmor and SELinux have shown to be an issue too on some distributions. share|impro