Seg fault when running diaspora...

53 views
Skip to first unread message

Nate

unread,
Aug 28, 2011, 4:38:16 PM8/28/11
to diaspora-dev
After having been away from d* for a bit, i'm giving my own pod
another shot. Just to see where the project's gone in the past few
months.


I've followed the directions on joindiaspora.com to get my pod setup,
it's running on FC14 i386. I'm at the point where i can launch the
server, but once i access the page (http://pod.address:3000) i get the
following error in the console.

/usr/lib/ruby/gems/1.8/gems/POpen4-0.1.4/lib/popen4.rb:81: [BUG]
Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-linux]

./script/server: line 179: 30067 Aborted (core dumped)
bundle exec thin start $args


And then of course thin's dead.

Anything I can do to debug?

Thanks.

Sarah Mei

unread,
Aug 28, 2011, 5:30:47 PM8/28/11
to diaspo...@googlegroups.com
A core dump in ruby almost always means an architecture mismatch of
some sort, either in ruby itself, or in one of its gems.

The first thing I'd try is deleting all your gems and reinstalling
them. It looks like you aren't using rvm, so first do:
gem list --local
and then:
sudo gem uninstall gemname
for each gem in the list.

Then do a bundle install inside the diaspora directory to reinstall the gems.

Nate

unread,
Aug 28, 2011, 9:34:42 PM8/28/11
to diaspora-dev
Ok, i did a:

for i in `gem list --local | awk '{print $1}'`;do gem uninstall -a -q
$i;done;

Turns out, i had multiple versions of a number of gems installed. I
wiped them all, then gem installed bundler, and now i'm re-running
bundle install.
We'll see how it goes.

Nate

unread,
Aug 28, 2011, 9:43:52 PM8/28/11
to diaspora-dev
Same issue.

/usr/lib/ruby/gems/1.8/gems/POpen4-0.1.4/lib/popen4.rb:81: [BUG]
Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-linux]

./script/server: line 179: 15168 Aborted (core dumped)
bundle exec thin start $args

Happened as soon as i hit the login page.

Sarah Mei

unread,
Aug 29, 2011, 9:49:07 AM8/29/11
to diaspo...@googlegroups.com
The next thing I'd try is to install rvm (http://rvm.beginrescueend.com) and then install ree on top of that. Ree is a version of ruby 1.8.7 that has fewer compatibility issues than the standard. Using rvm lets us sidestep any issues with the way your OS handles its system ruby.

Btw if you'd like realtime help, you can come in to the #diaspora irc channel.  
http://webchat.freenode.net/?channels=diaspora
> --
> You received this message because you are subscribed to the Google Groups "diaspora-dev" group.
> To post to this group, send email to diaspo...@googlegroups.com.
> To unsubscribe from this group, send email to diaspora-dev...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/diaspora-dev?hl=en.
>
>

Jeff Kloythanomsup

unread,
Sep 2, 2011, 1:47:10 AM9/2/11
to diaspo...@googlegroups.com
I'm having the same issue. Running RVM with Ruby 1.8.7 installed and REE installed as well.
> cd /diaspora
> /diaspora/script/server
/usr/lib/ruby/1.8/active_support/core_ext/class/attribute_accessors.rb:30:in `cattr_writer': undefined method `extract_options!' for [:pod_uri]:Array (NoMethodError)
from /usr/lib/ruby/1.8/active_support/core_ext/class/attribute_accessors.rb:52:in `cattr_accessor'
from /diaspora/app/models/app_config.rb:123
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./script/get_config.rb:36
/diaspora/script/server: line 46: 1: Missing port
/usr/lib/ruby/1.8/active_support/core_ext/class/attribute_accessors.rb:30:in `cattr_writer': undefined method `extract_options!' for [:pod_uri]:Array (NoMethodError)
from /usr/lib/ruby/1.8/active_support/core_ext/class/attribute_accessors.rb:52:in `cattr_accessor'
from /diaspora/app/models/app_config.rb:123
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./script/get_config.rb:36
DEPRECATION WARNING: require "activerecord" is deprecated and will be removed in Rails 3. Use require "active_record" instead. (called from /usr/lib/ruby/1.8/activerecord.rb:2)
/diaspora/script/server: line 179: 3255 Segmentation fault bundle exec thin start $args

Sarah Mei

unread,
Sep 2, 2011, 11:17:34 AM9/2/11
to diaspo...@googlegroups.com
It looks like it is using the system ruby (/usr/lib/ruby) instead of what you have installed under rvm. Try doing a:
source .rvmrc
in the diaspora directory before running script/server.
> --
> You received this message because you are subscribed to the Google Groups "diaspora-dev" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/diaspora-dev/-/n_Yq89Rh28wJ.

> To post to this group, send email to diaspo...@googlegroups.com.
> To unsubscribe from this group, send email to diaspora-dev...@googlegroups.com <diaspora-dev%2Bunsu...@googlegroups.com>.

Nate

unread,
Sep 2, 2011, 2:51:09 PM9/2/11
to diaspora-dev
As a note. I did not resolve this issue. I built my pod on a
different, cleaner, system.

On Sep 2, 11:17 am, Sarah Mei <sa...@joindiaspora.com> wrote:
> It looks like it is using the system ruby (/usr/lib/ruby) instead of what
> you have installed under rvm. Try doing a:
> source .rvmrc
> in the diaspora directory before running script/server.
>
Reply all
Reply to author
Forward
0 new messages