Chef infra 厨师长服务器升级问题-对不支持编码的对象进行编码

Chef infra 厨师长服务器升级问题-对不支持编码的对象进行编码,chef-infra,upgrade,Chef Infra,Upgrade,我正在尝试将现有的chef服务器从12.19.31升级到13.3.1 我使用上的说明构建了这个版本 然后我安装了软件包 sudo dpkg -i chef-server-core_13.3.1+20201008233604-1_amd64.deb (Reading database ... 153055 files and directories currently installed.) Preparing to unpack chef-server-core_13.3.1+202010082

我正在尝试将现有的chef服务器从
12.19.31
升级到
13.3.1

我使用上的说明构建了这个版本

然后我安装了软件包

sudo dpkg -i chef-server-core_13.3.1+20201008233604-1_amd64.deb (Reading database ... 153055 files and directories currently installed.) Preparing to unpack chef-server-core_13.3.1+20201008233604-1_amd64.deb ... Unpacking chef-server-core (13.3.1+20201008233604-1) over (12.19.31-1) ... Setting up chef-server-core (13.3.1+20201008233604-1) ... You have upgraded Chef Server!

The next step in the upgrade process is to run:

chef-server-ctl upgrade

After the upgrade command completes, your Chef services will remain in a down state. To bring them back up run:

chef-server-ctl start

Then, to remove configuration files, logs, directories, users, etc. that were used by internal services that have been removed from this version of Chef Server, please run:

chef-server-ctl cleanup

(Add the '--no-op' option to see what would be removed by this command)

For detailed upgrade instructions please see: https://docs.chef.io/upgrade_server.html
然后我运行命令
chef-server-ctl-upgrade

------------------------------------------------------------------- The service postgresql is running externally and cannot be managed vi
chef-server-ctl.  Please log into chef-dev-db-tawny.tinyspeck.com to
manage it directly.
------------------------------------------------------------------- /opt/opscode/embedded/service/gem/ruby/2.6.0/gems/sequel-3.34.1/lib/sequel/database/schema_generator.rb:19:
warning: constant ::Fixnum is deprecated
/opt/opscode/embedded/service/gem/ruby/2.6.0/gems/sequel-3.34.1/lib/sequel/database/schema_generator.rb:19:
warning: constant ::Bignum is deprecated [private-chef-upgrade] -
ERROR: migration-level not initialized. [private-chef-upgrade] -
ERROR: If this is an existing Chef Server install try running
`chef-server-ctl rebuild-migration-state` and then retry the upgrade
最后,我运行了sudo chef server ctl rebuild migration state,得到了以下错误:

/opt/opscode/embedded/service/gem/ruby/2.6.0/gems/sequel-3.34.1/lib/sequel/database/schema_generator.rb:19:
warning: constant ::Fixnum is deprecated
/opt/opscode/embedded/service/gem/ruby/2.6.0/gems/sequel-3.34.1/lib/sequel/database/schema_generator.rb:19:
warning: constant ::Bignum is deprecated [private-chef-upgrade] -
Infering migration-level from system state bundler: failed to load
command: ./bin/partybus (./bin/partybus) ArgumentError: cannot set
encoding on non-encoding capable object  
/opt/opscode/embedded/service/partybus/lib/partybus/migration_api/v1.rb:123:in
`exec'  
/opt/opscode/embedded/service/partybus/lib/partybus/migration_api/v1.rb:123:in
`check_sqitch'   (eval):13:in `block in load_migration'  
/opt/opscode/embedded/service/partybus/lib/partybus/migration_api/v1.rb:16:in
`instance_eval'  
/opt/opscode/embedded/service/partybus/lib/partybus/migration_api/v1.rb:16:in
`initialize'  
/opt/opscode/embedded/service/partybus/lib/partybus/dsl_runner.rb:42:in
`new'  
/opt/opscode/embedded/service/partybus/lib/partybus/dsl_runner.rb:42:in
`run_check'  
/opt/opscode/embedded/service/partybus/lib/partybus/dsl_runner.rb:25:in
`check'  
/opt/opscode/embedded/service/partybus/lib/partybus/migrations.rb:46:in
`run_check'  
/opt/opscode/embedded/service/partybus/bin/partybus:90:in `block in
infer_migration_state'  
/opt/opscode/embedded/service/partybus/bin/partybus:89:in `each'  
/opt/opscode/embedded/service/partybus/bin/partybus:89:in
`infer_migration_state'  
/opt/opscode/embedded/service/partybus/bin/partybus:168:in `block in
<top (required)>'  
/opt/opscode/embedded/service/partybus/bin/partybus:159:in `open'  
/opt/opscode/embedded/service/partybus/bin/partybus:159:in `<top
(required)>'
/opt/opscode/embedded/service/gem/ruby/2.6.0/gems/sequel-3.34.1/lib/sequel/database/schema_generator.rb:19:
警告:常量::Fixnum已弃用
/opt/opscode/embedded/service/gem/ruby/2.6.0/gems/sequel-3.34.1/lib/sequel/database/schema_generator.rb:19:
警告:constant::Bignum已弃用[私人厨师升级]-
从系统状态绑定器推断迁移级别:加载失败
命令:./bin/partybus(./bin/partybus)参数错误:无法设置
对不支持编码的对象进行编码
/opt/opscode/embedded/service/partybus/lib/partybus/migration_api/v1.rb:123:in
`行政长官
/opt/opscode/embedded/service/partybus/lib/partybus/migration_api/v1.rb:123:in
`检查_sqitch'(eval):13:in“加载中的块\u迁移”
/opt/opscode/embedded/service/partybus/lib/partybus/migration_api/v1.rb:16:in
`实例_eval'
/opt/opscode/embedded/service/partybus/lib/partybus/migration_api/v1.rb:16:in
`初始化'
/opt/opscode/embedded/service/partybus/lib/partybus/dsl_runner.rb:42:in
`新的
/opt/opscode/embedded/service/partybus/lib/partybus/dsl_runner.rb:42:in
`运行检查'
/opt/opscode/embedded/service/partybus/lib/partybus/dsl_runner.rb:25:in
`支票
/opt/opscode/embedded/service/partybus/lib/partybus/migrations.rb:46:in
`运行检查'
/opt/opscode/embedded/service/partybus/bin/partybus:90:in`block-in
推断“迁移状态”
/opt/opscode/embedded/service/partybus/bin/partybus:89:在'each'中
/opt/opscode/embedded/service/partybus/bin/partybus:89:in
`推断“迁移状态”
/opt/opscode/embedded/service/partybus/bin/partybus:168:in`block-in
'  
/opt/opscode/embedded/service/partybus/bin/partybus:159:在“打开”中
/opt/opscode/embedded/service/partybus/bin/partybus:159:in`'
我被困住了,搞不懂发生了什么事。任何帮助都将不胜感激