Назад | Перейти на главную страницу

Ошибка обработки OpsWorks Berksfile: (Encoding :: InvalidByteSequenceError)

Несколько часов назад все мои стеки OpsWorks перестали работать. update_custom_cookbooks. Все они терпят неудачу при «Установить кулинарные книги, указанные в Berksfile и их зависимости» с ошибкой: в `encode ':" \ xC3 "в US-ASCII (Encoding :: InvalidByteSequenceError).

В нашем стеке OpsWorks используются экземпляры Chef версии 11.10, Berkshelf версии 3.1.3 и Ubuntu 14.04.

Berksfile: в целях тестирования я заменил наш обычный файл следующим, но все равно получаю ту же ошибку:

source "https://supermarket.getchef.com"

cookbook 'apt'

Вот часть журнала ошибок от OpsWorks:

================================================================================
Error executing action `run` on resource 'ruby_block[Install the cookbooks specified in the Berksfile and their dependencies]'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/aws/opsworks/local/bin/berks vendor /opt/aws/opsworks/current/berkshelf-cookbooks ----
STDOUT: Resolving cookbook dependencies...
Fetching cookbook index from https://supermarket.getchef.com...
STDERR: /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/json-1.8.1/lib/json/common.rb:155:in `encode': "\xC3" on US-ASCII (Encoding::InvalidByteSequenceError)
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/json-1.8.1/lib/json/common.rb:155:in `initialize'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/json-1.8.1/lib/json/common.rb:155:in `new'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/json-1.8.1/lib/json/common.rb:155:in `parse'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/ridley-4.0.0/lib/ridley/chef/cookbook/metadata.rb:458:in `from_json'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/ridley-4.0.0/lib/ridley/chef/cookbook/metadata.rb:29:in `from_json'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/ridley-4.0.0/lib/ridley/chef/cookbook.rb:36:in `from_path'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/cached_cookbook.rb:15:in `from_store_path'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/cookbook_store.rb:108:in `block in cookbooks'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/cookbook_store.rb:98:in `collect'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/cookbook_store.rb:98:in `cookbooks'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/resolver/graph.rb:8:in `populate_store'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/resolver.rb:73:in `resolve'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/installer.rb:170:in `install_from_universe'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/installer.rb:39:in `run'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/berksfile.rb:371:in `install'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/berksfile.rb:590:in `vendor'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/cli.rb:387:in `vendor'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/cli.rb:52:in `dispatch'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/lib/berkshelf/cli.rb:27:in `execute!'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-3.1.3/bin/berks:5:in `<top (required)>'
from /opt/aws/opsworks/local/bin/berks:23:in `load'
from /opt/aws/opsworks/local/bin/berks:23:in `<main>'
---- End output of /opt/aws/opsworks/local/bin/berks vendor /opt/aws/opsworks/current/berkshelf-cookbooks ----
Ran /opt/aws/opsworks/local/bin/berks vendor /opt/aws/opsworks/current/berkshelf-cookbooks returned 1

Питер, это может быть связано с тем, как выполняется кодирование / нет:

введите описание ссылки здесь