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, 19 Jul 2016 15:27:01 -0300 (BRT)

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

Attachment: espersistd
Description: application/shellscript

Attachment: espolld
Description: application/shellscript

[root@esmond-stage ~]# service espersistd start
Starting espersistd:Traceback (most recent call last):
File "/usr/lib/esmond/bin/espersistd", line 9, in <module>
load_entry_point('esmond==0.9b1', 'console_scripts', 'espersistd')()
File "/usr/lib/esmond/esmond/persist.py", line 1359, in espersistd
django.setup()
File "/usr/lib/esmond/lib/python2.7/site-packages/django/__init__.py", line
17, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/usr/lib/esmond/lib/python2.7/site-packages/django/utils/log.py",
line 86, in configure_logging
logging_config_func(logging_settings)
File "/opt/rh/python27/root/usr/lib64/python2.7/logging/config.py", line
803, in dictConfig
dictConfigClass(config).configure()
File "/opt/rh/python27/root/usr/lib64/python2.7/logging/config.py", line
585, in configure
'%r: %s' % (name, e))
ValueError: Unable to configure handler 'django_handler': [Errno 13]
Permission denied: '/var/log/esmond/django.log'
[FAILED]
[root@esmond-stage ~]# service espersistd start
Starting espersistd:Traceback (most recent call last):
File "/usr/lib/esmond/bin/espersistd", line 9, in <module>
load_entry_point('esmond==0.9b1', 'console_scripts', 'espersistd')()
File "/usr/lib/esmond/esmond/persist.py", line 1359, in espersistd
django.setup()
File "/usr/lib/esmond/lib/python2.7/site-packages/django/__init__.py", line
17, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/usr/lib/esmond/lib/python2.7/site-packages/django/utils/log.py",
line 86, in configure_logging
logging_config_func(logging_settings)
File "/opt/rh/python27/root/usr/lib64/python2.7/logging/config.py", line
803, in dictConfig
dictConfigClass(config).configure()
File "/opt/rh/python27/root/usr/lib64/python2.7/logging/config.py", line
585, in configure
'%r: %s' % (name, e))
ValueError: Unable to configure handler 'esmond_handler': [Errno 13]
Permission denied: '/var/log/esmond/esmond.log'
[FAILED]

[root@esmond-stage ~]# service espolld start
Starting espolld:Traceback (most recent call last):
File "/usr/lib/esmond/bin/espolld", line 9, in <module>
load_entry_point('esmond==0.9b1', 'console_scripts', 'espolld')()
File "/usr/lib/esmond/lib/python2.7/site-packages/pkg_resources.py", line
378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/esmond/lib/python2.7/site-packages/pkg_resources.py", line
2566, in load_entry_point
return ep.load()
File "/usr/lib/esmond/lib/python2.7/site-packages/pkg_resources.py", line
2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/esmond/esmond/poll.py", line 19, in <module>
from esmond.persist import PollResult, PersistClient
File "/usr/lib/esmond/esmond/persist.py", line 38, in <module>
from esmond.api.dataseries import fit_to_bins
File "/usr/lib/esmond/esmond/api/__init__.py", line 7, in <module>
from esmond.api.models import OIDSet
File "/usr/lib/esmond/esmond/api/models.py", line 5, in <module>
from django.contrib.auth.models import User, Permission
File
"/usr/lib/esmond/lib/python2.7/site-packages/django/contrib/auth/__init__.py",
line 7, in <module>
from django.middleware.csrf import rotate_token
File
"/usr/lib/esmond/lib/python2.7/site-packages/django/middleware/csrf.py", line
14, in <module>
from django.utils.cache import patch_vary_headers
File "/usr/lib/esmond/lib/python2.7/site-packages/django/utils/cache.py",
line 26, in <module>
from django.core.cache import caches
File
"/usr/lib/esmond/lib/python2.7/site-packages/django/core/cache/__init__.py",
line 34, in <module>
if DEFAULT_CACHE_ALIAS not in settings.CACHES:
File "/usr/lib/esmond/lib/python2.7/site-packages/django/conf/__init__.py",
line 48, in __getattr__
self._setup(name)
File "/usr/lib/esmond/lib/python2.7/site-packages/django/conf/__init__.py",
line 44, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib/esmond/lib/python2.7/site-packages/django/conf/__init__.py",
line 92, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/opt/rh/python27/root/usr/lib64/python2.7/importlib/__init__.py",
line 37, in import_module
__import__(name)
File "/usr/lib/esmond/esmond/settings.py", line 21, in <module>
ESMOND_SETTINGS = get_config(ESMOND_CONF)
File "/usr/lib/esmond/esmond/config.py", line 19, in get_config
raise ConfigError("config file not found: %s" % config_file)
esmond.error.ConfigError: config file not found: /usr/lib/esmond/esmond.conf
[FAILED]



Archive powered by MHonArc 2.6.19.

Top of Page