[go: up one dir, main page]

Bootstrapping a new empty node fails

Given a newly created node, without chef at all, so without the chef licenses accepted, when bootstrapping the node, the node action stops without any error message.

Looking at sidekiq logs we can see there is an error:

Encoding::UndefinedConversionError ("\xE2" from ASCII-8BIT to UTF-8):
/usr/local/bundle/gems/activesupport-5.2.3/lib/active_support/core_ext/object/json.rb:38:in `encode'
/usr/local/bundle/gems/activesupport-5.2.3/lib/active_support/core_ext/object/json.rb:38:in `to_json'
/usr/local/bundle/gems/activesupport-5.2.3/lib/active_support/core_ext/object/json.rb:38:in `to_json'
/usr/local/bundle/gems/rethinkdb-2.3.0.2/lib/shim.rb:90:in `to_json'
...

So ActiveSupport tries to encode a string as JSON but fails with this encoding issue.

The reason for this is because the license acceptance request text is including some UTF-8 characters:

 [167.86.100.84] +---------------------------------------------+\r\n\e[32m\xE2\x9C\x94\e[0m 2 product licenses accepted.\r\n+---------------------------------------------+\r\n