mysql -u root -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 4Server version: 5.6.22 MySQL Community Server (GPL)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database ICAT character set latin1 collate latin1_general_cs;
Query OK, 1 row affected (0.00 sec)
mysql> CREATE USER 'irods'@'localhost' IDENTIFIED BY 'irods';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT ALL ON ICAT.* TO 'irods'@'localhost';Query OK, 0 rows affected (0.00 sec)
mysql> exit;Bye
sudo ./setup_irods.sh
sk@irods-icat:/var/lib/irods/packaging$ sudo ./setup_irods.sh===================================================================
You are installing iRODS.
The iRODS server cannot be started until it has been configured.
iRODS server's zone name [tempZone]:
iRODS server's port [1247]:
iRODS port range (begin) [20000]:
iRODS port range (end) [20199]:
iRODS Vault directory [/var/lib/irods/iRODS/Vault]:
iRODS server's LocalZoneSID [TEMP_LOCAL_ZONE_SID]:
iRODS server's agent_key [temp_32_byte_key_for_agent__conn]:
iRODS server's administrator username [rods]: rods
iRODS server's administrator password:
-------------------------------------------iRODS Zone: tempZoneiRODS Port: 1247Range (Begin): 20000Range (End): 20199Vault Directory: /var/lib/irods/iRODS/VaultLocalZoneSID: TEMP_LOCAL_ZONE_SIDagent_key: temp_32_byte_key_for_agent__connAdministrator Username: rodsAdministrator Password: Not Shown-------------------------------------------Please confirm these settings [yes]:
Updating /etc/irods/irods.config...Updating /var/lib/irods/iRODS/server/icat/src/icatSysInserts.sql...Updating /etc/irods/server.config...===================================================================
You are installing an iRODS database plugin.
The iRODS server cannot be started until its databasehas been properly configured.
Database server's hostname or IP address [10.76.243.45]:
Database server's port [3306]:
Database name [ICAT]:
Database username [irods]:
Database password:
-------------------------------------------Database Type: mysqlHostname or IP: 10.76.243.45Database Port: 3306Database Name: ICATDatabase User: irodsDatabase Password: Not Shown-------------------------------------------Please confirm these settings [yes]:
===================================================================Updating irods.config...
Stopping iRODS server...Found 0 processes: There are no iRODS servers running.
-----------------------------Running irods_setup.pl...
Step 1 of 5: Configuring database user... Skipped. For MySQL, database configured by DBA.
Step 2 of 5: Creating database and tables... CreateDatabase Skipped. For MySQL, DBA creates the instance. Updating the .odbc.ini... Creating iCAT tables... Inserting iCAT tables...
Install problem: Could not create the iCAT tables. Warning: Using a password on the command line interface can be insecure. ERROR 1071 (42000) at line 499: Specified key was too long; max key length is 767 bytesFound 0 processes: There are no iRODS servers running.
Abort.
mysql> create database ICAT character set utf8 collate utf8_bin;Query OK, 1 row affected (0.01 sec)
Install problem: Could not create the iCAT tables. Warning: Using a password on the command line interface can be insecure.
ERROR 1118 (42000) at line 122: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
[root@als-irods2 irods]# more /var/log/mysqld.log150122 23:29:31 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql150122 23:29:31 InnoDB: Initializing buffer pool, size = 8.0M150122 23:29:31 InnoDB: Completed initialization of buffer poolInnoDB: The first specified data file ./ibdata1 did not exist:InnoDB: a new database to be created!150122 23:29:31 InnoDB: Setting file ./ibdata1 size to 10 MBInnoDB: Database physically writes the file full: wait...150122 23:29:31 InnoDB: Log file ./ib_logfile0 did not exist: new to be createdInnoDB: Setting log file ./ib_logfile0 size to 5 MBInnoDB: Database physically writes the file full: wait...150122 23:29:32 InnoDB: Log file ./ib_logfile1 did not exist: new to be createdInnoDB: Setting log file ./ib_logfile1 size to 5 MBInnoDB: Database physically writes the file full: wait...InnoDB: Doublewrite buffer not found: creating newInnoDB: Doublewrite buffer createdInnoDB: Creating foreign key constraint system tablesInnoDB: Foreign key constraint system tables created150122 23:29:32 InnoDB: Started; log sequence number 0 0150122 23:29:32 [Note] Event Scheduler: Loaded 0 events150122 23:29:32 [Note] /usr/libexec/mysqld: ready for connections.Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution150123 0:07:10 [Note] /usr/libexec/mysqld: Normal shutdown
150123 0:07:10 [Note] Event Scheduler: Purging the queue. 0 events150123 0:07:10 InnoDB: Starting shutdown...150123 0:07:15 InnoDB: Shutdown completed; log sequence number 0 44233150123 0:07:15 [Note] /usr/libexec/mysqld: Shutdown complete
150123 00:07:15 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended150123 00:07:16 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql150123 0:07:16 InnoDB: Initializing buffer pool, size = 8.0M150123 0:07:16 InnoDB: Completed initialization of buffer pool150123 0:07:16 InnoDB: Started; log sequence number 0 44233150123 0:07:16 [Note] Event Scheduler: Loaded 0 events150123 0:07:16 [Note] /usr/libexec/mysqld: ready for connections.Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution[root@als-irods2 irods]# dateFri Jan 23 00:18:31 PST 2015[root@als-irods2 irods]#
[root@als-irods2 irods]# /var/lib/irods/packaging/setup_irods.sh
===================================================================
You are installing iRODS.
The iRODS server cannot be started until it has been configured.
iRODS server's zone name [tempZone]:
iRODS server's port [1247]:
iRODS port range (begin) [20000]:
iRODS port range (end) [20199]:
iRODS Vault directory [/var/lib/irods/iRODS/Vault]:
iRODS server's LocalZoneSID [TEMP_LOCAL_ZONE_SID]:
iRODS server's agent_key [temp_32_byte_key_for_agent__conn]:
iRODS server's administrator username [rods]:
iRODS server's administrator password:
-------------------------------------------iRODS Zone: tempZoneiRODS Port: 1247Range (Begin): 20000Range (End): 20199Vault Directory: /var/lib/irods/iRODS/VaultLocalZoneSID: TEMP_LOCAL_ZONE_SIDagent_key: temp_32_byte_key_for_agent__connAdministrator Username: rodsAdministrator Password: Not Shown-------------------------------------------Please confirm these settings [yes]:
Updating /etc/irods/irods.config...Updating /var/lib/irods/iRODS/server/icat/src/icatSysInserts.sql...Updating /etc/irods/server.config...===================================================================
You are installing an iRODS database plugin.
The iRODS server cannot be started until its databasehas been properly configured.
Database server's hostname or IP address [10.25.9.191]:
Database server's port [3306]:
Database name [ICAT]:
Database username [irods]:
Database password:
-------------------------------------------Database Type: mysql
Hostname or IP: 10.25.9.191
Database Port: 3306Database Name: ICATDatabase User: irodsDatabase Password: Not Shown-------------------------------------------Please confirm these settings [yes]:
===================================================================Updating irods.config...
Stopping iRODS server...Found 0 processes: There are no iRODS servers running.
-----------------------------Running irods_setup.pl...
Step 1 of 5: Configuring database user... Skipped. For MySQL, database configured by DBA.
Step 2 of 5: Creating database and tables... CreateDatabase Skipped. For MySQL, DBA creates the instance. Updating the .odbc.ini... Creating iCAT tables...
Skipped. Tables already created.
Step 3 of 5: Configuring database security... Configuring security... Skipped. MySQL database security configured by DBA. Testing database communications...
Step 4 of 5: Configuring iRODS server... Updating iRODS server.config... Starting iRODS server with boot environment...Could not start iRODS server. Starting iRODS server...iRODS server failed to start.
Install problem: Cannot start iRODS server.
If your network environment is unusual, you may need to update the server/config/irodsHost.
Found 0 processes: There are no iRODS servers running.
Abort.
[root@als-irods2 irods]# more /var/lib/irods/iRODS/server/log/proc/ rodsLog.2015.01.21[root@als-irods2 irods]# more /var/lib/irods/iRODS/server/log/rodsLog.2015.01.21Jan 23 00:30:02 pid:6074 NOTICE: environment variable set, irodsEnvFile=/var/lib/irods/iRODS/config/irodsEnv.bootJan 23 00:30:02 pid:6074 NOTICE: created irodsHome=/tempZone/home/rodsBootJan 23 00:30:02 pid:6074 NOTICE: created irodsCwd=/tempZone/home/rodsBoot LocalHostName: localhost, als-irods2, als-irods2.lss.emc.com, Port Num: 1233.
Jan 23 00:30:02 pid:6074 NOTICE: cllExecSqlWithResultBV: SQLExecDirect error: -1, sql:select name from mysql.func limit 1Jan 23 00:30:02 pid:6074 NOTICE: SQLSTATE: S1000Jan 23 00:30:02 pid:6074 NOTICE: SQLCODE: 1142Jan 23 00:30:02 pid:6074 NOTICE: SQL Error message: [unixODBC][MySQL][ODBC 5.1 Driver][mysqld-5.1.73]SELECT command denied to user 'irods'@'localhost' for table 'func'Jan 23 00:30:02 pid:6074 ERROR: [-] iRODS/server/icat/src/icatHighLevelRoutines.cpp:144:chlOpen : status [CAT_SQL_ERR] errno [] -- message [] [-] ../src/db_plugin.cpp:15932:db_start_operation : status [CAT_SQL_ERR] errno [] -- message [failed to call sql to determine UDF]
Jan 23 00:30:02 pid:6074 NOTICE: Warning, pending SQL at cllDisconnect, count: 6Jan 23 00:30:02 pid:6074 NOTICE: Warning, pending SQL: begin ...Jan 23 00:30:02 pid:6074 NOTICE: Warning, pending SQL: SET SESSION autocommit=0 ...Jan 23 00:30:02 pid:6074 NOTICE: Warning, pending SQL: SET SESSION sql_mode='ANSI,ST ...Jan 23 00:30:02 pid:6074 NOTICE: Warning, pending SQL: SET character_set_client = ut ...Jan 23 00:30:02 pid:6074 NOTICE: Warning, pending SQL: SET character_set_results = u ...Jan 23 00:30:02 pid:6074 NOTICE: connectRcat: chlOpen Error. Status = -1808000Jan 23 00:30:02 pid:6074 SYSTEM FATAL: initServerInfo: no rcatHost error, status = -1808000Jan 23 00:30:02 pid:6074 NOTICE: initServer: initServerInfo error, status = -1808000Jan 23 00:30:02 pid:6074 ERROR: initServerMain: initServer error. status = -1808000[root@als-irods2 irods]#
Can you please edit your ./plugins/database/src/icatSysTables.sql file from
create index idx_data_main6 on R_DATA_MAIN (data_path);tocreate index idx_data_main6 on R_DATA_MAIN (data_path (767));
and
create index idx_specific_query1 on R_SPECIFIC_QUERY (sqlStr);tocreate index idx_specific_query1 on R_SPECIFIC_QUERY (sqlStr (767));
[root@als-irods2 irods]#mysql> GRANT SELECT ON mysql.func TO 'irods'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> exitBye
Database server's hostname or IP address [10.9.25.191]:
Database server's port [3306]:
Database name [ICAT]:
Database username [irods]:
Database password:
-------------------------------------------Database Type: mysql
Hostname or IP: 10.9.25.191
[root@als-irods2 irods]# more /var/lib/irods/iRODS/server/log/rodsLog.2015.01.21Jan 23 02:09:58 pid:13465 NOTICE: environment variable set, irodsEnvFile=/var/lib/irods/iRODS/config/irodsEnv.boot
Jan 23 02:09:58 pid:13465 NOTICE: created irodsHome=/tempZone/home/rodsBootJan 23 02:09:58 pid:13465 NOTICE: created irodsCwd=/tempZone/home/rodsBoot LocalHostName: localhost, als-irods2, als-irods2.lss.domain.com, Port Num: 1233.
Jan 23 02:09:58 pid:13465 NOTICE: initZone: rsGenQuery error, status = -808000Jan 23 02:09:58 pid:13465 SYSTEM FATAL: initServerInfo: initZone error, status = -808000Jan 23 02:09:58 pid:13465 NOTICE: initServer: initServerInfo error, status = -808000Jan 23 02:09:58 pid:13465 ERROR: initServerMain: initServer error. status = -808000[root@als-irods2 irods]#
--
122 create table R_RULE_MAIN
123 (124 rule_id bigint not null,125 rule_version varchar(250) DEFAULT '0',126 rule_base_name varchar(250) not null,127 rule_name varchar(2700) not null,128 rule_event varchar(2700) not null,129 rule_condition varchar(2700),130 rule_body varchar(2700) not null,131 rule_recovery varchar(2700) not null,132 rule_status bigint DEFAULT 1,133 rule_owner_name varchar(250) not null,134 rule_owner_zone varchar(250) not null,135 rule_descr_1 varchar(2700),136 rule_descr_2 varchar(2700),137 input_params varchar(2700),138 output_params varchar(2700),139 dollar_vars varchar(2700),140 icat_elements varchar(2700),141 sideeffects varchar(2700),142 r_comment varchar(1000),143 create_ts varchar(32),144 modify_ts varchar(32)145 ) ;
146
122 create table R_RULE_MAIN123 (124 rule_id bigint not null,125 rule_version varchar(250) DEFAULT '0',126 rule_base_name varchar(250) not null,
127 rule_name text not null,128 rule_event text not null,129 rule_condition text,130 rule_body text not null,131 rule_recovery text not null,
132 rule_status bigint DEFAULT 1,133 rule_owner_name varchar(250) not null,134 rule_owner_zone varchar(250) not null,
135 rule_descr_1 text,136 rule_descr_2 text,137 input_params text,138 output_params text,139 dollar_vars text,140 icat_elements text,141 sideeffects text,
142 r_comment varchar(1000),143 create_ts varchar(32),144 modify_ts varchar(32)145 ) ;
SQL failed: ERROR 1071 (42000) at line 489: Specified key was too long; max key length is 767 bytes
[root@als-irods2 irods]# diff ~/icatSysTables.sql.nomodified /var/lib/irods/iRODS/server/icat/src/icatSysTables.sql124,128c127,131< rule_name varchar(2700) not null,< rule_event varchar(2700) not null,< rule_condition varchar(2700),< rule_body varchar(2700) not null,< rule_recovery varchar(2700) not null,---> rule_name text not null,> rule_event text not null,> rule_condition text,> rule_body text not null,> rule_recovery text not null,132,138c135,141< rule_descr_1 varchar(2700),< rule_descr_2 varchar(2700),< input_params varchar(2700),< output_params varchar(2700),< dollar_vars varchar(2700),< icat_elements varchar(2700),< sideeffects varchar(2700),---> rule_descr_1 text,> rule_descr_2 text,> input_params text,> output_params text,> dollar_vars text,> icat_elements text,> sideeffects text,466c489< create unique index idx_coll_main3 on R_COLL_MAIN (coll_name );---> create unique index idx_coll_main3 on R_COLL_MAIN (coll_name (250));468c491< create unique index idx_coll_main2 on R_COLL_MAIN (parent_coll_name ,coll_name );---> create unique index idx_coll_main2 on R_COLL_MAIN (parent_coll_name (250),coll_name (250));470c493< create unique index idx_data_main2 on R_DATA_MAIN (coll_id,data_name ,data_repl_num,data_version);---> create unique index idx_data_main2 on R_DATA_MAIN (coll_id,data_name (250),data_repl_num,data_version);472c495< create index idx_data_main4 on R_DATA_MAIN (data_name );---> create index idx_data_main4 on R_DATA_MAIN (data_name (767));476c499
< create index idx_data_main6 on R_DATA_MAIN (data_path);
---> create index idx_data_main6 on R_DATA_MAIN (data_path(767));479,480c502,503< create index idx_meta_main2 on R_META_MAIN (meta_attr_name );< create index idx_meta_main3 on R_META_MAIN (meta_attr_value );---> create index idx_meta_main2 on R_META_MAIN (meta_attr_name (767));> create index idx_meta_main3 on R_META_MAIN (meta_attr_value (767));495c518
< create index idx_specific_query1 on R_SPECIFIC_QUERY (sqlStr);
---> create index idx_specific_query1 on R_SPECIFIC_QUERY (sqlStr(767));508c531< create unique index idx_grid_configuration on R_GRID_CONFIGURATION (namespace , option_name );---> create unique index idx_grid_configuration on R_GRID_CONFIGURATION (namespace (250), option_name (250));[root@als-irods2 irods]#
Database username [irods]: irods
Database password:
-------------------------------------------Database Type: mysqlHostname or IP: 10.9.25.191Database Port: 3306Database Name: ICATDatabase User: irodsDatabase Password: Not Shown-------------------------------------------Please confirm these settings [yes]:
===================================================================Updating irods.config...
Stopping iRODS server...Found 0 processes: There are no iRODS servers running.
-----------------------------Running irods_setup.pl...
Step 1 of 5: Configuring database user... Skipped. For MySQL, database configured by DBA.
Step 2 of 5: Creating database and tables... CreateDatabase Skipped. For MySQL, DBA creates the instance. Updating the .odbc.ini... Creating iCAT tables...
Inserting iCAT tables...
Step 3 of 5: Configuring database security... Configuring security... Skipped. MySQL database security configured by DBA. Testing database communications...
Step 4 of 5: Configuring iRODS server... Updating iRODS server.config... Starting iRODS server with boot environment...
Opening iRODS connection with boot password... Creating iRODS directories... Creating iRODS group 'public'... Creating iRODS user account... Setting iRODS directory ownership... Setting iRODS user password... Checking for iRODS boot user... Removing iRODS boot user...Found 3 processes: Stopping process id 20779 Stopping process id 20782 Stopping process id 20890 Killing process id 20779 Killing process id 20782 Killing process id 20890
Stopping iRODS server...Found 0 processes: There are no iRODS servers running.
Step 5 of 5: Configuring iRODS user and starting server... Updating iRODS user's ~/.irods/.irodsEnv... Starting iRODS server... Opening iRODS connection... Creating default resource... ... Success [demoResc] [/var/lib/irods/iRODS/Vault] Testing resource...
Done. Additional detailed information is in the log file: /var/lib/irods/iRODS/installLogs/irods_setup.log
-----------------------------Running update_catalog_schema.py...Traceback (most recent call last): File "./packaging/update_catalog_schema.py", line 214, in <module> main() File "./packaging/update_catalog_schema.py", line 209, in main update_database_to_latest_version() File "./packaging/update_catalog_schema.py", line 154, in update_database_to_latest_version current_schema_version = get_current_schema_version(cfg) File "./packaging/update_catalog_schema.py", line 16, in get_current_schema_version and option_name='schema_version';") File "/var/lib/irods/packaging/server_config.py", line 218, in exec_sql_cmd return self.exec_mysql_cmd(sql) File "/var/lib/irods/packaging/server_config.py", line 117, in exec_mysql_cmd (returncode, myout, myerr) = self.exec_mysql_file(sqlfile) File "/var/lib/irods/packaging/server_config.py", line 138, in exec_mysql_file db_host = self.values['Servername']KeyError: 'Servername'[root@als-irods2 irods]#
[root@als-irods2 irods]# service irods statusiRODS servers: Process 20964iRODS rule servers: Process 20967iRODS Servers associated with this instance, port 1247: Process 20964 Process 20967 Process 21006[root@als-irods2 irods]# su irods[irods@als-irods2 irods]$ ils/tempZone/home/rods:[irods@als-irods2 irods]$ lsiRODS packaging plugins tests tmpsqlfile VERSION[irods@als-irods2 irods]$ iput VERSION[irods@als-irods2 irods]$ ils/tempZone/home/rods: VERSION[irods@als-irods2 irods]$ mv VERSION VERSION.bckp[irods@als-irods2 irods]$ iget VERSION[irods@als-irods2 irods]$ lsiRODS packaging plugins tests tmpsqlfile VERSION VERSION.bckp[irods@als-irods2 irods]$ diff VERSION VERSION.bckp[irods@als-irods2 irods]$
===================================================================Updating irods.config...
Undefined subroutine &main::loadIrodsConfig called at /var/lib/irods/iRODS/scripts/perl/irodsctl.pl line 114.
mysql> select * from information_schema.schemata;+--------------+--------------------+----------------------------+------------------------+----------+| CATALOG_NAME | SCHEMA_NAME | DEFAULT_CHARACTER_SET_NAME | DEFAULT_COLLATION_NAME | SQL_PATH |+--------------+--------------------+----------------------------+------------------------+----------+| NULL | information_schema | utf8 | utf8_general_ci | NULL || NULL | ICAT | latin1 | latin1_general_cs | NULL || NULL | mysql | latin1 | latin1_swedish_ci | NULL |+--------------+--------------------+----------------------------+------------------------+----------+3 rows in set (0.00 sec)
mysql>
utils_config.pl:load_json_file: Can't open /etc/irods/server_config.json: No such file or directory