Upgrade Problem:: Passenger 3.9.1 beta

460 views
Skip to first unread message

Diego Brito

unread,
Dec 6, 2012, 4:48:37 PM12/6/12
to phusion-...@googlegroups.com
Hi,

I ran Passenger 3.0.13 on my CentOS 5.8 and got a issue when I tried to upgrade to Passenger 3.9.1 beta. The error is listed below:

root@morpheus [~]# passenger-install-apache2-module
Welcome to the Phusion Passenger Apache 2 module installer, v3.9.1.beta.

This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.

Here's what you can expect from the installation process:

 1. The Apache 2 module will be installed for you.
 2. You'll learn how to configure Apache.
 3. You'll learn how to deploy a Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.

Press Enter to continue, or Ctrl-C to abort.


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

Checking for required software...

 * GNU C++ compiler... found at /usr/bin/g++
 * Curl development headers with SSL support... found
 * OpenSSL development headers... found
 * Zlib development headers... found
 * Ruby development headers... found
 * OpenSSL support for Ruby... found
 * RubyGems... found
 * Rake... found at /usr/local/rvm/wrappers/ruby-1.9.3-p327/rake
 * rack... found
 * Apache 2... found at /usr/local/apache/bin/httpd
 * Apache 2 development headers... found at /usr/bin/apxs
 * Apache Portable Runtime (APR) development headers... found at /usr/local/apache/bin/apr-1-config
 * Apache Portable Runtime Utility (APU) development headers... found at /usr/local/apache/bin/apu-1-config

--------------------------------------------
Compiling and installing Apache 2 module...
cd /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta
/usr/local/rvm/wrappers/ruby-1.9.3-p327/rake apache2:clean apache2 RELEASE=yes
# /usr/local/rvm/wrappers/ruby-1.9.3-p327/rake apache2:clean apache2 RELEASE=yes
rm -rf libout/common/libboost_oxt.a libout/common/libboost_oxt
rm -f libout/common/libpassenger_common/Logging.o libout/common/libpassenger_common/Utils/SystemTime.o libout/common/libpassenger_common/Utils/StrIntUtils.o libout/common/libpassenger_common/Utils/IOUtils.o libout/common/libpassenger_common/Utils.o
rm -f libout/common/libpassenger_common/Utils/Base64.o libout/common/libpassenger_common/Utils/CachedFileStat.o libout/common/libpassenger_common/ApplicationPool2/Implementation.o libout/common/libpassenger_common/AccountsDatabase.o libout/common/libpassenger_common/AgentsStarter.o libout/common/libpassenger_common/AgentsBase.o libout/common/libpassenger_common/Utils/MD5.o libout/common/libpassenger_common/Utils/fib.o libout/common/libpassenger_common/Utils/jsoncpp.o
rm -f libout/common/libpassenger_common/agents/LoggingAgent/FilterSupport.o
rm -rf libout/common/libpassenger_common
rm -rf agents/PassengerWatchdog agents/PassengerWatchdog.o agents/PassengerWatchdog.dSYM
rm -rf agents/PassengerHelperAgent agents/PassengerHelperAgent.o agents/PassengerHelperAgent.dSYM
rm -rf agents/PassengerLoggingAgent agents/PassengerLoggingAgent.o agents/PassengerLoggingAgent.dSYM
rm -rf agents/SpawnPreparer agents/SpawnPreparer.o agents/SpawnPreparer.dSYM
rm -rf agents/EnvPrinter agents/EnvPrinter.o agents/EnvPrinter.dSYM
rm -rf agents
rm -rf libout/apache2/module_libboost_oxt.a libout/apache2/module_libboost_oxt
rm -f libout/apache2/module_libpassenger_common/Logging.o libout/apache2/module_libpassenger_common/Utils/SystemTime.o libout/apache2/module_libpassenger_common/Utils/StrIntUtils.o libout/apache2/module_libpassenger_common/Utils/IOUtils.o libout/apache2/module_libpassenger_common/Utils.o
rm -f libout/apache2/module_libpassenger_common/Utils/Base64.o libout/apache2/module_libpassenger_common/Utils/CachedFileStat.o libout/apache2/module_libpassenger_common/ApplicationPool2/Implementation.o libout/apache2/module_libpassenger_common/AccountsDatabase.o libout/apache2/module_libpassenger_common/AgentsStarter.o libout/apache2/module_libpassenger_common/AgentsBase.o libout/apache2/module_libpassenger_common/Utils/MD5.o libout/apache2/module_libpassenger_common/Utils/fib.o libout/apache2/module_libpassenger_common/Utils/jsoncpp.o
rm -f libout/apache2/module_libpassenger_common/agents/LoggingAgent/FilterSupport.o
rm -rf libout/apache2/module_libpassenger_common
rm -rf libout/apache2/Configuration.o libout/apache2/Bucket.o libout/apache2/Hooks.o libout/apache2/mod_passenger.o libout/apache2/mod_passenger.so
mkdir -p libout/apache2/module_libpassenger_common
g++ -Iext -Iext/common -Iext/libev -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/local/apache/include -I/usr/local/apache/include -m64 -fPIC -DPIC -I/usr/local/apache/include -D_REENTRANT -I/usr/local/include -DHAS_TR1_UNORDERED_MAP -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -ggdb -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -o libout/apache2/module_libpassenger_common/Logging.o -c ext/common/Logging.cpp
mkdir -p libout/apache2/module_libpassenger_common/Utils
g++ -Iext -Iext/common -Iext/libev -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/local/apache/include -I/usr/local/apache/include -m64 -fPIC -DPIC -I/usr/local/apache/include -D_REENTRANT -I/usr/local/include -DHAS_TR1_UNORDERED_MAP -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -ggdb -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -o libout/apache2/module_libpassenger_common/Utils/SystemTime.o -c ext/common/Utils/SystemTime.cpp
g++ -Iext -Iext/common -Iext/libev -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/local/apache/include -I/usr/local/apache/include -m64 -fPIC -DPIC -I/usr/local/apache/include -D_REENTRANT -I/usr/local/include -DHAS_TR1_UNORDERED_MAP -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -ggdb -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -o libout/apache2/module_libpassenger_common/Utils/StrIntUtils.o -c ext/common/Utils/StrIntUtils.cpp
g++ -Iext -Iext/common -Iext/libev -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/local/apache/include -I/usr/local/apache/include -m64 -fPIC -DPIC -I/usr/local/apache/include -D_REENTRANT -I/usr/local/include -DHAS_TR1_UNORDERED_MAP -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -ggdb -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -o libout/apache2/module_libpassenger_common/Utils/IOUtils.o -c ext/common/Utils/IOUtils.cpp
ext/common/Utils/IOUtils.cpp: In function ‘int Passenger::callAccept4(int, sockaddr*, socklen_t*, int)’:
ext/common/Utils/IOUtils.cpp:186: error: ‘::accept4’ has not been declared
rake aborted!
Command failed with status (1): [g++ -Iext -Iext/common -Iext/libev -fPIC -...]
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta/build/cplusplus_support.rb:31:in `compile_cxx'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta/lib/phusion_passenger/common_library.rb:133:in `block (2 levels) in define_category_tasks'
/usr/local/rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval'
/usr/local/rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => apache2 => libout/apache2/mod_passenger.so => libout/apache2/module_libpassenger_common/Utils/IOUtils.o
(See full trace by running task with --trace)

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

It looks like something went wrong

Please read our Users guide for troubleshooting tips:

   /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta/doc/Users guide Apache.html

If that doesn't help, please use our support facilities at:


We'll do our best to help you.



Someone could help me with this?

Thanks!

Diego Brito

Michaël

unread,
Dec 7, 2012, 2:24:59 AM12/7/12
to phusion-...@googlegroups.com
What's your version of g++?

Michaël Ball




Diego Brito

--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To view this discussion on the web visit https://groups.google.com/d/msg/phusion-passenger/-/58_SrBNXXusJ.
To post to this group, send email to phusion-...@googlegroups.com.
To unsubscribe from this group, send email to phusion-passen...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/phusion-passenger?hl=en.

Diego Brito

unread,
Dec 7, 2012, 9:16:04 AM12/7/12
to phusion-...@googlegroups.com
Hi, Michaël Ball,

root@xxxxxx [~]# g++ -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-52)

I need upgrade that?

Thanks,

Hongli Lai

unread,
Dec 7, 2012, 10:04:21 AM12/7/12
to phusion-...@googlegroups.com
Hi Diego. This problem is caused by the fact that Phusion Passenger
thinks your system has the accept4() system. Well it actually has, but
there is no glibc wrapper for it so compilation still fails. We
currently detect accept4() support by checking whether the system call
number macro is defined but it looks like we need a better
autodetection mechanism. I'll take a look.
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/phusion-passenger/-/58_SrBNXXusJ.
> To post to this group, send email to phusion-...@googlegroups.com.
> To unsubscribe from this group, send email to
> phusion-passen...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/phusion-passenger?hl=en.



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

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

Diego Brito

unread,
Dec 7, 2012, 10:10:27 AM12/7/12
to phusion-...@googlegroups.com
Hi Hongli Lai,

I will wait for your feedback about it. Thanks! 

Hongli Lai

unread,
Dec 8, 2012, 5:43:50 AM12/8/12
to phusion-...@googlegroups.com
The problem has been fixed in git master.
> https://groups.google.com/d/msg/phusion-passenger/-/e658TU86bK8J.

Diego Brito

unread,
Dec 16, 2012, 1:04:54 AM12/16/12
to phusion-...@googlegroups.com
Hi Hongli,

I applied the changes at https://github.com/FooBarWidget/passenger/commit/89e45d7defe687a639f625a5411a20a8dad99055 but this don't fixed the problem. I continue receiving the same error. Can you help me?

Thanks,

Hongli Lai

unread,
Jan 10, 2013, 6:35:24 AM1/10/13
to phusion-...@googlegroups.com
On Sun, Dec 16, 2012 at 7:04 AM, Diego Brito <diego...@d2b.com.br> wrote:
> Hi Hongli,
>
> I applied the changes at
> https://github.com/FooBarWidget/passenger/commit/89e45d7defe687a639f625a5411a20a8dad99055
> but this don't fixed the problem. I continue receiving the same error. Can
> you help me?

That commit was not correct because it contained a typo. It was fixed
about an hour later in commit
54ea0c88b04a5dc701165de254950c4376862e3d.

Diego Brito

unread,
Jan 11, 2013, 6:22:48 PM1/11/13
to phusion-...@googlegroups.com
Hi Hongli,

Now the installation worked fine, thanks! But I can't setup my server to work with two ruby versions. How can I do that?

I tryed insert the code below inside two different Vhosts but this strategy doesn't work:

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta/libout/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p327/ruby

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.8.7-p358@global/gems/passenger-3.0.13/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.8.7-p358@global/gems/passenger-3.0.13
PassengerRuby /usr/local/rvm/wrappers/ruby-1.8.7-p358@global/ruby

Can you teach what I need to do?

Thank you very much,

Diego Brito

Hongli Lai

unread,
Jan 11, 2013, 6:34:12 PM1/11/13
to phusion-...@googlegroups.com
You can customize PassengerRuby per VirtualHost now.

On Sat, Jan 12, 2013 at 12:22 AM, Diego Brito <diego...@d2b.com.br> wrote:
Hi Hongli,

Now the installation worked fine, thanks! But I can't setup my server to work with two ruby versions. How can I do that?

I tryed insert the code below inside two different Vhosts but this strategy doesn't work:

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta/libout/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p327/ruby

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.8.7-p358@global/gems/passenger-3.0.13/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.8.7-p358@global/gems/passenger-3.0.13
PassengerRuby /usr/local/rvm/wrappers/ruby-1.8.7-p358@global/ruby

Can you teach what I need to do?

Diego Brito

unread,
Jan 11, 2013, 8:59:09 PM1/11/13
to phusion-...@googlegroups.com
Ok, but how can I do that? I need put PassengerRoot and LoadModule as global configuration and PassengerRuby per Vhost? I ask because LoadModule and PassengerRoot calls a specific version of Ruby, so I get confused about this. Could you help me with this setup?

Thanks!

Hongli Lai

unread,
Jan 12, 2013, 5:07:50 AM1/12/13
to phusion-...@googlegroups.com
On Sat, Jan 12, 2013 at 2:59 AM, Diego Brito <diego...@d2b.com.br> wrote:
Ok, but how can I do that? I need put PassengerRoot and LoadModule as global configuration and PassengerRuby per Vhost?

Yes. Or you can set PassengerRuby globally, and then override per vhost where necessary.

 
I ask because LoadModule and PassengerRoot calls a specific version of Ruby, so I get confused about this.

That is not a problem. Phusion Passenger is written such that, even when it's installed by one specific Ruby version's RubyGems, it can be used in combination with any other Ruby interpreter on your system.

Diego Brito

unread,
Jan 12, 2013, 2:29:43 PM1/12/13
to phusion-...@googlegroups.com
Howdy,

I set a global configuration with passenger 3.0.13 with ruby 1.8.7 then I override a vhost with this line "PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p327/ruby". But, when I see the environment report at New Relic Monitoring Tool, this show me that ruby 1.8.7 is my ruby version. So, maybe this adjust isn't work? It is normal? I need to install gems in gemset of Ruby 1.9.3 or not? Because, this application doesn't crash and I think that is using global gemset of ruby 1.8.7 and also ruby 1.8.7 version.

Diego Brito

unread,
Jan 12, 2013, 2:56:36 PM1/12/13
to phusion-...@googlegroups.com
I did the inverse as well. So, when the server is set with passenger 3.9.1 the application with vhost override doesn't work, as below:

Global configuration of Pasenger:
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta/libout/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p327/ruby

I put this line in a specific Vhost at httpd.conf file: PassengerRuby /usr/local/rvm/wrappers/ruby-1.8.7-p358@global/ruby

I get a passenger error with this weird values: 

Ruby interpreter command
/usr/local/rvm/wrappers/ruby-1.9.3-p327/ruby

General Ruby interpreter information
RUBY_VERSION = 1.9.3
RUBY_PLATFORM = x86_64-linux
RUBY_ENGINE = ruby
RubyGems version = 1.8.24

Seems to me that passenger can't handle two ruby versions as expected. There is something wrong with my configuration above?

My environment is:

CENTOS 5.8 x86_64 xenpv
WHM 11.34.1
rvm_version = 1.17.2 (stable)
Rails Version: 3.0.0
WebServer: Apache
 
Thanks Again!

Hongli Lai

unread,
Jan 12, 2013, 3:31:07 PM1/12/13
to phusion-...@googlegroups.com
Can you paste your configuration?

--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To view this discussion on the web visit https://groups.google.com/d/msg/phusion-passenger/-/pdWFPtFf-dcJ.

To post to this group, send email to phusion-...@googlegroups.com.
To unsubscribe from this group, send email to phusion-passen...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/phusion-passenger?hl=en.

Diego Brito

unread,
Jan 12, 2013, 4:23:24 PM1/12/13
to phusion-...@googlegroups.com
I sent on my previous email:

Global configuration of Pasenger:
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta/libout/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p327/ruby

I put this line in a specific Vhost at httpd.conf file: PassengerRuby /usr/local/rvm/wrappers/ruby-1.8.7-p358@global/ruby

My environment is:

CENTOS 5.8 x86_64 xenpv
WHM 11.34.1
rvm_version = 1.17.2 (stable)
Rails Version: 3.0.0
WebServer: Apache


Hongli Lai

unread,
Jan 13, 2013, 6:00:24 AM1/13/13
to phusion-...@googlegroups.com
I mean your full config file. The whole thing.

On Sat, Jan 12, 2013 at 10:23 PM, Diego Brito <diego...@d2b.com.br> wrote:
>
> I sent on my previous email:
>
> Global configuration of Pasenger:
> LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta/libout/apache2/mod_passenger.so
> PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta
> PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p327/ruby
>
> I put this line in a specific Vhost at httpd.conf file: PassengerRuby /usr/local/rvm/wrappers/ruby-1.8.7-p358@global/ruby
>
> My environment is:
>
> CENTOS 5.8 x86_64 xenpv
> WHM 11.34.1
> rvm_version = 1.17.2 (stable)
> Rails Version: 3.0.0
> WebServer: Apache


Hongli Lai

unread,
Jan 13, 2013, 6:00:54 AM1/13/13
to phusion-...@googlegroups.com
On Sun, Jan 13, 2013 at 1:00 AM, Aurélien Malisart
<aurelien...@gmail.com> wrote:
> Hello,
>
> I'm not sure my problem is related, but I think so. If not tell me and I'll
> recreate a separate post ;-)
>
> I cannot get Passenger Standalone (3.9.1.beta) to compile on Ubuntu 12.10
> with g++ 4.6.3
> Here is the full stacktrace I get :
> http://pastie.org/private/pnu3pp9gotijdufxhbu1a

It's not related. This is a known problem in beta 1, and has already
been fixed in git master. The fix will be part of beta 2.

Diego Brito

unread,
Jan 13, 2013, 4:15:12 PM1/13/13
to phusion-...@googlegroups.com
Hi Hongli,

I've checked all configurations files and fix a typo. Now I'm running applications with different ruby versions through the magic of passenger. Congratulations for this important step, especially for who hosts a lot of ruby on rails applications and also thanks for you patient support.

See ya!

Aurélien Malisart

unread,
Jan 18, 2013, 9:39:57 AM1/18/13
to phusion-...@googlegroups.com
Hello again,

I just tried with a fresh clone the master branch and it fails to build too with http://pastie.org/private/ekkrc4xybuzk1p9fpwj54a
Any idea ?

Thanks,

Aurels

On Friday, 18 January 2013 14:31:12 UTC+1, Aurélien Malisart wrote:


On Sunday, 13 January 2013 12:00:54 UTC+1, Hongli Lai wrote:
On Sun, Jan 13, 2013 at 1:00 AM, Aurélien Malisart
<aurelien...@gmail.com> wrote:
> Hello,
>
> I'm not sure my problem is related, but I think so.  If not tell me and I'll
> recreate a separate post ;-)
>
> I cannot get Passenger Standalone (3.9.1.beta) to compile on Ubuntu 12.10
> with g++ 4.6.3
> Here is the full stacktrace I get :
> http://pastie.org/private/pnu3pp9gotijdufxhbu1a

It's not related. This is a known problem in beta 1, and has already
been fixed in git master. The fix will be part of beta 2.

OK I'll try with the edge version ;-)

Hongli Lai

unread,
Jan 18, 2013, 10:09:49 AM1/18/13
to phusion-...@googlegroups.com
On Fri, Jan 18, 2013 at 3:39 PM, Aurélien Malisart
<aurelien...@gmail.com> wrote:
> Hello again,
>
> I just tried with a fresh clone the master branch and it fails to build too
> with http://pastie.org/private/ekkrc4xybuzk1p9fpwj54a
> Any idea ?

It's a compiler problem. See the output:

g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions

This could be an indication of bad RAM.

Aurélien Malisart

unread,
Jan 18, 2013, 11:42:50 AM1/18/13
to phusion-...@googlegroups.com
You're right. GCC is up to date.  I have 2 Go of RAM on that server, how much would Passenger need ??

Hongli Lai

unread,
Jan 18, 2013, 11:56:59 AM1/18/13
to phusion-...@googlegroups.com
It's not that you don't have enough RAM. The compiler is crashing
while compiling Phusion Passenger, which would either indicate that
the compiler has a bug, or your RAM is corrupted. In case of the
latter, there are two possibilities:
- Your hardware RAM is broken. You need to replace your hardware.
- A bit in the RAM has been flipped due to cosmic radiation.
Restarting your computer should solve this.
Have you experienced other programs randomly crashing that machine?

André Camargo

unread,
Jan 18, 2013, 12:08:21 PM1/18/13
to phusion-...@googlegroups.com
Hello!

Talking about ubuntu, I'm still not able to compile passenger standalone, as you can see at http://pastie.org/5720424

Important: I can't compile on 12.10 and 13.04 alpha neither.... :/
--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.

Aurélien Malisart

unread,
Jan 18, 2013, 1:37:27 PM1/18/13
to phusion-...@googlegroups.com


It's not that you don't have enough RAM. The compiler is crashing 
while compiling Phusion Passenger, which would either indicate that
the compiler has a bug, or your RAM is corrupted.

Mmmm ok I see.
 
In case of the
latter, there are two possibilities:
- Your hardware RAM is broken. You need to replace your hardware.
- A bit in the RAM has been flipped due to cosmic radiation.
Restarting your computer should solve this.

Strange, I can try to restart it my I'll have to wait tomorrow at night because it's used in production !
 
Have you experienced other programs randomly crashing that machine?

Not at all, I updated and restarted it one week ago, so its uptime is pretty short.

Thanks for your help ;-)

Aurélien Malisart

unread,
Jan 18, 2013, 1:38:56 PM1/18/13
to phusion-...@googlegroups.com, an...@pelotascenter.com.br
Hey,

On Friday, 18 January 2013 18:08:21 UTC+1, André Camargo wrote:
Talking about ubuntu, I'm still not able to compile passenger standalone, as you can see at http://pastie.org/5720424

Important: I can't compile on 12.10 and 13.04 alpha neither.... :/

Mine is a 12.04 LTS.

Hongli Lai

unread,
Jan 18, 2013, 1:49:54 PM1/18/13
to phusion-...@googlegroups.com
On Fri, Jan 18, 2013 at 6:08 PM, André Camargo
<an...@pelotascenter.com.br> wrote:
> Hello!
>
> Talking about ubuntu, I'm still not able to compile passenger standalone, as
> you can see at http://pastie.org/5720424
>
> Important: I can't compile on 12.10 and 13.04 alpha neither.... :/

Do you have the latest git master version? That problem should already
have been solved a while ago.

André Camargo

unread,
Jan 18, 2013, 2:02:14 PM1/18/13
to phusion-...@googlegroups.com
Yes, I have just pulled the latest git master version. Same problem...

Hongli Lai

unread,
Jan 18, 2013, 2:49:26 PM1/18/13
to phusion-...@googlegroups.com
On Fri, Jan 18, 2013 at 8:02 PM, André Camargo
<an...@pelotascenter.com.br> wrote:
> Yes, I have just pulled the latest git master version. Same problem...

Did you turn it into a gem and installed that? I see that your
installation is using
/home/andre/.rvm/gems/ree-1.8.7-2012.02/gems/passenger-3.9.2.beta so
it might still be using the old code.

André Camargo

unread,
Jan 18, 2013, 2:54:02 PM1/18/13
to phusion-...@googlegroups.com
Yes, I ran rake package, gem install pkg/passenger...., cd ~/<project dir>, passenger standalone

Is there other way?

Hongli Lai

unread,
Jan 18, 2013, 3:01:33 PM1/18/13
to phusion-...@googlegroups.com
On Fri, Jan 18, 2013 at 8:54 PM, André Camargo
<an...@pelotascenter.com.br> wrote:
> Yes, I ran rake package, gem install pkg/passenger...., cd ~/<project dir>,
> passenger standalone
>
> Is there other way?

Maybe you need to clear the compilation cache. Delete ~/.passenger,
then try again.

André Camargo

unread,
Jan 18, 2013, 3:12:06 PM1/18/13
to phusion-...@googlegroups.com
I did what you said, same error. :/

Hongli Lai

unread,
Jan 20, 2013, 1:29:19 PM1/20/13
to phusion-...@googlegroups.com
I tried to reproduce the problem in many ways, but can't. Do you mind
giving me ssh access to your machine to debug the problem?

On Fri, Jan 18, 2013 at 9:12 PM, André Camargo
<an...@pelotascenter.com.br> wrote:
> I did what you said, same error. :/
>
> andré ribeiro camargo

--
Reply all
Reply to author
Forward
0 new messages