Pivotal Knowledge Base

Follow

HDMGR_PRODUCTION_PORT OR invalid byte sequence in US-ASCII (ArgumentError)

 

  • ERROR :    HDMGR_PRODUCTION_PORT

Description : 

PCC installation can break if the locale setting is not proper.Known problem for PCC 2.1.0 due to locale issue. 

The installation will prompt error in starting command center and if manual start is issued for commander then below error has been observed

Error observed during start of commander : 

[root@admin PCC-2.1.0-460]# service commander start

Starting GPHD Manager Services...

Starting Puppet                                            [  OK  ]

Starting httpd: 

Starting Jetty                                             [  OK  ]

Waiting for Jetty to mount applications                    [  OK  ]

Starting Pivotal Command Center HTTP                       [  OK  ]

Starting Pivotal Command Center Background Worker/usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:1216:in `initialize': could not connect to server: Connection refused (PG::Error)

Is the server running on host "localhost" and accepting

TCP/IP connections on port HDMGR_PRODUCTION_PORT?

could not connect to server: Connection refused

Is the server running on host "localhost" and accepting

TCP/IP connections on port HDMGR_PRODUCTION_PORT?

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:1216:in `new'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:1216:in `connect'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:324:in `initialize'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in `new'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in `postgresql_connection'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'

from /usr/share/ruby/monitor.rb:211:in `mon_synchronize'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'

from /usr/share/ruby/monitor.rb:211:in `mon_synchronize'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/model_schema.rb:308:in `clear_cache!'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/railtie.rb:104:in `block (2 levels) in <class:Railtie>'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:418:in `_run__3139002523122761524__prepare__4039624744673344335__callbacks'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'

from /usr/local/greenplum-cc/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'

from /usr/local/greenplum-cc/config/environment.rb:5:in `<top (required)>'

from script/delayed_job:3:in `require'

from script/delayed_job:3:in `<main>'

                                                           [FAILED]

Starting Pivotal Command Center HTTPS                      [  OK  ]

 

Solution/Workaround : 

1) Uninstall PCC

2) export LC_ALL=en_US.UTF-8

3) Install PCC again

 

  • ERROR :  invalid byte sequence in US-ASCII (ArgumentError)

 

Description:

The issue is also noticed if the locale setting got removed after the successful installation of PCC. Commander commands will prompt an error :

[root@admin ~]# commander-user 

/usr/local/share/gems/gems/bundler-1.2.3/lib/bundler.rb:294:in `block in load_gemspec_uncached': invalid byte sequence in US-ASCII (ArgumentError)

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler.rb:291:in `chdir'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler.rb:291:in `load_gemspec_uncached'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler.rb:282:in `load_gemspec'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/source.rb:411:in `block in load_spec_files'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/source.rb:410:in `each'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/source.rb:410:in `load_spec_files'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/source.rb:381:in `local_specs'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/source.rb:388:in `specs'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/definition.rb:385:in `specs_changed?'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/definition.rb:417:in `block in converge_paths'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/definition.rb:415:in `each'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/definition.rb:415:in `any?'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/definition.rb:415:in `converge_paths'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/definition.rb:72:in `initialize'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/dsl.rb:148:in `new'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/dsl.rb:148:in `to_definition'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/dsl.rb:8:in `evaluate'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/definition.rb:18:in `build'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler.rb:144:in `definition'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/cli.rb:423:in `exec'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/vendor/thor/task.rb:27:in `run'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/vendor/thor.rb:275:in `dispatch'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/vendor/thor/base.rb:408:in `start'

       /usr/local/share/gems/gems/bundler-1.2.3/bin/bundle:14:in `block in <top (required)>'

       /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'

       /usr/local/share/gems/gems/bundler-1.2.3/bin/bundle:14:in `<top (required)>'

       /usr/local/bin/bundle:23:in `load'

       /usr/local/bin/bundle:23:in `<main>'

There was an error in your Gemfile, and Bundler cannot continue.

 

Solution/Workaround : 

After setting the locale(export LC_ALL=en_US.UTF-8) the command will work.

You may need to edit the .bashrc with the locale setting to make it permanent.

 

The issue will be fixed in PCC 2.2.0 releasing in February 2014. 

Comments

Powered by Zendesk