#443 closed defect (fixed)
gmg wipealldata fails if you don't have mongodb
Reported by: | Will Kahn-Greene | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | 0.3.0 |
Component: | programming | Keywords: | |
Cc: | Parent Tickets: |
Description
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.
Change History (3)
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I updated this and think I'm fine with the solution at:
http://wiki.mediagoblin.org/HackingHowto#Wiping_your_user_data
... closing this out for now.
This command doesn't really work at all anymore with our new setup I guess?
It might be useful instead to have a copy-pastable bash string on the HackingHowto that can show you how to wipe your data for a test install.
Should be something as easy as:
... mayyyybe minus the _locl.ini files, not sure.