Error with Code 158000: Cyberduck

72 views
Skip to first unread message

Lily KAGO

unread,
Mar 29, 2023, 9:50:00 AM3/29/23
to iRODS-Chat
Hi,

When I test the irods with Cyberduck, everything works fine as expected. But my colleague who is also testing gets the following error message:

Unknown iRODS exception code received:-158000

We are wondering why and how we can solve this. Any help would be appreciated.


Kind Regards,
Lily

Alan King

unread,
Mar 29, 2023, 10:22:17 AM3/29/23
to irod...@googlegroups.com
Hi,

$ ierror 158000
irods error: -158000 SYS_BAD_INPUT

We will need a little more context to know what could be returning this error.

Is this from connecting, authenticating, running a query, putting a file, etc.?
What version of iRODS is the connected server?
Do you have access to the iRODS server logs? Are there any relevant messages?

--
--
The Integrated Rule-Oriented Data System (iRODS) - https://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.
To view this discussion on the web visit https://groups.google.com/d/msgid/irod-chat/6700e52b-d7d5-431f-bae5-cdd1a63c9aben%40googlegroups.com.


--
Alan King
Senior Software Developer | iRODS Consortium

Lily KAGO

unread,
Mar 29, 2023, 11:54:13 AM3/29/23
to iRODS-Chat
Hi,

The error occurs when the user logs in. He cannot connect to the server...

The irods server version is 4.3.0.

Yes, I have the access. This is the long error-message in the server logs:

{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"[-]\t/irods_source/server/api/src/rsAuthPluginRequest.cpp:86:int rsAuthPluginRequest(rsComm_t *, authPluginReqInp_t *, authPluginReqOut_t **) :  status [SYS_BAD_INPUT]  errno [] -- message [unescaped _assoc token encountered in key or value]\n\t[-]\t/irods_source/plugins/auth_legacy/src/pam.cpp:378:irods::error pam_auth_agent_request(irods::plugin_context &) :  status [SYS_BAD_INPUT]  errno [] -- message [unescaped _assoc token encountered in key or value]\n\t\t[-]\t/irods_source/lib/core/src/irods_kvp_string_parser.cpp:136:irods::error irods::parse_escaped_kvp_string(const std::string &, irods::kvp_map_t &, const std::string &, const std::string &, const std::string &) :  status [SYS_BAD_INPUT]  errno [] -- message [unescaped _assoc token encountered in key or value]\n\n","request_api_name":"AUTH_PLUG_REQ_AN","request_api_number":1201,"request_api_version":"d","request_client_user":"kjohn","request_host":"XXXXXX","request_proxy_user":"kjohn","request_release_version":"rods3.2","server_host":"XXX","server_pid":1842443,"server_timestamp":"2023-03-29T14:55:00.002Z","server_type":"agent"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"[-]\t/irods_source/server/api/src/rsAuthPluginRequest.cpp:86:int rsAuthPluginRequest(rsComm_t *, authPluginReqInp_t *, authPluginReqOut_t **) :  status [SYS_BAD_INPUT]  errno [] -- message [unescaped _assoc token encountered in key or value]\n\t[-]\t/irods_source/plugins/auth_legacy/src/pam.cpp:378:irods::error pam_auth_agent_request(irods::plugin_context &) :  status [SYS_BAD_INPUT]  errno [] -- message [unescaped _assoc token encountered in key or value]\n\t\t[-]\t/irods_source/lib/core/src/irods_kvp_string_parser.cpp:136:irods::error irods::parse_escaped_kvp_string(const std::string &, irods::kvp_map_t &, const std::string &, const std::string &, const std::string &) :  status [SYS_BAD_INPUT]  errno [] -- message [unescaped _assoc token encountered in key or value]\n\n","request_api_name":"AUTH_PLUG_REQ_AN","request_api_number":1201,"request_api_version":"d","request_client_user":"kjohn","request_host":"XXXXXX","request_proxy_user":"kjohn","request_release_version":"rods3.2","server_host":"XXX","server_pid":1842521,"server_timestamp":"2023-03-29T14:55:12.066Z","server_type":"agent"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"[-]\t/irods_source/server/api/src/rsAuthPluginRequest.cpp:86:int rsAuthPluginRequest(rsComm_t *, authPluginReqInp_t *, authPluginReqOut_t **) :  status [SYS_BAD_INPUT]  errno [] -- message [unescaped _assoc token encountered in key or value]\n\t[-]\t/irods_source/plugins/auth_legacy/src/pam.cpp:378:irods::error pam_auth_agent_request(irods::plugin_context &) :  status [SYS_BAD_INPUT]  errno [] -- message [unescaped _assoc token encountered in key or value]\n\t\t[-]\t/irods_source/lib/core/src/irods_kvp_string_parser.cpp:136:irods::error irods::parse_escaped_kvp_string(const std::string &, irods::kvp_map_t &, const std::string &, const std::string &, const std::string &) :  status [SYS_BAD_INPUT]  errno [] -- message [unescaped _assoc token encountered in key or value]\n\n","request_api_name":"AUTH_PLUG_REQ_AN","request_api_number":1201,"request_api_version":"d","request_client_user":"kjohn","request_host":"XXXXXX","request_proxy_user":"kjohn","request_release_version":"rods3.2","server_host":"XXX","server_pid":1842523,"server_timestamp":"2023-03-29T14:55:18.746Z","server_type":"agent"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"[-]\t/irods_source/server/core/src/rsApiHandler.cpp:560:int readAndProcClientMsg(rsComm_t *, int) :  status [SYS_HEADER_READ_LEN_ERR]  errno [] -- message [failed to call 'read header']\n\t[-]\t/irods_source/lib/core/src/sockComm.cpp:198:irods::error readMsgHeader(irods::network_object_ptr, msgHeader_t *, struct timeval *) :  status [SYS_HEADER_READ_LEN_ERR]  errno [] -- message [failed to call 'read header']\n\t\t[-]\t/irods_source/plugins/network/src/ssl.cpp:528:irods::error ssl_read_msg_header(irods::plugin_context &, void *, struct timeval *) :  status [SYS_HEADER_READ_LEN_ERR]  errno [] -- message [read 0 expected 4]\n\n","request_api_name":"AUTH_PLUG_REQ_AN","request_api_number":1201,"request_api_version":"d","request_client_user":"kjohn","request_host":"XXXXXX","request_proxy_user":"kjohn","request_release_version":"rods3.2","server_host":"XXX","server_pid":1842523,"server_timestamp":"2023-03-29T14:55:21.643Z","server_type":"agent"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"Agent [1842523] exiting with status = -4000","request_api_name":"AUTH_PLUG_REQ_AN","request_api_number":1201,"request_api_version":"d","request_client_user":"kjohn","request_host":"XXXXXX","request_proxy_user":"kjohn","request_release_version":"rods3.2","server_host":"XXX","server_pid":1842523,"server_timestamp":"2023-03-29T14:55:21.644Z","server_type":"agent"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"Agent process [1842523] exited with status [1]","server_host":"XXX","server_pid":1769746,"server_timestamp":"2023-03-29T14:55:21.654Z","server_type":"agent_factory"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"[-]\t/irods_source/server/api/src/rsAuthPluginRequest.cpp:86:int rsAuthPluginRequest(rsComm_t *, authPluginReqInp_t *, authPluginReqOut_t **) :  status [SYS_BAD_INPUT]  errno [] -- message [unescaped _assoc token encountered in key or value]\n\t[-]\t/irods_source/plugins/auth_legacy/src/pam.cpp:378:irods::error pam_auth_agent_request(irods::plugin_context &) :  status [SYS_BAD_INPUT]  errno [] -- message [unescaped _assoc token encountered in key or value]\n\t\t[-]\t/irods_source/lib/core/src/irods_kvp_string_parser.cpp:136:irods::error irods::parse_escaped_kvp_string(const std::string &, irods::kvp_map_t &, const std::string &, const std::string &, const std::string &) :  status [SYS_BAD_INPUT]  errno [] -- message [unescaped _assoc token encountered in key or value]\n\n","request_api_name":"AUTH_PLUG_REQ_AN","request_api_number":1201,"request_api_version":"d","request_client_user":"kjohn","request_host":"XXXXXX","request_proxy_user":"kjohn","request_release_version":"rods3.2","server_host":"XXX","server_pid":1842525,"server_timestamp":"2023-03-29T14:55:21.779Z","server_type":"agent"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"[-]\t/irods_source/server/core/src/rsApiHandler.cpp:560:int readAndProcClientMsg(rsComm_t *, int) :  status [SYS_HEADER_READ_LEN_ERR]  errno [] -- message [failed to call 'read header']\n\t[-]\t/irods_source/lib/core/src/sockComm.cpp:198:irods::error readMsgHeader(irods::network_object_ptr, msgHeader_t *, struct timeval *) :  status [SYS_HEADER_READ_LEN_ERR]  errno [] -- message [failed to call 'read header']\n\t\t[-]\t/irods_source/plugins/network/src/ssl.cpp:528:irods::error ssl_read_msg_header(irods::plugin_context &, void *, struct timeval *) :  status [SYS_HEADER_READ_LEN_ERR]  errno [] -- message [read 0 expected 4]\n\n","request_api_name":"AUTH_PLUG_REQ_AN","request_api_number":1201,"request_api_version":"d","request_client_user":"kjohn","request_host":"XXXXXX","request_proxy_user":"kjohn","request_release_version":"rods3.2","server_host":"XXX","server_pid":1842525,"server_timestamp":"2023-03-29T14:55:26.179Z","server_type":"agent"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"Agent [1842525] exiting with status = -4000","request_api_name":"AUTH_PLUG_REQ_AN","request_api_number":1201,"request_api_version":"d","request_client_user":"kjohn","request_host":"XXXXXX","request_proxy_user":"kjohn","request_release_version":"rods3.2","server_host":"XXX","server_pid":1842525,"server_timestamp":"2023-03-29T14:55:26.180Z","server_type":"agent"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"[-]\t/irods_source/server/core/src/rsApiHandler.cpp:560:int readAndProcClientMsg(rsComm_t *, int) :  status [SYS_HEADER_READ_LEN_ERR]  errno [] -- message [failed to call 'read header']\n\t[-]\t/irods_source/lib/core/src/sockComm.cpp:198:irods::error readMsgHeader(irods::network_object_ptr, msgHeader_t *, struct timeval *) :  status [SYS_HEADER_READ_LEN_ERR]  errno [] -- message [failed to call 'read header']\n\t\t[-]\t/irods_source/plugins/network/src/ssl.cpp:528:irods::error ssl_read_msg_header(irods::plugin_context &, void *, struct timeval *) :  status [SYS_HEADER_READ_LEN_ERR]  errno [] -- message [read 0 expected 4]\n\n","request_api_name":"AUTH_PLUG_REQ_AN","request_api_number":1201,"request_api_version":"d","request_client_user":"kjohn","request_host":"XXXXXX","request_proxy_user":"kjohn","request_release_version":"rods3.2","server_host":"XXX","server_pid":1842521,"server_timestamp":"2023-03-29T14:55:26.181Z","server_type":"agent"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"Agent [1842521] exiting with status = -4000","request_api_name":"AUTH_PLUG_REQ_AN","request_api_number":1201,"request_api_version":"d","request_client_user":"kjohn","request_host":"XXXXXX","request_proxy_user":"kjohn","request_release_version":"rods3.2","server_host":"XXX","server_pid":1842521,"server_timestamp":"2023-03-29T14:55:26.182Z","server_type":"agent"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"Agent process [1842521] exited with status [1]","server_host":"XXX","server_pid":1769746,"server_timestamp":"2023-03-29T14:55:26.197Z","server_type":"agent_factory"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"Agent process [1842525] exited with status [1]","server_host":"XXX","server_pid":1769746,"server_timestamp":"2023-03-29T14:55:26.197Z","server_type":"agent_factory"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"[-]\t/irods_source/server/core/src/rsApiHandler.cpp:560:int readAndProcClientMsg(rsComm_t *, int) :  status [Unknown iRODS error]  errno [No buffer space available] -- message [failed to call 'read header']\n\t[-]\t/irods_source/lib/core/src/sockComm.cpp:198:irods::error readMsgHeader(irods::network_object_ptr, msgHeader_t *, struct timeval *) :  status [Unknown iRODS error]  errno [No buffer space available] -- message [failed to call 'read header']\n\t\t[-]\t/irods_source/plugins/network/src/ssl.cpp:528:irods::error ssl_read_msg_header(irods::plugin_context &, void *, struct timeval *) :  status [Unknown iRODS error]  errno [No buffer space available] -- message [read -1 expected 4]\n\n","request_api_name":"AUTH_PLUG_REQ_AN","request_api_number":1201,"request_api_version":"d","request_client_user":"kjohn","request_host":"XXXXXX","request_proxy_user":"kjohn","request_release_version":"rods3.2","server_host":"XXX","server_pid":1842443,"server_timestamp":"2023-03-29T14:58:34.652Z","server_type":"agent"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"[-]\t/irods_source/server/core/src/rodsAgent.cpp:588:int runIrodsAgentFactory(sockaddr_un) :  status [SSL_SHUTDOWN_ERROR]  errno [] -- message [failed to call 'agent stop']\n\t[-]\t/irods_source/lib/core/src/sockComm.cpp:160:irods::error sockAgentStop(irods::network_object_ptr) :  status [SSL_SHUTDOWN_ERROR]  errno [] -- message [failed to call 'agent stop']\n\t\t[-]\t/irods_source/plugins/network/src/ssl.cpp:850:irods::error ssl_agent_stop(irods::plugin_context &) :  status [SSL_SHUTDOWN_ERROR]  errno [] -- message [error completing shutdown of SSL connection]\n\n","request_api_name":"AUTH_PLUG_REQ_AN","request_api_number":1201,"request_api_version":"d","request_client_user":"kjohn","request_host":"XXXXXX","request_proxy_user":"kjohn","request_release_version":"rods3.2","server_host":"XXX","server_pid":1842443,"server_timestamp":"2023-03-29T14:58:34.653Z","server_type":"agent"}
{"log_category":"legacy","log_facility":"local0","log_level":"error","log_message":"Agent process [1842443] exited with status [1]","server_host":"XXX","server_pid":1769746,"server_timestamp":"2023-03-29T14:58:34.678Z","server_type":"agent_factory"}

Alan King

unread,
Mar 29, 2023, 12:27:23 PM3/29/23
to irod...@googlegroups.com
I am not experienced with Cyberduck at all whatsoever, so apologies if these suggestions are simplistic...

Is the user's connection profile configured correctly for use with PAM? This is all I was able to find on that... https://docs.cyberduck.io/protocols/irods/#authentication-with-pam-scheme

The error messages say that some token is not properly escaped. The documentation I linked says something about prefixing the username with "PAM:". I wonder if this is the missing piece?

Perhaps somebody with experience with Cyberduck will come along and be of more help. :)

Lily KAGO

unread,
Mar 30, 2023, 6:28:56 AM3/30/23
to iRODS-Chat
Hi,

The user's connection profile for use with PAM is configured correctly.
After some tests, the problem seems to be some specials character in the password (pam password) by using Cyberduck. If the user has the password with some special characters: the equal character "=" (for example: testPassword=@1), he gets the mentioned error, when he logs in by using Cyberduck. But he logs in and uses iCommands without any problem.

The users that have password without such special characters, they log in and use Cyberduck (and iCommands) without any Problem.

Any suggestions to solve this problem? Or does this mean it's not recommended/possible to use Cyberduck with PAM authentication, especially in production?


KR,
Lily

Terrell Russell

unread,
Mar 30, 2023, 8:47:38 AM3/30/23
to irod...@googlegroups.com
Here are some relevant links/conversations...

https://github.com/DICE-UNC/jargon/issues/220
https://github.com/irods/irods/issues/3528 - included in iRODS 4.1.11
https://github.com/irods/python-irodsclient/issues/362 - included in PRC 1.1.4
https://github.com/DICE-UNC/jargon/issues/288 - included in Jargon 4.2.2.1-RELEASE (May 24, 2018)

I'm not sure what version of Jargon Cyberduck is built against - a newer version should handle this escaping of special characters correctly.

Looking...

Appears to be 4.2.0.1?
https://github.com/iterate-ch/cyberduck/blob/da06e20e80c3a21b7eab7c89c329da13d5fb16c8/irods/pom.xml#L40-L42

So... updating that Jargon dependency within Cyberduck will presumably fix the issue you're seeing.

Terrell



Terrell Russell

unread,
Mar 30, 2023, 8:54:00 AM3/30/23
to irod...@googlegroups.com
I have created https://github.com/iterate-ch/cyberduck/issues/14449 in the Cyberduck project.

Terrell

Lily KAGO

unread,
Mar 30, 2023, 9:22:30 AM3/30/23
to iRODS-Chat
Many thanks.

Nyongha Rose

unread,
May 12, 2023, 11:23:08 AM5/12/23
to iRODS-Chat
Hi,

I have the same problem by using the password with this "=" character in Cyberduck version 8.5.2 : Unknown iRODS exception code received:-158000.
Has this problem maybe already been solved? Any Update would be appreciated, because I would like to use Cyberduck in the production.
Thanks.


Kind Regards,
Rose

Kory Draughn

unread,
May 12, 2023, 11:31:04 AM5/12/23
to irod...@googlegroups.com
Hi Nyongha,

No updates at this time.

An issue was created back in March to address this. Please see the following:
Thanks,

Kory Draughn
Chief Technologist
iRODS Consortium


Reply all
Reply to author
Forward
0 new messages