indico 2.0 not working

Dear All,

OS: Ubuntu 18.04
Indico version: 2.0

Indico 2.0 is needed for us to migrate from indico 1.2 database to latest version. So followed the steps given in the link
https://docs.getindico.io/en/stable/installation/production/debian/apache/#deb-apache-pkg

However, indico is failed to run. It has below errors. Please let me know if any configuration glitch?

Pasting below indico service status…its always exited with error:
root@indico21:/opt/indico/log/apache# systemctl status uwsgi.service apache2.service indico-celery.service
● uwsgi.service - LSB: Start/stop uWSGI server instance(s)
Loaded: loaded (/etc/init.d/uwsgi; generated)
Active: active (exited) since Fri 2018-07-20 18:03:00 IST; 1min 32s ago
Docs: man:systemd-sysv-generator(8)
Process: 23895 ExecStop=/etc/init.d/uwsgi stop (code=exited, status=0/SUCCESS)
Process: 23954 ExecStart=/etc/init.d/uwsgi start (code=exited, status=0/SUCCESS)

Jul 20 18:02:59 indico21 systemd[1]: Starting LSB: Start/stop uWSGI server instance(s)…
Jul 20 18:03:00 indico21 uwsgi[23954]: * Starting app server(s) uwsgi
Jul 20 18:03:00 indico21 uwsgi[23954]: …done.
Jul 20 18:03:00 indico21 systemd[1]: Started LSB: Start/stop uWSGI server instance(s).

● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Fri 2018-07-20 18:03:00 IST; 1min 32s ago
Process: 23896 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
Process: 23985 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 24040 (apache2)
Tasks: 55 (limit: 4664)
CGroup: /system.slice/apache2.service
├─24040 /usr/sbin/apache2 -k start
├─24043 /usr/sbin/apache2 -k start
└─24044 /usr/sbin/apache2 -k start

Jul 20 18:03:00 indico21 systemd[1]: Starting The Apache HTTP Server…
Jul 20 18:03:00 indico21 apachectl[23985]: AH00112: Warning: DocumentRoot [/var/empty/apache] does not exist
Jul 20 18:03:00 indico21 systemd[1]: Started The Apache HTTP Server.

● indico-celery.service - Indico Celery
Loaded: loaded (/etc/systemd/system/indico-celery.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-07-20 18:03:05 IST; 1min 26s ago
Process: 24299 ExecStart=/opt/indico/.venv/bin/indico celery worker -B (code=exited, status=1/FAILURE)
lines 1-34

=========================================================

Errors in apache logs:
root@indico21:/opt/indico/log/apache# tail error.log
[Fri Jul 20 17:36:51.413832 2018] [proxy:error] [pid 21999:tid 140503949506304] (111)Connection refused: AH00957: uwsgi: attempt to connect to 127.0.0.1:8008 (127.0.0.1) failed
[Fri Jul 20 17:36:51.413847 2018] [:error] [pid 21999:tid 140503949506304] [client 158.144.49.87:60356] failed to make connection to backend: 127.0.0.1:8008
[Fri Jul 20 17:36:51.477157 2018] [proxy:error] [pid 22000:tid 140504054372096] (111)Connection refused: AH00957: uwsgi: attempt to connect to 127.0.0.1:8008 (127.0.0.1) failed
[Fri Jul 20 17:36:51.477245 2018] [:error] [pid 22000:tid 140504054372096] [client 158.144.49.87:60360] failed to make connection to backend: 127.0.0.1:8008, referer: https://indico21.tifr.res.in/
[Fri Jul 20 18:03:46.588243 2018] [proxy:error] [pid 24044:tid 139898073896704] (111)Connection refused: AH00957: uwsgi: attempt to connect to 127.0.0.1:8008 (127.0.0.1) failed
[Fri Jul 20 18:03:46.588383 2018] [:error] [pid 24044:tid 139898073896704] [client 158.144.49.87:60920] failed to make connection to backend: 127.0.0.1:8008
[Fri Jul 20 18:03:46.684384 2018] [proxy:error] [pid 24044:tid 139897931220736] (111)Connection refused: AH00957: uwsgi: attempt to connect to 127.0.0.1:8008 (127.0.0.1) failed
[Fri Jul 20 18:03:46.684419 2018] [:error] [pid 24044:tid 139897931220736] [client 158.144.49.87:60930] failed to make connection to backend: 127.0.0.1:8008
[Fri Jul 20 18:03:46.742349 2018] [proxy:error] [pid 24044:tid 139897922828032] (111)Connection refused: AH00957: uwsgi: attempt to connect to 127.0.0.1:8008 (127.0.0.1) failed
[Fri Jul 20 18:03:46.742383 2018] [:error] [pid 24044:tid 139897922828032] [client 158.144.49.87:60934] failed to make connection to backend: 127.0.0.1:8008, referer: https://indico21.tifr.res.in/

=========================================================

indico.ini configuration details:

=========================================================
root@indico21:/etc/uwsgi/apps-available# cat indico.ini
[uwsgi]
uid = indico
gid = www-data
umask = 027

processes = 4
enable-threads = true
socket = 127.0.0.1:8008
stats = /opt/indico/web/uwsgi-stats.sock
protocol = uwsgi

master = true
auto-procname = true
procname-prefix-spaced = indico
disable-logging = true

plugin = python
single-interpreter = true

touch-reload = /opt/indico/web/indico.wsgi
wsgi-file = /opt/indico/web/indico.wsgi
virtualenv = /opt/indico/.venv

vacuum = true
buffer-size = 20480
memory-report = true
max-requests = 2500
harakiri = 900
harakiri-verbose = true
reload-on-rss = 2048
evil-reload-on-rss = 8192

can you verify that uwsgi is running? (check with ps aux | grep -i uwsgi)

if it is, check if you have a firewall or selinux blocking anything. usually i wouldn’t expect firewall rules for localhost but check anyway.

I’ve got the same issue.

[Wed Oct 14 14:26:35.495424 2020] [proxy:error] [pid 384412:tid 139786958403328] (111)Connection refused: AH00957: uwsgi: attempt to connect to 127.0.0.1:8008 (127.0.0.1) failed
[Wed Oct 14 14:26:35.495457 2020] [:error] [pid 384412:tid 139786958403328] [client 172.28.4.236:53899] AH10101: failed to make connection to backend: 127.0.0.1:8008, referer: http://chamaeleon.synchrotron-soleil.fr/

After i put the line ProxyPass / uwsgi://127.0.0.1:8008/ on my .conf for apache config.

With ps aux | grep -i uwsgi, i’ve got

root      385109  0.0  0.0  12108  1028 pts/0    S+   14:32   0:00 grep --color=auto -i uwsgi

so uwsgi is not running.

use systemctl start uwsgi.service to start it and systemctl status uwsgi.service to verify or check for errors

Thx for the help
I’ve installed uwsgi with pip install uwsgi in the virtualenv.
uwsgi --version
2.0.19.1

But, uwsgi.service doesn’t exist

I’m quite sure that the install guide does not install uwsgi with pip :wink: You only get the systemd unit if you install it using your distribution’s package manager…

uwigi is not available in the distribution’s package manager (centos 8) with
dnf install uwsgi.
Someone was able to make it work with systemd on centos 8?.

If there’s no python 2 uwsgi on centos 8 you can install uwsgi via pip install uwsgi in your virtualenv, but you will need to create a systemd unit to autostart it yourself.

Alternatively, consider using CentOS7 and only upgrade to CentOS8 with Indico 3.0 (which might even require C8)