Custom Query (1173 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (151 - 153 of 1173)

Ticket Resolution Summary Owner Reporter
#5411 fixed Error running alembic migrations: database locked ayleph
Description

I've got a test instance using the sqlite backend. I recently updated to current master and tried to run dbupdate. I received the error below.

(mediagoblin-dev) ~/mediagoblin-dev $ bin/gmg dbupdate
/path/to/mediagoblin/mediagoblin/media_types/video/transcoders.py:37: PyGIWarning: GstPbutils was imported without specifying a version first. Use gi.require_version('GstPbutils', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GstPbutils
/path/to/mediagoblin/lib/python2.7/site-packages/SQLAlchemy-0.8.7-py2.7-linux-x86_64.egg/sqlalchemy/engine/default.py:459: SAWarning: Unicode type received non-unicode bind param value.
INFO  [alembic.migration] Context impl SQLiteImpl.
INFO  [alembic.migration] Will assume non-transactional DDL.
INFO  [alembic.migration] Running upgrade 101510e3a713 -> 8429e33fdf7, Remove the Graveyard objects from CommentNotification objects
Traceback (most recent call last):
  File "bin/gmg", line 9, in <module>
    load_entry_point('mediagoblin', 'console_scripts', 'gmg')()
  File "/path/to/mediagoblin/mediagoblin/gmg_commands/__init__.py", line 142, in main_cli
    args.func(args)
  File "/path/to/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 162, in dbupdate
    run_dbupdate(app_config, global_config)
  File "/path/to/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 134, in run_dbupdate
    run_alembic_migrations(db, app_config, global_config)
  File "/path/to/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 116, in run_alembic_migrations
    manager.init_or_migrate()
  File "/path/to/mediagoblin/mediagoblin/db/migration_tools.py", line 84, in init_or_migrate
    self.upgrade(version)
  File "/path/to/mediagoblin/mediagoblin/db/migration_tools.py", line 60, in upgrade
    return command.upgrade(self.alembic_cfg, version or 'head')
  File "/path/to/mediagoblin/lib/python2.7/site-packages/alembic-0.6.6-py2.7.egg/alembic/command.py", line 125, in upgrade
    script.run_env()
  File "/path/to/mediagoblin/lib/python2.7/site-packages/alembic-0.6.6-py2.7.egg/alembic/script.py", line 203, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/path/to/mediagoblin/lib/python2.7/site-packages/alembic-0.6.6-py2.7.egg/alembic/util.py", line 215, in load_python_file
    module = load_module_py(module_id, path)
  File "/path/to/mediagoblin/lib/python2.7/site-packages/alembic-0.6.6-py2.7.egg/alembic/compat.py", line 58, in load_module_py
    mod = imp.load_source(module_id, path, fp)
  File "/path/to/mediagoblin/mediagoblin/db/migrations/env.py", line 62, in <module>
    run_migrations_online()
  File "/path/to/mediagoblin/mediagoblin/db/migrations/env.py", line 57, in run_migrations_online
    context.run_migrations()
  File "<string>", line 7, in run_migrations
  File "/path/to/mediagoblin/lib/python2.7/site-packages/alembic-0.6.6-py2.7.egg/alembic/environment.py", line 689, in run_migrations
    self.get_context().run_migrations(**kw)
  File "/path/to/mediagoblin/lib/python2.7/site-packages/alembic-0.6.6-py2.7.egg/alembic/migration.py", line 263, in run_migrations
    change(**kw)
  File "/path/to/mediagoblin/mediagoblin/db/migrations/versions/8429e33fdf7_remove_the_graveyard_objects_from_.py", line 45, in upgrade
    notification_table.c.object_id == gmr.id
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1614, in execute
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 662, in execute
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 761, in _execute_clauseelement
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 908, in _execute_context
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 491, in _commit_impl
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1024, in _handle_dbapi_exception
  File "build/bdist.linux-x86_64/egg/sqlalchemy/util/compat.py", line 196, in raise_from_cause
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 488, in _commit_impl
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/default.py", line 297, in do_commit
sqlalchemy.exc.OperationalError: (OperationalError) database is locked None None
#5410 wontfix Move back to paste Jessica Tallon
Description

It would seem Paste now supports Python3 (source here). If we move back we can solve some issues we are having with gunircorn such as the one in #978.

It would seem since version 2.0 of Paste it's had experemental python 3 support, the 2.0.1 and 2.0.2 build on that.

#5409 fixed Media processing fails on video with year only Ben Sturmfels
Description

Re-processing a video that failed to be processed gives the following traceback:

$ bin/gmg reprocess --celery initial
DEBUG:mediagoblin.processing.task:Processing <MediaEntry 19: rock-your-emacs>

(python:3524): GStreamer-CRITICAL **: gst_date_time_get_month: assertion 'gst_date_time_has_month (datetime)' failed

(python:3524): GStreamer-CRITICAL **: gst_date_time_get_day: assertion 'gst_date_time_has_day (datetime)' failed

(python:3524): GStreamer-CRITICAL **: gst_date_time_get_hour: assertion 'gst_date_time_has_time (datetime)' failed

(python:3524): GStreamer-CRITICAL **: gst_date_time_get_minute: assertion 'gst_date_time_has_time (datetime)' failed

(python:3524): GStreamer-CRITICAL **: gst_date_time_get_second: assertion 'gst_date_time_has_second (datetime)' failed

(python:3524): GStreamer-CRITICAL **: gst_date_time_get_microsecond: assertion 'gst_date_time_has_second (datetime)' failed
ERROR:mediagoblin.processing.task:An unhandled exception was raised while processing <MediaEntry 19: rock-your-emacs>
WARNING:mediagoblin.processing:No idea what happened here, but it failed: ValueError('month must be in 1..12',)
WARNING:mediagoblin.processing:No idea what happened here, but it failed: ValueError('month must be in 1..12',)
Traceback (most recent call last):
  File "/home/web/local/mediagoblin/bin/gmg", line 9, in <module>
    load_entry_point('mediagoblin==0.8.0', 'console_scripts', 'gmg')()
  File "/home/web/local/mediagoblin/mediagoblin/gmg_commands/__init__.py", line 142, in main_cli
    args.func(args)
  File "/home/web/local/mediagoblin/mediagoblin/gmg_commands/reprocess.py", line 305, in reprocess
    initial(args)
  File "/home/web/local/mediagoblin/mediagoblin/gmg_commands/reprocess.py", line 280, in initial
    reprocess_action='initial')
  File "/home/web/local/mediagoblin/mediagoblin/submit/lib.py", line 257, in run_process_media
    task_id=entry.queued_task_id)
  File "/home/web/local/mediagoblin/local/lib/python2.7/site-packages/celery-3.1.20-py2.7.egg/celery/app/task.py", line 557, in apply_async
    link=link, link_error=link_error, **options)
  File "/home/web/local/mediagoblin/local/lib/python2.7/site-packages/celery-3.1.20-py2.7.egg/celery/app/task.py", line 755, in apply
    request=request, propagate=throw)
  File "/home/web/local/mediagoblin/local/lib/python2.7/site-packages/celery-3.1.20-py2.7.egg/celery/app/trace.py", line 355, in eager_trace_task
    uuid, args, kwargs, request)
  File "/home/web/local/mediagoblin/local/lib/python2.7/site-packages/celery-3.1.20-py2.7.egg/celery/app/trace.py", line 253, in trace_task
    I, R, state, retval = on_error(task_request, exc, uuid)
  File "/home/web/local/mediagoblin/local/lib/python2.7/site-packages/celery-3.1.20-py2.7.egg/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/web/local/mediagoblin/mediagoblin/processing/task.py", line 101, in run
    processor.process(**reprocess_info)
  File "/home/web/local/mediagoblin/mediagoblin/media_types/video/processing.py", line 393, in process
    vp8_threads=vp8_threads, vorbis_quality=vorbis_quality)
  File "/home/web/local/mediagoblin/mediagoblin/media_types/video/processing.py", line 255, in transcode
    store_metadata(self.entry, metadata)
  File "/home/web/local/mediagoblin/mediagoblin/media_types/video/processing.py", line 136, in store_metadata
    'tags': get_tags(audio_info)
  File "/home/web/local/mediagoblin/mediagoblin/media_types/video/processing.py", line 112, in get_tags
    dt.get_microsecond()).isoformat()
ValueError: month must be in 1..12

I'll need to prepare a smaller video that has similar metadata, but the video I was uploading on is here:

http://www.sturm.com.au/2015/talks/rock-your-emacs-libreplanet/rock-your-emacs.webm

I'm assuming that the issue is that if there is any date information, MediaGoblin assumes the full date is supplied. This video only has a year specified I think, so the get_month() returns zero.

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