Very quick issue I noticed when upgrading to foreman 1.10.1 from 1.8.4…
When running "foreman-rake assets:precompile" as per the upgrade
instructions, I get a rake aborted error…
foreman-rake --trace locale:pack
** Invoke locale:pack (first_time)
rake aborted!
Don't know how to build task 'gettext:pack'
/opt/rh/ruby193/root/usr/share/ruby/rake/task_manager.rb:49:in []' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:60:inlookup_prerequisite'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:56:in block in prerequisite_tasks' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:56:incollect'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:56:in prerequisite_tasks' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:174:ininvoke_prerequisites'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:157:in block in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:inmon_synchronize'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:ininvoke'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in invoke_task' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:inblock (2
levels) in top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:inblock in
top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in standard_exception_handling' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:intop_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in block in run' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:instandard_exception_handling'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in run' /opt/rh/ruby193/root/usr/bin/rake:32:in<main>'
Tasks: TOP => locale:pack
Are you using packages? If so, don't run this command or
assets:precompile - they're part of the git checkout/source installation
upgrade instructions (part 2(D)), not the package upgrade (2(A) or 2(B)).
···
On 21/01/16 15:01, Jeff wrote:
> Hi All,
>
> Very quick issue I noticed when upgrading to foreman 1.10.1 from
> 1.8.4... When running "foreman-rake assets:precompile" as per the
> upgrade instructions, I get a rake aborted error...
>
> # foreman-rake --trace locale:pack
> ** Invoke locale:pack (first_time)
> rake aborted!
> Don't know how to build task 'gettext:pack'
Any ideas? I'm scratching my head on this. Since the problem seems to be
data-dependent then I would have thought a bit of data-massaging could work
around the problem.
Ah, my bad, I'll change our install script so not run those commands.
I've run into a bigger problem now, since we are upgrading from 1.8 to 1.10
we are hitting this bug on some systems (but not all)…
In the past we have always updated over multiple point releases ( eg 1.6 to
1.8) due to our internal planning schedule and never had an issue. I didnt
realise that a full 1.8 -> 1.9 -> 1.10 upgrade path was a requirement. Is
there any way to workaround this issue? Installing 1.9 as an intermediate
step is a bit of a nightmare, especially with all the tfm/ruby193 package
renaming thats gone on in recent releases.
Thanks
Jeff
···
On 21 January 2016 at 15:31, Dominic Cleal wrote:
On 21/01/16 15:01, Jeff wrote:
Hi All,
Very quick issue I noticed when upgrading to foreman 1.10.1 from
1.8.4… When running “foreman-rake assets:precompile” as per the
upgrade instructions, I get a rake aborted error…
foreman-rake --trace locale:pack
** Invoke locale:pack (first_time)
rake aborted!
Don’t know how to build task ‘gettext:pack’
Are you using packages? If so, don’t run this command or
assets:precompile - they’re part of the git checkout/source installation
upgrade instructions (part 2(D)), not the package upgrade (2(A) or 2(B)).