Ruby: Could not find a temporary directory

前端 未结 3 1721
时光取名叫无心
时光取名叫无心 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条回答
  •  被撕碎了的回忆
    2020-12-17 16:49

    ls -l /
    
    $drwxrwxrw   9 root     root      4096 Jun 26 11:34 tmp
    

    If you don't see that t at the end of the permissions column '/tmp'

    chmod o+t /tmp
    chmod 1777 /tmp    
    $ ls -l / 
    drwxrwxrwt   9 root     root      4096 Jun 26 11:35 tmp
    

    reason is Fixing temporary dir problems with Ruby 2

提交回复
热议问题