﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	parents
443	gmg wipealldata fails if you don't have mongodb	Will Kahn-Greene		"If you run {{{./bin/gmg wipealldata}}}, but don't have mongodb installed or running, then it kicks up errors.

Given that we're done with mongodb, this should handle the cases when mongodb isn't installed or running.


{{{
130 (M=d2eab local) saturn ~/projects/mediagoblin> ./bin/gmg wipealldata
*** WARNING! ***

Running this will destroy your mediagoblin database,
remove all your media files in user_dev/, etc.

ALSO: This command is currently a hack and will only remove
  things properly on the default setup!  If you've customized
  your mediagoblin configs, it won't work (for now).
Are you **SURE** you want to destroy your environment?  (if so, type ""yes"")> yes
nixing data in mongodb....
Traceback (most recent call last):
  File ""./bin/gmg"", line 9, in <module>
    load_entry_point('mediagoblin==0.3.0.dev', 'console_scripts', 'gmg')()
  File ""/home/willkg/projects/mediagoblin/mediagoblin/gmg_commands/__init__.py"", line 100, in main_cli
    args.func(args)
  File ""/home/willkg/projects/mediagoblin/mediagoblin/gmg_commands/wipealldata.py"", line 50, in wipe
    conn = pymongo.Connection()
  File ""/home/willkg/projects/mediagoblin/local/lib/python2.7/site-packages/pymongo-2.1.1-py2.7-linux-i686.egg/pymongo/connection.py"", line 381, in __init__
    self.__find_node()
  File ""/home/willkg/projects/mediagoblin/local/lib/python2.7/site-packages/pymongo-2.1.1-py2.7-linux-i686.egg/pymongo/connection.py"", line 659, in __find_node
    raise AutoReconnect(', '.join(errors))
pymongo.errors.AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused
}}}

Seems like this should be a blocker, too, since it's referred to in the Hacking HOWTO, but ... I'm going to just make it Critical."	defect	closed	critical	0.3.0	programming	fixed			
