perfsonar-user - Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive
Subject: perfSONAR User Q&A and Other Discussion
List archive
Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive
Chronological Thread
- From: "Uhl, George D. (GSFC-423.0)[SGT INC]" <>
- To: "Uhl, George D. (GSFC-423.0)[SGT INC]" <>, "Andrew Lake" <>
- Cc: perfsonar-user <>
- Subject: Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive
- Date: Wed, 3 Oct 2018 20:35:37 +0000
- Accept-language: en-US
- Dkim-filter: OpenDKIM Filter v2.11.0 ndjsvnpf103.ndc.nasa.gov 1C444400D5ED
- Ironport-phdr: 9a23:kpzzBhUAOObQd3b9XoSogPcOsTfV8LGtZVwlr6E/grcLSJyIuqrYZRWFuqdThVPEFb/W9+hDw7KP9fy4BipYud6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9uLhi6txndutULioZ+N6g9zQfErGFVcOpM32NoIlyTnxf45siu+ZNo7jpdtfE8+cNeSKv2Z6s3Q6BWAzQgKGA1+dbktQLfQguV53sTSXsZnxxVCAXY9h76X5Pxsizntuph3SSRIMP7QawoVTmk8qxkTwLmiDocNz4h7m7YltBwgqxcoBKkvRN/wojUa5yROPdxeq7ReNUXSmRbXsZVSidPHIWyYYUSBOYFJOpVrozxql0TphW8GAasHvvixD9WiHHrwa003ecvEQ/E0wMuHtIBrHvboc7vO6sOS+241rXEwC/DYv5QxDzz6JLIchckofyUU75/f8rRyU03GwjYj1uft4vlPyma1usTrmOV4fBsXv+rh2Amtg9/oiaiyt4jh4XXiI8Z0EzI+SB9z4goJNO2VlNwb928HpZOsS6WOZZ9T8QtQ252vyY60LIGtoChcCcX0pgn2h7fa/icfoiO+B3jT/yeLS13hHJiZrKynhC/+lWuxO37U8m7yldKrixdn9nMqnANywTT58ibRvdh4EihwyyP1wfJ6uFfIUA7j7TbJIA6wr4skZoTqVzDETHrl0nsja+Wc10o+vC25OT9bLXmvZicN4luhQHkKKgunNKwAfggPggSX2iU5/6826P58U35R7VLgPs7mbTavpDCPckXu6q0DgxP3oo+9hqyDS2q3MkCkXUaLF9IdgqLg5XtNlzNOvz0EOqzjle2nDt2w/3LPaftDovQInTfiLvtYLdw5kpGxAYtzd1S6IhYBqwbLP7uVUL9qNrVBQIjPQOu2eboEtB925seWW2RBq+ZN7vfsVmV6eItOOmMeokVuC7zK/Q4+/Ljg2U1mVkAcqa1x5cXbmq3Hu98LEmDbnrshckBHX8Lvgo4UuPqlEWPXSNXanuxRa4w+yw3BYC8AYveXIyhnbyM0SmjEp1TfG9GC1SMEXnyd4WDXvcBcC2SLdFmkjweWriuVZUt2gy0uA/ny7pnKvHZ+isCupL4ztd5/eLTlRYs9TBsFcSSz3mNT31onmMPXzI2xL5woVZzyleY1qh4heZXFcZK6/NUSQc1K4Tcwvd+C9DzQQLBYsyJREi8TtWnBzExUsw+w8UIY0ljB9WukArP0DS3DL8IxPS3A8l+z6LYmzDeKsFnxHuO+O9pz3YdbOAKaTf9wPY+xDP8O8botW6s3e7+eqkbxiHAsmvF0GqKlEdRSwc2XqLbCzRXLGLQoc70+QvmRryjQ/xzOw1N2OaPMe1MZ8G/3ntcQ/K2cuneZyb5tGq3HxmFjp/KJMrFQEs2mXmHUw5c0jMo0krOFC4VM23p923TCyZhGBTjJV7s9cF4oWiyCEAz0VfZPAVay7Op90tN1rSnQPQJ0+dY4yo=
Andy,
It turns out it was an selinux issue. I’m running enforcing/active and somehow the esmond.log file was impacted after I attempted to migrate the data this morning. I dug around and found an email from Jon Clausen dated Thurs Sep 14, 2017, 5:56 am and
followed the procedure outlined (see below). It worked – the HTTP 500 errors have stopped. I’m going to change selinux to permissive and go from there. How/why this stopped working is still unknown.
Thanks,
George
=============
Hi
Our measurement archive is installed from the CentOS 7 *.iso, with perfSonar
components installed from the internet2 repo.
I chose to leave SELinux active/enforcing, which is actually not causing
many problems, generally - to my pleasant surprise.
The system has yum-cron installed, so updates happen 'whenever'.
Early this morning there were a lot of package updates, and subsequently the
toolkit URL was unable to load test results, showing an 'internal server
error' message instead.
The cause turned out to be a change in SELinux 'type' on a couple of log
files, which resulted in permission denied errors in
/var/log/httpd/error_log
[Thu Sep 14 10:59:19.652856 2017] [:error] [pid 14147] [remote
109.105.99.90:132
] ValueError: Unable to configure handler 'esmond_handler': [Errno 13]
Permission denied: '/var/log/esmond/esmond.log'
The 'cure' would have been to change object type using chcon, or as I did:
move the log file out of the way and restart apache.
The object type change can be seen here:
[jac@psma01 ~]$ ls -Z /var/log/esmond/esmond.log*
-rw-r--r--. apache apache system_u:object_r:httpd_log_t:s0
/var/log/esmond/esmond.log
-rw-r--r--. apache apache system_u:object_r:var_log_t:s0
/var/log/esmond/esmond.log.2017-08-21
This mail is mostly a 'heads up' to other people running the measurement
archive under SELinux, but I guess the info may be relevant to the perfSonar
packagers too.
Should I submit the info somwhere?
br
/jon
--
From: <> on behalf of George Uhl <>
Date: Wednesday, October 3, 2018 at 4:12 PM To: Andrew Lake <> Cc: perfsonar-user <> Subject: Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive Andy,
The log files were not copied from the old server. I did a chmod on esmond.log to 666 but that didn’t help either.
Thanks,
George
# ls -la /var/log/esmond total 5056 drwxr-xr-x. 3 apache apache 177 Oct 3 14:23 . drwxr-xr-x. 15 root root 4096 Oct 3 19:11 .. drwxr-xr-x. 2 apache apache 6 Mar 15 2018 crashlog -rw-r--r--. 1 apache apache 5108885 Oct 3 14:52 django.log -rw-r--r--. 1 apache apache 8230 Oct 3 14:23 django.log.1 -rw-r--r--. 1 apache apache 8480 Oct 3 14:23 django.log.2 -rw-r--r--. 1 apache apache 8480 Oct 3 14:23 django.log.3 -rw-r--r--. 1 apache apache 12720 Oct 3 14:23 django.log.4 -rw-r--r--. 1 apache apache 4240 Oct 3 14:23 django.log.5 -rw-rw-rw-. 1 apache apache 0 Mar 15 2018 esmond.log -rw-r--r--. 1 apache apache 0 Mar 15 2018 install.log
From: Andrew Lake <>
Date: Wednesday, October 3, 2018 at 4:00 PM To: George Uhl <> Cc: perfsonar-user <> Subject: Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive Hi George,
The error you are seeing is about the log permissions. Make sure the log files under /var/log/esmond are owned by the "apache" user then restart httpd. Did you copy over logs from the old host as well?
Thanks,
Andy On Wed, Oct 3, 2018 at 3:51 PM Uhl, George D. (GSFC-423.0)[SGT INC] <> wrote:
|
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Uhl, George D. (GSFC-423.0)[SGT INC], 10/03/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Andrew Lake, 10/03/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Uhl, George D. (GSFC-423.0)[SGT INC], 10/03/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Uhl, George D. (GSFC-423.0)[SGT INC], 10/03/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Andrew Lake, 10/04/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Uhl, George D. (GSFC-423.0)[SGT INC], 10/04/2018
- AW: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Garnizov, Ivan, 10/04/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Uhl, George D. (GSFC-423.0)[SGT INC], 10/05/2018
- AW: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Garnizov, Ivan, 10/08/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Andrew Lake, 10/08/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Uhl, George D. (GSFC-423.0)[SGT INC], 10/09/2018
- AW: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Garnizov, Ivan, 10/10/2018
- AW: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Garnizov, Ivan, 10/08/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Kate Adams, 10/08/2018
- AW: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Garnizov, Ivan, 10/09/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Uhl, George D. (GSFC-423.0)[SGT INC], 10/04/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Andrew Lake, 10/04/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Uhl, George D. (GSFC-423.0)[SGT INC], 10/03/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Uhl, George D. (GSFC-423.0)[SGT INC], 10/03/2018
- Re: [non-nasa source] [perfsonar-user] FW: http POST 500 527 errors on central archive, Andrew Lake, 10/03/2018
Archive powered by MHonArc 2.6.19.