Asher | 11 Jan 09:38
Gravatar

mod_ruby 1.3.0 and apache 2.2.14 on Mac OS X 10.6.2 - continual/repeated segfaults and hang on user page load

I just installed apache 2.2.14 and mod_ruby 1.3.0 on Mac OS X 10.6.2, each with
--with-apr-includes=/usr/include/apr-1 and mod_ruby also with --with-apxs. Each compiled without
any hint of problem (although without apr-includes specified they bombed horribly due to header paths).
I edited httpd.conf with the contents of the example file. Restarting apache with apachectl (stop,
start) produces no error. /var/log/apache2/error_log gives this upon startup:

[Mon Jan 11 03:20:38 2010] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
mod_bonjour: Skipping user 'ahaig' - cannot read index file '/Users/ahaig/Sites/index.html'.
[Mon Jan 11 03:20:39 2010] [notice] Digest: generating secret for digest authentication ...
[Mon Jan 11 03:20:39 2010] [notice] Digest: done
[Mon Jan 11 03:20:39 2010] [notice] Apache/2.2.14 (Unix) mod_ruby/1.3.0 mod_ssl/2.2.13
OpenSSL/0.9.8k DAV/2 PHP/5.3.0 configured -- resuming normal operations
[Mon Jan 11 03:20:40 2010] [notice] child pid 24960 exit signal Segmentation fault (11)
[Mon Jan 11 03:20:42 2010] [notice] child pid 24962 exit signal Segmentation fault (11)
[Mon Jan 11 03:20:44 2010] [notice] child pid 24963 exit signal Segmentation fault (11)
[Mon Jan 11 03:20:48 2010] [notice] child pid 24964 exit signal Segmentation fault (11)
[Mon Jan 11 03:20:50 2010] [notice] child pid 24966 exit signal Segmentation fault (11)
[Mon Jan 11 03:20:52 2010] [notice] child pid 24968 exit signal Segmentation fault (11)
[Mon Jan 11 03:20:54 2010] [notice] child pid 24969 exit signal Segmentation fault (11)
[Mon Jan 11 03:20:56 2010] [notice] child pid 24970 exit signal Segmentation fault (11)
[Mon Jan 11 03:20:59 2010] [notice] child pid 24972 exit signal Segmentation fault (11)
[Mon Jan 11 03:21:01 2010] [notice] child pid 24973 exit signal Segmentation fault (11)
[Mon Jan 11 03:21:03 2010] [notice] child pid 24975 exit signal Segmentation fault (11)
[Mon Jan 11 03:21:05 2010] [notice] child pid 24977 exit signal Segmentation fault (11)
...

The segmentation faults continue until I tell apachectl to stop. 

When I go to http://localhost/, the default page ("It works!") loads fine. When I go to
http://localhost/~ahaig/ or any variation thereof, it hangs (no error, keeps trying to load but goes
(Continue reading)

Daren Scot Wilson | 9 Jun 07:39

configure eruby => nil at line 310

I would like to try eRuby on my home machine.   The tarball is unpacked 
and i'm trying to configure:

bash => ./configure.rb --with-apr-includes=/usr/include/apr-1
./configure.rb:310: private method `gsub!' called for nil:NilClass 
(NoMethodError)

What is the problem?  Google didn't provide much help.  The offending 
line and the one before it are:
$XLDFLAGS = CONFIG["XLDFLAGS"]
$XLDFLAGS.gsub!(/-L\./, "")

Thanks,
DSW

Fred Appelman | 3 Jun 22:09

Accessing post data

Hi,

I have implemented a couple of projects using mod_ruby and I really  
like it. I have now stumbled upon a problem which I can't seem to solve.
I am trying to built a server that will respond to XML posts. I run  
into two problems:

1. Mod_ruby doesn't seem to like/understand the Content-Type text/xml.  
I get the following error in the logs:
    [Wed Jun 03 22:04:03 2009] [error] [client 10.0.83.132] [libapreq]  
unknown content-type: `text/xml'
    Is there an option to make Mod_ruby aware of this content type?

2. Once I have the data I am able to see that the post data has a size  
of 250 bytes. Also the request_method confirms there is POST data.
    I cannot find any method to actually access these bytes. The  
method read returns nil and the functions gets, readline and readlines
    all claim they are private to Apache::Request.
    Since there is no documentation I am out of ideas. Does anyone  
know how to access the POST data?

	Fred

Mike Carambat | 2 Jun 23:43
Picon
Favicon

Centos 5.3 and mod_ruby not happy


I was following the Howtoforge " The perfect server - Centos 5.3" guidelines and everything goes perfect
till mod_ruby-1.3.0 

./configure.rb --with-apr-includes=/usr/include/apr-1

checking for a BSD compatible install... /usr/bin/install -c
checking whether we are using gcc... yes
checking Ruby version... 1.8.5
checking for static Apache module support... no
checking for dynamic Apache module support... yes
creating Makefile
creating libruby.module
creating doc/Makefile

Running make however yields the following errors:

apachelib.c: In function .ap_chdir_file.:
apachelib.c: 149: take care: the returnvalue of .chdir ., declared with .warn_unused_result. attribut,
is ignored
apachelib.c: 154: take care: the returnvalue of .chdir ., declared with .warn_unused_result. attribut,
is ignored
apachelib.c: In function .rb_init_apache. :
apachelib.c: 374: error: .OPT_INCNOEXEC. undeclared (first use in this function)
apachelib.c: 374: error: (Each undeclared identifire is reported only once
apachelib.c: 374: error: for each function it appears in.)
make: *** [apachelib.o] error 1

What's the deal? I've tried both 1.2.6 and 1.3.0 and they both fail the make. Is it something with my version
of Apache? it's: 2.2.3 and httpd-devel is 2.2.3-22.el5.centos.1.i386
(Continue reading)

Shugo Maeda | 8 Nov 16:02

mod_ruby 1.3.0 released

Hi,

mod_ruby 1.3.0 has been released.

http://modruby.net/en/index.rbx/news14.html

It works with Ruby 1.9, but signal handlers don't work....

--

-- 
Shugo Maeda

Rajeev Dave | 15 May 22:47
Picon
Favicon

mod_ruby.so segment prot after reloc

I know that this issue has been discussed since it relates to SELinux but...

- I have centos 5.1 and Apache 2.0
- I configured mod_ruby  --with-apxs

I can't believe that all mod_ruby deployment are w/ SELinux turned off or w/ Apache v1.  Everyone seems to turn off SELinux the moment they see the error.

Is using the chcon command the right choice?  If so, what's the construct?

TIA - rmd
 


Michael Granger | 14 Apr 02:33
Gravatar

mod_ruby and modruby.net assistance

[I'm posting this to the mailing list after first attempting to mail  
an earlier version to Shugo-san directly. The original has not yet  
been answered, and I'm not sure if I perhaps used an old address or  
something.]

Hi Shugo-san,

I don't know if you remember me, but I've contributed a bit of code to  
mod_ruby in the past, and I still actively use mod_ruby for a number  
of my projects, including the Arrow framework (http://deveiate.org/projects/Arrow 
).

There have been a few questions on the ruby-talk mailing list about  
mod_ruby lately, and people are starting to say that it's  
unmaintained. I think people just see that some of the links on http://modruby.net/ 
  are broken and the fact that there hasn't been a release for almost  
two years as a sign that it's not used anymore.

I'd like to help out, if you wouldn't mind some assistance. The things  
I'd like to do:

* Create an instance of either Trac (http://trac.edgewall.org/) or  
Redmine
  (http://www.redmine.org/) (your preference), to replace the broken  
Collaboa
  links pointing to dev.modruby.net. I can either do the work on a  
server which
  I provide myself, or on the server currently hosting dev.modruby.net  
if you
  can allow me that kind of access.

* Keep the documentation up to date (both English, and Japanese with  
help
  from a friend).

* Add Rdoc-documentation to the mod_ruby C source.

* Help out with any patches or bugs you might not have time to look at
  yourself.

* Write a comprehensive unit test suite

I also would like to update the libapreq code that I originally  
contributed and that you later bundled with the distribution to a more- 
recent version, as well as add support for request types other than  
GET and POST, but I'd wait until after the above items were completed,  
as they are a bit more crucial to the prospective user.

I'd naturally confirm anything I did with you, but I'd like to at  
least correct the impression people have that it's "dead" or "not  
maintained".

Thanks for your time,
--
Michael Granger <ged <at> FaerieMUD.org>
Rubymage, Architect, Believer
The FaerieMUD Consortium <http://www.FaerieMUD.org/>

ken.guerin | 19 Mar 16:48

OS X & 64-bit #2

I forged ahead and installed the generated library and it worked in spite
of all the warnings.  Perhaps, someone should add a 64-bit clean
configuration?

-Ken

ken.guerin | 19 Mar 14:43

OS X 10.5 & 64-bit

I have a new MacBook Pro running Leopard.  I comes with the Apache 2.2.8
web server installed.  It does not have mod_ruby installed.  I am trying
to build mod_ruby in order to build a new Web application framework based
on Ruby.

(Don't talk to me about Rails. I've used it.  I don't like it.  I would
need to install mod_ruby regardless.)

Anyway, I downloaded 1.2.6 of mod_ruby and built it with the GNU tools
provided by XCode 3.0, that being gcc 4.0.1 etc.

It built w/o errors after running configure.rb --with-apxs and
--with-apr-includes=/usr/include/apr-1 which is where Apple keeps the APR
includes.  However, Apache crashes on startup when this module is loaded.

According to httpd -V, my version of Apache2 is a 64-bit executable.
(Architecture: 64-bit)

Questions:

1.  Does mod_ruby need to be built as a 64-bit bundle in order to run with
a 64-bit Apache2 server?

2.  Does the current (1.2.6) version of mod_ruby support 64-bit operation?

3.  After running configure.rb, the Makefile will build a universal bundle
which supports ppc and i386 32-bit architectures.  When I hand-edit the
Makefile to build with -arch x86_64 -Wconversion, I get a ton of warnings
about 64-bit / 32-bit incompatibilities (thanks to -Wconversion, no
doubt).  Are these warnings important?

Note that I write software for a living and am simply looking for some
guidance.  Any patches I make to get this working, I would freely submit
to the current code maintainer.

Thanks,
Ken

rahul | 3 Mar 04:09
Picon

mod_ruby version compatibilities

Subject: mod_ruby version compatibilities

Hi,
I am integrating mod_ruby with Solaris Apache 2.2 package
Distribution.

I would like to know which versions are guaranteed to be compatible.

ie:
would mod_ruby.1.2.6 be completely compatible with mod_ruby.1.2.5 ?

how about mod_ruby.0.X.Y and 1.X.Y ?

To put it another way, If there is a non-compatible interface change,
which version number would get bumped up? in mod_ruby.A.B.C ?

(The reason for asking this is that the versions that are guaranteed to
be compatible can be added as an upgrade while the version changes that
may cause non-compatible changes may need to be treated differently.)

(By interface I mean any thing a developer may make use of in mod_ruby
while developing modules in mod_ruby. Includes configuration
directives and APIs)

Rahul.

Arnold Daniels | 18 Feb 22:44
Picon

Problems with getting started, part 2

Hi All,

After the last attempt back in November, I have installed up to date 
(and compatible) versions of ruby and rails. Ruby on rail now runs as 
CGI, but I still can't get it to  run with mod_ruby. I've changed the 
dispatch.rb to include the full path for dispatcher. However I get 
"Rails application failed to start properly" as output. The apache error 
log gives the errors pasted below this e-mail. If I would have to guess 
I would say that there are still some compatibility issues. However, a 
simple hello world app processed with mod_ruby, works fine.

I have also seen that I might need to add some configuration to make 
mod_ruby work with Rails. Can some tell me some more about this?

Thanks a lot for any information.

Best regards,
Arnold

PS. I don't see that much activity around mod_ruby (mailinglist, 
releases), nor do I see this being used as a common solution. Is this 
module not really good and there for abandoned or is there some other 
reason? Please give me a reassuring word for choosing mod_ruby.

-------------

Apache 2.0.55
ruby 1.8.6
Rails 2.0.2
mod_ruby 1.2.6

-------------

[Mon Feb 18 22:19:01 2008] [error] mod_ruby: error in ruby
[Mon Feb 18 22:19:01 2008] [error] mod_ruby: 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:157:in 
`file?': Insecure operation - file? (SecurityError)
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:157:in 
`search_for_file'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:155:in 
`each'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:155:in 
`search_for_file'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:246:in 
`load_missing_constant'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in 
`const_missing'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/www/nl/adaniels/rails.hello/public/dispatch.rb:9
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in 
`load'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in 
`load'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in 
`new_constants_in'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in 
`load'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `handler'


Gmane