Page 1 of 1

Amahi + Fedora 12 + NoMethodError at /

Posted: Mon Apr 05, 2010 8:28 pm
by xski
If this is the wrong spot to post, sorry and please redirect me ^_^

Basically I did a fresh install of Fedora 12, following the setup instructions on the amahi login page..
Installed fine no issues, went to run the installer desktop icon, and it didnt find the page. (Page not found)

Went to troubleshoot did what was there, weirdly couldnt find any HDA log.. but restarted the amahi service
and now i have a giant page full of errors about ruby.

EG

# /usr/lib/ruby/1.8/webrick/httpserver.rb in service
# /usr/lib/ruby/1.8/webrick/server.rb in start_thread

Image

Tried googling the errors didnt get very far :S , anywho if you could point me in the right direction or any help at all would be greatly apreciated!

Thanks


Edit: Im quitting drinking! I did the um.. terminal hda-install <code> that worked fine! So then i reinstalled um.. Fedora + Amahi and now the problems gone.. Weird!

Re: Amahi + Fedora 12 + NoMethodError at /

Posted: Mon Apr 05, 2010 11:56 pm
by cpg
this part does depend on an external package (sinatra) which gets downloaded and installed ... and it can some times be hard to install if the networking is spotty.

glad you sorted it out!

Re: Amahi + Fedora 12 + NoMethodError at /

Posted: Wed Apr 07, 2010 9:34 pm
by Deviyl
Would be awesome if you could share how exactly you fixed this. I'm having the same issue.

The teminal hda-install just says:

Code: Select all

hda-install <code> hda-install is deprecated. Please run the (new!) web-based amahi-installer and a web browser to install. Running amahi-installer now ... Starting the Amahi web-based installer (this may take a while) ... Access it at this URL (Shift-Control-Click on the link): http://localhost:2000 For help: - visit http://talk.amahi.org for live community help - look for errors at the bottom of /root/hda-install.log - paste any errors in http://paste.amahi.org/ - if you think it's a bug, file a bug in http://bugs.amahi.org/

Edit: Got it working with:

Code: Select all

gem uninstall -v=1.0 sinatra service amahi-installer restart
Thanks cpg. =)

Re: Amahi + Fedora 12 + NoMethodError at /

Posted: Thu Jul 29, 2010 11:21 pm
by geekraver
Just done a fresh install myself. Had exactly the same problem (plus Fedora just booted to a blank screen on my ATI PCI-e graphics card and I had to resort to the onboard video).

Unfortunately the suggestion here about uninstalling sinatra 1.0 did not work for me. When I try restarting the amahi installer service it takes a couple of minutes before I see Ok, but then the Firefox page still won't load - no longer getting the Ruby error, just FF not connecting to the port.

There is no /root/hda-install.log file at all.

I'm starting to wish I had make a backup of my WHS system disk before I flattened it for this!

Re: Amahi + Fedora 12 + NoMethodError at /

Posted: Thu Jul 29, 2010 11:24 pm
by geekraver
BTW this is what I see each time I try restart the installer service:



[root@server ~]# service amahi-installer restart
Stopping amahi-installer: [ OK ]
Starting amahi-installer: WARNING: File '/usr/lib/ruby/gems/1.8/specifications/sinatra-0.9.4.gemspec' does not evaluate to a gem specification
WARNING: File '/usr/lib/ruby/gems/1.8/specifications/sinatra-0.9.4.gemspec' does not evaluate to a gem specification
WARNING: File '/usr/lib/ruby/gems/1.8/specifications/sinatra-0.9.4.gemspec' does not evaluate to a gem specification
WARNING: File '/usr/lib/ruby/gems/1.8/specifications/sinatra-0.9.4.gemspec' does not evaluate to a gem specification

[ OK ]

Re: Amahi + Fedora 12 + NoMethodError at /

Posted: Fri Jul 30, 2010 9:45 am
by geekraver
I managed to get a bit further. It seems sinatra 0.9.4 is no longer in existence, and 1.0 is incompatible with Amahi installer. Installing 0.9.5 got me further.

Now the installer service is running but when I load the web page I get a display that says:

"Install Code"

Then in faint grey letters:

"This HDA's install code"

That's all apart from a footer on the page. There is nothing to click, or interact with. If I reload the page I get a page load error again so the installer seems to be crashing. Indeed, if I restart it, I get:

Stopping amahi-installer: [FAILED]
Starting amahi-installer: [ OK ]

Then the same cycle repeats itself.

Re: Amahi + Fedora 12 + NoMethodError at /

Posted: Fri Jul 30, 2010 7:10 pm
by geekraver
Ah, it seems the dependency on sinatra is very fragile.

I managed to get and install a version of sinatra that works from here:

http://rpm.pbone.net/index.php3/stat/4/ ... 6.rpm.html