List Info

Thread: Strange FastCGI Issue




Strange FastCGI Issue
user name
2007-01-27 00:56:55
Hi all. Strange problem. Just did a fresh install of
Mephisto from SVN
on my shared server. Everything was working fine. Created
some page
sections and static pages, and one blog section with an
article. Then I
enabled FastCGI.

Now, some pages continue working, but some result in a
Mephisto error
page. All of the page-based sections work. The blog-based
section
returns an error. Interestingly, most of the admin area
works too, but
the "Sections" area and the "Settings >
Caches" area result in errors.
My Mephisto log shows nothing for these errors, but my
server log shows
messages like the following:

ERROR LOG
- - - - - - - - - -
/home/reimag2/public_html/czheng/dispatch.fcgi:25
    /home/reimag2/public_html/czheng/dispatch.fcgi:25
Errno::EACCES (Permission denied -
/home/reimag2/public_html/public):
    /home/reimag2/public_html/czheng/dispatch.fcgi:25
- - - - - - - - - -

Since I'm a relative newbie, I really have no idea what this
could
indicate or how to fix it. I've tried to fix permissions on
various
files and directories, but that doesn't seem to make much
difference.
Any ideas?


INFO
- - - - -
dispatch.fcgi: http://pastie.caboo.se/3
6020
.htaccess: http://pastie.caboo.se/3
6021

Permissions:
     public/.htaccess         766
     public/dispatch.*         755
     public/                        755

Any other info that would be helpful?

Thanks in advance,

craig


--~--~---------~--~----~------------~-------~--~----~
Mephisto: http://mephistoblog.com |
Mephisto Help: http://mephisto.stikipad
.com

To post to this group, send email to MephistoBloggooglegroups.com
To unsubscribe from this group, send email to
MephistoBlog-unsubscribegooglegroups.com
For more options, visit this group at http
://groups-beta.google.com/group/MephistoBlog
-~----------~----~----~----~------~----~------~--~---


Re: Strange FastCGI Issue
user name
2007-01-27 01:23:11
> ERROR LOG
> - - - - - - - - - -
> /home/reimag2/public_html/czheng/dispatch.fcgi:25
>     /home/reimag2/public_html/czheng/dispatch.fcgi:25
> Errno::EACCES (Permission denied -
/home/reimag2/public_html/public):
>     /home/reimag2/public_html/czheng/dispatch.fcgi:25
> - - - - - - - - - -

> Permissions:
>      public/.htaccess         766
>      public/dispatch.*         755
>      public/                        755

check the user that owns /public/* and the user that
mephisto runs at.
 You're probably getting a permissions error when it tries
to write a
cached file.

-- 
Rick Olson
http://weblog.techno-
weenie.net
http://mephistoblog.com

--~--~---------~--~----~------------~-------~--~----~
Mephisto: http://mephistoblog.com |
Mephisto Help: http://mephisto.stikipad
.com

To post to this group, send email to MephistoBloggooglegroups.com
To unsubscribe from this group, send email to
MephistoBlog-unsubscribegooglegroups.com
For more options, visit this group at http
://groups-beta.google.com/group/MephistoBlog
-~----------~----~----~----~------~----~------~--~---


Re: Strange FastCGI Issue
user name
2007-01-27 10:58:45
> check the user that owns /public/* and the user that
mephisto runs at.
>  You're probably getting a permissions error when it
tries to write a
> cached file.

I'll look into that more, but two things: first, I get the
error even 
if I temporarily set public/ to 777. Second, Mephisto has
been able to 
write the cached versions of the page-based sections. In
other words, 
I have page-based sections called About and Contact, and
pages of the 
same names. In my public/ folder I see about.html,
contact.html (then 
again I wonder if they were written before I switched to
FastCGI). But 
I don't see the 2007/ folder I normally would if it were
writing the 
blog-based section. Not sure why.

Anyway, I'm going to submit a ticket to my host to clarify
what user 
the app is running as (not sure how to find that out
myself). Maybe 
you're right and resolving ownership is the key.

Thanks Rick,

craig


--~--~---------~--~----~------------~-------~--~----~
Mephisto: http://mephistoblog.com |
Mephisto Help: http://mephisto.stikipad
.com

To post to this group, send email to MephistoBloggooglegroups.com
To unsubscribe from this group, send email to
MephistoBlog-unsubscribegooglegroups.com
For more options, visit this group at http
://groups-beta.google.com/group/MephistoBlog
-~----------~----~----~----~------~----~------~--~---


Re: Strange FastCGI Issue
user name
2007-01-27 11:00:12
Update. Now I'm seeing the following too in my error logs:

/home/reimag2/public_html/czheng/../config/../vendor/rails/r
ailties/
lib/fcgi_handler.rb:25:in `process!'
/home/reimag2/public_html/czheng/../config/../vendor/rails/r
ailties/
lib/fcgi_handler.rb:55:in `process!'
/home/reimag2/public_html/czheng/../config/../vendor/rails/r
ailties/
lib/fcgi_handler.rb:141:in `process_each_request!'
/home/reimag2/public_html/czheng/../config/../vendor/fcgi-0.
8.7/lib/
fcgi.rb:609:in `each_cgi'
/home/reimag2/public_html/czheng/../config/../vendor/fcgi-0.
8.7/lib/
fcgi.rb:609:in `each'
/home/reimag2/public_html/czheng/../config/../vendor/fcgi-0.
8.7/lib/
fcgi.rb:612:in `each_cgi'
/home/reimag2/public_html/czheng/../config/../vendor/rails/r
ailties/
lib/fcgi_handler.rb:142:in `process_each_request!'
/home/reimag2/public_html/czheng/../config/../vendor/rails/r
ailties/
lib/fcgi_handler.rb:109:in `with_signal_handler'
/home/reimag2/public_html/czheng/../config/../vendor/rails/r
ailties/
lib/fcgi_handler.rb:143:in `process_each_request!'
/home/reimag2/public_html/czheng/../config/../vendor/rails/r
ailties/
lib/fcgi_handler.rb:168:in `process_request'
/home/reimag2/public_html/czheng/../config/../vendor/rails/r
ailties/
lib/dispatcher.rb:41:in `dispatch'
/home/reimag2/public_html/czheng/../config/../vendor/rails/a
ctionpack/
lib/action_controller/base.rb:330:in `process'
/home/reimag2/public_html/czheng/../config/../vendor/rails/a
ctionpack/
lib/action_controller/session_management.rb:114:in
`process'
/home/reimag2/public_html/czheng/../config/../vendor/rails/a
ctionpack/
lib/action_controller/filters.rb:624:in 
`process_without_session_management_support'
/home/reimag2/public_html/czheng/../config/../vendor/rails/a
ctionpack/
lib/action_controller/base.rb:421:in
`process_without_filters'
/home/reimag2/public_html/czheng/../config/../vendor/rails/a
ctionpack/
lib/action_controller/flash.rb:140:in `assign_shortcuts'
/home/reimag2/public_html/czheng/../config/../vendor/rails/a
ctionpack/
lib/action_controller/base.rb:1049:in
`assign_shortcuts_without_flash'
/home/reimag2/public_html/czheng/../config/../vendor/rails/a
ctionpack/
lib/action_controller/cgi_process.rb:109:in `session'
/home/reimag2/public_html/czheng/../config/../vendor/rails/a
ctionpack/
lib/action_controller/cgi_process.rb:143:in
`stale_session_check!'
/home/reimag2/public_html/czheng/../config/../vendor/rails/a
ctionpack/
lib/action_controller/cgi_process.rb:113:in `session'
/home/reimag2/public_html/czheng/../config/../vendor/rails/a
ctionpack/
lib/action_controller/cgi_process.rb:113:in `new'


--~--~---------~--~----~------------~-------~--~----~
Mephisto: http://mephistoblog.com |
Mephisto Help: http://mephisto.stikipad
.com

To post to this group, send email to MephistoBloggooglegroups.com
To unsubscribe from this group, send email to
MephistoBlog-unsubscribegooglegroups.com
For more options, visit this group at http
://groups-beta.google.com/group/MephistoBlog
-~----------~----~----~----~------~----~------~--~---


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )