Permission denied error Nginx - 504 Gateway Timed Out

October 5, 2015 990 views
Ruby on Rails One-Click Install Apps Nginx

Hi,
I'm new to Digital Ocean and i tried to run a One Click install rails+unicorn+postgres image.
At the start all seemed to work very well, but after trying to install a few gems, an error 504 poped out.

In my Nginx logfile i got :

2015/10/05 17:37:15 [crit] 961#0: *18 stat() "/home/rails/rails_project/public//index.html" failed (13: Permission denied), client: 77.202.161.65, server: _, request: "GET / HTTP/1.1", host: "188.166.122.128"
2015/10/05 17:37:15 [crit] 961#0: *18 stat() "/home/rails/rails_project/public/.html" failed (13: Permission denied), client: 77.202.161.65, server: _, request: "GET / HTTP/1.1", host: "188.166.122.128"

I'm also new to server configuration, permissions etc... so, can anyone give me some tips to debug this situation in details please ?

Thanks in advance for the help

Be the first one to answer this question.