Ruby: Could not find a temporary directory

前端 未结 3 1717
时光取名叫无心
时光取名叫无心 2020-12-17 16:40

I am getting some 500 errors in my Passenger Rails app. When looking at the log it appears passenger cannot access the /tmp dir. I have validated that it is there and has

3条回答
  •  旧时难觅i
    2020-12-17 17:01

    Not sure what happened here, but I believe it had something to do with the /tmp folder permissions. I thought my /tmp folder was corrupted so I looked around about deleteing that folder and restoring it (I wasn't sure if this folder was especially significant about the way it was created). I found this source that suggested you can simply make the /tmp folder, just as you would any other folder, and then do a chmod 1777 on the newly created folder.

    So, instead of deleting my current /tmp, I ran this chmod command and everything appeared to work.

    What is strange to me is that I had previously done a chmod 777 and that caused the folder to not work. Weird...

提交回复
热议问题