Application Error

sven86
Posts: 9
Joined: Sun Apr 29, 2012 7:10 pm

Application Error

Postby sven86 » Sun Apr 29, 2012 7:15 pm

Hi, I am running Amahi on an HP Mediasmart EX475 just today and when I try to login as admin, it takes a long while, then it shows this on the screen:

Application Error

The application has caused an error. You will be forwarded shortly.


After a few seconds I see the Debug section appearing, and it shows this:

Code: Select all

passenger (3.0.0) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request' passenger (3.0.0) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler' passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send' passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application' passenger (3.0.0) lib/phusion_passenger/utils.rb:479:in `safe_fork' passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in `__send__' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:180:in `start' passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application' passenger (3.0.0) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application' passenger (3.0.0) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize' passenger (3.0.0) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in `__send__' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.0) helper-scripts/passenger-spawn-server:99 Rendering /var/hda/platform/html/public/500.html (500 Internal Server Error) Processing SetupController#index (for 192.168.1.7 at 2012-04-29 22:07:37) [GET] Parameters: {"action"=>"index", "controller"=>"setup", "tab"=>"debug"} Redirected to http://192.168.1.30/user_sessions/new Filter chain halted as [:admin_required] rendered_or_redirected. Completed in 66ms (DB: 45) | 302 Found [http://192.168.1.30/setup?tab=debug] Processing UserSessionsController#new (for 192.168.1.7 at 2012-04-29 22:07:37) [GET] Parameters: {"action"=>"new", "controller"=>"user_sessions"} Rendering template within layouts/login Rendering user_sessions/new Completed in 22ms (View: 12, DB: 2) | 200 OK [http://192.168.1.30/user_sessions/new] Processing UserSessionsController#create (for 192.168.1.7 at 2012-04-29 22:08:06) [POST] Parameters: {"commit"=>"Log In", "action"=>"create", "authenticity_token"=>"r5qcIePx0wuFY+xOUnH8mN5hJO9Noosz9EGNygUZ3cA=", "username"=>"admin", "controller"=>"user_sessions", "password"=>"[FILTERED]"} Redirected to http://192.168.1.30/ Completed in 84ms (DB: 58) | 302 Found [http://192.168.1.30/user_sessions] Processing FrontController#index (for 192.168.1.7 at 2012-04-29 22:08:06) [GET] Parameters: {"action"=>"index", "controller"=>"front"} Rendering template within layouts/amahi Rendering front/index ActionView::TemplateError (execution expired) on line #29 of app/views/front/index.html.erb: 26: if Ping.pingecho(feed, 2, 'http') 27: Net::HTTP.start(feed) do |http| 28: req = Net::HTTP::Get.new('/news/') 29: response = http.request(req) 30: response.body 31: end 32: end /usr/lib/ruby/1.8/timeout.rb:64:in `rbuf_fill' /usr/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill' /usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil' /usr/lib/ruby/1.8/net/protocol.rb:126:in `readline' /usr/lib/ruby/1.8/net/http.rb:2028:in `read_status_line' /usr/lib/ruby/1.8/net/http.rb:2017:in `read_new' /usr/lib/ruby/1.8/net/http.rb:1051:in `request' app/views/front/index.html.erb:29 /usr/lib/ruby/1.8/net/http.rb:543:in `start' /usr/lib/ruby/1.8/net/http.rb:440:in `start' app/views/front/index.html.erb:27 passenger (3.0.0) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request' passenger (3.0.0) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request' passenger (3.0.0) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler' passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send' passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application' passenger (3.0.0) lib/phusion_passenger/utils.rb:479:in `safe_fork' passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in `__send__' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:180:in `start' passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application' passenger (3.0.0) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application' passenger (3.0.0) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize' passenger (3.0.0) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in `__send__' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.0) helper-scripts/passenger-spawn-server:99 Rendering /var/hda/platform/html/public/500.html (500 Internal Server Error)
On the web interface, I'm able to get to all the tabs, except for the Apps, where whenever I click on it, it never loads. I am able to access my shared folders remotely, but I can't install or run any apps on my Mediasmart.

sven86
Posts: 9
Joined: Sun Apr 29, 2012 7:10 pm

Re: Application Error

Postby sven86 » Mon Apr 30, 2012 1:32 am

I figured it out from reading this post:

http://forums.amahi.org/viewtopic.php?f=9&t=3799

I had to change the MTU to 1496 to get it working. My ethernet adapter was SiS 191, but my ISA bridge was 966, not 968, so it will be wise to check first. Here's how you do that:

Code: Select all

lspci -nn | grep 'SiS'

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Application Error

Postby bigfoot65 » Mon Apr 30, 2012 4:40 am

This is a good example of guidance we should have in the wiki. Anyone have time to add it? Maybe create a section for Amahi on HP Mediasmart.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

sven86
Posts: 9
Joined: Sun Apr 29, 2012 7:10 pm

Re: Application Error

Postby sven86 » Mon Apr 30, 2012 1:16 pm

I totally agree with you.

However, I got one question: How can I change the name of my HDA server? I want to change it to something else besides HDA. I know it has to do with Samba, but I'm not too familiar with how Fedora does things. Also, will it affect other programs and apps if I do it?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Application Error

Postby bigfoot65 » Mon Apr 30, 2012 1:59 pm

There's a little more to it than that. You have to change the host name. There is some guidance here that might help.

http://www.labtestproject.com/using_lin ... _on_fedora

It is possible that it might affect how things work. No guarantee that it won't. Honestly, in my opinion you are better leaving it alone unless you know what you are doing.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 5 guests