I just upgraded to 2.1 with the usual procedure (pip install -U + indico db upgrade) without stopping the Indico service. I never had problem but this time during DB upgrade I got the following error during Running upgrade c820455976ba -> 813ea74ce8dc, Add AttachmentFolder.is_hidden step:
sqlalchemy.exc.OperationalError: (psycopg2.extensions.TransactionRollbackError) deadlock detected
DETAIL: Process 13182 waits for AccessExclusiveLock on relation 78502 of database 77071; blocked by process 13099.
Process 13099 waits for AccessShareLock on relation 78947 of database 77071; blocked by process 13182.
HINT: See server log for query details.
[SQL: âALTER TABLE attachments.folders ADD COLUMN is_hidden BOOLEAN DEFAULT âfalseâ NOT NULLâ] (Background on this error at: http://sqlalche.me/e/e3q8)
I re-run indico db upgrade successfully after the error. Do I need to worry about something or was it just a transient error with everything remaining to be done fixed during the second run of the DB upgrade?
BTW, if you still had pip<10 (where all dependencies are updated, not just the ones absolutely required), the upgrade to 2.1 may have broken Celery.
Just in case, you can run pip install kombu==4.1.0 and restart Celery after that.
If you have kombu 4.2, itâs broken (weâll soon release a 2.1.1 that will also include an update to celery to avoid this problem altogether).
Unfortunately this error happens at a point where it wonât go to celery.log, but the systemd service doesnât fully crash either. So it usually only shows up because emails wonât be sent and other tasks wonât run either.
It seems to be connected to the new role management. But I see that at CERN I have the old permissions displayed as role (MANAGE, CHR, SUBMISSIONâŚ) with the possibility to assign/change permissions for each users when in my instance, when clicking on Protection, I donât see any role assigned to any user, despite Iâm logged as the Indico admin (or as an event manager).
indeed, there is just a single place for the ACL now and someone with âmanageâ permissions in there is the equivalent to someone listed in the list of event managers before.
ok, this is a problem with my preferred browser, Opera! With Firefox it works just fine. Not clear why CERN Indico works with Opera but not my instanceâŚ
Activating the console in Opera, I got the following error:
utils_ac34573e.min.js:17 Uncaught TypeError: Cannot read property 'type' of undefined
at build_url (utils_ac34573e.min.js:17)
at $.(anonymous function).(anonymous function)._renderEditBtn (https://indico.lal.in2p3.fr/static/assets/core/js/indico_jquery_6154eeaf.min.js:216:629)
at $.(anonymous function).(anonymous function)._renderEditBtn (https://indico.lal.in2p3.fr/static/assets/core/js/jquery_f35ae1d0.min.js:1033:334)
at $.(anonymous function).(anonymous function)._renderPermissionsButtons (https://indico.lal.in2p3.fr/static/assets/core/js/indico_jquery_6154eeaf.min.js:216:160)
at $.(anonymous function).(anonymous function)._renderPermissionsButtons (https://indico.lal.in2p3.fr/static/assets/core/js/jquery_f35ae1d0.min.js:1033:334)
at $.(anonymous function).(anonymous function)._renderPermissions (https://indico.lal.in2p3.fr/static/assets/core/js/indico_jquery_6154eeaf.min.js:215:488)
at $.(anonymous function).(anonymous function)._renderPermissions (https://indico.lal.in2p3.fr/static/assets/core/js/jquery_f35ae1d0.min.js:1033:334)
at $.(anonymous function).(anonymous function)._renderItem (https://indico.lal.in2p3.fr/static/assets/core/js/indico_jquery_6154eeaf.min.js:217:263)
at $.(anonymous function).(anonymous function)._renderItem (https://indico.lal.in2p3.fr/static/assets/core/js/jquery_f35ae1d0.min.js:1033:334)
at indico_jquery_6154eeaf.min.js:218
Thanks. Clearing the cache fixed the issue. This may be worth an entry in the upgrade documentation or in the blog⌠I guess I may not be the only one to hit this problemâŚ
A typical end user wonât read the upgrade docs since itâs not really relevant for him⌠Maybe we should add a cache buster to the URL like we do for normal static assetsâŚ
The file is cached by the browser for up to 12 hours - after that the problem will be gone in any case. CTRL-F5 to reload without cache is the easiest fix for someone affected.
I guess in our case this didnât really show up since we deployed in the evening, so when people came back to work in the morning the cached file had already expired.