CentOS 7 install script for iRODS 4.1.7

404 views
Skip to first unread message

Sune Andersen

unread,
Nov 23, 2015, 8:56:32 AM11/23/15
to iRODS-Chat
Hi!
Here is part of my kickstart/install script for our iRODs Server(after a minimal CentOS7 install).... 

All ideas are welcome....  Like setting up the DB and setup.sh script via scripts... 

Looking for a Repo for iRods...  any1 ?

-Sune

############################################Install script##############################
yum -y update;
yum -y upgrade;
yum -y update;
yum -y install net-tools wget nano mc

yum -y install unixODBC pam-devel openssl-devel wget nano mc tomcat tomcat-webapps
yum -y install tomcat-admin-webapps tomcat-docs-webapp tomcat-javadoc net-tools postgresql postgresql-server
yum -y install postgresql-contrib postgresql-libs postgresql-odbc fuse-libs.x86_64 perl-JSON* python-requests.noarch
yum -y install python-jsonschema python-psutil lsof authd
yum -y install epel-release

sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/remi.repo

rpm -ivh irods-dev-4.1.7-centos7-x86_64.rpm
rpm -ivh irods-icat-4.1.7-centos7-x86_64.rpm
rpm -ivh irods-runtime-4.1.7-centos7-x86_64.rpm
rpm -ivh irods-database-plugin-postgres-1.7-centos7-x86_64.rpm

postgresql-setup initdb
systemctl start postgresql
systemctl enable postgresql

firewall-cmd --zone=public --add-port=1247/tcp --permanent
firewall-cmd --zone=public --add-port=5432/tcp --permanent
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --zone=public --add-service=https --permanent
firewall-cmd --reload

#su postgres
#psql
#CREATE USER irods WITH PASSWORD 'your_DB_password';
#CREATE DATABASE "ICAT";
#GRANT ALL PRIVILEGES ON DATABASE "ICAT" TO irods;
#\q
# Do remember : var/lib/pgsql/data/postgresql.conf
# listen_addresses = 'localhost'  to   listen_addresses = '*'
# and  /var/lib/pgsql/data/pg_hba.conf  # IDENT = trust
###########################################################################################

Sune Andersen

unread,
Dec 1, 2015, 8:18:53 AM12/1/15
to iRODS-Chat

After installing /updating iRODS.. I get this error ...
# iadmin
ERROR: _rcConnect: setRhostInfo error, irodsHost is probably not set correctly status = -302000 USER_RODS_HOST_EMPTY
ERROR: rcConnect failure USER_RODS_HOST_EMPTY () (-302000) _rcConnect: setRhostInfo failed

- Is there an error in 4.1.7 or do I miss something ?

Terrell Russell

unread,
Dec 1, 2015, 8:41:05 AM12/1/15
to irod...@googlegroups.com
This means that your environment is not defined for your current unix user.    This user has an ~/.irods/irods_environment.json file?

If not, you can run iinit to create one (it will prompt you for four pieces of information).

Terrell




--
--
"iRODS: the Integrated Rule-Oriented Data-management System; A community driven, open source, data grid software solution" https://www.irods.org
 
iROD-Chat: http://groups.google.com/group/iROD-Chat

---
You received this message because you are subscribed to the Google Groups "iRODS-Chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to irod-chat+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sune Andersen

unread,
Dec 1, 2015, 10:33:22 AM12/1/15
to iRODS-Chat
That did it for me... I was locky it was a new server...
After a drop of the DB named: ICAT ... and follow the guides from : https://docs.irods.org/master/manual/installation/
and last run : iinit  and give the same info as I did on setup.sh  

thanks!

/Sune
Reply all
Reply to author
Forward
0 new messages