Error on startup

142 views
Skip to first unread message

Raiko

unread,
Sep 2, 2009, 1:17:16 AM9/2/09
to Phusion Passenger Discussions
Hello,

I get the following error when I start an app with Passenger.

uninitialized constant PhusionPassenger::Utils::PseudoIO::StringIO

It's likely that it's just me, but I want to see if anyone else has
gotten that.


I'm on Snow Leopard, Ruby 1.9.1, and Passenger 2.2.5

Hongli Lai

unread,
Sep 2, 2009, 3:12:43 AM9/2/09
to phusion-...@googlegroups.com

It looks like StringIO isn't loaded along with the other dependencies
on Ruby 1.9.1.

Try this:
Edit lib/phusion_passenger/utils.rb.
Insert
require 'stringio'
at the top.

Then restart Apache.

--
Phusion | The Computer Science Company

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

Raiko

unread,
Sep 2, 2009, 8:35:07 AM9/2/09
to Phusion Passenger Discussions
I believe it has something to do with me using RVM. After I did that,
it complained about not having another gem, which I do have installed.

On Sep 2, 2:12 am, Hongli Lai <hon...@phusion.nl> wrote:
> On Wed, Sep 2, 2009 at 7:17 AM, Raiko<raikomi...@gmail.com> wrote:
>
> > Hello,
>
> > I get the following error when I start an app with Passenger.
>
> > uninitialized constant PhusionPassenger::Utils::PseudoIO::StringIO
>
> > It's likely that it's just me, but I want to see if anyone else has
> > gotten that.
>
> > I'm on Snow Leopard, Ruby 1.9.1, and Passenger 2.2.5
>
> It looks like StringIO isn't loaded along with the other dependencies
> on Ruby 1.9.1.
>
> Try this:
> Edit lib/phusion_passenger/utils.rb.
> Insert
>   require 'stringio'
> at the top.
>
> Then restart Apache.
>
> --
> Phusion | The Computer Science Company
>
> Web:http://www.phusion.nl/
> E-mail: i...@phusion.nl

Luca Guidi

unread,
Sep 3, 2009, 5:11:04 AM9/3/09
to Phusion Passenger Discussions
I had the same problem,
I'm still on leopard, ruby 1.9.1pl129, and passenger 2.2.5, just added
that require and it works now.

Thanks,
Luca
--
http://lucaguidi.com
http://twitter.com/jodosha

Raiko

unread,
Sep 6, 2009, 10:13:38 PM9/6/09
to Phusion Passenger Discussions
I just wanted to say I don't get this error when loaded up a Rails
app. The original error came from loading up a Sinatra app.

sant0sk1

unread,
Sep 14, 2009, 11:43:38 AM9/14/09
to Phusion Passenger Discussions
> Try this:
> Edit lib/phusion_passenger/utils.rb.
> Insert
>   require 'stringio'
> at the top.
>
> Then restart Apache.

This worked for me on Debian 5, Ruby 1.9.1, Passenger 2.2.5.

Wayne E. Seguin

unread,
Oct 27, 2009, 9:30:58 PM10/27/09
to Phusion Passenger Discussions
On Sep 6, 10:13 pm, Raiko <raikomi...@gmail.com> wrote:
> I just wanted to say I don't get this error when loaded up a Rails
> app. The original error came from loading up a Sinatra app.

Raiko,

Did you ever get this sorted?

~Wayne
Reply all
Reply to author
Forward
0 new messages