500 internal server error when rescanning repositories

311 views
Skip to first unread message

cdsm...@gmail.com

unread,
Aug 8, 2013, 5:30:12 PM8/8/13
to rhod...@googlegroups.com
We untarred a bunch of mercurial repositories to the data directory and went to the Admin interface to rescan repositories.  We didn't select destroy data or invalidate cache.  It bombed right away and brought up a page with..

RhodeCode

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.



We then got an error email below with the crash.  Any ideas on what is going on?  Please advise.

Thanks,
Mike




Module rhodecode.controllers.admin.settings:2 in update
Module rhodecode.lib.auth:624 in __wrapper
<<          if self.check_permissions():
                   log.debug('Permission granted for %s %s' % (cls, self.user))
                   return func(*fargs, **fkwargs)
       
               else:
>>  return func(*fargs, **fkwargs)
Module rhodecode.controllers.admin.settings:124 in update
<<                      ScmModel().mark_for_invalidation(repo.repo_name)
       
                   filesystem_repos = ScmModel().repo_scan()
                   added, removed = repo2db_mapper(filesystem_repos, rm_obsolete)
                   _repr = lambda l: ', '.join(map(safe_unicode, l)) or '-'
>>  filesystem_repos = ScmModel().repo_scan()
Module rhodecode.model.scm:290 in repo_scan
<<                      if path[0] == 'hg' and path[0] in BACKENDS.keys():
                               repos[name] = klass(safe_str(path[1]), baseui=baseui)
       
                           if path[0] == 'git' and path[0] in BACKENDS.keys():
>>  repos[name] = klass(safe_str(path[1]), baseui=baseui)
Module rhodecode.lib.vcs.backends.hg.repository:76 in __init__
<<          self.baseui = baseui or ui.ui()
               # We've set path and ui, now we can set _repo itself
               self._repo = self._get_repo(create, src_url, update_after_clone)
       
           @property
>>  self._repo = self._get_repo(create, src_url, update_after_clone)
Module rhodecode.lib.vcs.backends.hg.repository:357 in _get_repo
<<                  # Don't try to create if we've already cloned repo
                       create = False
                   return localrepository(self.baseui, self.path, create=create)
               except (Abort, RepoError), err:
                   if create:
>>  return localrepository(self.baseui, self.path, create=create)
Module mercurial.localrepo:171 in __init__
<<          self._phasedefaults = []
               try:
                   self.ui.readconfig(self.join("hgrc"), self.root)
                   extensions.loadall(self.ui)
               except IOError:
>>  self.ui.readconfig(self.join("hgrc"), self.root)
Module mercurial.ui:86 in readconfig
<<          try:
                   cfg.read(filename, fp, sections=sections, remap=remap)
                   fp.close()
               except error.ConfigError, inst:
>>  cfg.read(filename, fp, sections=sections, remap=remap)
Module mercurial.config:189 in read
<<          if not fp:
                   fp = util.posixfile(path)
               self.parse(path, fp.read(), sections, remap, self.read)
>>  self.parse(path, fp.read(), sect ions, remap, self.read)
Module mercurial.config:184 in parse
<<                  continue
       
                   raise error.ParseError(l.rstrip(), ("%s:%s" % (src, line)))
       
           def read(self, path, fp=None, sections=None, remap=None):
>>  raise error.ParseError(l.rstrip(), ("%s:%s" % (src, line)))
ParseError: ('SS, te...@localhost.com', '/RhodeCode/rhodecode_repo/hg/Breckenridge/.hg/hgrc:1')
CGI Variables
CONNECTION_TYPE 'Keep-Alive'
CONTENT_TYPE 'application/x-www-form-urlencoded; charset="utf-8"'
HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_ACCEPT_ENCODING 'gzip,deflate,sdch'
HTTP_ACCEPT_LANGUAGE 'en-US,en;q=0.8'
HTTP_CACHE_CONTROL 'max-age=0'
HTTP_COOKIE 'CLEQ_a=84863004c9744337a3e4625a8b980000.18; WT_FPC=id=207.109.138.40-2783150912.30195703:lv=1343159128251:ss=1343159057634; s_pers=%20s_cp_persist%3Dn/a%7C1333548112051%3B%20s_chn_cvp%3D%255B%255B%2527direct%252520load%2527%252C%25271342729319379%2527%255D%255D%7C1500495719378%3B%20s_key_cvp%3D%255B%255B%2527n/a%2527%252C%25271342729319383%2527%255D%255D%7C1500495719383%3B%20s_cmp_cvp%3D%255B%255B%2527n/a%2527%252C%25271342729319384%2527%255D%255D%7C1500495719384%3B; optimizelyEndUserId=oeu1348243148506r0.45084815891459584; optimizelySegments=%7B%7D; optimizelyBuckets=%7B%7D; mmid=692542627%7CFwAAAAr01v1k/wcAAA%3D%3D; mmcore.pd=-52354358%7CFwAAAAoBQvTW/WT/BzwTWisPAK/Yqk8s9c9IE3Rlc3QtYWNlLmJ1eXN1Yi5jb20LAAAA82a9ik5Ez0gAAAAA/////wDgCAEAAAAAAAMAAAAAAP///////////////wAAAAAAAUU%3D; mmcore.srv=cg5.use; s_cc=true; s_sq=%5B%5BB%5D%5D; rhodecode=4a65aefa476d471ddaf464fcb6a54c2180bed8d08afe5d7076f04c6e84c14dc68dac3d05'
HTTP_USER_AGENT 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36'
HTTP_X_FORWARDED_FOR '172.26.64.202, 172.26.2.5'
HTTP_X_FORWARDED_HOST 'rhodecode.localhost.com'
HTTP_X_FORWARDED_SERVER 'rhodecode.localhost.com'
PATH_INFO '/_admin/settings/mapping'
REMOTE_ADDR '172.26.3.7'
REQUEST_METHOD 'POST'
SERVER_NAME 'ba-git1.localhost.com'
SERVER_PORT '5000'
SERVER_PROTOCOL 'HTTP/1.1'
SERVER_SOFTWARE 'waitress'
WSGI Variables
application <beaker.middleware.SessionMiddleware object at 0x127b0490>
beaker.get_session <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x127b0490>>
beaker.session {'rhodecode_user': {'username': u'mmeyer', 'is_authenticated': True, 'user_id': 9L}, '_accessed_time': 1375996595.8302779, '_creation_time': 1375996495.5643401}
paste.registry <paste.registry.Registry object at 0x13854c50>
paste.throw_errors True
pylons.action_method <bound method SettingsController.update of <rhodecode.controllers.admin.settings.SettingsController object at 0x13832190>>
pylons.controller <rhodecode.controllers.admin.settings.SettingsController object at 0x13832190>
pylons.environ_config {'session': 'beaker.session', 'cache': 'beaker.cache'}
pylons.pylons <pylons.util.PylonsContext object at 0x13832e10>
pylons.routes_dict {'action': u'update', 'controller': u'admin/settings', 'setting_id': u'mapping'}
routes.route <routes.route.Route object at 0x123949d0>
routes.url <routes.util.URLGenerator object at 0x13709fd0>
webob._parsed_post_vars (MultiDict([('_method', 'put'), ('rescan', 'Rescan repositories')]), <FakeCGIBody at 0x13709690 viewing MultiDict([('_m...s')])>)
webob._parsed_query_vars (GET([]), '')
webob.adhoc_attrs {'errors': 'ignore', 'user': <AuthUser('id:9[mmeyer] ip:172.26.64.202 auth:True')>, 'language': 'en-us'}
webob.is_body_readable True
webob.is_body_seekable False
wsgi process 'Multithreaded'
wsgi._org_proto 'http'
wsgi.file_wrapper <class 'waitress.buffers.ReadOnlyFileBasedBuffer'>
wsgiorg.routing_args (<routes.util.URLGenerator object at 0x13709fd0>, {'action': u'update', 'controller': u'admin/settings', 'setting_id': u'mapping'})

Marcin Kuzminski

unread,
Aug 9, 2013, 7:12:47 AM8/9/13
to rhod...@googlegroups.com
Looks like an issue with permissions/ mercurial integrity check, can you go to such repository and run hg verify on it ?

Marcin Kuzminski


--
You received this message because you are subscribed to the Google Groups "rhodecode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhodecode+...@googlegroups.com.
To post to this group, send email to rhod...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

cdsm...@gmail.com

unread,
Aug 13, 2013, 5:45:52 PM8/13/13
to rhod...@googlegroups.com
Found it with the hg verify.  Thanks for the suggestion.

Mike
Reply all
Reply to author
Forward
0 new messages