Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] mod_wsgi.conf

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] mod_wsgi.conf


Chronological Thread 
  • From: "Wussler, Doug" <>
  • To: Andrew Lake <>, Mark Maciolek <>, "" <>
  • Subject: Re: [perfsonar-user] mod_wsgi.conf
  • Date: Thu, 5 Jan 2017 14:18:37 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:MWviARcxVktTSo0/tmYK0/IAlGMj4u6mDksu8pMizoh2WeGdxc27bRyN2/xhgRfzUJnB7Loc0qyN4vymADxLvMfJmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanb75/KBq7oR/MusQVjodvKqI8wQbVr3VVfOhb2XlmLk+JkRbm4cew8p9j8yBOtP8k6sVNT6b0cbkmQLJBFDgpPHw768PttRnYUAuA/WAcXXkMkhpJGAfK8hf3VYrsvyTgt+p93C6aPdDqTb0xRD+v4btnRAPuhSwaLDMy7n3ZhdJsg6JauBKhpgJww4jIYIGOKfFyerrRcc4GSWZdW8pcUTFKDIGhYIsVF+cPPfhWoZThp1UArhW+CwujBOLzxTBHnXL5x7E23v47HA3awAAtH9QDu2nUotXvM6cSVPi4wKfIwjXedPNWwjP955bSchw5vPqCU7VwcdfeyUUhCgjIiUifqYv4PzOazOgMvXWb7/F7VeKrlWEnsRp8oja0xscxkIXGmJ8ayk3d+Ch/3Y07K9q4SEthbt6lFptdrySaN4xrTcIsWGFotyc6xqcBuZ6hcygG0JQnxwLDa/yfboeI5xXjW/uMITd8mn1lY7e/hxGv/kmu0e38Wci03ExRripCitXMt3YN1wDN5cidTPty4Fuh1SiV2w/N9+5EPFg4larHK5492r4/i58TsUPeES/rnEX5krSWeVgl+uiy9evofqnmppiGN450iwH+KbohldKjAeQ4KAcOQ22b+eOh27zt5k35T7RKguctkqnetp3ROMcVprahDgNLyIkv9wuzAjK73NgFgHUKKVxFdR2bg4T1PlzOLu73APijj1mplTpmxu3KMqP5DpnQMHTOk63tcat+5kNd0gY+w95S64hKBr0dPP7+XFL6usbCAR8jKQO0xv7qCNVj2YMaXmKCGreXPb/Vv1OU++4jOvSCapcItDrkLPgq/ODhgWU+mV8AYammxpwXaG2+Hvt7OUmZeWDsgtAdEWgUogU+UO3qiFqEUTJJYHayQr485jU8CIKhDofPXJyigLuE3CujH51WYH5JCkyUHHv2bYqIR+oAZSePLsN8jzAJULahRoA92R2ysQL6xaRoI+XI9iAdsJ/u1cV56/PLmRE37zN0DsCd02+XT2Fzm2MFXyI53KdioUxy0FuC37V4g+dDFdxX+fxJSBw3NZDHz+xnEdz9RB/OfsqRRFa8XtqmGS0xTs42w9IWe0ZyBc+ijh7Y3yqtBb8ajaaLCIUp8qLHwXfxPd1wy3LH1Kk6k1kmWdVDOXenhq556wjcGZTJk0OHmKa2a6gQxjDC+3qezTnGgEYNeQh8S6jaFVQWZUae+d3/6lLqQqToD7k7ZE8J7MeYKeNvY9boilFLR7+3Pd3EYCS0kmyxAhKFxZuRaoqsdmkAimGVQlAJiQ4I+nCPL00jHSq7i2PYEDF0E1/zOQXh/fQ04CejQ1U61AaMZlckyqG44DYUg+CRUfUewuhCtSs8/WZaBlG4ipjpFsGbowd7OO1wZs4yqh8T2WXEuEpiI4e7K614rlAFbkJ6s164hEY/MZlJjcV/9CBi9wF1M6/NlQoZLz4=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Thanks for the explanation and info.  I appreciate it.



From: Andrew Lake <>
Date: Thursday, January 5, 2017 at 9:16 AM
To: Default User Name <>, Mark Maciolek <>, "" <>
Subject: Re: [perfsonar-user] mod_wsgi.conf

Hi,

I did some testing on my own and I think its just an artifact of how running the httpd syntax check interacts with the weird way we setup mod_wsgi to work with python 2.7. It doesn't appear to be preventing anything from running that should be. In practice there is actually a python virtualenv running python 2.7 that gets pointed at, when running with -t it doesn't appear to initialize that the same way it does when you actually start the server hence the error. The good news this is fixed in the forthcoming perfSONAR version as we reshuffled the python27-mod_wsgi setup on CentOS 6 to avoid headaches like this. 

Thanks,
Andy 


On January 4, 2017 at 4:01:52 PM, Wussler, Doug () wrote:

Thanks for the replies.  Based on what Mark said, I attempted to restart apache and there was no problem.  I suspect this issue has been there for some time.  However, I cannot recall ever adding or removing repos, or installing any packages.  Looking in my /etc/httpd/modules directory I see that “mod_wsgi.so” (and “mod_auth-shadow.so”) has a date from 2014 while all other modules have a date of Nov 2016.  Looking in /usr/lib64 I see “libpython2.6.so.1.0” but no “libpython2.7.so.1.0”.  There is nothing at all in /usr/local/lib64. 

yum repolist:

repo id                                                                    repo name                                                                                                          status

Internet2                                                                  Internet2 RPM Repository - software.internet2.edu - main                                                              286

Internet2-web100_kernel                                                    Internet2 Web100 Kernel RPM Repository - software.internet2.edu - main                                                166

base                                                                       CentOS-6 - Base                                                                                                     6,696

dell-system-update_dependent                                               dell-system-update_dependent                                                                                           62

dell-system-update_independent                                             dell-system-update_independent                                                                                        566

epel                                                                       Extra Packages for Enterprise Linux 6 - x86_64                                                                     12,207

extras                                                                     CentOS-6 - Extras                                                                                                      62

updates                                                                    CentOS-6 - Updates                                                                                                    712

repolist: 20,757



yum info python27-mod_wsgi:

Installed Packages

Name        : python27-mod_wsgi

Arch        : x86_64

Version     : 3.2

Release     : 3.el6

Size        : 177 k

Repo        : installed

From repo   : anaconda-CentOS-201508042137.x86_64

Summary     : A WSGI interface for Python web applications in Apache

URL         : http://modwsgi.org

License     : ASL 2.0



From: Mark Maciolek <>
Date: Wednesday, January 4, 2017 at 3:51 PM
To: 'Andrew Lake' <>, Default User Name <>, "" <>
Subject: RE: [perfsonar-user] mod_wsgi.conf

Hi,

 

CentOS release 6.8 (Final)

 

Same issue and yum info says it came from Internet2

 

Installed Packages

Name        : python27-mod_wsgi

Arch        : x86_64

Version     : 3.2

Release     : 3.el6

Size        : 177 k

Repo        : installed

From repo   : Internet2

Summary     : A WSGI interface for Python web applications in Apache

URL         : http://modwsgi.org

License     : ASL 2.0

Description : The mod_wsgi adapter is an Apache module that provides a WSGI compliant

            : interface for hosting Python based web applications within Apache. The

            : adapter is written completely in C code against the Apache C runtime and

            : for hosting WSGI applications within Apache has a lower overhead than using

            : existing WSGI adapters for mod_python or CGI.

 

Have not noticed any issues with server or with restarting apache.

 

mark

 

From: [] On Behalf Of Andrew Lake
Sent: Wednesday, January 4, 2017 3:39 PM
To: Wussler, Doug <>;
Subject: Re: [perfsonar-user] mod_wsgi.conf

 

Hi,

 

If you run "yum repolist” do you have the SCL repo installed (will probably be named something like centos-sclo)? You may have grabbed a version of python27-mod_wsgi that causes some problems for perfSONAR. You can also check with “yum info python27-mod_wsgi”. If the repo is Internet2 you are in good shape, otherwise you may have a bad version. I’d imagine the problem would appear sooner, though maybe apache hasn’t been restarted in awhile so it just rearing its head now. If it is indeed because it grabbed the SCL version I can help you get it back on the right one.

 

Thanks,

Andy

 

 

 

On January 4, 2017 at 3:09:48 PM, Wussler, Doug () wrote:

We are running three 3.5.1 servers that were originally installed from a CentOS 6 ISO.  These servers auto-update and I don’t need to touch them except to reboot when  a new kernel comes out, which I did prior to Christmas.

 

Today, before editing the HTTPD config to implement stricter SSL ciphers I ran “httpd –t” and got this:

 

httpd: Syntax error on line 239 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/wsgi.conf: Cannot load /etc/httpd/modules/mod_wsgi.so into server: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

 

I checked my other two servers and got the same thing.  I checked the YUM history and I see it picked up a couple of updates after my reboot:

 

ID     | Login user               | Date and time    | Action(s)      | Altered

-------------------------------------------------------------------------------

   129 | root <root>              | 2017-01-04 04:16 | Update         |   50   

   128 | root <root>              | 2016-12-22 03:54 | Update         |    4   

 

 

Is it possible that something got corrupted in one of these recent updates?

 

 

Doug Wussler

850.645.4201

Application Developer/Designer – Core Network Team

Information Technology Services

RK Shaw Building

644 W. Call Street

Tallahassee, FL  32304

 




Archive powered by MHonArc 2.6.19.

Top of Page