Error global name 'keypath' is not defined

Events happening in the community are now at Drupal community events on www.drupal.org.
alexiea's picture

I am trying to install project mercury on the recommend AWS Lucid AMI ami-3202f25b.

I am following the instructions from the step-by-step guide exactly, found at: http://groups.drupal.org/node/70268 .

When I get to step 3 and the: sudo bcfg2-admin init command is run and filled out, I receive the following error:

sudo bcfg2-admin init
Store Bcfg2 configuration in [/etc/bcfg2.conf]:
Location of Bcfg2 repository [/var/lib/bcfg2]:
Directory /var/lib/bcfg2 exists. Overwrite? [y/N]:y
Input password used for communication verification (without echoing; leave blank for a random):
What is the server's hostname [ip-10-46-134-187.ec2.internal]: localhost
Input the server location [https://ip-10-46-134-187.ec2.internal:6789]: https://localhost:6789
Input base Operating System for clients:
1: Red Hat/Fedora/RHEL/RHAS/Centos
2: SUSE/SLES
3: Mandrake
4: Debian
5: Ubuntu
6: Gentoo
7: FreeBSD
: 5
The following questions affect SSL certificate generation.
If no data is provided, the default values are used.
Country name (2 letter code) for certificate: US
State or Province Name (full name) for certificate: California
Locality Name (eg, city) for certificate: Newport Beach

Warning: /etc/bcfg2.conf already exists. Overwrite? [y/N]: y
Error global name 'keypath' is not defined occured while trying to write configuration file to '/etc/bcfg2.conf'.

Any help would be much appreciated.

Comments

Couldn't diagnose, but seems to be fixed...

jakeschlachter's picture

I ran into the same error this morning, spent about an hour trying to debug it in Server/Admin/Init.py, to no avail.

After many repro's, in frustration I replied 'n' to the last Overwrite prompt in your output, and watched as my key and cert files were promptly generated.

I was able to pick right back up on the Mercury 1.1 instructions as though nothing happened. Seems to be working out so far.

So, here's my advice:

Run the 'sudo bcfg2-admin init' once, answering "y" to the final overwrite prompt. Your conf file will be generated in /etc/bcfg2.conf.

Then run it again, answering "n" to the final overwrite prompt. Your key and cert files will be generated as expected. (You may want to verify that /etc/bcfg2.key and /etc/bcfg2.crt are present, and that they are specified in the /etc/bcfg2.conf file.)

Then beat the drums so that the sun is restored after an eclipse...

Thanks for the advice.

alexiea's picture

Thanks for the advice. Everything seems ok with this solution until I get to step 11. When I run the: bcfg2 -vqed command, I get the following error:

SSL Key error
Failed to download probes from bcfg2
Server Failure

Any ideas?

Confiming solution for EBS Boot

stevenator's picture

I ran into the same issue with keypath missing. I reran the initial script and selected no in the last step and was able to complete the mercury instructions.

Ran through this process again.

alexiea's picture

I ran through the entire process on a new instance and I still run into the same problem:

bcfg2 -vqed
{'filelog': None, 'verbose': True, 'extra': True, 'ca': '/etc/bcfg2.crt', 'remove': False, 'file': False, 'help': False, 'password': '1lmjkgd1', 'omit-lock-check': False, 'certificate': '/etc/bcfg2.crt', 'paranoid': False, 'indep': False, 'decision': False, 'cache': False, 'servicemode': 'default', 'bundle-quick': False, 'profile': False, 'dryrun': False, 'kevlar': False, 'args': [], 'bundle': [], 'quick': True, 'user': 'root', 'key': '/etc/bcfg2.key', 'lockfile': '/var/lock/bcfg2.run', 'retries': '3', 'setup': '/etc/bcfg2.conf', 'serverCN': None, 'server': 'https://localhost:6789', 'encoding': 'ascii', 'decision-list': False, 'debug': True, 'drivers': ['RPMng', 'Pacman', 'RcUpdate', 'Chkconfig', 'YUMng', 'MacPorts', 'Encap', 'launchd', 'FreeBSDPackage', 'FreeBSDInit', 'SMF', 'VCS', 'SYSV', 'YUM24', 'Portage', 'Action', 'POSIX', 'Upstart', 'Blast', 'Systemd', 'APT', 'IPS', 'DebInit'], 'interactive': False}
SSL Key error
Failed to download probes from bcfg2
Server Failure

Any ideas?

Mercury

Group organizers

Group categories

Post Type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: