Print

Print


The problem as described by Tommaso Boccali:

the situation is

if I do
export LD_PRELOAD=/usr/lib/libtsocks.so

where tsocks is configured as in

Singularity cintest.simg:~> cat /etc/tsocks.conf
server = 127.0.0.1
server_port = 5555

ssh works:

Singularity cintest.simg:~> ssh -vvv [log in to unmask]
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug2: resolving "galilinux.pi.infn.it" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to galilinux.pi.infn.it [212.189.152.10] port 22.
debug1: Connection established.

So ok, basic connectivity is in place

using telnet to check connectivity is ok via the tsocks:

Singularity cintest.simg:/tmp> ./telnet galilinux.pi.infn.it 22
Trying 212.189.152.10...
Connected to galilinux.pi.infn.it.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.9

I can read a file @ CERN w/o tsocks:

xrdcp -d 3 -f root://eoscms.cern.ch//store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root /dev/null

...
[112MB/229.3MB][ 48%][========================> ][16MB/s]

but if I use tsocks it fails. See below but note: using tsocks even connections which the kernel would pass (to cern) are failing ... so Xrootd seems not to like at all tsocks :(

Singularity cintest.simg:/cvmfs/cms.cern.ch/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_0_1> xrdcp -d 3 -f root://eoscms.cern.ch//store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root /dev/null
libtsocks: Unresolved symbol: close
[2020-09-02 19:00:43.127017 +0200][Dump ][App ] Chunk size: 16777216, parallel chunks 4, streams: 1
[2020-09-02 19:00:43.128699 +0200][Dump ][App ] Processing source entry: root://eoscms.cern.ch//store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root, type xroot, target file: /dev/null
[2020-09-02 19:00:43.131797 +0200][Dump ][Utility ] Adding job with properties: 'checkSumMode' = 'none', 'checkSumPreset' = '', 'checkSumType' = '', 'chunkSize' = '16777216', 'coerce' = '0', 'delegate' = '0', 'dynamicSource' = '0', 'force' = '1', 'initTimeout' = '600', 'makeDir' = '0', 'parallelChunks' = '4', 'posc' = '0', 'source' = 'root://eoscms.cern.ch//store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root', 'target' = '/dev/null', 'targetIsDir' = '0', 'thirdParty' = 'none', 'tpcTimeout' = '1800', 'xcp' = '0', 'xcpBlockSize' = '134217728', 'zipArchive' = '0'
[2020-09-02 19:00:43.133260 +0200][Debug ][Utility ] CopyProcess: 2 jobs to prepare
[2020-09-02 19:00:43.134672 +0200][Dump ][Utility ] URL: root://eoscms.cern.ch//store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root
[2020-09-02 19:00:43.134672 +0200][Dump ][Utility ] Protocol: root
[2020-09-02 19:00:43.134672 +0200][Dump ][Utility ] User Name:
[2020-09-02 19:00:43.134672 +0200][Dump ][Utility ] Password:
[2020-09-02 19:00:43.134672 +0200][Dump ][Utility ] Host Name: eoscms.cern.ch
[2020-09-02 19:00:43.134672 +0200][Dump ][Utility ] Port: 1094
[2020-09-02 19:00:43.134672 +0200][Dump ][Utility ] Path: /store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root
[2020-09-02 19:00:43.138743 +0200][Dump ][Utility ] URL: /dev/null
[2020-09-02 19:00:43.138743 +0200][Dump ][Utility ] Protocol: file
[2020-09-02 19:00:43.138743 +0200][Dump ][Utility ] User Name:
[2020-09-02 19:00:43.138743 +0200][Dump ][Utility ] Password:
[2020-09-02 19:00:43.138743 +0200][Dump ][Utility ] Host Name: localhost
[2020-09-02 19:00:43.138743 +0200][Dump ][Utility ] Port: 1094
[2020-09-02 19:00:43.138743 +0200][Dump ][Utility ] Path: /dev/null
[2020-09-02 19:00:43.140342 +0200][Dump ][Utility ] URL: root://eoscms.cern.ch//store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root
[2020-09-02 19:00:43.140342 +0200][Dump ][Utility ] Protocol: root
[2020-09-02 19:00:43.140342 +0200][Dump ][Utility ] User Name:
[2020-09-02 19:00:43.140342 +0200][Dump ][Utility ] Password:
[2020-09-02 19:00:43.140342 +0200][Dump ][Utility ] Host Name: eoscms.cern.ch
[2020-09-02 19:00:43.140342 +0200][Dump ][Utility ] Port: 1094
[2020-09-02 19:00:43.140342 +0200][Dump ][Utility ] Path: /store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root
[2020-09-02 19:00:43.142404 +0200][Dump ][Utility ] URL: /dev/null
[2020-09-02 19:00:43.142404 +0200][Dump ][Utility ] Protocol: file
[2020-09-02 19:00:43.142404 +0200][Dump ][Utility ] User Name:
[2020-09-02 19:00:43.142404 +0200][Dump ][Utility ] Password:
[2020-09-02 19:00:43.142404 +0200][Dump ][Utility ] Host Name: localhost
[2020-09-02 19:00:43.142404 +0200][Dump ][Utility ] Port: 1094
[2020-09-02 19:00:43.142404 +0200][Dump ][Utility ] Path: /dev/null
[2020-09-02 19:00:43.142838 +0200][Debug ][Utility ] Creating a classic copy job, from root://eoscms.cern.ch:1094//store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root to file://localhost/dev/null
[2020-09-02 19:00:43.143178 +0200][Debug ][Utility ] Monitor library name not set. No monitoring
[2020-09-02 19:00:43.143898 +0200][Debug ][Poller ] Available pollers: built-in
[2020-09-02 19:00:43.144016 +0200][Debug ][Poller ] Attempting to create a poller according to preference: built-in
[2020-09-02 19:00:43.144091 +0200][Debug ][Poller ] Creating poller: built-in
[2020-09-02 19:00:43.144186 +0200][Debug ][Poller ] Creating and starting the built-in poller...
[2020-09-02 19:00:43.144892 +0200][Debug ][Poller ] Using 1 poller threads
[2020-09-02 19:00:43.145088 +0200][Debug ][TaskMgr ] Starting the task manager...
[2020-09-02 19:00:43.145574 +0200][Debug ][TaskMgr ] Task manager started
[2020-09-02 19:00:43.145809 +0200][Debug ][JobMgr ] Starting the job manager...
[2020-09-02 19:00:43.146825 +0200][Debug ][JobMgr ] Job manager started, 3 workers
[2020-09-02 19:00:43.147191 +0200][Debug ][TaskMgr ] Registering task: "FileTimer task" to be run at: [2020-09-02 19:00:43 +0200]
[2020-09-02 19:00:43.147460 +0200][Debug ][Utility ] Opening root://eoscms.cern.ch:1094//store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root for reading
[2020-09-02 19:00:43.148000 +0200][Dump ][Utility ] URL: root://eoscms.cern.ch:1094//store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root
[2020-09-02 19:00:43.148000 +0200][Dump ][Utility ] Protocol: root
[2020-09-02 19:00:43.148000 +0200][Dump ][Utility ] User Name:
[2020-09-02 19:00:43.148000 +0200][Dump ][Utility ] Password:
[2020-09-02 19:00:43.148000 +0200][Dump ][Utility ] Host Name: eoscms.cern.ch
[2020-09-02 19:00:43.148000 +0200][Dump ][Utility ] Port: 1094
[2020-09-02 19:00:43.148000 +0200][Dump ][Utility ] Path: /store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root
[2020-09-02 19:00:43.148948 +0200][Dump ][Utility ] URL: root://eoscms.cern.ch:1094//store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root
[2020-09-02 19:00:43.148948 +0200][Dump ][Utility ] Protocol: root
[2020-09-02 19:00:43.148948 +0200][Dump ][Utility ] User Name:
[2020-09-02 19:00:43.148948 +0200][Dump ][Utility ] Password:
[2020-09-02 19:00:43.148948 +0200][Dump ][Utility ] Host Name: eoscms.cern.ch
[2020-09-02 19:00:43.148948 +0200][Dump ][Utility ] Port: 1094
[2020-09-02 19:00:43.148948 +0200][Dump ][Utility ] Path: /store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root
[2020-09-02 19:00:43.149881 +0200][Dump ][Utility ] URL: root://eoscms.cern.ch:1094//store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root
[2020-09-02 19:00:43.149881 +0200][Dump ][Utility ] Protocol: root
[2020-09-02 19:00:43.149881 +0200][Dump ][Utility ] User Name:
[2020-09-02 19:00:43.149881 +0200][Dump ][Utility ] Password:
[2020-09-02 19:00:43.149881 +0200][Dump ][Utility ] Host Name: eoscms.cern.ch
[2020-09-02 19:00:43.149881 +0200][Dump ][Utility ] Port: 1094
[2020-09-02 19:00:43.149881 +0200][Dump ][Utility ] Path: /store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root
[2020-09-02 19:00:43.150627 +0200][Debug ][File ] [0x2181610@root://eoscms.cern.ch:1094//store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root] Sending an open command
[2020-09-02 19:00:43.151423 +0200][Dump ][XRootD ] [eoscms.cern.ch:1094] Sending message kXR_open (file: /store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root, mode: 00, flags: kXR_open_read kXR_async kXR_retstat )
[2020-09-02 19:00:43.151929 +0200][Dump ][Utility ] URL: eoscms.cern.ch:1094
[2020-09-02 19:00:43.151929 +0200][Dump ][Utility ] Protocol: root
[2020-09-02 19:00:43.151929 +0200][Dump ][Utility ] User Name:
[2020-09-02 19:00:43.151929 +0200][Dump ][Utility ] Password:
[2020-09-02 19:00:43.151929 +0200][Dump ][Utility ] Host Name: eoscms.cern.ch
[2020-09-02 19:00:43.151929 +0200][Dump ][Utility ] Port: 1094
[2020-09-02 19:00:43.151929 +0200][Dump ][Utility ] Path:
[2020-09-02 19:00:43.152695 +0200][Debug ][PostMaster ] Creating new channel to: eoscms.cern.ch:1094 1 stream(s)
[2020-09-02 19:00:43.153035 +0200][Debug ][PostMaster ] [eoscms.cern.ch:1094 #0] Stream parameters: Network Stack: IPAuto, Connection Window: 120, ConnectionRetry: 5, Stream Error Window: 1800
[2020-09-02 19:00:43.195417 +0200][Debug ][TaskMgr ] Registering task: "TickGeneratorTask for: eoscms.cern.ch:1094" to be run at: [2020-09-02 19:00:58 +0200]
[2020-09-02 19:00:43.195745 +0200][Debug ][ExDbgMsg ] [eoscms.cern.ch:1094] MsgHandler created: 0x2186f70 (message: kXR_open (file: /store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root, mode: 00, flags: kXR_open_read kXR_async kXR_retstat ) ).
[2020-09-02 19:00:43.197258 +0200][Dump ][PostMaster ] [eoscms.cern.ch:1094 #0] Sending message kXR_open (file: /store/test/xrootd/T2_CH_CERN/store/mc/SAM/GenericTTbar/AODSIM/CMSSW_9_2_6_91X_mcRun1_realistic_v2-v1/00000/A64CCCF2-5C76-E711-B359-0CC47A78A3F8.root, mode: 00, flags: kXR_open_read kXR_async kXR_retstat ) (0x2185e70) through substream 0 expecting answer at 0
[2020-09-02 19:00:43.247453 +0200][Debug ][PostMaster ] [eoscms.cern.ch:1094] Found 1 address(es): [::ffff:128.142.32.76]:1094
[2020-09-02 19:00:43.248141 +0200][Debug ][AsyncSock ] [eoscms.cern.ch:1094 #0.0] Attempting connection to [::ffff:128.142.32.76]:1094
[2020-09-02 19:00:43.250448 +0200][Debug ][Poller ] Adding socket 0x2186c20 to the poller
[2020-09-02 19:00:43.251415 +0200][Debug ][AsyncSock ] [eoscms.cern.ch:1094 #0.0] Async connection call returned
[2020-09-02 19:00:43.252270 +0200][Debug ][XRootDTransport ] [eoscms.cern.ch:1094 #0.0] Sending out the initial hand shake + kXR_protocol
[2020-09-02 19:00:43.253167 +0200][Dump ][AsyncSock ] [eoscms.cern.ch:1094 #0.0] Wrote a message: (0xb4000a00), 44 bytes
[2020-09-02 19:00:43.253783 +0200][Error ][AsyncSock ] [eoscms.cern.ch:1094 #0.0] Socket error while handshaking: [ERROR] Socket error
[2020-09-02 19:00:43.254213 +0200][Debug ][AsyncSock ] [eoscms.cern.ch:1094 #0.0] Closing the socket
PS: xrdcp is now

/cvmfs/cms.cern.ch/slc7_amd64_gcc820/external/xrootd/4.10.0-nmpfii2/bin/xrdcp


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1277", "url": "https://github.com/xrootd/xrootd/issues/1277", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1