Installation on CentOS

215 views
Skip to first unread message

Blaine

unread,
Mar 5, 2012, 10:26:51 PM3/5/12
to diaspora-dev
So this is my 3rd installation of a pod (switching machines/finally
putting it on a dedicated host instead of a home box) and the VPN came
with centos. "o.k, no problem" i thought. I have used R.H distro's
before, shouldn't be too hard? It wasn't to hard to install ruby or
even most of the gem's. I even got a green light from bundler. But
when I run ./script/server from diaspora, i get the following error:

Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]

I then tried to install oauth2-provider version 0.0.19. I get the same
error and even when it says it's successfully installed, i have no
luck. I have racked my brain over this and I cant figure it out. Any
suggestions? Log below of last time I tried to use ./script/server and
trying to manually install oauth2-provider.





[diaspora@minecraft diaspora]$ gem install oauth2-provider -v '0.0.19'
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb600e11c> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb600e11c> 2.0.0.rc.6"]
Successfully installed oauth2-provider-0.0.19
1 gem installed
Installing ri documentation for oauth2-provider-0.0.19...
Installing RDoc documentation for oauth2-provider-0.0.19...
[diaspora@minecraft diaspora]$ ./script/server
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Invalid gemspec in [/home/diaspora/.ruby/1.8/specifications/oauth2-
provider-0.0.19.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
Could not find oauth2-provider-0.0.19 in any of the sources
[diaspora@minecraft diaspora]$ Could not find oauth2-provider-0.0.19
in any of the sources

[diaspora@minecraft diaspora]$

Nate

unread,
Mar 5, 2012, 10:30:48 PM3/5/12
to diaspo...@googlegroups.com

I'm an rhce, and for obvious reasons, a red hat/centos fan....

I run my pod on ubuntu 11.  It just works better.

--
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.

Sarah Mei

unread,
Mar 5, 2012, 10:51:28 PM3/5/12
to diaspo...@googlegroups.com
I think this group collectively has the most experience installing on Ubuntu, out of all the Linux flavors.  If you want to keep centos, try upgrading rubygems.

gem update --system

Blaine

unread,
Mar 5, 2012, 10:51:11 PM3/5/12
to diaspo...@googlegroups.com
I'll see if i can just switch that that then. Thanks!

Blaine

unread,
Mar 5, 2012, 10:56:12 PM3/5/12
to diaspo...@googlegroups.com
Thanks for the suggestion Sarah, but that was my first guest as well but it didn't do anything. I have had the most success before this on Ubuntu as well, I was only using CentOS because my friend has a (mostly unused) dedicated box they use to run several minecraft servers and a website (less then 50% of ram,CPU and hardrive space used) and i would be able to use it for free. Though at this point it seams more hassle then anything. Iv been looking into VPS the last few days and i was wondering- how much ram would it take to run a minimal install of diaspora? If someone could just give me a rough estimate it would be greatly appreciated.

Rekado

unread,
Mar 6, 2012, 12:02:56 AM3/6/12
to diaspo...@googlegroups.com
384MB worked barely for me. Running my pod (and a bunch of other stuff) now with 512MB RAM VPS.



_____
(Sent on the move.)


Florian Staudacher

unread,
Mar 6, 2012, 11:00:23 AM3/6/12
to diaspo...@googlegroups.com
On 03/06/2012 04:26 AM, Blaine wrote:
> So this is my 3rd installation of a pod (switching
> machines/finally putting it on a dedicated host instead of a home
> box) and the VPN came with centos. "o.k, no problem" i thought. I
> have used R.H distro's before, shouldn't be too hard? It wasn't to
> hard to install ruby or even most of the gem's. I even got a green
> light from bundler. But when I run ./script/server from diaspora, i
> get the following error:
>
> Invalid gemspec in
> [/home/diaspora/.ruby/1.8/specifications/oauth2-
> provider-0.0.19.gemspec]: Illformed requirement
> ["#<YAML::Syck::DefaultKey:0xb6926efc> 2.0.0.rc.6"]
>
> I then tried to install oauth2-provider version 0.0.19. I get the
> same error and even when it says it's successfully installed, i
> have no luck. I have racked my brain over this and I cant figure it
> out. Any suggestions? Log below of last time I tried to use
> ./script/server and trying to manually install oauth2-provider.

I think you should use ruby 1.9.2
Also, RVM really helps with all the ruby/gem stuff.

(I am running my server on CentOS 6.2 with RVM on ruby 1.9.2)

Blaine

unread,
Mar 6, 2012, 11:05:48 AM3/6/12
to diaspo...@googlegroups.com
I did try running it on 1.9.2 with rvm once before (iv tried installing on centos 2-3 times at the time i wrote this post) and to no avail. I did just check the build status of the git repo ( http://travis-ci.org/#!/diaspora/diaspora ) and it is currently not working, could that be one of my problems? Maybe the file's for ruby are calling for the wrong gem's/in the wrong places? (truth be told im a total noob at git) Would anyone be able to tell me how to pull from git an earlier patch? Like maybe 1227?

Blaine

unread,
Mar 6, 2012, 6:54:51 PM3/6/12
to diaspo...@googlegroups.com
Alright, I just wanted to say thanks, and yes it was due to the version of diaspora. I used the git --restart <cashe> comamnd to get it back to a working version. (writing this out so anyone else with this error knows) But because i installed using the --without test heroku, oink wasn't installed causing a rake abort. I'm goign to try re-installing everything on a fresh slate and see how it goes. I love using a vpn.

Ricardo Wurmus

unread,
Mar 6, 2012, 7:01:56 PM3/6/12
to diaspo...@googlegroups.com
Oh, cool. To get the latest version you need to simply pull from master:

git pull origin master

It's 8 am here in China and I work from home today. If you still need
my help, just let me know. It might be easier for me to check on this
today as I have easier access to my own server from home.

Blaine

unread,
Mar 6, 2012, 7:05:28 PM3/6/12
to diaspo...@googlegroups.com
I actually had to pull an older version, but i was able to figure it out thankyou :). The only issue i have now is Oink causing rack to stop during ./script/server so i'm going to install it all over again. Is it okay if i send you an email in the next 1-2 hours if i run into any more trouble with oink? Thanks so much!

Ricardo Wurmus

unread,
Mar 6, 2012, 7:09:29 PM3/6/12
to diaspo...@googlegroups.com
I don't know oink, to be honest, but sure, you can send me an email if
you get in trouble.
Good luck!

Blaine

unread,
Mar 6, 2012, 11:29:42 PM3/6/12
to diaspo...@googlegroups.com
Hey ricardo, i only really have one question left. I was able to figure it all out after using bundle install without --test heroku and got all the SSL information set up (self signed at the minute). But for some reason it's not recognizing where my diaspora public folder is (currently at /diaspora/public) . It was created during root (i know you're not supposed to-i will fix later on i want to get it all running at the moment) 

For document root i have it as follows in httpd.conf
"DomunetRoot /diaspora/public/"

Apache is then saying their is no file or directory, any suggestions?

Olivier

unread,
Mar 7, 2012, 2:32:25 AM3/7/12
to diaspora-dev
Hello,

On 7 mar, 05:29, Blaine <burw...@gmail.com> wrote:
[...]
> For document root i have it as follows in httpd.conf
> "DomunetRoot /diaspora/public/"
>
> Apache is then saying their is no file or directory, any suggestions?

Should rather be something like
DocumentRoot /home/diaspora/public

O.

Ricardo Wurmus

unread,
Mar 7, 2012, 5:20:30 AM3/7/12
to diaspo...@googlegroups.com
Are you using passenger? Apache doesn't know what to do with rails, it
can only proxy to an application server, unless of course you are
using passenger.

On my pod I use nginx, but at work I host all rails applications with
passenger and Apache.

If you are starting Diaspora with script/server (which I do), then you
should only instruct Apache to proxy to the server application by
passing requests to the local default port 3000.

Blaine

unread,
Mar 7, 2012, 11:26:58 AM3/7/12
to diaspo...@googlegroups.com
How could I instruct apache to proxy to the server application? I'm quite a noob at all this.

Blaine

unread,
Mar 7, 2012, 11:36:41 AM3/7/12
to diaspo...@googlegroups.com
Er-nevermind.
Reply all
Reply to author
Forward
0 new messages