Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

rabbitmqadmin errors when $HOME / $USERPROFILE isn't defined #10

Closed
matthewbarr opened this issue Dec 9, 2013 · 2 comments
Closed

rabbitmqadmin errors when $HOME / $USERPROFILE isn't defined #10

matthewbarr opened this issue Dec 9, 2013 · 2 comments
Milestone

Comments

@matthewbarr
Copy link

There doesn't seem to be any checking for the existence of $HOME or $USERPROFILE in line 309 of rabbitmqadmin. line 310 produces an error when $HOME isn't set on ubuntu 12.04.

This was encountered by using puppet to run the admin tool, vs running from a login shell.

This was introduced in v 3.2.0, as it wasn't an issue in 3.1.5. (I downloaded v 3.1.5 of the tool and it worked fine.)

Error was:

Execution of '/usr/local/bin/rabbitmqadmin list exchanges' returned 1: Traceback (most recent call last):
File "/usr/local/bin/rabbitmqadmin", line 939, in
main()
File "/usr/local/bin/rabbitmqadmin", line 370, in main
(options, args) = make_configuration()
File "/usr/local/bin/rabbitmqadmin", line 319, in make_configuration
config_file = default_config()
File "/usr/local/bin/rabbitmqadmin", line 310, in default_config
return home + os.sep + ".rabbitmqadmin.conf"
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

@michaelklishin
Copy link
Member

@matthewbarr thank you for reporting this. Bug # in the internal RabbitMQ tracker is 25920. I'll make a note to post here when this is fixed.

@matthewbarr
Copy link
Author

Looks like this was solved in 3.2.2 : http://www.rabbitmq.com/release-notes/README-3.2.2.txt

@dumbbell dumbbell modified the milestone: n/a Mar 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants