Need help upgrading from Indico 0.99

Need help upgrading from Indico 0.99

Hello,

My name is Takashi Ichihara and I am the Indico admin at RIKEN.
We are running Indico version 0.99 at https://indico2.riken.jp/indico/
on Scientific Linux 6.2 (CentOS 6.2).
We would like to upgrade to the latest version of indigo.

On our test server of ContOS 7.4, I tried to install indigo 1.2.2
following to the last paragraph (let’s try installing it from Git:) of

However, the last command
“python setup.py develop_config”
failed with following errors:

Full path [/root]: /opt/indico
Creating directories... Done!
error: indico/locale/es_ES/LC_MESSAGES/messages.po:28: placeholders are incompatible
error: indico/locale/es_ES/LC_MESSAGES/messages.po:1098: placeholders are incompatible
error: indico/locale/es_ES/LC_MESSAGES/messages.po:1350: placeholders are incompatible
error: indico/locale/es_ES/LC_MESSAGES/messages.po:1477: positional format placeholders are unbalanced
error: indico/locale/es_ES/LC_MESSAGES/messages.po:2316: placeholders are incompatible
 :
error: indico/locale/es_ES/LC_MESSAGES/messages.po:26465: incompatible format for placeholder 1: 's' and 'u' are not compatible
error: indico/locale/fr_FR/LC_MESSAGES/messages.po:18284: incompatible format for placeholder 1: 'c' and 'e' are not compatible
error: indico/locale/fr_FR/LC_MESSAGES/messages.po:24728: placeholders are incompatible
error: indico/locale/fr_FR/LC_MESSAGES/messages.po:24743: placeholders are incompatible
error: invalid command 'compile_catalog_js'
(indico-env)[root@m indico]# 

Is there any suggestion to fix this problem?

Weird. Are you sure you’ve checked out v1.2.2?

Yes, I did. (From the log file):

(indico-env)[root@m ~]# cd indico
(indico-env)[root@m indico]# git checkout v1.2.2
Note: checking out 'v1.2.2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at b34329d... Bump version to 1.2.2
(indico-env)[root@m indico]# sed -i -E "s/cssmin==.*/cssmin/" requirements.txt
(indico-env)[root@m indico]# python setup.py develop_config
Indico 1.2.2
running develop_config
running egg_info
creating indico.egg-info

Hi,
I temporary put this log at the URL:
https://ribf.riken.jp/~ttest/misclog/20180201-indico122-CentOS74.txt

OK, this happens when babel is not installed. Please run pip install -r requirements.txt before python setup.py install. I’ve also updated the other post. I guess when testing it I had it already installed from a previous attempt.

Thank you. I did it. But, It seems to have problems…
https://ribf.riken.jp/~ttest/misclog/20180201-indico122-CentOS74-2nd.txt

Looks OK to me. The placeholder errors can be ignored. Since it’s a dev setup, the config file is taken from etc/ within the source folder (ie the one from where you were running python setup.py ...

Thank you again.

Although the destination folders (/opt/indico/) are empty,
I noticed everything is stored at the source folder as you pointed out.

I will continue.

Hi,
The migration of indico DB from 0.99 to 1.2 seems to be successful.
It took 15 minutes. I will prepare new indico 2.0 server and migrate the DB.

1 Like

Hi,
Migration from indico 0.99 to indico 2.0 seems to be successful.
Thank you very much for your help.

1 Like

Hi,
We noticed one problem in the migration from indigo 0.99 to 2.0.

In Indico 2.0, the following URL request of indigo 0.99 style
https://hostname/conferenceDisplay.py?confId=1805
is redirected to
https://hostname/event/1805/
This is OK.

However, our top page of the indigo 0.99 was
https://hostname/indico/

So, in Indico 2.0 (+apache), the requested URL of
https://hostname/indico/conferenceDisplay.py?confId=1805
is not redirected to
https://hostname/event/1805/.
and results
Not Found (The page you are looking for doesn’t exist.)

In Indico 2.0 (+apache), is there any apache configuration to redirect the request
https://hostname/indico/conferenceDisplay.py?confId=1805
to
https://hostname/event/1805/
(ignore the first “indico/” string in the requested URL)

Than you for any advice.

The following trwo rewriterules should work (assuming the host changed as well),

RewriteRule event/(.*)$ https://<hostname>/event/$1 [R=permanent,L]
RewriteRule indico/(.*)$ https://<hostname>/$1 [R=permanent,L]

With the host unchanged:

RewriteRule indico/(.*)$ /$1 [R=permanent,L]

should do the trick.

Thank you very much. This works for us.

Hi,
After updating indico from 2.0 to 2.0.1, can I do the process

indico-migrate postgresql:///indico file:///opt/indico-legacy/db/Data.fs …

again from new /db/Data.fs of Indico 1.2.2 on indico 2.0.1
after cleaning the postgresql database of indico 2.0.1 ?

If you already have 2.0 running, you do not need to migrate again - you can simply follow the upgrade instructions to update 2.0 to 2.0.1 (same for any future updates).

If you do want to migrate your ZODB again for some reason, then yes, deleting the postgres database, recreating it with the extensios, and running indico-migrate again would work.

Thanks. Since our indico 0.99 is still running, we will decide the day of the migration
(from 0.99 to 2.0) and migrate again from ZODB.

Hi,
After the (test) migration from indico 0.99 to 2.0, I noticed that all of the registration page (registration form) in indico 2.0 are empty, even if the registration is in open status.

Therefore, I created a test conference page, and created a test Registration Form and then tried to configure the Registration Form. However, there is no items in the Configure questions in form “test of registration” page as attached.
Where is it wrong? Thank you for any suggestion.


We have noticed problems like this one before and as far as I remember the problem was in the Apache
config, namely the RewriteRules. Could you please share the relevant part of your Apache config?

This is usually caused by Indico being accessed by a URL that does not match BASE_URL in indico.conf - that results in the AJAX requests loading the templates for the registration form to fail due to Same-Origin-Policy violations (you can probably see messages about that in your browser’s developer console).

The solution for this is to use the correct url in indico.conf and then reload/restart uwsgi so the updated config is actually used.

Thanks.
Concerning to the apache configuration, I almost exactly follows the page:
https://docs.getindico.io/en/stable/installation/production/centos/apache/#centos-apache-web

In /opt/indico/etc/indico.conf

BASE_URL = 'https://indico3.riken.jp'

and the requested url was

https://indico3.riken.jp/event/2728/registrations/86/

By the way, when I click “configure” the Registration Form, apache logs say,
(404 176)

/opt/indico/log/apache/access.log
134.160.x.x - - [23/Feb/2018:17:14:37 +0900] "GET /event/2728/manage/registration/86/form/ HTTP/1.1" 200 49606 "https://indico3.riken.jp/event/2728/manage/registration/86/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Firefox/52.0"
134.160.x.x - - [23/Feb/2018:17:14:37 +0900] "GET /assets/js-vars/user.js HTTP/1.1" 200 90 "https://indico3.riken.jp/event/2728/manage/registration/86/form/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Firefox/52.0"
134.160.x.x - - [23/Feb/2018:17:14:38 +0900] "GET /modules/registration/form/tpls/registrationform.tpl.html HTTP/1.1" 404 176 "https://indico3.riken.jp/event/2728/manage/registration/86/form/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Firefox/52.0"

/opt/indico/log/apache/error.log
(no new entry)

I temporary opened 443/tcp port of this test server to any.