Hi there,
I’m upgrading a instance of indico 1.1 to 2.0, I’ve follow all steps to migrate for version 1.2, and everything went well.
And now I’m installing a new version of INDICO, to later migrate the old DDB to this one. So in the installation of this new instance, i’ve follow all steps described at https://docs.getindico.io/en/stable/installation/production/centos/apache/, i didn’t get any error, but at the end when i try to access through the browser i get the error “Internal server error”
I’ve looked in the httpd logs and in the indico logs, i couldn’t see nothing,
Does anyone could give me some hint where to find the problem?
Best regards,
Hugo Gomes
Please check your Apache’s error log file (in /var/log/…) if there’s anything related.
Are you using centos or redhat? Keep in mind to uninstall the old SELINUX policies.
Hi,
I’m using centos7, and in the logs of apache i don’t get any help, i just see the code error 500 21 => this means internal server error.
But I was trying to see where the error might be in the config file of indico.conf. and if I comment the lines:
# SetEnv UWSGI_SCHEME https
# ProxyPass / uwsgi://127.0.0.1:8008/
I can access the server and i see the testing page of apache, so the problem might be at the uwsgi service. But i don’t know where to start, can you help me?
Can you share a link to your server or a screenshot of the internal server error page? That would help to figure out if it comes from Apache, uwsgi or Indico.
i suppose it’s from indico, since it’s in the logs of apache ofr indico-access log file
I’ve put indico log in debug mode, and when i restart the httpd i see all the connections attempts, i think:
[Thu Mar 01 09:57:54.396927 2018] [proxy:debug] [pid 31465] proxy_util.c(1843): AH00925: initializing worker uwsgi://127.0.0.1:8008/ shared
[Thu Mar 01 09:57:54.397640 2018] [proxy:debug] [pid 31465] proxy_util.c(1885): AH00927: initializing worker uwsgi://127.0.0.1:8008/ local
[Thu Mar 01 09:57:54.398024 2018] [proxy:debug] [pid 31466] proxy_util.c(1843): AH00925: initializing worker uwsgi://127.0.0.1:8008/ shared
[Thu Mar 01 09:57:54.430611 2018] [proxy:debug] [pid 31466] proxy_util.c(1885): AH00927: initializing worker uwsgi://127.0.0.1:8008/ local
[Thu Mar 01 09:57:54.439551 2018] [proxy:debug] [pid 31465] proxy_util.c(1936): AH00931: initialized single connection worker in child 31465 for (127.0.0.1)
[Thu Mar 01 09:57:54.453171 2018] [proxy:debug] [pid 31468] proxy_util.c(1843): AH00925: initializing worker uwsgi://127.0.0.1:8008/ shared
[Thu Mar 01 09:57:54.453882 2018] [proxy:debug] [pid 31468] proxy_util.c(1885): AH00927: initializing worker uwsgi://127.0.0.1:8008/ local
[Thu Mar 01 09:57:54.454099 2018] [proxy:debug] [pid 31466] proxy_util.c(1936): AH00931: initialized single connection worker in child 31466 for (127.0.0.1)
[Thu Mar 01 09:57:54.455690 2018] [proxy:debug] [pid 31468] proxy_util.c(1936): AH00931: initialized single connection worker in child 31468 for (127.0.0.1)
[Thu Mar 01 09:57:54.460213 2018] [proxy:debug] [pid 31467] proxy_util.c(1843): AH00925: initializing worker uwsgi://127.0.0.1:8008/ shared
[Thu Mar 01 09:57:54.461308 2018] [proxy:debug] [pid 31467] proxy_util.c(1885): AH00927: initializing worker uwsgi://127.0.0.1:8008/ local
[Thu Mar 01 09:57:54.461602 2018] [proxy:debug] [pid 31467] proxy_util.c(1936): AH00931: initialized single connection worker in child 31467 for (127.0.0.1)
[Thu Mar 01 09:57:54.499738 2018] [proxy:debug] [pid 31469] proxy_util.c(1843): AH00925: initializing worker uwsgi://127.0.0.1:8008/ shared
[Thu Mar 01 09:57:54.500556 2018] [proxy:debug] [pid 31469] proxy_util.c(1885): AH00927: initializing worker uwsgi://127.0.0.1:8008/ local
[Thu Mar 01 09:57:54.500765 2018] [proxy:debug] [pid 31469] proxy_util.c(1936): AH00931: initialized single connection worker in child 31469 for (127.0.0.1)
[Thu Mar 01 09:59:41.186124 2018] [ssl:info] [pid 31465] [client 128.141.104.232:51254] AH01964: Connection to child 0 established (server indico-teste.lip.pt:443)
[Thu Mar 01 09:59:41.191132 2018] [ssl:debug] [pid 31465] ssl_engine_kernel.c(1890): [client 128.141.104.232:51254] AH02043: SSL virtual host for servername indico-teste.lip.pt found
[Thu Mar 01 09:59:41.218090 2018] [ssl:info] [pid 31466] [client 128.141.104.232:51255] AH01964: Connection to child 1 established (server indico-teste.lip.pt:443)
[Thu Mar 01 09:59:41.222134 2018] [ssl:debug] [pid 31466] ssl_engine_kernel.c(1890): [client 128.141.104.232:51255] AH02043: SSL virtual host for servername indico-teste.lip.pt found
[Thu Mar 01 09:59:41.245190 2018] [ssl:debug] [pid 31465] ssl_engine_kernel.c(1823): [client 128.141.104.232:51254] AH02041: Protocol: TLSv1.2, Cipher: ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
[Thu Mar 01 09:59:41.272483 2018] [ssl:debug] [pid 31466] ssl_engine_kernel.c(1823): [client 128.141.104.232:51255] AH02041: Protocol: TLSv1.2, Cipher: ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
[Thu Mar 01 09:59:41.332615 2018] [ssl:debug] [pid 31465] ssl_engine_kernel.c(225): [client 128.141.104.232:51254] AH02034: Initial (No.1) HTTPS request received for child 0 (server indico-teste.lip.pt:443)
That it’s in the indico-access.log just means the VirtualHost matched. Opening e.g. https://indico-teste.lip.pt/robots.txt also results in an internal server error, and that URL has an alias so it’s handled directly by Apache.
Check the indico-error.log file in the same directory.
Hi, just see my previous reply
When hit the refresh button i see all modules of apache declining the uwsgi:
[Thu Mar 01 10:11:20.887350 2018] [ssl:info] [pid 32364] [client 194.210.119.251:58224] AH01964: Connection to child 3 established (server indico-teste.lip.pt:443)
[Thu Mar 01 10:11:20.897426 2018] [socache_shmcb:debug] [pid 32364] mod_socache_shmcb.c(522): AH00835: socache_shmcb_retrieve (0x5f -> subcache 31)
[Thu Mar 01 10:11:20.897719 2018] [socache_shmcb:debug] [pid 32364] mod_socache_shmcb.c(877): AH00851: shmcb_subcache_retrieve found no match
[Thu Mar 01 10:11:20.897752 2018] [socache_shmcb:debug] [pid 32364] mod_socache_shmcb.c(532): AH00836: leaving socache_shmcb_retrieve successfully
[Thu Mar 01 10:11:20.898906 2018] [ssl:debug] [pid 32364] ssl_engine_kernel.c(1890): [client 194.210.119.251:58224] AH02043: SSL virtual host for servername indico-teste.lip.pt found
[Thu Mar 01 10:11:20.921799 2018] [ssl:debug] [pid 32364] ssl_engine_kernel.c(1823): [client 194.210.119.251:58224] AH02041: Protocol: TLSv1.2, Cipher: ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
[Thu Mar 01 10:11:20.923394 2018] [ssl:debug] [pid 32364] ssl_engine_kernel.c(225): [client 194.210.119.251:58224] AH02034: Initial (No.1) HTTPS request received for child 3 (server indico-teste.lip.pt:443)
[Thu Mar 01 10:11:20.925174 2018] [authz_core:debug] [pid 32364] mod_authz_core.c(835): [client 194.210.119.251:58224] AH01628: authorization result: granted (no directives)
[Thu Mar 01 10:11:20.927247 2018] [proxy:debug] [pid 32364] mod_proxy.c(1123): [client 194.210.119.251:58224] AH01143: Running scheme uwsgi handler (attempt 0)
[Thu Mar 01 10:11:20.927309 2018] [proxy_ajp:debug] [pid 32364] mod_proxy_ajp.c(722): [client 194.210.119.251:58224] AH00894: declining URL uwsgi://127.0.0.1:8008/
[Thu Mar 01 10:11:20.927365 2018] [proxy_fcgi:debug] [pid 32364] mod_proxy_fcgi.c(972): [client 194.210.119.251:58224] AH01076: url: uwsgi://127.0.0.1:8008/ proxyname: (null) proxyport: 0
[Thu Mar 01 10:11:20.927381 2018] [proxy_fcgi:debug] [pid 32364] mod_proxy_fcgi.c(975): [client 194.210.119.251:58224] AH01077: declining URL uwsgi://127.0.0.1:8008/
[Thu Mar 01 10:11:20.927429 2018] [proxy_http:debug] [pid 32364] mod_proxy_http.c(1930): [client 194.210.119.251:58224] AH01113: HTTP: declining URL uwsgi://127.0.0.1:8008/
[Thu Mar 01 10:11:20.927448 2018] [proxy_scgi:debug] [pid 32364] mod_proxy_scgi.c(517): [client 194.210.119.251:58224] AH00865: declining URL uwsgi://127.0.0.1:8008/
[Thu Mar 01 10:11:20.927466 2018] [proxy_wstunnel:debug] [pid 32364] mod_proxy_wstunnel.c(331): [client 194.210.119.251:58224] AH02450: declining URL uwsgi://127.0.0.1:8008/
[Thu Mar 01 10:11:20.927577 2018] [proxy:debug] [pid 32364] proxy_util.c(2203): AH00942: uwsgi: has acquired connection for (127.0.0.1)
[Thu Mar 01 10:11:20.927593 2018] [proxy:debug] [pid 32364] proxy_util.c(2256): [client 194.210.119.251:58224] AH00944: connecting uwsgi://127.0.0.1:8008/ to 127.0.0.1:8008
[Thu Mar 01 10:11:20.929606 2018] [proxy:debug] [pid 32364] proxy_util.c(2422): [client 194.210.119.251:58224] AH00947: connected / to 127.0.0.1:8008
[Thu Mar 01 10:11:20.930000 2018] [proxy:debug] [pid 32364] proxy_util.c(2798): AH02824: uwsgi: connection established with 127.0.0.1:8008 (127.0.0.1)
[Thu Mar 01 10:11:20.930151 2018] [proxy:debug] [pid 32364] proxy_util.c(2938): AH00962: uwsgi: connection complete to 127.0.0.1:8008 (127.0.0.1)
[Thu Mar 01 10:11:20.937077 2018] [proxy:debug] [pid 32364] proxy_util.c(2218): AH00943: uwsgi: has released connection for (127.0.0.1)
[Thu Mar 01 10:11:20.937848 2018] [ssl:debug] [pid 32364] ssl_engine_io.c(993): [client 194.210.119.251:58224] AH02001: Connection closed to child 3 with standard shutdown (server indico-teste.lip.pt:443)
Hi,
For some reason i don’t understand why, i suspect some kind of firewall issue, the only thing i’ve done was to add the rule to the firewall and restart it, and everything is working fine now!!!