Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] RE: Request for updating esmond rpm to latest version on perfSONAR repo

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] RE: Request for updating esmond rpm to latest version on perfSONAR repo


Chronological Thread 
  • From: Marcos Felipe Schwarz <>
  • To: Andrew Lake <>
  • Cc: , "Garnizov, Ivan (RRZE)" <>
  • Subject: Re: [perfsonar-user] RE: Request for updating esmond rpm to latest version on perfSONAR repo
  • Date: Tue, 26 Jul 2016 13:38:33 -0300 (BRT)
  • Importance: Normal

Hi Andy,

Could you take a look at what I sent?
Let me know if I can make any further testing or if there are better solutions to fix the scripts and I will adapt it.

Regards,

Marcos Schwarz


On Jul 19, 2016 15:27, Marcos Felipe Schwarz <> wrote:
Hi Andy,

I've tested the scripts and they are not working properly.

Issue 1: Both scripts (espolld and espersistd) fail when trying to run the respective program with the message "This account is currently not available." The programs run using user esmond, but this user was created with a /sbin/nologin in the rpm nstallation. To fix the error it is needed to define the shell in line that runs the programs adding "-s" parameter in the "su" command.

Issue 2: Error: "/usr/lib/esmond/bin/python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory". On CentOS 6, Esmond uses a standalone python 2.7, and it's shared libraries are not exported to the environment variables. I'm not sure what should be the cleanest solution but either running "source /opt/rh/python27/enable" inside the script or configuring "/opt/rh/python27/root/usr/lib64" directly or via ldconfig should do it. Temporarily I chouse the firt option

Issue 3: "esmond.error.ConfigError: config file not found: /usr/lib/esmond/esmond.conf", complete log attached as "Error 3". The environment variable ESMOND_CONF is not recognized inside the script. To fix it I renamed the CONF_FILE variable to ESMOND_CONF and exported it inside the init script.

Issue 4: Got permission denied when the programs were trying to acesse the apache logs /var/log/esmond/django.log' and /var/log/esmond/esmond.log'. Full log attached as "Error 4". Both files had permission set to 644:
[root@esmond-stage ~]# ls -l /var/log/esmond/esmond.log
-rw-r--r--. 1 apache apache 13424 Jul 18 10:45 /var/log/esmond/esmond.log

[root@esmond-stage ~]# ls -l /var/log/esmond/django.log
-rw-r--r--. 1 apache apache 28430 Jul 18 10:38 /var/log/esmond/django.log

As a temporary solution I changed to permission 777, but a proper fix is needed. After this changes the scripts are working as intended and I've attached the fixed version I'm using

Regards,

Marcos Schwarz


From: "Andrew Lake" <>
To: "Marcos Felipe Schwarz" <>, "Garnizov, Ivan (RRZE)" <>
Cc:
Sent: Monday, July 18, 2016 11:53:46 AM
Subject: Re: [perfsonar-user] RE: Request for updating esmond rpm to latest version on perfSONAR repo




Archive powered by MHonArc 2.6.19.

Top of Page