johnf
November 29, 2006, 3:37am
1
I’ve seen this one posted, but not the solution.
I have Radiant installed and the site section is working
fine, but I get an application error when I try to go to
the admin section. Running it with webrick locally on OS
X machine.
Anyone have any ideas?
Thanks.
johnf
November 29, 2006, 3:41am
2
Could you please post the exact error output text?
johnf
November 29, 2006, 3:43am
3
Output is
Application error (Apache)
Change this error message for exceptions thrown outside of
an action (like in Dispatcher setups or broken Ruby code)
in public/500.html
On Tue, 28 Nov 2006 21:40:09 -0500
johnf
November 29, 2006, 3:49am
4
That’s an internal server error. Then you might have WebBrick and
apache trying to listen to the same port or have the
radiantDir/public/dispatcher.rb misconfigured.
johnf
November 29, 2006, 4:07am
5
John F. wrote:
Output is
Application error (Apache)
Change this error message for exceptions thrown outside of
an action (like in Dispatcher setups or broken Ruby code)
in public/500.html
We need to see the error from the logs. Look for the one that is
relevant to the mode (production|development) that you are running in.
–
John L.
http://wiseheartdesign.com
johnf
November 29, 2006, 4:23am
6
It seems that you need to give Apache read/write access to the script
folder. sudo chmod -R 755 ./script should help.
johnf
November 29, 2006, 4:13am
7
Here it is:
Permission denied -
script/…/config/…/tmp/sessions//ruby_sess.b794dd418e29357b
/usr/lib/ruby/1.8/pstore.rb:101:in initialize' /usr/lib/ruby/1.8/pstore.rb:101:in
open’
/usr/lib/ruby/1.8/pstore.rb:101:in transaction' /usr/lib/ruby/1.8/cgi/session/pstore.rb:71:in
initialize’
/usr/lib/ruby/1.8/cgi/session.rb:273:in new' /usr/lib/ruby/1.8/cgi/session.rb:273:in
initialize’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_process.rb:112:in
new' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_process.rb:112:in
session’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_process.rb:108:in
stale_session_check!' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_process.rb:108:in
session’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:918:in
assign_shortcuts_without_flash' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/flash.rb:141:in
assign_shortcuts’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:402:in
process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in
process_without_session_management_support’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in
process' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in
dispatch’
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in
handle_dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in
service’
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in
run’
/usr/lib/ruby/1.8/webrick/server.rb:155:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:144:in
start’
/usr/lib/ruby/1.8/webrick/server.rb:144:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:94:in
start’
/usr/lib/ruby/1.8/webrick/server.rb:89:in each' /usr/lib/ruby/1.8/webrick/server.rb:89:in
start’
/usr/lib/ruby/1.8/webrick/server.rb:79:in start' /usr/lib/ruby/1.8/webrick/server.rb:79:in
start’
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in
dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require’
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require’
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require’
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require’
script/server:3
On Tue, 28 Nov 2006 22:06:29 -0500
johnf
November 29, 2006, 1:42pm
8
I usually get that problem with new Rails applications when the tmp/
directory doesn’t exist (especially if I checked them out of an SVN
repo). Go to the root of your Radiant installation and run rake tmp:create
. If it’s already there, you may have to chmod -R.
Sean C.
seancribbs.com
johnf
November 29, 2006, 2:31pm
9
Thanks. It was the permissions on the tmp directory.
Daniel S. wrote:
To: [email protected]
Permission denied -
script/…/config/…/tmp/sessions//ruby_sess.b794dd418e29357b
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
–
John F.
Digital Systems and Services Coordinator
MBLWHOI Library
Woods Hole MA 02543 USA
PHONE: 508-289-7435
EMAIL: [email protected]
http://www.mblwhoilibrary.org
johnf
November 29, 2006, 2:43pm
10
Yup. I usually use the recursive flag because I’m sure with all
metaprogramming Rails does it probably uses tmp directories a lot. Not
to mention session storage and management. So even though this time
was easy to isolate to /tmp/sesh it’s just better to chmod the whole
folder and its children.
johnf
November 29, 2006, 7:40am
11
Actually, it needs read/write access to tmp/sessions (actually, all of
tmp)
johnf
November 29, 2006, 3:41pm
12
The metaprogramming doesn’t really affect or deal with the tmp/
directory per
se (There’s no compilation so you don’t have to rewrite class-files when
you
add to a class or change something). However, it is used to store
session
files, IPC sockets (for FCGI, etc), and the page/fragment cache – all
of
which are transient data that a running app needs.
Sean