How do I fix a directory creation error?

Every time I attempt to start Unity, an error pops up that says:

"Creating Directory

Creating directory Temp failed. Please ensure there is enough disk space and you have permissions set up correctly."

I have 40 GB open and am an administrator on the computer I'm on, which is a MacBook.

Computer Specs:

Model Name:MacBook

Model Identifier:MacBook3,1

Processor Name:Intel Core 2 Duo

Processor Speed:2.2 GHz

Number Of Processors: 1

Total Number Of Cores: 2

L2 Cache:4 MB

Memory:1 GB

Bus Speed:800 MHz

Boot ROM Version:MB31.008E.B02

SMC Version (system): 1.24f3

Serial Number (system):W8748EMHZ63

Hardware UUID: 5315BEE9-DEBF-5F0B-B4F1-3E07D184885E

System Version: Mac OS X 10.5.8 (9L31a)

I guess for some odd reason Unity was trying to boot by adding a bunch of folders to my already full external from which I was pulling the file from. Fixed it by moving the entire folder onto the laptop, now it's just glorious!

I had the same problem for my son;s project. What I did was put the entire project in a folder and place it on the desk top. Then it launchs perfectly.

I know that this post is way old, but I recently ran into the same problem.

The first part of the error message gave me the clue: “Creating directory Temp failed.”

I went to check the permissions, all fine.
Trying to create a file, I got: “Read-only filesystem”

What happened?

I had accidentally tried to throw out my USB disk unity is stored on. Some other process still needed the device, thus keeping it online but mounted as read-only.

Check the mount command :slight_smile:

Is your Unity set to automatically open the project you are working on? We had this issue when Unity was trying to open up a project that had some Library files missing (when we were still figuring out how to use SVN with Unity).

We fixed it by deleting the entire library folder. You might loose some settings that you would have to setup again.

I had this problem for the first time after updating to Windows 10.
Simply launch Unity as administrator (right click over the exe and choose in the menu)

I had the same problem because I had a Gith bash terminal opened at path “…/Temp”, which meant Unity could not open the folder.

Same problem running from my HDD in 2018.2f21

.

just have to tell it to “Try again” then it works. 200Gb free space so no idea what it’s problem… Happens once every 3 or 4 times I start a project from the HUB. Annoying but not really a problem.

.

I just wanted to find out why it is saying that so I can stop seeing that 3 to 5 times a week but all I can find is “i had to move the project to another location then it worked” so I still have no clue what is going on :frowning:

yep, I also think that this problem should be debugged by unity creators…
In NO WAY I could consider, “moving around folders from where they actually reside” to be something like a good or reasonable solution for this issue.

The problem for me was that I had a file from the staging folder open in another program. I had to exit that program, so the file wasnt locked.