Skip to Content.
Sympa Menu

perfsonar-user - [perfsonar-user] RE: pscheduler and postgresql-9.5 are not working with perfSONAR v4.0

Subject: perfSONAR User Q&A and Other Discussion

List archive

[perfsonar-user] RE: pscheduler and postgresql-9.5 are not working with perfSONAR v4.0


Chronological Thread 
  • From: "Hitch, Ryan R CIV SPAWARSYSCEN-PACIFIC, 53629" <>
  • To: perfsonar-user <>
  • Subject: [perfsonar-user] RE: pscheduler and postgresql-9.5 are not working with perfSONAR v4.0
  • Date: Tue, 13 Jun 2017 16:53:00 +0000
  • Accept-language: en-US
  • Ironport-phdr: 9a23:YfepARToxkULsxRz/Jy1KdMSY9psv+yvbD5Q0YIujvd0So/mwa6zYBGN2/xhgRfzUJnB7Loc0qyN4v+mBjdLuM7f+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe71/IRG0oAnLtMQbj4RuJrstxhbIv3BFZ/lYyWR0KFyJgh3y/N2w/Jlt8yRRv/Iu6ctNWrjkcqo7ULJVEi0oP3g668P3uxbDSxCP5mYHXWUNjhVIGQnF4wrkUZr3ryD3q/By2CiePc3xULA0RTGv5LplRRP0lCsKMSMy/2/Nisx0kalVvhSvqRJiyILQeY2YMPlzcqbbcNgHR2ROQ9xRWjRBDI2icoUPE+QPM+VWr4b/plsBsRSwCga3CePz0z9FgmP60bEm3+khFwzNwQwuH8gJsHTRtNj5OqUcUeGpzKbUzTXPd+5d1yv96YfSdBAqvO2CVq9ufMTSxkYkCh7LgE+MpIPlIz6byvkDvGqG4ed+Wuyhk3crpRttrzWxxckiiorHi5wNxlvZ9Sh0zoc4KcO8RUJ1fNWpF4FQtiGAOItwWM8iQ2BouDomxb0GopO7ejIFyIonxhLFbvyHcoyI7wvlWe2MIjl4nGpodKyiixu960Ss1OLxWtOq3FtItCZIkdfBumgQ2xDP8MSLV+Fx8lq/1TqTzQzf9+JJLEEsmabFN5IswqQ8m5kTvEjZESL7nF/6gLGKekgq/OWj9v7pba/8ppCGMo95kgH+Pboqmsy4Gek4LxAOUHOG9uih0LDj5Vf2TKlJg/EsjKbWrpXaJd8UpqKjBg9ayIcj6xKlAzej0dQYmWELLFNDeB2Zk4jkI0/CLO33APulnVihny1ny+7EM7H7AZjAIGDPkLL7crZ8705cxhAzzdda559MELEAIOj8WknruNzYDx85LxC7w+b8BdV7zIweR2KODrWcMKPTtV+E/vgvLPWUZI8JpDb9LOAo5+bwgn8jl18dZq6p3Z0NZ3CiB/hmPl6ZbmT2gtoaFWcKvxE+TPDxiFGcSzJTZnCyX74i6TEhDoKpE5vDSp63jLOfwSi7A84eWmcTEl2WH2zvcYyeHuoXZTjadtdsiDIfUr6oUco8zhy0nA7817d9KOfIoGsVuY+1h/Zv4OiG3zEz6Td0S4ynwmiLB1s8tUI2DwQO9Z9Wm3dM8Xyu9+1Aqtd5O/14o7sUCVlgZNSUm/ZrAta0WgPdddehTl+4U5OjADVnHYF5+MMHf0soQ4bqtRvExSf/Ru5Fmg==

Solved.

This error is occuring when installing perfsonar-testpoint (yum -y install
perfsonar-testpoint) from the @postinstall section of a kickstart file. I
setup a firstboot script to install perfsonar-testpoint and the installation
completes successfully. For some reason postgresql-init-9.5 errors out (see
below) when installed from the @postinstall section of a Centos 7.3 kickstart
as a dependency of perfsonar-testpoint.



________________________________
From:


[]
on behalf of Hitch, Ryan R CIV SPAWARSYSCEN-PACIFIC, 53629
[]
Sent: Monday, June 12, 2017 1:01 PM
To: perfsonar-user
Subject: [Non-DoD Source] [perfsonar-user] RE: pscheduler and postgresql-9.5
are not working with perfSONAR v4.0

Not sure if this is related yet, but the following error appears installing
the postgresql-init-9.5-1 dependency:



Installing : postgresql-init-9.5-1.el7.centos.noarch
78/279

grep: /etc/systemd/system/multi-user.target.wants/postgresql-9.5.service: No
such file or directory

Unable to find PGDATA at

Running in chroot, ignoring request.

failed to find PGDATA setting in postgresql-9.5.service

Created symlink
/etc/systemd/system/multi-user.target.wants/postgresql-9.5.service, pointing
to /usr/lib/systemd/system/postgresql-9.5.service.



Followed by a bunch of other errors when installing pscheduler-server:

Installing : pscheduler-server-1.0.0.4-1.el7.centos.noarch 208/279

Can't open /var/lib/pgsql/9.5/data/postgresql.conf: No such file or directory



Running in chroot, ignoring request.

Unable to determine PostgreSQL user.

....and a whole lot more...



________________________________
From:


[]
on behalf of Hitch, Ryan R CIV SPAWARSYSCEN-PACIFIC, 53629
[]
Sent: Monday, June 12, 2017 12:52 PM
To: perfsonar-user
Subject: [Non-DoD Source] [perfsonar-user] RE: pscheduler and postgresql-9.5
are not working with perfSONAR v4.0

I am seeing the same thing on a fresh minimal install of CentOS 7.3 and then
a "yum install perfsonar-testpoint".

Neither postgresql-9.5 nor pscheduler will start. SELinux is permissive.



Thanks,

Ryan



________________________________
From:


[]
on behalf of Daniel Manzo
[]
Sent: Wednesday, June 07, 2017 1:46 PM
To: perfsonar-user
Subject: [Non-DoD Source] [perfsonar-user] pscheduler and postgresql-9.5 are
not working with perfSONAR v4.0

Hi all,

After upgrading my server from RHEL 6.8 to 7.3, I needed to re-install
perfSONAR (going from 3.5 to 4.0) on my machine. After installation,
postgresql-9.5 will not start and all pscheduler tasks are reported as
“active (running)” but throw errors. The errors from each are shown below:

Pscheduler

Jun 7 13:35:06 by0ok5 journal: safe_run/ticker ERROR Restarting
Jun 7 13:35:06 by0ok5 journal: safe_run/ticker ERROR Program threw an
exception after 0:00:00.000908
Jun 7 13:35:06 by0ok5 journal: safe_run/ticker ERROR Exception: IOError:
[Errno 13] Permission denied:
'/etc/pscheduler/database/database-dsn'#012Traceback (most recent call
last):#012 File "/usr/lib/python2.7/site-packages/pscheduler/saferun.py",
line 41, in safe_run#012 function()#012 File
"/usr/libexec/pscheduler/daemons/ticker", line 153, in <lambda>#012
pscheduler.safe_run(lambda: main_program())#012 File
"/usr/libexec/pscheduler/daemons/ticker", line 123, in main_program#012 db
= pscheduler.pg_connection(dsn)#012 File
"/usr/lib/python2.7/site-packages/pscheduler/db.py", line 28, in
pg_connection#012 dsn = string_from_file(dsn)#012 File
"/usr/lib/python2.7/site-packages/pscheduler/filestring.py", line 23, in
string_from_file#012 with open(path, 'r') as content:#012IOError: [Errno
13] Permission denied: '/etc/pscheduler/database/database-dsn'
Jun 7 13:35:06 by0ok5 journal: safe_run/ticker ERROR Waiting 60.0 seconds
before restarting

Postgresql-9.5

â postgresql-9.5.service - PostgreSQL 9.5 database server
Loaded: loaded (/usr/lib/systemd/system/postgresql-9.5.service; enabled;
vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2017-06-05 11:10:05 EDT; 2
days ago
Process: 31031 ExecStartPre=/usr/pgsql-9.5/bin/postgresql95-check-db-dir
${PGDATA} (code=exited, status=1/FAILURE)

Jun 05 11:10:05 by0ok5.na.bayer.cnb systemd[1]: Starting PostgreSQL 9.5
database server...
Jun 05 11:10:05 by0ok5.na.bayer.cnb systemd[1]: postgresql-9.5.service:
control process exited, code=exited status=1
Jun 05 11:10:05 by0ok5.na.bayer.cnb systemd[1]: Failed to start PostgreSQL
9.5 database server.
Jun 05 11:10:05 by0ok5.na.bayer.cnb systemd[1]: Unit postgresql-9.5.service
entered failed state.
Jun 05 11:10:05 by0ok5.na.bayer.cnb systemd[1]: postgresql-9.5.service failed.

I think that the two problems are related, but I’m not sure what needs to be
done in order to fix the errors. To fix the ‘Permission denied’ error, I have
tried changing the owner and group of /etc/pscheduler/database/ to
‘pscheduler’ instead of ‘root’ and changed file permissions. This did not
work, and I am running out of ideas. Any and all help is greatly appreciated.

Thank you,
Dan Manzo



Archive powered by MHonArc 2.6.19.

Top of Page