gitlabhq/gitlabhq — Issue #139: 500 - We're sorry, but something went wrong | ActionView::Template::Error (Permission denied - gitlabhq/tmp/cache/assets)
Author: g3d
Created: 2011-11-23 02:21:22+00:00
State: open

```ruby
cache: [GET /users/sign_in] miss
[ pid=40917 thr=17188993880 file=abstract_request_handler.rb:466 time=2011-11-23 04:03:33.780 ]: Accepting new request on main socket

ActionView::Template::Error (Permission denied - /home/viter/data/www/git.viter/gitlabhq/tmp/cache/assets):
1: <%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => "login-box" }) do |f| %>
2: <%= image_tag "login-logo.png", :width => "304", :height => "66", :class => "login-logo", :alt => "Login Logo" %>
3: <%= f.text_field :email, :class => "text top", :placeholder => "Email" %>
4: <%= f.password_field :password, :class => "text bottom", :placeholder => "Password" %>
5:
app/views/devise/sessions/new.html.erb:2:in `block in _app_views_devise_sessions_new_html_erb__83404589391202279_17258920220'
app/views/devise/sessions/new.html.erb:1:in `_app_views_devise_sessions_new_html_erb__83404589391202279_17258920220'

cache: [GET /users/sign_in] miss
```

system: nginx + passenger on freebsd 8.2

nginx.conf

```bash
user git;
worker_processes 1;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;

passenger_root /usr/local/lib/ruby/gems/1.9/gems/passenger-3.0.9;
passenger_ruby /usr/local/bin/ruby;
passenger_max_pool_size 10;
passenger_log_level 3;
passenger_debug_log_file /var/log/passenger.log;
#access_log logs/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

server {
listen 78.47.93.216:80;
server_name git.viter www.git.viter;
listen 80;
client_max_body_size 1G;
#root /usr/local/lib/ruby/gems/1.9/gems/passenger-3.0.9/test/stub/rack/public;
root /home/viter/data/www/git.viter/gitlabhq/public;
passenger_enabled on;
#rails_env production;
passenger_use_global_queue on;
}
}
```