ils not working

68 views
Skip to first unread message

kovid bhardwaj

unread,
Mar 28, 2024, 9:41:46 AMMar 28
to iRODS-Chat
Hi ,

The ils command in irods is not working. I am getting below error:
 
remote addresses: <a.b.c.d> ERROR: _rcConnect: connectToRhost error, server on example.xyz.com:1247 is probably down status = -4000 SYS_HEADER_READ_LEN_ERR

we have checked- irods and database service are running .

Thanks
Kovid

Kory Draughn

unread,
Mar 28, 2024, 9:43:19 AMMar 28
to irod...@googlegroups.com
Hi Kovid,

Is there anything in the server log file?

Kory Draughn
Chief Technologist
iRODS Consortium


--
--
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/e556b57f-a9da-4e7b-939c-feae92a30ae0n%40googlegroups.com.

kovid bhardwaj

unread,
Apr 1, 2024, 9:00:40 AMApr 1
to iRODS-Chat
Hi Kory,

We were able to upload file of upto 32MB in size but get below error when uploading a large file > 32MB
terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
Aborted


What could be the reason behind this error ?

Kory Draughn

unread,
Apr 1, 2024, 9:09:34 AMApr 1
to irod...@googlegroups.com
std::bad_alloc means the application's request for more memory could not be satisfied by the OS.

I recommend checking your OS's memory usage.

Kory Draughn
Chief Technologist
iRODS Consortium

kovid bhardwaj

unread,
Apr 3, 2024, 3:36:22 AMApr 3
to iRODS-Chat
Hi Kory,

Can we define somewhere in irods configuration the memory allocation for file transfer ? 
[my@irodsservr ~]$ iput -R s3res 38MB_file

terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
Aborted
[my@irodsservr  ~]$ free -g
              total        used        free      shared  buff/cache   available
Mem:          7           1           0           0           6                        5
Swap:         0           0           0

Do we need to increase OS memory here?

Kory Draughn

unread,
Apr 3, 2024, 9:26:14 AMApr 3
to irod...@googlegroups.com
Was iput run from a different computer or on the same computer running the iRODS server?
Which computer are those free stats for?

Kory Draughn
Chief Technologist
iRODS Consortium

Kory Draughn

unread,
Apr 12, 2024, 12:09:32 PMApr 12
to irod...@googlegroups.com
Any updates on this?

Kory Draughn
Chief Technologist
iRODS Consortium

kovid bhardwaj

unread,
Apr 12, 2024, 8:31:37 PMApr 12
to irod...@googlegroups.com
Hi Kory,

The iput and free -g was executed on same computer running the iRODS server?

You received this message because you are subscribed to a topic in the Google Groups "iRODS-Chat" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/irod-chat/tYJyxQH93pM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to irod-chat+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/irod-chat/CAA-7h7mP5Pf4XxM%3DHOSVnzbcXJt20FdWOQ_5HZ%3Djg2ek2AFV4A%40mail.gmail.com.

Kory Draughn

unread,
Apr 17, 2024, 6:31:40 PMApr 17
to irod...@googlegroups.com
Kovid,

Please post the summary information (at the top) produced by top or htop.

How much RAM does that server have? Based on the output of free, it appears to be 7GB. If that's true, I recommend adding more.

Consider running top or htop while doing the transfer to see how the server manages memory.

Kory Draughn
Chief Technologist
iRODS Consortium

Kory Draughn

unread,
Apr 23, 2024, 4:38:49 PMApr 23
to irod...@googlegroups.com
Kovid,

Any updates on this?

Kory Draughn
Chief Technologist
iRODS Consortium

kovid bhardwaj

unread,
Apr 24, 2024, 3:29:12 AMApr 24
to iRODS-Chat
Hi Kory,
We were able to upload files upto 2gb in size to s3,  but after that got error :
remote addresses: 1.2.3.4 ERROR: rcPartialDataPut: toWrite 4194304, bytesWritten 0, errno = 32 status = -27032 SYS_COPY_LEN_ERR, Broken pipe

Could you please advise ?

Kory Draughn

unread,
Apr 24, 2024, 11:07:30 AMApr 24
to irod...@googlegroups.com
What changed to allow you to upload 2gb? Did you modify iRODS or add more resources to the machine?

Kory Draughn
Chief Technologist
iRODS Consortium

Kory Draughn

unread,
Apr 24, 2024, 11:10:27 AMApr 24
to irod...@googlegroups.com
And what version of iRODS are you running?

Kory Draughn
Chief Technologist
iRODS Consortium

kovid bhardwaj

unread,
May 1, 2024, 7:46:56 AMMay 1
to iRODS-Chat
Hi Kory,
There was a increase in server memory from 7GB to 32GB , after which we were able to upload files (~2GB) to s3. 

kovid bhardwaj

unread,
May 1, 2024, 7:47:29 AMMay 1
to iRODS-Chat
irods version 4.2.8

Kory Draughn

unread,
May 1, 2024, 1:42:19 PMMay 1
to irod...@googlegroups.com
Kovid,

Please post more of the log file. Perhaps there are other messages that can help with understanding what's going on.

Also, consider upgrading to a later version of iRODS. A significant number of bug fixes and enhancements have been made since 4.2.8. I recommend 4.2.12 or 4.3.1. 4.3.2 will be released before UGM so that's also a possibility. Before upgrading production systems, please use a test environment to verify the new version satisfies your needs.

Kory Draughn
Chief Technologist
iRODS Consortium

kovid bhardwaj

unread,
May 3, 2024, 5:56:23 AMMay 3
to iRODS-Chat
Hi Kory,

We were able to upload large files from dev which is outside secure zone , but facing issue while uploading large files from qa server which is in secure zone , 
PFB logs we got while uploading 6gb file from QA to s3  :
remote addresses: 2.2.2.2 ERROR: rcvTranHeader: toread = 24, read = 0
 ERROR: rcvTranHeader: toread = 24, read = 0
remote addresses: 2.2.2.2 ERROR: rcvTranHeader: toread = 24, read = 0
remote addresses: 2.2.2.2 ERROR: rcvTranHeader: toread = 24, read = 0
 ERROR: rcvTranHeader: toread = 24, read = 0
 ERROR: rcvTranHeader: toread = 24, read = 0
remote addresses: 2.2.2.2 ERROR: rcvTranHeader: toread = 24, read = 0
remote addresses: 2.2.2.2 ERROR: rcvTranHeader: toread = 24, read = 0
 ERROR: rcvTranHeader: toread = 24, read = 0
 ERROR: rcvTranHeader: toread = 24, read = 0
 ERROR: rcvTranHeader: toread = 24, read = 0
 ERROR: rcvTranHeader: toread = 24, read = 0
remote addresses: 2.2.2.2 ERROR: rcvTranHeader: toread = 24, read = 0
remote addresses: 2.2.2.2 ERROR: rcPartialDataPut: toWrite 4194304, bytesWritten 255044, errno = 104 status = -27104 SYS_COPY_LEN_ERR, Connection reset by peer
 ERROR: rcvTranHeader: toread = 24, read = 0
remote addresses: 2.2.2.2 ERROR: rcPartialDataPut: toWrite 4194304, bytesWritten 2539008, errno = 104 status = -27104 SYS_COPY_LEN_ERR, Connection reset by peer
 ERROR: [-]     /irods_git_repo/lib/core/src/procApiRequest.cpp:182:int sendApiRequest(rcComm_t *, int, void *, bytesBuf_t *) :  status [SYS_HEADER_WRITE_LEN_ERR]  errno [Broken pipe] -- message [failed to call 'write body']
        [-]     /irods_git_repo/lib/core/src/sockComm.cpp:1257:irods::error sendRodsMsg(irods::network_object_ptr, const char *, bytesBuf_t *, bytesBuf_t *, bytesBuf_t *, int, irodsProt_t) :  status [SYS_HEADER_WRITE_LEN_ERR]  errno [Broken pipe] -- message [failed to call 'write body']
                [-]     /irods_git_repo/plugins/network/ssl/libssl.cpp:1055:irods::error ssl_send_rods_msg(irods::plugin_context &, const char *, bytesBuf_t *, bytesBuf_t *, bytesBuf_t *, int, irodsProt_t) :  status [SYS_HEADER_WRITE_LEN_ERR]  errno [Broken pipe] -- message [Write message header failed.]
                        [-]     /irods_git_repo/lib/core/src/sockComm.cpp:475:irods::error writeMsgHeader(irods::network_object_ptr, msgHeader_t *) :  status [SYS_HEADER_WRITE_LEN_ERR]  errno [Broken pipe] -- message [Wrote -1 expected 139.]
                                [-]     /irods_git_repo/plugins/network/ssl/libssl.cpp:998:irods::error ssl_write_msg_header(irods::plugin_context &, bytesBuf_t *) :  status [SYS_HEADER_WRITE_LEN_ERR]  errno [Broken pipe] -- message [Wrote -1 expected 139.]

 ERROR: putUtil: put error for /ABCZone/home/rods/6gbfile, status = -27000 status = -27000 SYS_COPY_LEN_ERR
 ERROR: [-]     /irods_git_repo/lib/core/src/rcConnect.cpp:285:int rcDisconnect(rcComm_t *) :  status [SSL_SHUTDOWN_ERROR]  errno [] -- message [failed to call 'client stop']
        [-]     /irods_git_repo/lib/core/src/sockComm.cpp:101:irods::error sockClientStop(irods::network_object_ptr, rodsEnv *) :  status [SSL_SHUTDOWN_ERROR]  errno [] -- message [failed to call 'client stop']
                [-]     /irods_git_repo/plugins/network/ssl/libssl.cpp:644:irods::error ssl_client_stop(irods::plugin_context &, rodsEnv *) :  status [SSL_SHUTDOWN_ERROR]  errno [] -- message [error shutting down the SSL connection | error:1409F07F:SSL routines:ssl3_write_pending:bad write retry]

Terrell Russell

unread,
May 3, 2024, 8:38:56 AMMay 3
to irod...@googlegroups.com
If I'm reading this correctly.. the iRODS server did not receive the bytes it was 'promised' by the client.

Do you have the client-side error?   If client and server are both blaming the other - then it's probably a networking issue in the middle.
This could be a TCP timeout or reset issue in the network.

Terrell




Kory Draughn

unread,
May 9, 2024, 4:50:38 PMMay 9
to irod...@googlegroups.com
Agreed. It does look like something terminated the connection.

When other large file uploads fail, do the files share similar sizes? Do they fail after the same amount of time? 

Kory Draughn
Chief Technologist
iRODS Consortium

Reply all
Reply to author
Forward
0 new messages