Discussion:
failed with error 500
James Royal-Lawson
2012-06-18 21:03:41 UTC
Permalink
Hello everyone,

Yesterday I tried upgrading my Tracks installation on my Ubuntu server from
2.0 to 2.1. I'm not having much luck. So, I decided to attempt a clean
install... but even that hasn't worked for me.

I'm getting server 500 errors, and the log file says

ActionView::TemplateError (Permission denied -
/var/tracks/public/stylesheets/tracks-cached.css) on line #5 of
app/views/layouts/standard.html.erb:

It's made sure the apache user is owner and group and has read/write
permissions everywhere - but that didn't help.

I've tried creating the files using "touch" - which resulted in me getting
into tracks, with no errors in the log file - but the three cache files
haven't been updated - they are still zero length.

Any suggestions?

/James
--
James Royal-Lawson
Beantin webbkommunikation
www.beantin.se | @beantin <http://twitter.com/beantin>
+46 73 593 16 54 | james-GeLqa/xcZMDLoDKTGw+***@public.gmane.org
Tim Madden
2012-06-19 00:59:24 UTC
Permalink
Hi James,
I can't say for sure what the source of your trouble is but it definitely
looks permissions related. The permissions depend somewhat on the way you
are running the webserver for tracks. You mentioned apache which leads me
to suspect that you use apache with passenger as do I. For me, also on a
ubuntu server, the individual ruby processes run as my user, not apache's.
For me, my user / group owns everything inside the tracks directory. Hope
that helps!
Tim
Post by James Royal-Lawson
Hello everyone,
Yesterday I tried upgrading my Tracks installation on my Ubuntu server
from 2.0 to 2.1. I'm not having much luck. So, I decided to attempt a clean
install... but even that hasn't worked for me.
I'm getting server 500 errors, and the log file says
ActionView::TemplateError (Permission denied -
/var/tracks/public/stylesheets/tracks-cached.css) on line #5 of
It's made sure the apache user is owner and group and has read/write
permissions everywhere - but that didn't help.
I've tried creating the files using "touch" - which resulted in me getting
into tracks, with no errors in the log file - but the three cache files
haven't been updated - they are still zero length.
Any suggestions?
/James
--
James Royal-Lawson
Beantin webbkommunikation
_______________________________________________
Tracks-discuss mailing list
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
James Royal-Lawson
2012-06-19 06:47:44 UTC
Permalink
Thanks Tim (and Christian) for the replies.

Yes, you're correct. I'm running Apache with passenger under ubuntu 10.04
LTS. I checked what user the various passenger and rail processes were
running under and a few of them were "nobody". I checked the permissions
again and realised that the /var/tracks folder that's the root to my
virtual host in apache had root as owner rather than www-data. The one
folder i'd missed...

Changing that and deleting the -cache files in public has brought tracks
back to life for me.

my next job is to try again with my real tracks database...

So far, this upgrade (including the addition of bundle) hasn't been at all
easy for someone like me who is technical, but not a ruby guy!

/James
Post by Tim Madden
Hi James,
I can't say for sure what the source of your trouble is but it definitely
looks permissions related. The permissions depend somewhat on the way you
are running the webserver for tracks. You mentioned apache which leads me
to suspect that you use apache with passenger as do I. For me, also on a
ubuntu server, the individual ruby processes run as my user, not apache's.
For me, my user / group owns everything inside the tracks directory. Hope
that helps!
Tim
Post by James Royal-Lawson
Hello everyone,
Yesterday I tried upgrading my Tracks installation on my Ubuntu server
from 2.0 to 2.1. I'm not having much luck. So, I decided to attempt a clean
install... but even that hasn't worked for me.
I'm getting server 500 errors, and the log file says
ActionView::TemplateError (Permission denied -
/var/tracks/public/stylesheets/tracks-cached.css) on line #5 of
It's made sure the apache user is owner and group and has read/write
permissions everywhere - but that didn't help.
I've tried creating the files using "touch" - which resulted in me
getting into tracks, with no errors in the log file - but the three cache
files haven't been updated - they are still zero length.
Any suggestions?
/James
--
James Royal-Lawson
Beantin webbkommunikation
_______________________________________________
Tracks-discuss mailing list
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
--
James Royal-Lawson
Beantin webbkommunikation
www.beantin.se | @beantin <http://twitter.com/beantin>
+46 73 593 16 54 | james-GeLqa/xcZMDLoDKTGw+***@public.gmane.org
Loading...