Another"Ruby on Rails application could not be started"case

CaptInsano
Posts: 2
Joined: Thu May 10, 2012 3:35 am

Another"Ruby on Rails application could not be started"case

Postby CaptInsano » Thu May 10, 2012 3:57 am

Let me first state that I have searched and read around this forum, and although there are topics on this issue - none of the solutions worked for me!

I have also started this procedure from the start twice now and still not working:

I am trying to install Amahi on a "rooted" Pogoplug. I have downloaded the rootfs file "amahi-marvell-1.0.tar.bz2" and "create-amahi-f12-plug-disk.sh" from http://dl.amahi.org/marvell/ and I checked the SHA1 sums. The Script runs perfectly and sets up my USB Drive no problem. I am able to boot into Amahi and I am greeted by the installation at HDA.IP.ADDRESS:2000.

After I input my installation code, the installation proceeds and tells me that it has been successful. (I did notice it stalling at "installing pluginfactory" and "initializing RubyonRails and DB" for a while though) When I reboot my device and navigate to HDA.IP.ADDRESS I get:

Code: Select all

Ruby on Rails application could not be started A source file that the application requires, is missing. It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded. A required library may not installed. Please install all libraries that this application requires. Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem. Error message: no such file to load -- pluginfactory (MissingSourceFile) Exception class: PhusionPassenger::UnknownError Application root: /var/hda/platform/html Backtrace: # File Line Location 0 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require' 1 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require' 2 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 158 in `require' 3 /var/hda/platform/html/lib/router-driver.rb 19 4 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require' 5 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require' 6 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 158 in `require' 7 /var/hda/platform/html/app/models/firewall.rb 17 8 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require' 9 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require' 10 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 158 in `require' 11 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 265 in `require_or_load' 12 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 224 in `depend_on' 13 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 136 in `require_dependency' 14 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 414 in `load_application_classes' 15 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 413 in `each' 16 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 413 in `load_application_classes' 17 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 411 in `each' 18 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 411 in `load_application_classes' 19 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 197 in `process' 20 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 113 in `send' 21 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 113 in `run' 22 /var/hda/platform/html/config/environment.rb 9 23 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require' 24 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require' 25 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/railz/application_spawner.rb 303 in `preload_application' 26 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/railz/application_spawner.rb 252 in `initialize_server' 27 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/utils.rb 255 in `report_app_init_status' 28 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/railz/application_spawner.rb 237 in `initialize_server' 29 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 194 in `start_synchronously' 30 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 163 in `start' 31 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/railz/application_spawner.rb 213 in `start' 32 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 262 in `spawn_rails_application' 33 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server_collection.rb 126 in `lookup_or_add' 34 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 256 in `spawn_rails_application' 35 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server_collection.rb 80 in `synchronize' 36 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize' 37 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 255 in `spawn_rails_application' 38 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 154 in `spawn_application' 39 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 287 in `handle_spawn_application' 40 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 352 in `__send__' 41 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 352 in `main_loop' 42 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 196 in `start_synchronously' 43 /usr/lib/phusion_passenger/passenger-spawn-server
my hda-install.log looks like this:

Code: Select all

sh: setenforce: command not found yum-updatesd: unrecognized service yum-updatesd: no process killed yum-updatesd: no process killed yum-updatesd: no process killed RPM UNINSTALL OF: gnome-packagekit yum: no process killed error: package gnome-packagekit is not installed error: package gnome-packagekit is not installed error: package gnome-packagekit is not installed error: package gnome-packagekit is not installed error: package gnome-packagekit is not installed yum-updatesd: no process killed RPM UNINSTALL OF: setroubleshoot setroubleshoot-server setroubleshoot-plugins yum: no process killed error: package setroubleshoot is not installed error: package setroubleshoot-server is not installed error: package setroubleshoot-plugins is not installed error: package setroubleshoot is not installed error: package setroubleshoot-server is not installed error: package setroubleshoot-plugins is not installed error: package setroubleshoot is not installed error: package setroubleshoot-server is not installed error: package setroubleshoot-plugins is not installed error: package setroubleshoot is not installed error: package setroubleshoot-server is not installed error: package setroubleshoot-plugins is not installed error: package setroubleshoot is not installed error: package setroubleshoot-server is not installed error: package setroubleshoot-plugins is not installed Packages to install: dhcp, dhclient yum-updatesd: no process killed yum: no process killed Loaded plugins: fastestmirror Determining fastest mirrors Setting up Install Process Package 12:dhcp-4.1.0p1-12.fc12.armv5tel already installed and latest version Package 12:dhclient-4.1.0p1-12.fc12.armv5tel already installed and latest version Nothing to do Initializing MySQL database: WARNING: The host 'fedora-arm' could not be looked up with resolveip. This probably means that your libc libraries are not 100 % compatible with this binary MySQL version. The MySQL daemon, mysqld, should work normally with the exception that host name resolving will not work. This means that you should use IP addresses instead of hostnames when specifying MySQL privileges ! Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h fedora-arm password 'new-password' Alternatively you can run: /usr/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd /usr ; /usr/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd /usr/mysql-test ; perl mysql-test-run.pl Please report any problems with the /usr/bin/mysqlbug script! The latest information about MySQL is available at http://www.mysql.com/ Support MySQL by buying support/licenses from http://shop.mysql.com/ [ OK ] Starting MySQL: [ OK ] ^Gmysqladmin: DROP DATABASE hda_production failed; error: 'Can't drop database 'hda_production'; database doesn't exist' rubygem-rails-2.3.4-2.fc12.noarch *** buffer overflow detected ***: /usr/bin/ruby terminated *** buffer overflow detected ***: /usr/bin/ruby terminated *** buffer overflow detected ***: /usr/bin/ruby terminated *** buffer overflow detected ***: /usr/bin/ruby terminated *** buffer overflow detected ***: /usr/bin/ruby terminated (in /var/hda/platform/html) == CreateSettings: migrating ================================================= -- create_table(:settings) -> 2.9640s == CreateSettings: migrated (2.9650s) ======================================== == CreateHosts: migrating ==================================================== -- create_table(:hosts) -> 2.1304s == CreateHosts: migrated (2.1313s) =========================================== == CreateAliases: migrating ================================================== -- create_table(:aliases) -> 2.1245s == CreateAliases: migrated (2.1253s) ========================================= == AddThemeSetting: migrating ================================================ -- create_table(:themes) -> 2.1279s == AddThemeSetting: migrated (3.6571s) ======================================= == AddSessions: migrating ==================================================== -- create_table(:sessions) -> 2.8171s -- add_index(:sessions, :session_id) -> 7.9953s -- add_index(:sessions, :updated_at) -> 1.7309s == AddSessions: migrated (12.5457s) ========================================== == CreateUsers: migrating ==================================================== -- create_table(:users) -> 2.1208s == CreateUsers: migrated (2.1217s) =========================================== == CreateShares: migrating =================================================== -- create_table(:shares) -> 2.1246s == CreateShares: migrated (2.1255s) ========================================== == CreateWebapps: migrating ================================================== -- create_table(:webapps) -> 2.1291s == CreateWebapps: migrated (2.1300s) ========================================= == CreateCapabilities: migrating ============================================= -- create_table(:capabilities) -> 2.1359s -- add_column(:shares, :everyone, :boolean, {:default=>true}) -> 2.5039s == CreateCapabilities: migrated (4.7888s) ==================================== == AddShareTags: migrating =================================================== -- add_column(:shares, :tags, :string, {:default=>""}) -> 2.5691s == AddShareTags: migrated (2.5752s) ========================================== == AddAccessAndWriteCapabilities: migrating ================================== -- rename_table(:capabilities, :cap_accesses) -> 0.0070s -- create_table(:cap_writers) -> 2.1184s == AddAccessAndWriteCapabilities: migrated (2.1269s) ========================= == CreateApps: migrating ===================================================== -- create_table(:apps) -> 2.5497s == CreateApps: migrated (2.5506s) ============================================ == AddNonDeleteAndLoginRequiredToWebapps: migrating ========================== -- add_column(:webapps, :deletable, :boolean, {:default=>true}) -> 2.1493s -- add_column(:apps, :status, :string) -> 2.1411s == AddStatusToApps: migrated (2.1421s) ======================================= == AddShowInDashboard: migrating ============================================= -- add_column(:apps, :show_in_dashboard, :boolean, {:default=>true}) -> 2.1435s == AddShowInDashboard: migrated (2.1534s) ==================================== == AddAppStatusForumUrl: migrating =========================================== -- add_column(:apps, :install_status, :integer) -> 5.2302s -- add_column(:apps, :forum_url, :string) -> 3.6671s == AddAppStatusForumUrl: migrated (8.8990s) ================================== == AddSettingsKind: migrating ================================================ -- remove_column(:apps, :install_status) -> 1.3018s -- add_column(:settings, :kind, :string, {:default=>"general"}) -> 1.7334s == AddSettingsKind: migrated (3.0572s) ======================================= == MakeDescriptionLonger: migrating ========================================== -- change_column(:apps, :description, :text, {:default=>""}) -> 2.1513s == MakeDescriptionLonger: migrated (2.1525s) ================================= == AddAppTheme: migrating ==================================================== -- add_column(:apps, :theme_id, :integer) -> 2.1589s == AddAppTheme: migrated (2.1685s) =========================================== == AddAppSpecialInstructions: migrating ====================================== -- add_column(:apps, :special_instructions, :text, {:default=>""}) -> 9.5200s == AddAppSpecialInstructions: migrated (9.5344s) ============================= == CreateDbs: migrating ====================================================== -- create_table(:dbs) -> 2.1210s == CreateDbs: migrated (2.1220s) ============================================= == AddAppDatabase: migrating ================================================= -- add_column(:apps, :db_id, :integer) -> 2.1435s == AddAppDatabase: migrated (2.1444s) ======================================== == AddDefaultNetworkSettings: migrating ====================================== == AddDefaultNetworkSettings: migrated (0.1155s) ============================= == CreateFirewallRules: migrating ============================================ -- create_table(:firewalls) -> 2.1288s == CreateFirewallRules: migrated (2.1649s) =================================== == CreateServers: migrating ================================================== -- create_table(:servers) -> 2.1239s == CreateServers: migrated (2.1248s) ========================================= == AddAdvancedFeatureSetting: migrating ====================================== == AddAdvancedFeatureSetting: migrated (0.0262s) ============================= == AddSharesDebug: migrating ================================================= == AddSharesDebug: migrated (0.1231s) ======================================== == AddServerShareToApp: migrating ============================================ -- add_column(:apps, :server_id, :integer) -> 4.1913s -- add_column(:apps, :share_id, :integer) -> 3.4786s == AddServerShareToApp: migrated (7.6715s) =================================== == DhcpRouterSettings: migrating ============================================= == DhcpRouterSettings: migrated (0.0828s) ==================================== == UpgradeUsersForAuthlogic: migrating ======================================= -- remove_column(:users, :salt) -- add_column(:users, :crypted_password, :string) -> 1.7167s -- add_column(:users, :password_salt, :string) -> 2.1369s -- add_column(:users, :persistence_token, :string) -> 2.1385s -- add_column(:users, :login_count, :integer, {:default=>0, :null=>false}) -> 2.1411s -- add_column(:users, :last_request_at, :datetime) -> 4.0943s -- add_column(:users, :last_login_at, :datetime) -> 3.9682s -- add_column(:users, :current_login_at, :datetime) -> 4.1249s -- add_column(:users, :last_login_ip, :string) -> 1.7225s -- add_column(:users, :current_login_ip, :string) -> 2.1437s == UpgradeUsersForAuthlogic: migrated (24.1985s) ============================= == AddAdminToUsers: migrating ================================================ -- add_column(:users, :admin, :boolean) -> 2.1486s == AddAdminToUsers: migrated (2.1495s) ======================================= == RenameWebappTypeToKind: migrating ========================================= -- rename_column(:webapps, :type, :kind) -> 2.1516s == RenameWebappTypeToKind: migrated (2.1526s) ================================ == ShareExtraParameters: migrating =========================================== -- add_column(:shares, :extras, :text) -> 3.6519s == ShareExtraParameters: migrated (3.6528s) ================================== == AddAppInitialUser: migrating ============================================== -- add_column(:apps, :initial_user, :string) -> 3.3814s -- add_column(:apps, :initial_password, :string) -> 1.7324s == AddAppInitialUser: migrated (5.1154s) ===================================== == CreateDiskPoolPartitions: migrating ======================================= -- create_table(:disk_pool_partitions) -> 2.1251s == CreateDiskPoolPartitions: migrated (2.1260s) ============================== == DiskPoolCopies: migrating ================================================= -- add_column(:shares, :disk_pool_copies, :integer, {:default=>0}) -> 2.1487s == DiskPoolCopies: migrated (2.1547s) ======================================== == CreateAppDependencies: migrating ========================================== -- create_table(:app_dependencies) -> 2.1176s == CreateAppDependencies: migrated (2.1185s) ================================= WARNING: cannot autoconfigure the network! Configuring Samba ... Samba install done. Configuring vpn ... VPN install done. Installing httpd ... HTTPD install done. Configuring sudoers file ... Sudoers file already set. Configuring sudoers file done. Restarting the network ... error reading information on service NetworkManager: No such file or directory NetworkManager: unrecognized service Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Stopping named: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: Determining IP information for eth0... done. [ OK ] Network restart done. Starting network services ... Stopping hdactl: [ OK ] Starting hdactl: [ OK ] Starting httpd: httpd: apr_sockaddr_info_get() failed for fedora-arm httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ OK ] Network services started. Starting services ... error reading information on service ddclient: No such file or directory Services started. Stopping and disabling unused services ... error reading information on service gpm: No such file or directory gpm: unrecognized service error reading information on service hplip: No such file or directory hplip: unrecognized service error reading information on service isdn: No such file or directory isdn: unrecognized service error reading information on service kudzu: No such file or directory kudzu: unrecognized service Shutting down sm-client: [ OK ] Shutting down sendmail: [ OK ] error reading information on service yum-updatesd: No such file or directory yum-updatesd: unrecognized service error reading information on service ldap: No such file or directory ldap: unrecognized service error reading information on service NetworkManager: No such file or directory NetworkManager: unrecognized service Stopping unused services done. mv: cannot stat `/etc/selinux/config.bak': No such file or directory mv: cannot stat `/etc/sysconfig/system-config-firewall.bak': No such file or directory NetworkManager: unrecognized service **************************************************** Amahi installed successfully! Please reboot it! Amahi installed successfully! Please reboot it! ****************************************************
I have tried the solutions offered in other threads:
gem install pluginfactory

Code: Select all

[root@fedora-arm ~]# gem install pluginfactory *** buffer overflow detected ***: /usr/bin/ruby terminated Aborted
I even tried to install pluginfactory locally:

Code: Select all

[root@fedora-arm ~]# cd /tmp/ [root@fedora-arm tmp]# wget http://rubygems.org/downloads/pluginfactory-1.0.8.gem --2012-05-10 06:52:24-- http://rubygems.org/downloads/pluginfactory-1.0.8.gem Resolving rubygems.org... 204.232.149.26, 204.232.149.25 Connecting to rubygems.org|204.232.149.26|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://rubygems.org/gems/pluginfactory-1.0.8.gem [following] --2012-05-10 06:52:25-- http://rubygems.org/gems/pluginfactory-1.0.8.gem Reusing existing connection to rubygems.org:80. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://cachefly.mirrors.rubygems.org/gems/pluginfactory-1.0.8.gem [following] --2012-05-10 06:52:25-- http://cachefly.mirrors.rubygems.org/gems/pluginfactory-1.0.8.gem Resolving cachefly.mirrors.rubygems.org... 140.99.94.175 Connecting to cachefly.mirrors.rubygems.org|140.99.94.175|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 20992 (20K) [application/octet-stream] Saving to: `pluginfactory-1.0.8.gem' 100%[===================================================================================================================>] 20,992 --.-K/s in 0.06s 2012-05-10 06:52:25 (335 KB/s) - `pluginfactory-1.0.8.gem' saved [20992/20992] [root@fedora-arm tmp]# gem install pluginfactory-1.0.8.gem *** buffer overflow detected ***: /usr/bin/ruby terminated Aborted
my installed gems are as follows:

Code: Select all

[root@fedora-arm tmp]# gem query --local *** LOCAL GEMS *** actionmailer (2.3.4) actionpack (2.3.4) activerecord (2.3.4) activeresource (2.3.4) activesupport (2.3.4) fastthread (1.0.7) gd2 (1.1.1) gruff (0.3.6) hoe (2.3.3) passenger (2.2.11) rack (1.0.0) rails (2.3.4) rake (0.8.7) rubyforge (1.0.5) sinatra (0.9.4)
Is there something I am missing here? Can someone please give me any advice at all!! I'll try anything!

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

Re: Another"Ruby on Rails application could not be started"c

Postby bigfoot65 » Thu May 10, 2012 4:57 am

NOTE: In future, recommend you post in the Plug Computer topic area.

Installing Amahi on these plug devices is very brittle and hard to do some times. This is not one of the devices we tested on as far as I know, so we may not be able to help much. Keep in mind that some of the wiki guidance and devices supported were from user contributions.

It seems the buffer overflow is your clue. Not sure if there is a solution to get around it. Have you looked around the internet for that error?

Another thing to keep in mind is Fedora 12 has been end of life for quite some time. So, if there are any updates or files being pulled/needed from their repository, they most likely will not exist.

Sorry I don't have much good news for you. Hopefully there is someone else in the community who has been successful with this device and can assist.
ßîgƒσστ65
Applications Manager

kochin
Posts: 1
Joined: Tue Sep 25, 2012 4:05 pm

Re: Another"Ruby on Rails application could not be started"c

Postby kochin » Tue Sep 25, 2012 4:53 pm

Hi CaptInsano,

It's been a while since you posted your question, and you probably don't need the solution any more. Anyway, I recently installed Amahi on my PogoPlug successfully after several tries. Along the way I encountered a few problems, and yours is one of them.

Your particular problem was caused by an incompatible version of pluginfactory. You will be able to install it if you issue this command:

Code: Select all

gem install pluginfactory -version "1.0.7"
Or, for a new installation before you start the installation, you can modify the script /usr/bin/hda-new-install. Find this line in the program:

Code: Select all

ret = install_gem("pluginfactory")
and change it to

Code: Select all

ret = install_gem("pluginfactory", "1.0.7")
Then, run the installation.

That should get the pluginfactory installed into your Amahi.

Kochin

Who is online

Users browsing this forum: No registered users and 1 guest