"uninitialized constant Translate" error on install

nephster
Posts: 20
Joined: Mon Dec 13, 2010 12:04 pm

"uninitialized constant Translate" error on install

Postby nephster » Mon Dec 13, 2010 12:17 pm

Hi all, please be gentle as first post and a complete Amahi/Linux noob...

Been running Amahi on F14 successfully for a few weeks now, but after updating Amahi today got a Ruby error when accessing via the browser:
Ruby on Rails application could not be started
These are the possible causes:

There may be a syntax error in the application's code. Please check for such errors and fix them.
A required library may not installed. Please install all libraries that this application requires.
The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application.
A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service.

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:
uninitialized constant Translate
Exception class:
NameError
Application root:
/var/hda/platform/html
Backtrace:
# File Line Location
0 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 443 in `load_missing_constant'
1 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 80 in `const_missing'
2 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 92 in `const_missing'
3 /var/hda/platform/html/config/routes.rb 34
4 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/routing/route_set.rb 226 in `draw'
5 /var/hda/platform/html/config/routes.rb 1
6 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 147 in `load_without_new_constant_marking'
7 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 147 in `load'
8 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/routing/route_set.rb 286 in `load_routes!'
9 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/routing/route_set.rb 286 in `each'
10 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/routing/route_set.rb 286 in `load_routes!'
11 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/routing/route_set.rb 266 in `reload!'
12 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 537 in `initialize_routing'
13 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 188 in `process'
14 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 113 in `send'
15 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 113 in `run'
16 /var/hda/platform/html/config/environment.rb 9
17 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
18 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require'
19 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb 222 in `preload_application'
20 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb 181 in `initialize_server'
21 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/utils.rb 564 in `report_app_init_status'
22 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb 174 in `initialize_server'
23 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 204 in `start_synchronously'
24 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 180 in `start'
25 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb 149 in `start'
26 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 219 in `spawn_rails_application'
27 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb 132 in `lookup_or_add'
28 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 214 in `spawn_rails_application'
29 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb 82 in `synchronize'
30 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize'
31 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 213 in `spawn_rails_application'
32 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 132 in `spawn_application'
33 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 275 in `handle_spawn_application'
34 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 357 in `__send__'
35 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 357 in `server_main_loop'
36 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 206 in `start_synchronously'
37 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/helper-scripts/passenger-spawn-server 99
Reinstalled F14 from scratch, with no updates, and now trying to install Amahi which fails at 33%, "activating your HDA's settings"

tail -f /root/hda-install.log shows the problem to be

Code: Select all

Successfully installed activeresource-2.3.4 Successfully installed rails-2.3.4 7 gems installed Successfully installed pluginfactory-1.0.7 1 gem installed rake aborted! uninitialized constant Translate
Any ideas??

Greg

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

Re: "uninitialized constant Translate" error on install

Postby bigfoot65 » Mon Dec 13, 2010 12:54 pm

Not sure what is going on and will have to test. We are still working Amahi for Fedora 14, so this is not the official Amahi release. I presume you know that though and did not wanna install Fedora 12.

I can test an install in a VM and see what happens. I would ask that you check the hda-install.log in the root directory and possibly and logs in /var/log directory for clues as to what the problem could be.
ßîgƒσστ65
Applications Manager

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

nephster
Posts: 20
Joined: Mon Dec 13, 2010 12:04 pm

Re: "uninitialized constant Translate" error on install

Postby nephster » Mon Dec 13, 2010 1:31 pm

Thanks for the reply! Yeah, I know about Amahi on F14 not being "production ready", but wasn't able to get the F12/Amahi Express CD to give me a display - wouldn't recognise my display adapter. SSH'ing into a headless box and using Terminal is very very hard if you've never used Linux before, hence wanting Gnome to display.

hda-install.log from root directory:

Code: Select all

yum-updatesd: unrecognized service yum-updatesd: no process found yum-updatesd: no process found yum-updatesd: no process found RPM UNINSTALL OF: gnome-packagekit yum: no process found 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 found RPM UNINSTALL OF: setroubleshoot setroubleshoot-server setroubleshoot-plugins yum: no process found 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: ruby-docs, dhcp, dhclient yum-updatesd: no process found yum: no process found Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit Adding en_US to language list Loading mirror speeds from cached hostfile * fedora: ftp.esat.net * updates: ftp.esat.net Setting up Install Process No package ruby-docs available. Package 12:dhcp-4.2.0-14.P1.fc14.x86_64 already installed and latest version Package 12:dhclient-4.2.0-14.P1.fc14.x86_64 already installed and latest version Nothing to do Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit Adding en_US to language list Loading mirror speeds from cached hostfile * fedora: ftp.esat.net * updates: ftp.esat.net Setting up Update Process No Packages marked for Update Starting mysqld: [ OK ] mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' Database "hda_production" dropped package rubygem-rails-2.3.4 is not installed rake aborted! uninitialized constant Translate (See full trace by running task with --trace) (in /var/hda/platform/html)
Greg

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

Re: "uninitialized constant Translate" error on install

Postby bigfoot65 » Mon Dec 13, 2010 5:11 pm

Why not go with the Fedora 12 Full DVD if you want the Gnome display?

The log looks normal so something else is wrong. Did you install Fedora updates by chance?

Best way to fix it is to do a yum downgrade of the package that was installed. There should be a yum log in /var/log. This is something we need to work on.
ßîgƒσστ65
Applications Manager

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

nephster
Posts: 20
Joined: Mon Dec 13, 2010 12:04 pm

Re: "uninitialized constant Translate" error on install

Postby nephster » Mon Dec 13, 2010 7:31 pm

Why not go with the Fedora 12 Full DVD if you want the Gnome display?
Well, as for why going for F14 over F12... an analogy would be installing Win 7 on a Windows box rather than XP. I'm not going to put an old system on a box when I know there is a newer (better?) choice. If I know F14 is going to be supported fully soon, it made sense to try it out now :) I'm testing using Linux as much as Amahi...

I'm in no real hurry to get this perfect :)
The log looks normal so something else is wrong. Did you install Fedora updates by chance?
Nope, and the only repos enabled at install were the Install and Amahi ones. Thought updates might be it so completely wiped the system and did a fresh install (twice!). Isn't it a new version of Amahi that was released today - it was when I installed *that* that my problems seem to start...
Best way to fix it is to do a yum downgrade of the package that was installed. There should be a yum log in /var/log. This is something we need to work on.
If you could tell me how to install the previous version that would be great! I *have* tried Googling how to downgrade, but I think I need the specific package number?

Code: Select all

Dec 13 18:52:33 Installed: boost-date-time-1.44.0-1.fc14.x86_64 Dec 13 18:52:34 Installed: boost-regex-1.44.0-1.fc14.x86_64 Dec 13 18:52:35 Installed: boost-thread-1.44.0-1.fc14.x86_64 Dec 13 18:52:36 Installed: boost-wave-1.44.0-1.fc14.x86_64 Dec 13 18:52:37 Installed: boost-graph-1.44.0-1.fc14.x86_64 Dec 13 18:52:39 Installed: boost-test-1.44.0-1.fc14.x86_64 Dec 13 18:52:40 Installed: boost-program-options-1.44.0-1.fc14.x86_64 Dec 13 18:52:41 Installed: boost-serialization-1.44.0-1.fc14.x86_64 Dec 13 18:52:42 Installed: boost-iostreams-1.44.0-1.fc14.x86_64 Dec 13 18:52:43 Installed: boost-python-1.44.0-1.fc14.x86_64 Dec 13 18:52:44 Installed: boost-signals-1.44.0-1.fc14.x86_64 Dec 13 18:52:45 Updated: 12:dhclient-4.2.0-14.P1.fc14.x86_64 Dec 13 18:52:49 Updated: 12:dhcp-4.2.0-14.P1.fc14.x86_64 Dec 13 18:52:49 Installed: boost-1.44.0-1.fc14.x86_64 Dec 13 18:52:50 Installed: yum-plugin-fastestmirror-1.1.28-1.fc14.noarch Dec 13 18:53:07 Updated: sudo-1.7.4p4-4.fc14.x86_64

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

Re: "uninitialized constant Translate" error on install

Postby bigfoot65 » Mon Dec 13, 2010 7:49 pm

I think the syntax is yum downgrade hda-platform.
ßîgƒσστ65
Applications Manager

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

nephster
Posts: 20
Joined: Mon Dec 13, 2010 12:04 pm

Re: "uninitialized constant Translate" error on install

Postby nephster » Tue Dec 14, 2010 3:46 pm

That did do the job :) now, if only I could get the latest release to show up...

Who is online

Users browsing this forum: No registered users and 8 guests