ruby-enterprise permission-denied error

30 views
Skip to first unread message

Stanislav

unread,
Jun 10, 2008, 7:11:36 AM6/10/08
to Phusion Passenger Discussions
Hi,

Today I'm trying to install the latest ruby-enterprise version - ruby-
enterprise-1.8.6-20080507 . Well, the initial installation goes,
however I have problems when using it along with passenger 1.9.0 .

- I'm using Fedora 9 x86_64.

- ruby-enterprise-1.8.6-20080507 is installed at /opt/ruby-
enterprise-1.8.6-20080507

- These are the configurations for apache:

LoadModule passenger_module /usr/lib64/ruby/gems/1.8/gems/
passenger-1.9.0/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib64/ruby/gems/1.8/gems/passenger-1.9.0
PassengerRuby /opt/ruby-enterprise-1.8.6-20080507
#PassengerRuby /usr/bin/ruby

After reloading/restarting the apache with the option to use /opt/ruby-
enterprise I get this error:

*** Passenger ERROR: Could not start the spawn server: /opt/ruby-
enterprise-1.8.6-20080507: Permission denied (13)

The file/dir permissions are these:
drwxr-xr-x 13 root root 4096 2008-06-10 12:56 opt
drwxr-xr-x 5 root root 4096 2008-06-10 12:48 ruby-
enterprise-1.8.6-20080507

these permissions are just the same as /usr/lib64/ruby... where the
standard ruby is located.

Any ideas how to fix those problems. 10x in advance.

Stanislav

LeonB

unread,
Jun 10, 2008, 2:18:42 PM6/10/08
to Phusion Passenger Discussions
Hi,

Maybe a wild guess: but could it be a apparmor/selinux error?

Hongli Lai

unread,
Jun 10, 2008, 5:09:37 PM6/10/08
to phusion-...@googlegroups.com
LeonB wrote:
> Hi,
>
> Maybe a wild guess: but could it be a apparmor/selinux error?

Yeah this seems very much like an SELinux error. Try turning SELinux
off, or giving /opt/ruby-enterprise-1.8.6-20080507 the right permissions.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Stanislav

unread,
Jun 10, 2008, 5:43:26 PM6/10/08
to Phusion Passenger Discussions
Well, selinux is disabled. Very strange problem.

cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0

Stanislav

unread,
Jun 10, 2008, 6:06:56 PM6/10/08
to Phusion Passenger Discussions
I also tied this:
[root@xenium opt]# chmod -R 777 ruby-enterprise-1.8.6-20080507

- again the same error:
*** Passenger ERROR: Could not start the spawn server: /opt/ruby-
enterprise-1.8.6-20080507: Permission denied (13)

Hongli Lai

unread,
Jun 10, 2008, 6:23:55 PM6/10/08
to phusion-...@googlegroups.com
Stanislav wrote:
> I also tied this:
> [root@xenium opt]# chmod -R 777 ruby-enterprise-1.8.6-20080507
>
> - again the same error:
> *** Passenger ERROR: Could not start the spawn server: /opt/ruby-
> enterprise-1.8.6-20080507: Permission denied (13)

Shouldn't this be the following instead?

/opt/ruby-enterprise-1.8.6-20080507/bin/ruby

Please check your RailsRuby config option.

Stanislav

unread,
Jun 10, 2008, 6:32:34 PM6/10/08
to Phusion Passenger Discussions
Shame on me :)

It was the problem.

Moreover I read the whole FAQ and found that it's not the best choice
to install ruby-enterprise on x86_64 arch. What's a pity :( .

Anyway, 10x about the help.

On Jun 11, 1:23 am, Hongli Lai <hon...@phusion.nl> wrote:
> Stanislav wrote:
> > I also tied this:
> > [root@xenium opt]# chmod -R 777 ruby-enterprise-1.8.6-20080507
>
> > - again the same error:
> > *** Passenger ERROR: Could not start the spawn server: /opt/ruby-
> > enterprise-1.8.6-20080507: Permission denied (13)
>
> Shouldn't this be the following instead?
>
> /opt/ruby-enterprise-1.8.6-20080507/bin/ruby
>
> Please check your RailsRuby config option.
>
> --
> Phusion | The Computer Science Company
>
> Web:http://www.phusion.nl/
> E-mail: i...@phusion.nl

Hongli Lai

unread,
Jun 10, 2008, 6:43:22 PM6/10/08
to phusion-...@googlegroups.com
Stanislav wrote:
> Shame on me :)
>
> It was the problem.
>
> Moreover I read the whole FAQ and found that it's not the best choice
> to install ruby-enterprise on x86_64 arch. What's a pity :( .
>
> Anyway, 10x about the help.

You can install it on x86_64. You won't get the speed improvements, but
you still get the memory usage reductions.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl

Stanislav

unread,
Jun 11, 2008, 6:15:19 AM6/11/08
to Phusion Passenger Discussions
Well, what about the decreass of processing performance when using
ruby-enterprise ot 64bit platform?

On Jun 11, 1:43 am, Hongli Lai <hon...@phusion.nl> wrote:
> Stanislav wrote:
> > Shame on me :)
>
> > It was the problem.
>
> > Moreover I read the whole FAQ and found that it's not the best choice
> > to install ruby-enterprise on x86_64 arch. What's a pity :( .
>
> > Anyway, 10x about the help.
>
> You can install it on x86_64. You won't get the speed improvements, but
> you still get the memory usage reductions.
>
> --
> Phusion | The Computer Science Company
>
> Web:http://www.phusion.nl/
> E-mail: i...@phusion.nl

Hongli Lai

unread,
Jun 11, 2008, 6:39:21 AM6/11/08
to phusion-...@googlegroups.com
Stanislav wrote:
> Well, what about the decreass of processing performance when using
> ruby-enterprise ot 64bit platform?

It'll result in a raw CPU performance loss of anywhere between 0% and
20%, depending on the application and the workload. Whether that's a
problem depends on the specific application and the number of visitors.


--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl

Stanislav

unread,
Jun 11, 2008, 12:09:21 PM6/11/08
to Phusion Passenger Discussions
Well, I think it's CPU consumming, however it also needs memory :) .
It has about 40k page views a day.

It's a bulgarian social bookmarking system :) - http://svejo.net

On Jun 11, 1:39 pm, Hongli Lai <hon...@phusion.nl> wrote:
> Stanislav wrote:
> > Well, what about the decreass of processing performance when using
> > ruby-enterprise ot 64bit platform?
>
> It'll result in a raw CPU performance loss of anywhere between 0% and
> 20%, depending on the application and the workload. Whether that's a
> problem depends on the specific application and the number of visitors.
> --
> Phusion | The Computer Science Company
>
> Web:http://www.phusion.nl/
> E-mail: i...@phusion.nl
Reply all
Reply to author
Forward
0 new messages