bootstrap error

171 views
Skip to first unread message

Michael Brown

unread,
Dec 19, 2017, 10:12:23 AM12/19/17
to SIMP Q&A Forum
I am seeing this error


[root@li1833-182 puppetserver]# puppet bootstrap
Error: Unknown Puppet subcommand 'bootstrap'
See 'puppet help' for help on available puppet subcommands
[root@li1833-182 puppetserver]# simp bootstrap
=== Starting SIMP Bootstrap ===
> The log can be found at '/root/.simp/simp_bootstrap.log.20171210T214626'
> Successfully disabled non-bootstrap puppet agent
> Interrupts will be captured and ignored to ensure bootstrap integrity.
> Killing connection to puppetdb
> Killing all remaining puppet processes
> Successfully removed /var/run/puppetlabs/*
> Existing puppetserver certificates have been found in
>     /etc/puppetlabs/puppet/ssl
> If this server has no registered agents, those certificates can be safely removed.
> Otherwise, although removing them will ensure consistency, manual
> steps may be required to ensure connectivity with existing Puppet clients.
> Regardless, if removed, new puppetserver certificates will be generated
> automatically.
> Do you wish to remove existing puppetserver certificates? (yes|no) yes
> Successfully removed /etc/puppetlabs/puppet/ssl/*
> Configuring the puppetserver to listen on port 8150
> Successfully backed up /etc/puppetlabs/puppetserver/conf.d/webserver.conf to /root/.simp/simp_bootstrap.backup.20171210T214626/etc/puppetlabs/puppetserver/conf.d
> Successfully backed up /etc/puppetlabs/puppetserver/conf.d/web-routes.conf to /root/.simp/simp_bootstrap.backup.20171210T214626/etc/puppetlabs/puppetserver/conf.d
> Successfully backed up /etc/sysconfig/puppetserver to /root/.simp/simp_bootstrap.backup.20171210T214626/etc/sysconfig
> Successfully configured /etc/sysconfig/puppetserver to use a temporary cache
> Successfully configured /etc/puppetlabs/puppetserver/conf.d/webserver.conf with bootstrap settings
> Successfully configured /etc/puppetlabs/puppetserver/conf.d/web-routes.conf with bootstrap settings
> Running puppet agent, with --tags pupmod,simp
> Waiting for puppetserver to accept connections on port 8150
> /
The Puppet Server did not start within 5 minutes. Please start puppetserver by hand and inspect any issues.

/usr/share/simp/ruby/gems/simp-cli-4.0.4/lib/simp/cli/commands/bootstrap.rb:373:in `rescue in ensure_puppetserver_running'
/usr/share/simp/ruby/gems/simp-cli-4.0.4/lib/simp/cli/commands/bootstrap.rb:348:in `ensure_puppetserver_running'
/usr/share/simp/ruby/gems/simp-cli-4.0.4/lib/simp/cli/commands/bootstrap.rb:467:in `track_output'
/usr/share/simp/ruby/gems/simp-cli-4.0.4/lib/simp/cli/commands/bootstrap.rb:126:in `run'
/usr/share/simp/ruby/gems/simp-cli-4.0.4/lib/simp/cli.rb:87:in `start'
/usr/share/simp/ruby/gems/simp-cli-4.0.4/bin/simp:41:in `<main>'

Michael Brown

unread,
Dec 19, 2017, 10:18:29 AM12/19/17
to SIMP Q&A Forum
I will running a command that Judy sent me. I will post the results of that here soon

Michael Brown

unread,
Dec 19, 2017, 2:06:01 PM12/19/17
to SIMP Q&A Forum
[root@li647-140 ~]# puppet agent -t --masterport=8150 -server=simp
Error: Could not parse application options: ambiguous option: -server=simp
[root@li647-140 ~]# puppet agent -t --masterport=8150 --server=simp
Info: Creating a new SSL key for li647-140.members.linode.com
Error: Could not request certificate: Connection refused - connect(2) for "li647-140.members.linode.com" port 8141
Exiting; failed to retrieve certificate and waitforcert is disabled


On Tuesday, December 19, 2017 at 10:12:23 AM UTC-5, Michael Brown wrote:

Nick Markowski

unread,
Dec 20, 2017, 2:55:35 PM12/20/17
to SIMP Q&A Forum
Michael,

Could you post /root/.simp/simp_conf.yaml and /root/.simp/simp_config.log.*?

Let's try and debug the state of the Puppet server.  First, could you run `systemctl status puppetserver`?

If it's inactive, restart it.  If it errs, we can debug the issue from there.

If it's active, locate the 'Main PID'.  Run a `netstat -plant | grep <value of main pid>`.  This should return either 8150 or 8140 if you used the defaults during simp config.

From there, run `puppet agent -t --masterport <value returned from netstat> --tags pupmod,simp`.  Post the output if it errors out.

Thanks,
Nick

Michael Brown

unread,
Dec 20, 2017, 7:54:45 PM12/20/17
to SIMP Q&A Forum
I started everything from scratch again and now I get the following error when I install simp-adapter-foss

[root@li972-108 ~]# yum install simp-adapter-foss
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * extras: mirrors.linode.com
 * updates: mirrors.linode.com
Resolving Dependencies
--> Running transaction check
---> Package simp-adapter.noarch 0:0.0.5-0.el7 will be installed
--> Processing Dependency: puppetserver < 3.0.0 for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: puppetdb-termini < 5.0.0 for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: puppetdb < 5.0.0 for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: puppet-client-tools < 2.0.0 for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: puppet-agent < 2.0.0 for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: puppetserver >= 2.6.0 for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: puppetdb-termini >= 4.2.2 for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: puppetdb >= 4.2.2 for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: puppet-client-tools >= 1.1.0 for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: puppet-agent >= 1.6.2 for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: rsync for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: puppetserver for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: puppetdb for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: puppet for package: simp-adapter-0.0.5-0.el7.noarch
--> Processing Dependency: /opt/puppetlabs/puppet/bin/ruby for package: simp-adapter-0.0.5-0.el7.noarch
--> Running transaction check
---> Package puppet-agent.x86_64 0:1.10.6-1.el7 will be installed
---> Package puppet-client-tools.x86_64 0:1.2.1-1.el7 will be installed
---> Package puppetdb.noarch 0:4.4.0-1.el7 will be installed
--> Processing Dependency: java-1.8.0-openjdk-headless for package: puppetdb-4.4.0-1.el7.noarch
---> Package puppetdb-termini.noarch 0:4.4.0-1.el7 will be installed
---> Package puppetserver.noarch 0:2.8.0-1.el7 will be installed
---> Package rsync.x86_64 0:3.0.9-18.el7 will be installed
--> Running transaction check
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.151-5.b12.el7_4 will be installed
--> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
--> Processing Dependency: copy-jdk-configs >= 2.2 for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
--> Processing Dependency: lksctp-tools(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
--> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
--> Processing Dependency: libjpeg.so.62()(64bit) for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
--> Running transaction check
---> Package copy-jdk-configs.noarch 0:2.2-5.el7_4 will be installed
---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be installed
--> Processing Dependency: python-javapackages = 3.4.1-11.el7 for package: javapackages-tools-3.4.1-11.el7.noarch
--> Processing Dependency: libxslt for package: javapackages-tools-3.4.1-11.el7.noarch
---> Package libjpeg-turbo.x86_64 0:1.2.90-5.el7 will be installed
---> Package lksctp-tools.x86_64 0:1.0.17-2.el7 will be installed
---> Package tzdata-java.noarch 0:2017c-1.el7 will be installed
--> Running transaction check
---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed
---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be installed
--> Processing Dependency: python-lxml for package: python-javapackages-3.4.1-11.el7.noarch
--> Running transaction check
---> Package python-lxml.x86_64 0:3.2.1-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                                    Arch                  Version                                 Repository                                    Size
=============================================================================================================================================================
Installing:
 simp-adapter                               noarch                0.0.5-0.el7                             simp-project_6_X                              14 k
Installing for dependencies:
 copy-jdk-configs                           noarch                2.2-5.el7_4                             updates                                       19 k
 java-1.8.0-openjdk-headless                x86_64                1:1.8.0.151-5.b12.el7_4                 updates                                       32 M
 javapackages-tools                         noarch                3.4.1-11.el7                            base                                          73 k
 libjpeg-turbo                              x86_64                1.2.90-5.el7                            base                                         134 k
 libxslt                                    x86_64                1.1.28-5.el7                            base                                         242 k
 lksctp-tools                               x86_64                1.0.17-2.el7                            base                                          88 k
 puppet-agent                               x86_64                1.10.6-1.el7                            simp-project_6_X_dependencies                 26 M
 puppet-client-tools                        x86_64                1.2.1-1.el7                             simp-project_6_X_dependencies                8.4 M
 puppetdb                                   noarch                4.4.0-1.el7                             simp-project_6_X_dependencies                 22 M
 puppetdb-termini                           noarch                4.4.0-1.el7                             simp-project_6_X_dependencies                 24 k
 puppetserver                               noarch                2.8.0-1.el7                             simp-project_6_X_dependencies                 33 M
 python-javapackages                        noarch                3.4.1-11.el7                            base                                          31 k
 python-lxml                                x86_64                3.2.1-4.el7                             base                                         758 k
 rsync                                      x86_64                3.0.9-18.el7                            base                                         360 k
 tzdata-java                                noarch                2017c-1.el7                             updates                                      183 k

Transaction Summary
=============================================================================================================================================================
Install  1 Package (+15 Dependent packages)

Total download size: 123 M
Installed size: 345 M
Is this ok [y/d/N]: y
Downloading packages:
(1/16): copy-jdk-configs-2.2-5.el7_4.noarch.rpm                                                                                       |  19 kB  00:00:00
(2/16): javapackages-tools-3.4.1-11.el7.noarch.rpm                                                                                    |  73 kB  00:00:00
(3/16): libjpeg-turbo-1.2.90-5.el7.x86_64.rpm                                                                                         | 134 kB  00:00:00
(4/16): libxslt-1.1.28-5.el7.x86_64.rpm                                                                                               | 242 kB  00:00:00
(5/16): lksctp-tools-1.0.17-2.el7.x86_64.rpm                                                                                          |  88 kB  00:00:00
(6/16): java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64.rpm                                                                  |  32 MB  00:00:01
warning: /var/cache/yum/x86_64/7/simp-project_6_X_dependencies/packages/puppet-client-tools-1.2.1-1.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID ef8d349f: NOKEY
Public key for puppet-client-tools-1.2.1-1.el7.x86_64.rpm is not installed
(7/16): puppet-client-tools-1.2.1-1.el7.x86_64.rpm                                                                                    | 8.4 MB  00:00:03
(8/16): puppet-agent-1.10.6-1.el7.x86_64.rpm                                                                                          |  26 MB  00:00:03
(9/16): puppetdb-4.4.0-1.el7.noarch.rpm                                                                                               |  22 MB  00:00:04
(10/16): python-javapackages-3.4.1-11.el7.noarch.rpm                                                                                  |  31 kB  00:00:00
(11/16): rsync-3.0.9-18.el7.x86_64.rpm                                                                                                | 360 kB  00:00:00
(12/16): tzdata-java-2017c-1.el7.noarch.rpm                                                                                           | 183 kB  00:00:00
(13/16): python-lxml-3.2.1-4.el7.x86_64.rpm                                                                                           | 758 kB  00:00:00
(14/16): puppetdb-termini-4.4.0-1.el7.noarch.rpm                                                                                      |  24 kB  00:00:04
(15/16): puppetserver-2.8.0-1.el7.noarch.rpm                                                                                          |  33 MB  00:00:02
warning: /var/cache/yum/x86_64/7/simp-project_6_X/packages/simp-adapter-0.0.5-0.el7.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 7da6f216: NOKEY0:00 ETA
Public key for simp-adapter-0.0.5-0.el7.noarch.rpm is not installed
(16/16): simp-adapter-0.0.5-0.el7.noarch.rpm                                                                                          |  14 kB  00:00:02
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                         11 MB/s | 123 MB  00:00:11
Importing GPG key 0x7DA6F216:
 Userid     : "SIMP Release Key (SIMP Release Key) <keym...@simp-project.org>"
 Fingerprint: 103b 439d adf4 ae61 fa69 98af ee8c 77af 7da6 f216
Is this ok [y/N]: y
Importing GPG key 0x4BD6EC30:
 Userid     : "Puppet Labs Release Key (Puppet Labs Release Key) <in...@puppetlabs.com>"
 Fingerprint: 47b3 20eb 4c7c 375a a9da e1a0 1054 b7a2 4bd6 ec30
Is this ok [y/N]: y
Importing GPG key 0xEF8D349F:
 Userid     : "Puppet, Inc. Release Key (Puppet, Inc. Release Key) <rel...@puppet.com>"
 Fingerprint: 6f6b 1550 9cf8 e59e 6e46 9f32 7f43 8280 ef8d 349f
Is this ok [y/N]: y
Importing GPG key 0x442DF0F8:
 Userid     : "PostgreSQL RPM Building Project <pgsqlrpm...@pgfoundry.org>"
 Fingerprint: 68c9 e2b9 1a37 d136 fe74 d176 1f16 d2e1 442d f0f8
Is this ok [y/N]: y
Importing GPG key 0xD88E42B4:
 Userid     : "Elasticsearch (Elasticsearch Signing Key) <dev...@elasticsearch.org>"
 Fingerprint: 4609 5acc 8548 582c 1a26 99a9 d27d 666c d88e 42b4
Is this ok [y/N]: y
Importing GPG key 0x24098CB6:
 Userid     : "Grafana <in...@grafana.com>"
 Fingerprint: 4e40 ddf6 d76e 284a 4a67 80e4 8c8c 34c5 2409 8cb6
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : puppet-agent-1.10.6-1.el7.x86_64                                                                                                         1/16
  Installing : libxslt-1.1.28-5.el7.x86_64                                                                                                              2/16
  Installing : python-lxml-3.2.1-4.el7.x86_64                                                                                                           3/16
  Installing : python-javapackages-3.4.1-11.el7.noarch                                                                                                  4/16
  Installing : javapackages-tools-3.4.1-11.el7.noarch                                                                                                   5/16
  Installing : puppetdb-termini-4.4.0-1.el7.noarch                                                                                                      6/16
  Installing : puppet-client-tools-1.2.1-1.el7.x86_64                                                                                                   7/16
  Installing : lksctp-tools-1.0.17-2.el7.x86_64                                                                                                         8/16
  Installing : libjpeg-turbo-1.2.90-5.el7.x86_64                                                                                                        9/16
  Installing : rsync-3.0.9-18.el7.x86_64                                                                                                               10/16
  Installing : tzdata-java-2017c-1.el7.noarch                                                                                                          11/16
  Installing : copy-jdk-configs-2.2-5.el7_4.noarch                                                                                                     12/16
  Installing : 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64                                                                              13/16
  Installing : puppetserver-2.8.0-1.el7.noarch                                                                                                         14/16
usermod: no changes
  Installing : puppetdb-4.4.0-1.el7.noarch                                                                                                             15/16
Config archive not found. Not proceeding with migration
PEM files in /etc/puppetlabs/puppetdb/ssl are missing, we will move them into place for you
Warning: Unable to find all puppet certificates to copy

  This tool requires the following certificates to exist:

  * /etc/puppetlabs/puppet/ssl/certs/ca.pem
  * /etc/puppetlabs/puppet/ssl/private_keys/li972-108.members.linode.com.pem
  * /etc/puppetlabs/puppet/ssl/certs/li972-108.members.linode.com.pem

  These files may be missing due to the fact that your host's Puppet
  certificates may not have been signed yet, probably due to the
  lack of a complete Puppet agent run. Try running puppet first, for
  example:

      puppet agent --test

  Afterwards re-run this tool then restart PuppetDB to complete the SSL
  setup:

      puppetdb ssl-setup -f
  Installing : simp-adapter-0.0.5-0.el7.noarch                                                                                                         16/16
  Verifying  : puppetdb-termini-4.4.0-1.el7.noarch                                                                                                      1/16
  Verifying  : copy-jdk-configs-2.2-5.el7_4.noarch                                                                                                      2/16
  Verifying  : tzdata-java-2017c-1.el7.noarch                                                                                                           3/16
  Verifying  : rsync-3.0.9-18.el7.x86_64                                                                                                                4/16
  Verifying  : puppetserver-2.8.0-1.el7.noarch                                                                                                          5/16
  Verifying  : libjpeg-turbo-1.2.90-5.el7.x86_64                                                                                                        6/16
  Verifying  : lksctp-tools-1.0.17-2.el7.x86_64                                                                                                         7/16
  Verifying  : python-javapackages-3.4.1-11.el7.noarch                                                                                                  8/16
  Verifying  : libxslt-1.1.28-5.el7.x86_64                                                                                                              9/16
  Verifying  : python-lxml-3.2.1-4.el7.x86_64                                                                                                          10/16
  Verifying  : puppet-agent-1.10.6-1.el7.x86_64                                                                                                        11/16
  Verifying  : puppet-client-tools-1.2.1-1.el7.x86_64                                                                                                  12/16
  Verifying  : puppetdb-4.4.0-1.el7.noarch                                                                                                             13/16
  Verifying  : javapackages-tools-3.4.1-11.el7.noarch                                                                                                  14/16
  Verifying  : simp-adapter-0.0.5-0.el7.noarch                                                                                                         15/16
  Verifying  : 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64                                                                              16/16

Installed:
  simp-adapter.noarch 0:0.0.5-0.el7

Dependency Installed:
  copy-jdk-configs.noarch 0:2.2-5.el7_4      java-1.8.0-openjdk-headless.x86_64 1:1.8.0.151-5.b12.el7_4      javapackages-tools.noarch 0:3.4.1-11.el7
  libjpeg-turbo.x86_64 0:1.2.90-5.el7        libxslt.x86_64 0:1.1.28-5.el7                                   lksctp-tools.x86_64 0:1.0.17-2.el7
  puppet-agent.x86_64 0:1.10.6-1.el7         puppet-client-tools.x86_64 0:1.2.1-1.el7                        puppetdb.noarch 0:4.4.0-1.el7
  puppetdb-termini.noarch 0:4.4.0-1.el7      puppetserver.noarch 0:2.8.0-1.el7                               python-javapackages.noarch 0:3.4.1-11.el7
  python-lxml.x86_64 0:3.2.1-4.el7           rsync.x86_64 0:3.0.9-18.el7                                     tzdata-java.noarch 0:2017c-1.el7

Complete!
[root@li972-108 ~]# puppet agent --test

Michael Brown

unread,
Dec 20, 2017, 7:58:43 PM12/20/17
to SIMP Q&A Forum
I ran the following command and the result below

[root@li972-108 ~]# puppet agent -t
-bash: puppet: command not found
[root@li972-108 ~]#
 Userid     : "PostgreSQL RPM Building Project <pgsqlrpms-hackers@pgfoundry.org>"

Trevor Vaughan

unread,
Dec 24, 2017, 5:47:02 PM12/24/17
to Michael Brown, SIMP Q&A Forum
Hi Mike,

Sorry about the delay.

The puppet command is located at /opt/puppetlabs/bin/puppet and may not be in root's path until you log back into the system.

Can you run netstat -plant and ensure that java is listening on ports 8140 and 8141?

Thanks,

Trevor

--
You received this message because you are subscribed to the Google Groups "SIMP Q&A Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simp+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simp/81c6269a-6179-467f-9c5e-3ff781fe0245%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Trevor Vaughan
Vice President, Onyx Point, Inc

-- This account not approved for unencrypted proprietary information --

Michael Brown

unread,
Dec 24, 2017, 5:48:41 PM12/24/17
to Trevor Vaughan, SIMP Q&A Forum
Trevor 

I updated my post to say where I am at 
Reply all
Reply to author
Forward
0 new messages