1. Marcin Kuzminski
  2. RhodeCode

Issues

Issue #720 wontfix

Failed when add user to repo

xpol
created an issue

A normal user Jack was assigned as repo owner and have admin permission, When Jack add another user Jeo to have the repo it failes with the follow message:

You already have an instance of the program running
It is running as process 4977
2013-01-11 14:34:24.728 INFO  [rhodecode.lib.celerylib.tasks] LockHeld
2013-01-11 14:34:24.794 INFO  [rhodecode.lib.base] IP: ______ Request to /______/summary time: 0.304s
2013-01-11 14:34:25.371 INFO  [rhodecode.lib.base] IP: ______ User: <AuthUser('id:14:______|True')> accessed /gpl329xx-main/summary
2013-01-11 14:34:25.371 INFO  [rhodecode.lib.auth] user ______ is authenticated and granted access to SummaryController:__before__ using RegularAuth
2013-01-11 14:34:25.577 INFO  [rhodecode.lib.celerylib.tasks] running task with lockkey task_54d0bc454be8ebf89c4cf87fb27b709f.lock
2013-01-11 14:34:25.716 INFO  [rhodecode.lib.base] IP: ______ Request to /gpl329xx-main/summary time: 0.454s
2013-01-11 14:34:34.096 INFO  [rhodecode.lib.base] IP: ______ User: <AuthUser('id:14:______|True')> accessed /______/settings
2013-01-11 14:34:34.097 INFO  [rhodecode.lib.auth] user ______ is authenticated and granted access to SettingsController:__before__ using RegularAuth
2013-01-11 14:34:34.629 INFO  [rhodecode.lib.base] IP: ______ Request to /______/settings time: 0.683s
2013-01-11 14:34:42.408 INFO  [rhodecode.lib.base] IP: ______ User: <AuthUser('id:14:______|True')> accessed /______/settings
2013-01-11 14:34:42.408 INFO  [rhodecode.lib.auth] user ______ is authenticated and granted access to SettingsController:__before__ using RegularAuth
2013-01-11 14:34:47.747 ERROR [rhodecode.controllers.settings] Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.5.1-py2.7.egg/rhodecode/controllers/settings.py", line 118, in update
    invalidate_cache('get_repo_cached_%s' % repo_name)
  File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.5.1-py2.7.egg/rhodecode/lib/utils.py", line 360, in invalidate_cache
    ScmModel().mark_for_invalidation(name)
  File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.5.1-py2.7.egg/rhodecode/model/scm.py", line 294, in mark_for_invalidation
    CacheInvalidation.set_invalidate(repo_name=repo_name)
  File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.5.1-py2.7.egg/rhodecode/model/db.py", line 1526, in set_invalidate
    inv_objs = Session().query(cls).filter(cls.cache_args == repo_name).all()
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/orm/query.py", line 2115, in all
    return list(self)
  File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.5.1-py2.7.egg/rhodecode/lib/caching_query.py", line 83, in __iter__
    return Query.__iter__(self)
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/orm/query.py", line 2226, in __iter__
    self.session._autoflush()
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/orm/session.py", line 1120, in _autoflush
    self.flush()
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/orm/session.py", line 1718, in flush
    self._flush(objects)
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/orm/session.py", line 1789, in _flush
    flush_context.execute()
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/orm/unitofwork.py", line 331, in execute
    rec.execute(self)
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/orm/unitofwork.py", line 475, in execute
    uow
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/orm/persistence.py", line 64, in save_obj
    table, insert)
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/orm/persistence.py", line 558, in _emit_insert_statements
    execute(statement, params)
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1449, in execute
    params)
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1584, in _execute_clauseelement
    compiled_sql, distilled_params
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1698, in _execute_context
    context)
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1691, in _execute_context
    context)
  File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/default.py", line 331, in do_execute
    cursor.execute(statement, parameters)
OperationalError: (OperationalError) database is locked u'INSERT INTO repo_to_perm (user_id, permission_id, repository_id) VALUES (?, ?, ?)' (15, 3, 69)

2013-01-11 14:34:47.807 INFO  [rhodecode.lib.base] IP: ______ Request to /______/settings time: 5.454s
2013-01-11 14:34:48.119 INFO  [rhodecode.lib.base] IP: ______ User: <AuthUser('id:14:______|True')> accessed /______/settings
2013-01-11 14:34:48.120 INFO  [rhodecode.lib.auth] user ______ is authenticated and granted access to SettingsController:__before__ using RegularAuth
2013-01-11 14:34:48.598 INFO  [rhodecode.lib.base] IP: ______ Request to /______/settings time: 0.715s
2013-01-11 14:35:35.348 INFO  [rhodecode.lib.base] IP: ______ Request to /______/summary time: 83.573s

Note the IP address / user / and repo are masked with ______.

Comments (3)

  1. Log in to comment