error -826000 CAT_INVALID_AUTHENTICATION

558 views
Skip to first unread message

Boda Liao

unread,
Jul 10, 2015, 1:54:32 PM7/10/15
to irod...@googlegroups.com
Hi
I faced a error  "error -826000 CAT_INVALID_AUTHENTICATION" when I was running  ./setup_irods.sh.I seem like irods can not found the username.This is my configuration for iRods.I can start irods with "./irodsctl start" but i can not use any ils iinit iadmin command. Thanks.



Boda


[root@lxv-iRods-01 ~]# rpm -qa |grep irods
irods-database-plugin-postgres-1.5-0.x86_64
irods-icat-4.1.3-0.x86_64
[root@lxv-iRods-01 ~]# rpm -qa |grep postgres
postgresql-server-8.4.20-2.el6_6.x86_64
postgresql-odbc-08.04.0200-1.el6.x86_64
postgresql-libs-8.4.20-2.el6_6.x86_64
postgresql-8.4.20-2.el6_6.x86_64
irods-database-plugin-postgres-1.5-0.x86_64
postgresql-devel-8.4.20-2.el6_6.x86_64



iRODS setup
------------------------------------------------------------------------
Fri Jul 10 10:28:56 2015

Script:
    Script:  ./scripts/perl/irods_setup.pl
    CWD:  /var/lib/irods/iRODS

Perl:
    Perl path:  /usr/bin/perl
    Perl version:  5.010001

System:
    OS:  Linux
    User:  irods
    User ID:  496
    Host name:  lxv-iRods-01.gc01.cgiprod.com
    Host addresses:  192.168.122.1 127.0.0.1 10.103.112.70

Environment:
    HOME = /var/lib/irods
    QTINC = /usr/lib64/qt-3.3/include
    SSH_ASKPASS = /usr/libexec/openssh/gnome-ssh-askpass
   CVS_RSH = ssh
    LESSOPEN = ||/usr/bin/lesspipe.sh %s
    MAIL = /var/spool/mail/irods
    PWD = /var/lib/irods/iRODS
    QTDIR = /usr/lib64/qt-3.3
    LANG = en_US.UTF-8
    USER = irods
    G_BROKEN_FILENAMES = 1
    LOGNAME = irods
    HOSTNAME = lxv-iRods-01
    SHLVL = 2
    OLDPWD = /var/lib/irods
    _ = /usr/bin/perl
    QTLIB = /usr/lib64/qt-3.3/lib
    PATH = /usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/var/lib/irods/bin
    SHELL = /bin/bash
    HISTSIZE = 1000
    TERM = xterm-256color
    HISTCONTROL = ignoredups

Script versions:
   irods_setup.pl = Feb 2015
    utils_platform.pl = September 2011
    utils_print.pl = Apr 2015
    utils_paths.pl = January 2015
    utils_config.pl = Feb 2015
    utils_prompt.pl = March 2010
    utils_file.pl = September 2011

Configuring database user...
------------------------------------------------------------------------
Fri Jul 10 10:28:56 2015

Updating user's .pgpass...
    Skipped.  File already uptodate.

Creating database and tables...
------------------------------------------------------------------------
Fri Jul 10 10:28:56 2015


Checking whether iCAT database exists...

Checking whether iCAT database exists...
    Connecting with: /usr/bin/psql -U irods -p 5432 -l ICAT
    [ICAT] on [localhost] found.

Updating Postgres UNIX ODBC odbc.ini configuration
Updating user's .odbc.ini...
Creating iCAT tables...
    List of existing tables (if any):
                          List of relations
         Schema |          Name           |   Type   | Owner
        --------+-------------------------+----------+-------
         public | r_coll_main             | table    | irods (<-- for iRODS)
         public | r_data_main             | table    | irods (<-- for iRODS)
         public | r_grid_configuration    | table    | irods (<-- for iRODS)
         public | r_meta_main             | table    | irods (<-- for iRODS)
         public | r_microsrvc_main        | table    | irods (<-- for iRODS)
         public | r_microsrvc_ver         | table    | irods (<-- for iRODS)
         public | r_objectid              | sequence | irods (<-- for iRODS)
         public | r_objt_access           | table    | irods (<-- for iRODS)
         public | r_objt_audit            | table    | irods (<-- for iRODS)
         public | r_objt_deny_access      | table    | irods (<-- for iRODS)
         public | r_objt_metamap          | table    | irods (<-- for iRODS)
          public | r_quota_main            | table    | irods (<-- for iRODS)
         public | r_quota_usage           | table    | irods (<-- for iRODS)
         public | r_resc_group            | table    | irods (<-- for iRODS)
         public | r_resc_main             | table    | irods (<-- for iRODS)
         public | r_rule_base_map         | table    | irods (<-- for iRODS)
         public | r_rule_dvm              | table    | irods (<-- for iRODS)
         public | r_rule_dvm_map          | table    | irods (<-- for iRODS)
         public | r_rule_exec             | table    | irods (<-- for iRODS)
         public | r_rule_fnm              | table    | irods (<-- for iRODS)
         public | r_rule_fnm_map          | table    | irods (<-- for iRODS)
         public | r_rule_main             | table    | irods (<-- for iRODS)
         public | r_server_load           | table    | irods (<-- for iRODS)
         public | r_server_load_digest    | table    | irods (<-- for iRODS)
         public | r_specific_query        | table    | irods (<-- for iRODS)
         public | r_ticket_allowed_groups | table    | irods (<-- for iRODS)
         public | r_ticket_allowed_hosts  | table    | irods (<-- for iRODS)
         public | r_ticket_allowed_users  | table    | irods (<-- for iRODS)
         public | r_ticket_main           | table    | irods (<-- for iRODS)
         public | r_tokn_main             | table    | irods (<-- for iRODS)
         public | r_user_auth             | table    | irods (<-- for iRODS)
         public | r_user_group            | table    | irods (<-- for iRODS)
         public | r_user_main             | table    | irods (<-- for iRODS)
         public | r_user_password         | table    | irods (<-- for iRODS)
         public | r_user_session_key      | table    | irods (<-- for iRODS)
         public | r_zone_main             | table    | irods (<-- for iRODS)
        (36 rows)
    Skipped.  Tables already created.

Testing database communications with test_cll...
    LOG_SQL: pid: 23774 sql: begin
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: create table test (i integer, j integer, a varchar(32))
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: insert into test values (2, 3, 'a')
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: commit
    LOG_SQL: pid: 23774 result: SUCCESS
     LOG_SQL: pid: 23774 sql: insert into test values (2, 3, 'a')
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: commit
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: begin
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: bad sql
    LOG_SQL: pid: 23774 result: SQL_ERROR
    LOG_SQL: pid: 23774 sql: rollback
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: begin
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: delete from test where i = 1
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: commit
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: bindVar1=a
    LOG_SQL: pid: 23774 sql: select * from test where a = ?
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: bindVar1=2
    LOG_SQL: pid: 23774 sql: select * from test where i = ?
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: begin
 LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: drop table test;
    LOG_SQL: pid: 23774 result: SUCCESS
    LOG_SQL: pid: 23774 sql: commit
    LOG_SQL: pid: 23774 result: SUCCESS
    userName=irods
    password=XXXXX
    resultValue[0]=2
    resultValue[1]=3
    resultValue[2]=a
    No more rows returned
    resultValue[0]=2
    resultValue[1]=3
    resultValue[2]=a
    No more rows returned
    The tests all completed normally

Configuring iRODS server...
------------------------------------------------------------------------
Fri Jul 10 10:28:57 2015

Updating /etc/irods/server_config.json...
    icat_host        = localhost
 zone_name        = tempZone
    zone_port        = 1247
    zone_user        = irods
    zone_auth_scheme = native
Updating /etc/irods/database_config.json...
    catalog_database_type = postgres
    db_username = irods
    db_password = XXXXX

Configuring iRODS user and starting server...
------------------------------------------------------------------------
Fri Jul 10 10:28:57 2015

Updating iRODS user's ~/.irods/irods_environment.json...
    move /var/lib/irods/.irods/irods_environment.json /var/lib/irods/.irods/irods_environment.json.orig

Starting iRODS server...
Confirming catalog_schema_version... Success
Validating [/var/lib/irods/.irods/irods_environment.json]... Success
Validating [/etc/irods/server_config.json]... Success
Validating [/etc/irods/hosts_config.json]... Success
Validating [/etc/irods/host_access_control_config.json]... Success
Validating [/etc/irods/database_config.json]... Success

Opening iRODS connection...

Cannot open connection to iRODS server.
    [-] libnative.cpp:336:native_auth_client_response :  status [CAT_INVALID_AUTHENTICATION]  errno [] -- message [Call to rcAuthResponseFailed.]

     failed with error -826000 CAT_INVALID_AUTHENTICATION

Abort.


                                                                64,0-1        36%
[irods@lxv-iRods-01 iRODS]$ ./irodsctl start
Starting iRODS server...
Confirming catalog_schema_version... Success
Validating [/var/lib/irods/.irods/irods_environment.json]... Success
Validating [/etc/irods/server_config.json]... Success
Validating [/etc/irods/hosts_config.json]... Success
Validating [/etc/irods/host_access_control_config.json]... Success
Validating [/etc/irods/database_config.json]... Success


[irods@lxv-iRods-01 iRODS]$ ils
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

Ben Keller

unread,
Jul 13, 2015, 4:42:50 PM7/13/15
to irod-chat
That output looks like the contents of your install log (/var/lib/irods/iRODS/installLogs/irods_setup.log).

Can you include/attach the output from the install script itself (stdout, stderr of setup_irods.sh), as well as the server log (/var/lib/irods/iRODS/server/log/rodsLog*)?

Thanks

--
--
"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.

Boda Liao

unread,
Jul 14, 2015, 6:40:36 PM7/14/15
to irod...@googlegroups.com

[root@lxv-iRods-01 log]# cat rodsLog.2015.07.11
    LocalHostName:  localhost, lxv-iRods-01, lxv-iRods-01.gc01.cgiprod.com, Port Num: 1247.

Jul 14 15:36:17 pid:26233 NOTICE:    RescName: bundleResc, VaultPath: /bundle
Zone Info:
    ZoneName: tempZone   Type: LOCAL_ICAT    HostAddr: localhost   PortNum: 1247

reHost:   localhost

Jul 14 15:36:17 pid:26233 NOTICE: rodsServer Release version rods4.1.3 - API Version d is up
Jul 14 15:36:17 pid:26235 NOTICE: Starting irodsReServer
Jul 14 15:36:17 pid:26233 ERROR: server_control_executor - icat_host_name is localhost, not a fqdn
Jul 14 15:36:17 pid:26233 NOTICE: >>> control plane :: listening on port 1248
Jul 14 15:36:23 pid:26233 NOTICE: Agent process 26254 started for puser=irods and cuser=irods from 127.0.0.1
Jul 14 15:36:23 pid:26254 NOTICE: rsAuthCheck: chlCheckAuth status = -826000
Jul 14 15:36:23 pid:26254 ERROR: [-]    iRODS/server/api/src/rsAuthResponse.cpp:74:rsAuthResponse :  status [CAT_INVALID_AUTHENTICATION]  errno [] -- message []
    [-]    libnative.cpp:394:native_auth_agent_response :  status [CAT_INVALID_AUTHENTICATION]  errno [] -- message [rcAuthCheck failed.]

Jul 14 15:36:23 pid:26254 NOTICE: readAndProcClientMsg: received disconnect msg from client
Jul 14 15:36:23 pid:26254 NOTICE: Agent exiting with status = 0
Jul 14 15:36:23 pid:26233 NOTICE: rodsServer caught signal 2, exiting
irodsServer: /home/irodsbuild/irods/external/boost_1_58_0z/boost/thread/pthread/condition_variable_fwd.hpp:81: boost::condition_variable::~condition_variable(): Assertion `!ret' failed.
    LocalHostName:  localhost, lxv-iRods-01, lxv-iRods-01.gc01.cgiprod.com, Port Num: 1247.

Jul 14 15:37:25 pid:26398 NOTICE:    RescName: bundleResc, VaultPath: /bundle
Zone Info:
    ZoneName: tempZone   Type: LOCAL_ICAT    HostAddr: localhost   PortNum: 1247

reHost:   localhost

Jul 14 15:37:25 pid:26398 NOTICE: rodsServer Release version rods4.1.3 - API Version d is up
Jul 14 15:37:25 pid:26400 NOTICE: Starting irodsReServer
Jul 14 15:37:25 pid:26398 ERROR: server_control_executor - icat_host_name is localhost, not a fqdn
Jul 14 15:37:25 pid:26398 NOTICE: >>> control plane :: listening on port 1248

Boda Liao

unread,
Jul 14, 2015, 6:42:16 PM7/14/15
to irod...@googlegroups.com
The date is not correct.
[root@lxv-iRods-01 log]# ll
total 1364
drwx------. 2 irods irods   4096 Jul 14 15:37 proc
-rw-------. 1 irods irods   2380 Jul  2 17:29 reLog.2015.07.01
-rw-------. 1 irods irods 515548 Jul 11 00:18 reLog.2015.07.06
-rw-------. 1 irods irods 795774 Jul 14 15:37 reLog.2015.07.11
-rw-------. 1 irods irods  16213 Jul  2 17:29 rodsLog.2015.07.01
-rw-------. 1 irods irods  37144 Jul 10 10:48 rodsLog.2015.07.06
-rw-------. 1 irods irods   2113 Jul 14 15:37 rodsLog.2015.07.11

Dan Bedard

unread,
Jul 15, 2015, 5:34:44 PM7/15/15
to irod...@googlegroups.com
Hi Boda,

Can you please send the terminal output from when you run irods_setup.sh ?

Thank you,
Dan

Boda Liao

unread,
Jul 15, 2015, 6:43:30 PM7/15/15
to irod...@googlegroups.com

[irods@lxv-iRods-01 packaging]$ ./setup_irods.sh

********************************************************
*
* iRODS Setup WARNING:
*       hostname [lxv-iRods-01] may need to be a FQDN
*
********************************************************

===================================================================

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 zone_key [TEMPORARY_zone_key]:

iRODS server's negotiation_key [TEMPORARY_32byte_negotiation_key]:

Control Plane port [1248]:

Control Plane key [TEMPORARY__32byte_ctrl_plane_key]:

Schema Validation Base URI (or 'off') [https://schemas.irods.org/configuration]:

iRODS server's administrator username [irods]:

iRODS server's administrator password:


-------------------------------------------
iRODS Zone:                 tempZone
iRODS Port:                 1247
Range (Begin):              20000
Range (End):                20199
Vault Directory:            /var/lib/irods/iRODS/Vault
zone_key:                   TEMPORARY_zone_key
negotiation_key:            TEMPORARY_32byte_negotiation_key
Control Plane Port:         1248
Control Plane Key:          TEMPORARY__32byte_ctrl_plane_key
Schema Validation Base URI: https://schemas.irods.org/configuration
Administrator Username:     irods
Administrator Password:     Not Shown
-------------------------------------------
Please confirm these settings [yes]: yes


Updating /etc/irods/server_config.json...
Preparing /var/lib/irods/iRODS/server/icat/src/icatSetupValues.sql...
===================================================================

You are installing an iRODS database plugin.

The iRODS server cannot be started until its database
has been properly configured.

Database server's hostname or IP address [localhost]:

Database server's port [5432]:

Database name [ICAT]:

Database username [irods]:

Database password:

-------------------------------------------
Database Type:     postgres
Hostname or IP:    localhost
Database Port:     5432
Database Name:     ICAT
Database User:     irods
Database Password: Not Shown
-------------------------------------------
Please confirm these settings [yes]: yes


===================================================================
Updating /etc/irods/database_config.json...

Stopping iRODS server...

-----------------------------
Running irods_setup.pl...

Step 1 of 4:  Configuring database user...

    Updating user's .pgpass...
        Skipped.  File already uptodate.

Step 2 of 4:  Creating database and tables...

    Checking whether iCAT database exists...
        [ICAT] on [localhost] found.
    Updating Postgres UNIX ODBC odbc.ini configuration...

    Updating user's .odbc.ini...
    Creating iCAT tables...
        Skipped.  Tables already created.
    Testing database communications...

Step 3 of 4:  Configuring iRODS server...
    Updating /etc/irods/server_config.json...
    Updating /etc/irods/database_config.json...

Step 4 of 4:  Configuring iRODS user and starting server...

    Updating iRODS user's ~/.irods/irods_environment.json...
    Starting iRODS server...
    Confirming catalog_schema_version... Success
    Validating [/var/lib/irods/.irods/irods_environment.json]... Success
    Validating [/etc/irods/server_config.json]... Success
    Validating [/etc/irods/hosts_config.json]... Success
    Validating [/etc/irods/host_access_control_config.json]... Success
    Validating [/etc/irods/database_config.json]... Success
    Opening iRODS connection...

Install problem:
    Connection to iRODS server failed.

        [-]    libnative.cpp:336:native_auth_client_response :  status [CAT_INVALID_AUTHENTICATION]  errno [] -- message [Call to rcAuthResponseFailed.]
       
         failed with error -826000 CAT_INVALID_AUTHENTICATION
Found 3 processes:
    Stopping process id 22879
    Stopping process id 22881
    Stopping process id 22899
    Killing process id 22879
    Killing process id 22881
    Killing process id 22899

Abort.
[irods@lxv-iRods-01 packaging]$

On Friday, July 10, 2015 at 10:54:32 AM UTC-7, Boda Liao wrote:

Boda Liao

unread,
Jul 15, 2015, 6:49:19 PM7/15/15
to irod...@googlegroups.com
In fact I can start irods

[irods@lxv-iRods-01 iRODS]$ ./irodsctl start
Starting iRODS server...
Confirming catalog_schema_version... Success
Validating [/var/lib/irods/.irods/irods_environment.json]... Success
Validating [/etc/irods/server_config.json]... Success
Validating [/etc/irods/hosts_config.json]... Success
Validating [/etc/irods/host_access_control_config.json]... Success
Validating [/etc/irods/database_config.json]... Success

But i can not use any ils iinit such as this
[irods@lxv-iRods-01 iRODS]$ ils
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


It seem like can not get authentication from postgres datebase.But you can see they can create tables when irods been set up. And I can login to the ICAT database.
[irods@lxv-iRods-01 iRODS]$ psql -d ICAT -U irods
psql (8.4.20)
Type "help" for help.

ICAT=>


Thanks.

Boda

Reply all
Reply to author
Forward
0 new messages