Upgrade of Community fails


#1

FYI, also seeing this when trying to upgrade to latest…

Running Upgrade of <CommunityInstance of (community-1)> at version 4.12.4 to 4.14.1
Traceback (most recent call last):
File “/opt/rhodecode/store/56kin2h8jbribv7wxd6a4gr6a3vj4f9h-python2.7-rhodecode-enterprise-ce-4.14.1/bin/.rc-upgrade-db-wrapped”, line 12, in
sys.exit(main())
File “/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/opt/rhodecode/store/56kin2h8jbribv7wxd6a4gr6a3vj4f9h-python2.7-rhodecode-enterprise-ce-4.14.1/lib/python2.7/site-packages/rhodecode/lib/rc_commands/upgrade_db.py”, line 37, in main
return command(ini_path, force_yes)
File “/opt/rhodecode/store/56kin2h8jbribv7wxd6a4gr6a3vj4f9h-python2.7-rhodecode-enterprise-ce-4.14.1/lib/python2.7/site-packages/rhodecode/lib/rc_commands/upgrade_db.py”, line 43, in command
with bootstrap(ini_path, env={‘RC_CMD_UPGRADE_DB’: ‘1’}) as env:
File “/opt/rhodecode/store/56kin2h8jbribv7wxd6a4gr6a3vj4f9h-python2.7-rhodecode-enterprise-ce-4.14.1/lib/python2.7/site-packages/rhodecode/lib/pyramid_utils.py”, line 53, in bootstrap
return pyramid_bootstrap(config_uri, request=request, options=options)
File “/opt/rhodecode/store/vipsx3nr7395jq0s9qrk1lhzalyg6nna-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/paster.py”, line 107, in bootstrap
app = get_app(config_uri, options=options)
File “/opt/rhodecode/store/vipsx3nr7395jq0s9qrk1lhzalyg6nna-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/paster.py”, line 28, in get_app
return loader.get_wsgi_app(name, options)
File “/opt/rhodecode/store/ip98x35alh0h0g60qfgb5ysc8m6nvzs8-python2.7-plaster-pastedeploy-0.6/lib/python2.7/site-packages/plaster_pastedeploy/ init .py”, line 131, in get_wsgi_app
global_conf=defaults)
File “/opt/rhodecode/store/lxizr6wwy8ncr2zk52lzmysm44agv6mw-python2.7-pastedeploy-1.5.2/lib/python2.7/site-packages/paste/deploy/loadwsgi.py”, line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File “/opt/rhodecode/store/lxizr6wwy8ncr2zk52lzmysm44agv6mw-python2.7-pastedeploy-1.5.2/lib/python2.7/site-packages/paste/deploy/loadwsgi.py”, line 272, in loadobj
return context.create()
File “/opt/rhodecode/store/lxizr6wwy8ncr2zk52lzmysm44agv6mw-python2.7-pastedeploy-1.5.2/lib/python2.7/site-packages/paste/deploy/loadwsgi.py”, line 710, in create
return self.object_type.invoke(self)
File “/opt/rhodecode/store/lxizr6wwy8ncr2zk52lzmysm44agv6mw-python2.7-pastedeploy-1.5.2/lib/python2.7/site-packages/paste/deploy/loadwsgi.py”, line 146, in invoke
return fix_call(context.object, context.global_conf, **context.local_conf)
File “/opt/rhodecode/store/lxizr6wwy8ncr2zk52lzmysm44agv6mw-python2.7-pastedeploy-1.5.2/lib/python2.7/site-packages/paste/deploy/util.py”, line 55, in fix_call
val = callable(*args, **kw)
File “/opt/rhodecode/store/56kin2h8jbribv7wxd6a4gr6a3vj4f9h-python2.7-rhodecode-enterprise-ce-4.14.1/lib/python2.7/site-packages/rhodecode/config/middleware.py”, line 85, in make_pyramid_app
settings = _substitute_values(settings, environ)
File “/opt/rhodecode/store/56kin2h8jbribv7wxd6a4gr6a3vj4f9h-python2.7-rhodecode-enterprise-ce-4.14.1/lib/python2.7/site-packages/rhodecode/config/middleware.py”, line 575, in _substitute_values
for key, value in mapping.items()
File “/opt/rhodecode/store/56kin2h8jbribv7wxd6a4gr6a3vj4f9h-python2.7-rhodecode-enterprise-ce-4.14.1/lib/python2.7/site-packages/rhodecode/config/middleware.py”, line 575, in
for key, value in mapping.items()
ValueError: Single ‘}’ encountered in format string
Upgrade of RhodeCode Community failed.
Rolling back to previous version.


#2

It’s not a disk space problem, nor an inodes problem. Service run normally otherwise. VCServer upgrade completes ok, as does rccontrol upgrade.

Any ideas? I’ve scoured the boards and can’t find any similar failures. Closest are related to db problems which I don’t see in our result dump.

Thanks.


#3

See: HTTP 500 error only when pushing to master