This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

Opened 4 years ago

Closed 3 years ago

#969 closed defect (worksforme)

Exception type: <type 'exceptions.KeyError'> Exception message: 'it' -- In CentOs 6

Reported by: soleantelada Owned by:
Priority: high Milestone: v0.99.0
Component: General Version: 0.98-dev
Keywords: Cc:

Description

I'm testing Indico and it keeps giving me this kind of error everytime I try to create a conference,lecture or meeting.
In fact it gives me the error but it is created anyway.

any hint? maybe I'm missing something? The machine is centOs 6. Please help

This is the error log

ERROR DETAILS

Exception type: <type 'exceptions.KeyError?'>
Exception message: 'it'
Traceback:

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/rh/base.py", line 566, in process

res = self._process()

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/rh/conferenceModif.py", line 140, in _process

return p.display(pars)

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/pages/base.py", line 185, in display

self._display( params ), \

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/pages/main.py", line 159, in _display

body = WMainBase(self._getBody( params ), self._timezone, self._getNavigationDrawer(),

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/pages/conferences.py", line 1726, in _getBody

return self._applyFrame( self._getPageContent( params ) )

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/simple_event.py", line 271, in _getPageContent

return wc.getHTML( pars )

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/wcomponents.py", line 212, in getHTML

tempHTML = templateEngine.render(self.tplFile, vars)

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/common/TemplateExec.py", line 62, in render

return template.render(params)

File "/usr/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/template.py", line 302, in render

return runtime._render(self, self.callable_, args, data)

File "/usr/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 660, in _render

_kwargs_for_callable(callable_, data))

File "/usr/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 692, in _render_context

_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)

File "/usr/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 718, in _exec_template

callable_(context, *args, kwargs)

File "/opt/indico/tmp/mako_modules/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/tpls/SEConfModifMainData.tpl.py", line 25, in render_body

runtime._include_file(context, 'EventModifMainData?.tpl', _template_uri, evtType='lecture', confObj=self_._conf)

File "/usr/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 587, in _include_file

callable_(ctx, _kwargs_for_include(callable_, context._data, kwargs))

File "/opt/indico/tmp/mako_modules/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/tpls/EventModifMainData.tpl.py", line 291, in render_body

styleOptions = info.HelperMaKaCInfo.getMaKaCInfoInstance().getStyleManager().getStyleDictForEventType(confObj.getType())

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/common/info.py", line 566, in getStyleDictForEventType

return dict((styleID, styles[styleID]) for styleID in self._eventStylesheets.get(type, []))

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/common/info.py", line 566, in

return dict((styleID, styles[styleID]) for styleID in self._eventStylesheets.get(type, []))

Request handler: RHConferenceModification
URL: https://conferencesdev.lbl.gov/indico/conferenceModification.py?confId=23
Params: confId = 23
HTTP headers:

COOKIE: Enabled=true; utma=91291207.628382744.1325618837.1325643118.1325705767.3; utmz=91291207.1325705767.3.3.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=lbl; qca=P0-1298663027-1325618837375; utmb=91291207.3.10.1325705767; utmc=91291207; MAKACSESSION=E47C552295537A8B
ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
USER-AGENT: Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0
CONNECTION: keep-alive
REFERER: https://conferencesdev.lbl.gov/indico/conferenceDisplay.py?confId=23
HOST: conferencesdev.lbl.gov
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ACCEPT-LANGUAGE: en-us,en;q=0.5
ACCEPT-ENCODING: gzip, deflate

Change History (6)

comment:1 Changed 4 years ago by soleantelada

This is the error trying to create a meeting.

ERROR DETAILS

Exception type: <type 'exceptions.KeyError?'>
Exception message: 'administrative3'
Traceback:

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/rh/base.py", line 566, in process

res = self._process()

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/rh/conferenceModif.py", line 140, in _process

return p.display(pars)

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/pages/base.py", line 185, in display

self._display( params ), \

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/pages/main.py", line 159, in _display

body = WMainBase(self._getBody( params ), self._timezone, self._getNavigationDrawer(),

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/pages/conferences.py", line 1726, in _getBody

return self._applyFrame( self._getPageContent( params ) )

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/meeting.py", line 723, in _getPageContent

return wc.getHTML( pars )

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/wcomponents.py", line 212, in getHTML

tempHTML = templateEngine.render(self.tplFile, vars)

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/common/TemplateExec.py", line 62, in render

return template.render(params)

File "/usr/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/template.py", line 302, in render

return runtime._render(self, self.callable_, args, data)

File "/usr/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 660, in _render

_kwargs_for_callable(callable_, data))

File "/usr/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 692, in _render_context

_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)

File "/usr/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 718, in _exec_template

callable_(context, *args, kwargs)

File "/opt/indico/tmp/mako_modules/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/tpls/MConfModifMainData.tpl.py", line 26, in render_body

runtime._include_file(context, 'EventModifMainData?.tpl', _template_uri, evtType='meeting', confObj=self_._conf)

File "/usr/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 587, in _include_file

callable_(ctx, _kwargs_for_include(callable_, context._data, kwargs))

File "/opt/indico/tmp/mako_modules/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/tpls/EventModifMainData.tpl.py", line 291, in render_body

styleOptions = info.HelperMaKaCInfo.getMaKaCInfoInstance().getStyleManager().getStyleDictForEventType(confObj.getType())

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/common/info.py", line 566, in getStyleDictForEventType

return dict((styleID, styles[styleID]) for styleID in self._eventStylesheets.get(type, []))

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/common/info.py", line 566, in

return dict((styleID, styles[styleID]) for styleID in self._eventStylesheets.get(type, []))

Request handler: RHConferenceModification
URL: https://conferencesdev.lbl.gov/indico/conferenceModification.py?confId=25
Params: confId = 25
HTTP headers:

COOKIE: Enabled=true; utma=91291207.628382744.1325618837.1325643118.1325705767.3; utmz=91291207.1325705767.3.3.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=lbl; qca=P0-1298663027-1325618837375; utmc=91291207; MAKACSESSION=E47C552295537A8B
ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
USER-AGENT: Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0
CONNECTION: keep-alive
REFERER: https://conferencesdev.lbl.gov/indico/conferenceCreation.py?event_type=meeting
HOST: conferencesdev.lbl.gov
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ACCEPT-LANGUAGE: en-us,en;q=0.5
ACCEPT-ENCODING: gzip, deflate

Logged user: ANTELADA TOLEDANO, Soledad <satoledano@…>

comment:2 Changed 4 years ago by soleantelada

The database migration fails

Migration failed! DB may be in an inconsistent state:
Traceback (most recent call last):

File "migrate_0.97_0.98.py", line 454, in main

return runMigration(withRBDB=args.useRBDB, prevVersion=parse_version(args.prevVersion))

File "migrate_0.97_0.98.py", line 424, in runMigration

task(dbi, withRBDB, prevVersion)

File "migrate_0.97_0.98.py", line 176, in runPluginMigration

livesync.db.updateDBStructures(root)

File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/indico/ext/livesync/db.py", line 46, in updateDBStructures

raise Exception("This DB seems to already have livesync installed")

Exception: This DB seems to already have livesync installed

comment:3 Changed 4 years ago by soleantelada

Problem solved using a fresh new database

comment:4 Changed 3 years ago by jbenito

  • Milestone changed from v0.98.1 to v0.99.0
  • Version set to 0.98-dev

Do you still have this issue with the latest versions?

comment:5 Changed 3 years ago by soleantelada

Not so far..

comment:6 Changed 3 years ago by pferreir

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.