onsdag den 28. oktober 2015

iRODs 4.1.6 on my CentOS

My First test with iRODS 4.1.6 on a CentOS 7

From : https://groups.google.com/forum/#!forum/irod-chat

I did :  chmod -R 755 /var/lib/irods

-- My Server files---
#rpm -qa postgre*
postgresql-server-9.2.13-1.el7_1.x86_64
postgresql-9.2.13-1.el7_1.x86_64
postgresql-odbc-09.03.0100-2.el7.x86_64
postgresql-devel-9.2.13-1.el7_1.x86_64
postgresql-contrib-9.2.13-1.el7_1.x86_64
#rpm -qa irod*
irods-dev-4.1.6-0.x86_64
irods-icat-4.1.6-0.x86_64
irods-runtime-4.1.6-0.x86_64
irods-database-plugin-postgres-1.6-0.x86_64
in the file :   /var/lib/pgsql/data/postgresql.conf
you need to change : listen_addresses = 'localhost'  to   listen_addresses = '*'
Also remember to add it to firewall-cmd with the option : --permanent
To fix this error open PostgreSQL client authentication configuration file /var/lib/pgsql/data/pg_hba.conf :
# vi /var/lib/pgsql/data/pg_hba.conf
This file controls: Which hosts are allowed to connect
How clients are authenticated which PostgreSQL user names they can use Which databases they can access

By default Postgresql uses IDENT-based authentication.
All you have to do is allow username and password based authentication for your network or webserver. 
IDENT will never allow you to login via -U and -W options. Append following to allow login via localhost only:
local all all trust
host all 127.0.0.1/32 trust
Save and close the file. Restart Postgresql!
Other usefull stuff: (systemD)
systemctl status postgresql.service
systemctl stop postgresql.service
systemctl start postgresql.service
--
Test your iRODS password with : iinit
Wrong password will give :
Enter your current iRODS password:
[-]     libnative.cpp:336:native_auth_client_response :  status [CAT_INVALID_AUTHENTICATION]  errno [] -- message [Call to rcAuthResponseFailed.]
 failed with error -826000 CAT_INVALID_AUTHENTICATION
Right password will give :
Enter your current iRODS password:
#

-----
install postgresql93:  (NOT the latest one!!! )
rpm -iUvh http://yum.postgresql.org/9.3/redhat/rhel-latest-x86_64/pgdg-centos93-9.3-1.noarch.rpm; yum update
yum -y install postgresql93 postgresql93-server postgresql93-contrib postgresql93-libs postgresql93-odbc fuse-libs.x86_64 perl-JSON* python-jsonschema.noarch
Please Note : IDROP-web need : TomCat 7 or 8 (and Varnish???)
--
I'm still testing with Varnish vs. Apache Traffic Server as a Reverse Proxy
---
--My Setup:
Varnish : nano /etc/yum.repos.d/varnish.repo

---the file-------
[varnish-4.0]
name=Varnish 4.0 for Enterprise Linux
baseurl=https://repo.varnish-cache.org/redhat/varnish-4.0/el7/$basearch
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-VARNISH
---------
yum install varnish varnish-libs varnish-libs-devel
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload

nano /etc/varnish/varnish.params
Setup : DAEMON_OPTS="-a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m"
Please let me know how you did your CentOS 7 or RedHat ES 7