Custom Query (1173 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (43 - 45 of 1173)

Ticket Resolution Summary Owner Reporter
#441 fixed remove mongodb bits from documentation Will Kahn-Greene
Description

The documentation in docs/ talks about installing and configuring mongodb. That should be removed.

M=d2eab) saturn ~/projects/mediagoblin/docs/source> grin -i mongodb
./codebase.rst:
   85 :     ORM for MongoDB we're using which will make it easier to define
  151 : :models.py:  holds the mongodb schemas---these are the data structures
./deploying.rst:
  114 : Configure MongoDB
  122 : First, install MongoDB. On a DEB-based system run::
  124 :     sudo apt-get install mongodb
  128 :     yum install mongodb-server
  130 : After installing MongoDB some preliminary database configuration may
  133 : Ensure that MongoDB `journaling
  134 : <http://www.mongodb.org/display/DOCS/Journaling>`_ is enabled. Journaling
  135 : is enabled by default in version 2.0 and later 64-bit MongoDB instances.
  141 :    Running MongoDB without journaling risks general data corruption
  145 :    MediaGoblin recommends enabling MongoDB's journaling feature by
  149 : MongoDB can take a lot of space by default. If you're planning on
#442 fixed migration tests fail Will Kahn-Greene
Description

Given that we don't need mongodb things installed anymore and we're removing the installation instructions from the documentation, it shouldn't be the case that tests fail if you don't have it installed.

These tests should get fixed so that they get skipped if mongodb is either not installed or not running. nose is super duper for this sort of thing.

(M=d2eab local) saturn ~/projects/mediagoblin> ./runtests.sh 
Using ./bin/nosetests
..../home/willkg/projects/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.7.6-py2.7-linux-i686.egg/sqlalchemy/engine/default.py:461: SAWarning: Unicode type received non-unicode bind param value.
  param.append(processors[key](compiled_params[key]))
................/home/willkg/projects/mediagoblin/mediagoblin/db/sql/open.py:63: SAWarning: At least one scoped session is already present.  configure() can not affect sessions that have already been created.
  Session.configure(bind=engine)
.EEEEEEE..........................................
======================================================================
ERROR: Make sure that if we don't have a migration_status
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 381, in setUp
    try_run(self.inst, ('setup', 'setUp'))
  File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
    return func()
  File "/home/willkg/projects/mediagoblin/mediagoblin/tests/test_migrations.py", line 273, in setUp
    self.connection = 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))
AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused

======================================================================
ERROR: Make sure that migrations get registered and are sorted right
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 381, in setUp
    try_run(self.inst, ('setup', 'setUp'))
  File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
    return func()
  File "/home/willkg/projects/mediagoblin/mediagoblin/tests/test_migrations.py", line 273, in setUp
    self.connection = 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))
AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused

======================================================================
ERROR: Make sure we get the right list of migrations to run
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 381, in setUp
    try_run(self.inst, ('setup', 'setUp'))
  File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
    return func()
  File "/home/willkg/projects/mediagoblin/mediagoblin/tests/test_migrations.py", line 273, in setUp
    self.connection = 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))
AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused

======================================================================
ERROR: If we don't have the current migration set in the database,
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 381, in setUp
    try_run(self.inst, ('setup', 'setUp'))
  File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
    return func()
  File "/home/willkg/projects/mediagoblin/mediagoblin/tests/test_migrations.py", line 273, in setUp
    self.connection = 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))
AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused

======================================================================
ERROR: Make sure that if we don't have a migration_status
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 381, in setUp
    try_run(self.inst, ('setup', 'setUp'))
  File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
    return func()
  File "/home/willkg/projects/mediagoblin/mediagoblin/tests/test_migrations.py", line 273, in setUp
    self.connection = 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))
AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused

======================================================================
ERROR: Make sure that running the full migration suite from 0 updates
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 381, in setUp
    try_run(self.inst, ('setup', 'setUp'))
  File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
    return func()
  File "/home/willkg/projects/mediagoblin/mediagoblin/tests/test_migrations.py", line 273, in setUp
    self.connection = 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))
AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused

======================================================================
ERROR: Make sure that running full migration suite from 3 only runs
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 381, in setUp
    try_run(self.inst, ('setup', 'setUp'))
  File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
    return func()
  File "/home/willkg/projects/mediagoblin/mediagoblin/tests/test_migrations.py", line 273, in setUp
    self.connection = 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))
AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused

----------------------------------------------------------------------
Ran 70 tests in 86.665s

FAILED (errors=7)

#443 fixed gmg wipealldata fails if you don't have mongodb Will Kahn-Greene
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.

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.