|
|
Question : rsync/scp fails with ENOTTY problem in a job script to transfer data
|
|
Hello, I'm upgrading some linux workstations runnnig fc6 and torque 2.3.1 to fc9 and torque 2.3.3. In order not to overload NFS, when a script starts, it connects to the fileserver via rsync, copies the directory of interest in a scratch space there, and then runs. At the end, with rsync, the results are copied back. All works well with fc6, but in the new machines that I have upgraded rysnc and scp refuse to work. Strace seems suggesting that they crash because they are not run in an interactive shell.
Problem is, on fc6 where working correctly.. So I tried all and I cannot find a solution. Any help? Here are more infos:
relevant part of the pbs script: ###################### export CASEDIR=/ea_users/test/memory_test export SERVER=diskserver1 copy_data_in_tmp ######################
the copy_data_in_tmp is a bash function that is sourced at login time in /etc/profile.d/ a version with scp instead of rsync is the following:
##################### copy_data_in_tmp() { ...bla bla bla... EXECU=$(whoami) echo "$EXECU launches the scp -B -r ${AVA}${ORIG} $DEST" strace scp -B -r ${AVA}${ORIG} $DEST } ##################### the log file of pbs gives the attempted command:
scp -r diskserver1:/ea_users/test/memory_test/ /work/test/91/
and the strace is: ################################### execve("/usr/bin/scp", ["scp", "-B", "-r", "test@diskserver1:"..., "/work/test/91/"...], [/* 62 vars */]) = 0 brk(0) = 0xb834a000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f11000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/personnel/ea/test/local/lib/tls/i686/sse2/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/personnel/ea/test/local/lib/tls/i686/sse2", 0xbfa1e8b0) = -1 ENOENT (No such file or directory) open("/personnel/ea/test/local/lib/tls/i686/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/personnel/ea/test/local/lib/tls/i686", 0xbfa1e8b0) = -1 ENOENT (No such file or directory) open("/personnel/ea/test/local/lib/tls/sse2/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/personnel/ea/test/local/lib/tls/sse2", 0xbfa1e8b0) = -1 ENOENT (No such file or directory) open("/personnel/ea/test/local/lib/tls/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/personnel/ea/test/local/lib/tls", 0xbfa1e8b0) = -1 ENOENT (No such file or directory) open("/personnel/ea/test/local/lib/i686/sse2/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/personnel/ea/test/local/lib/i686/sse2", 0xbfa1e8b0) = -1 ENOENT (No such file or directory) open("/personnel/ea/test/local/lib/i686/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/personnel/ea/test/local/lib/i686", 0xbfa1e8b0) = -1 ENOENT (No such file or directory) open("/personnel/ea/test/local/lib/sse2/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/personnel/ea/test/local/lib/sse2", 0xbfa1e8b0) = -1 ENOENT (No such file or directory) open("/personnel/ea/test/local/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/personnel/ea/test/local/lib", 0xbfa1e8b0) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=98896, ...}) = 0 mmap2(NULL, 98896, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ef8000 close(3) = 0 open("/lib/libresolv.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\361\203\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=84804, ...}) = 0 mmap2(NULL, 84164, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x12f000 mmap2(0x140000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0x140000 mmap2(0x142000, 6340, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x142000 close(3) = 0 open("/lib/libcrypto.so.7", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\331\301\0074\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1351056, ...}) = 0 mmap2(NULL, 1366072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x144000 mmap2(0x27b000, 81920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x136) = 0x27b000 mmap2(0x28f000, 10296, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x28f000 close(3) = 0 open("/lib/libutil.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 z\203\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=15060, ...}) = 0 mmap2(NULL, 12420, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x292000 mmap2(0x294000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x294000 close(3) = 0 open("/lib/libz.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 6\251\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=79376, ...}) = 0 mmap2(NULL, 80624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x296000 mmap2(0x2a9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0x2a9000 close(3) = 0 open("/lib/libnsl.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\341\201\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=113600, ...}) = 0 mmap2(NULL, 104392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2aa000 mmap2(0x2c0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15) = 0x2c0000 mmap2(0x2c2000, 6088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2c2000 close(3) = 0 open("/lib/libcrypt.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\27\371\0074\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=49368, ...}) = 0 mmap2(NULL, 201020, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2c4000 mmap2(0x2cd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9) = 0x2cd000 mmap2(0x2cf000, 155964, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2cf000 close(3) = 0 open("/lib/libnss3.so", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360U4\0024\0\0\0"..., 512) = 512 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef7000 fstat64(3, {st_mode=S_IFREG|0755, st_size=1273236, ...}) = 0 mmap2(NULL, 1273048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2f6000 mmap2(0x428000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x132) = 0x428000 close(3) = 0 open("/usr/lib/libgssapi_krb5.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\10\324\0074\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=192124, ...}) = 0 mmap2(NULL, 188892, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x42d000 mmap2(0x45a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2d) = 0x45a000 close(3) = 0 open("/usr/lib/libkrb5.so.3", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0pE\332\0074\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=652632, ...}) = 0 mmap2(NULL, 653608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x45c000 mmap2(0x4f9000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9c) = 0x4f9000 close(3) = 0 open("/usr/lib/libk5crypto.so.3", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \350\326\0074\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=153308, ...}) = 0 mmap2(NULL, 150944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4fc000 mmap2(0x520000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24) = 0x520000 close(3) = 0 open("/lib/libcom_err.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\232\207\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=9708, ...}) = 0 mmap2(NULL, 10856, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x521000 mmap2(0x523000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x523000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\7\217\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1758448, ...}) = 0 mmap2(NULL, 1476176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x524000 mmap2(0x687000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x163) = 0x687000 mmap2(0x68a000, 9808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x68a000 close(3) = 0 open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\247\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=20460, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef6000 mmap2(NULL, 16500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x68d000 mmap2(0x690000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x690000 close(3) = 0 open("/lib/libnssutil3.so", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\310\4\0024\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=99552, ...}) = 0 mmap2(NULL, 100684, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x692000 mmap2(0x6a8000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15) = 0x6a8000 close(3) = 0 open("/lib/libplc4.so", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\36\4\0024\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=16100, ...}) = 0 mmap2(NULL, 17256, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x6ab000 mmap2(0x6af000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0x6af000 close(3) = 0 open("/lib/libplds4.so", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\312\3\0024\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=11588, ...}) = 0 mmap2(NULL, 8660, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x6b0000 mmap2(0x6b2000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x6b2000 close(3) = 0 open("/lib/libnspr4.so", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\207\0\0024\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=232252, ...}) = 0 mmap2(NULL, 237024, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x6b3000 mmap2(0x6ea000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x37) = 0x6ea000 mmap2(0x6eb000, 7648, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x6eb000 close(3) = 0 open("/lib/libpthread.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\270\247\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=131332, ...}) = 0 mmap2(NULL, 98784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x6ed000 mmap2(0x702000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0x702000 mmap2(0x704000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x704000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef5000 open("/usr/lib/libkrb5support.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\372\211\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=33844, ...}) = 0 mmap2(NULL, 34916, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x706000 mmap2(0x70e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0x70e000 close(3) = 0 open("/lib/libkeyutils.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\230\212\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=8008, ...}) = 0 mmap2(NULL, 9292, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x70f000 mmap2(0x711000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x711000 close(3) = 0 open("/lib/libselinux.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\273\252\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=110076, ...}) = 0 mmap2(NULL, 113564, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x712000 mmap2(0x72c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19) = 0x72c000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef4000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef3000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7ef3730, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0x72c000, 4096, PROT_READ) = 0 mprotect(0x702000, 4096, PROT_READ) = 0 mprotect(0x690000, 4096, PROT_READ) = 0 mprotect(0x687000, 8192, PROT_READ) = 0 mprotect(0x2cd000, 4096, PROT_READ) = 0 mprotect(0x2c0000, 4096, PROT_READ) = 0 mprotect(0x294000, 4096, PROT_READ) = 0 mprotect(0x140000, 4096, PROT_READ) = 0 mprotect(0x12c000, 4096, PROT_READ) = 0 munmap(0xb7ef8000, 98896) = 0 set_tid_address(0xb7ef3778) = 16751 set_robust_list(0xb7ef3780, 0xc) = 0 futex(0xbfa1f000, FUTEX_WAKE_PRIVATE, 1) = 0 rt_sigaction(SIGRTMIN, {0x6f12c0, [], SA_SIGINFO}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x6f1700, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0 uname({sys="Linux", node="arlin5", ...}) = 0 brk(0) = 0xb834a000 brk(0xb836b000) = 0xb836b000 open("/etc/selinux/config", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=439, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f10000 read(3, "\n# This file controls the state "..., 4096) = 439 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb7f10000, 4096) = 0 statfs64("/selinux", 84, {f_type=0xf97cff8c, f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 stat64("/selinux/class", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 open("/selinux/mls", O_RDONLY|O_LARGEFILE) = 3 read(3, "1", 19) = 1 close(3) = 0 open("/dev/null", O_RDWR|O_LARGEFILE) = 3 close(3) = 0 getuid32() = 147 socket(PF_FILE, SOCK_STREAM, 0) = 3 fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) close(3) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 3 fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) close(3) = 0 open("/etc/nsswitch.conf", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1696, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f10000 read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1696 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb7f10000, 4096) = 0 open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=98896, ...}) = 0 mmap2(NULL, 98896, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ef8000 close(3) = 0 open("/lib/libnss_files.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\30\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=54828, ...}) = 0 mmap2(NULL, 45712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x72e000 mmap2(0x738000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa) = 0x738000 close(3) = 0 mprotect(0x738000, 4096, PROT_READ) = 0 munmap(0xb7ef8000, 98896) = 0 open("/etc/passwd", O_RDONLY|0x80000 /* O_??? */) = 3 fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC) fstat64(3, {st_mode=S_IFREG|0644, st_size=2496, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f10000 read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 2496 close(3) = 0 munmap(0xb7f10000, 4096) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfa1eeb8) = -1 ENOTTY (Inappropriate ioctl for device) rt_sigaction(SIGPIPE, NULL, {SIG_DFL}, 8) = 0 rt_sigaction(SIGPIPE, {0xb7f13aa0, [], 0}, NULL, 8) = 0 pipe([3, 4]) = 0 pipe([5, 6]) = 0 pipe([7, 8]) = 0 close(3) = 0 close(4) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7ef3778) = 16752 close(5) = 0 close(8) = 0 rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0 rt_sigaction(SIGTERM, {0xb7f13c00, [], 0}, NULL, 8) = 0 rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0 rt_sigaction(SIGINT, {0xb7f13c00, [], 0}, NULL, 8) = 0 rt_sigaction(SIGHUP, NULL, {SIG_DFL}, 8) = 0 rt_sigaction(SIGHUP, {0xb7f13c00, [], 0}, NULL, 8) = 0 umask(0) = 022 umask(022) = 0 write(6, "\0", 1) = 1 stat64("/work/test/91/", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 read(7, "D", 1) = 1 read(7, "0", 1) = 1 read(7, "7", 1) = 1 read(7, "5", 1) = 1 read(7, "5", 1) = 1 read(7, " ", 1) = 1 read(7, "0", 1) = 1 read(7, " ", 1) = 1 read(7, "m", 1) = 1 read(7, "e", 1) = 1 read(7, "m", 1) = 1 read(7, "o", 1) = 1 read(7, "r", 1) = 1 read(7, "y", 1) = 1 read(7, "_", 1) = 1 read(7, "t", 1) = 1 read(7, "e", 1) = 1 read(7, "s", 1) = 1 read(7, "t", 1) = 1 read(7, "\n", 1) = 1 stat64("/work/test/91//memory_test", 0xbfa1e640) = -1 ENOENT (No such file or directory) mkdir("/work/test/91//memory_test", 0755) = 0 umask(0) = 022 umask(022) = 0 write(6, "\0", 1) = 1 stat64("/work/test/91//memory_test", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 read(7, "C", 1) = 1 read(7, "0", 1) = 1 read(7, "7", 1) = 1 read(7, "5", 1) = 1 read(7, "5", 1) = 1 read(7, " ", 1) = 1 read(7, "5", 1) = 1 read(7, "4", 1) = 1 read(7, "3", 1) = 1 read(7, "2", 1) = 1 read(7, " ", 1) = 1 read(7, "m", 1) = 1 read(7, "e", 1) = 1 read(7, "m", 1) = 1 read(7, "o", 1) = 1 read(7, "r", 1) = 1 read(7, "y", 1) = 1 read(7, "\n", 1) = 1 stat64("/work/test/91//memory_test/memory", 0xbfa1dd10) = -1 ENOENT (No such file or directory) open("/work/test/91//memory_test/memory", O_WRONLY|O_CREAT|O_LARGEFILE, 0755) = 3 write(6, "\0", 1) = 1 fstat64(3, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0 fcntl64(7, F_GETFL) = 0 (flags O_RDONLY) fcntl64(7, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 read(7, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\240\203\4\0104\0\0\0"..., 5432) = 5432 fcntl64(7, F_GETFL) = 0x800 (flags O_RDONLY|O_NONBLOCK) fcntl64(7, F_SETFL, O_RDONLY) = 0 write(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\240\203\4\0104\0\0\0"..., 5432) = 5432 ftruncate64(3, 5432) = 0 close(3) = 0 read(7, "\0", 1) = 1 write(6, "\0", 1) = 1 read(7, "C", 1) = 1 read(7, "0", 1) = 1 read(7, "6", 1) = 1 read(7, "4", 1) = 1 read(7, "4", 1) = 1 read(7, " ", 1) = 1 read(7, "8", 1) = 1 read(7, "6", 1) = 1 read(7, " ", 1) = 1 read(7, "f", 1) = 1 read(7, "i", 1) = 1 read(7, "l", 1) = 1 read(7, "e", 1) = 1 read(7, "_", 1) = 1 read(7, "p", 1) = 1 read(7, "b", 1) = 1 read(7, "s", 1) = 1 read(7, ".", 1) = 1 read(7, "1", 1) = 1 read(7, "8", 1) = 1 read(7, "4", 1) = 1 read(7, "6", 1) = 1 read(7, ".", 1) = 1 read(7, "e", 1) = 1 read(7, "a", 1) = 1 read(7, "l", 1) = 1 read(7, "i", 1) = 1 read(7, "n", 1) = 1 read(7, "5", 1) = 1 stat64("/work/test/91//memory_test/file_pbs.1846.ealin5", 0xbfa1dd10) = -1 ENOENT (No such file or directory) open("/work/test/91//memory_test/file_pbs.1846.ealin5", O_WRONLY|O_CREAT|O_LARGEFILE, 0644) = 3 write(6, "\0", 1) = 1 fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 fcntl64(7, F_GETFL) = 0 (flags O_RDONLY) fcntl64(7, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 read(7, 0xb834b4b0, 86) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=7, events=POLLIN, revents=POLLIN}], 1, -1) = 1 read(7, "1846.ealin5\naglin7\nagl"..., 86) = 86 fcntl64(7, F_GETFL) = 0x800 (flags O_RDONLY|O_NONBLOCK) fcntl64(7, F_SETFL, O_RDONLY) = 0 write(3, "1846.ealin5\naglin7\nagl"..., 86) = 86 ftruncate64(3, 86) = 0 close(3) = 0 read(7, "\0", 1) = 1 write(6, "\0", 1) = 1 read(7, "C", 1) = 1 read(7, "0", 1) = 1 read(7, "6", 1) = 1 read(7, "4", 1) = 1 read(7, "4", 1) = 1 read(7, " ", 1) = 1 read(7, "0", 1) = 1 read(7, " ", 1) = 1 read(7, ".", 1) = 1 read(7, "l", 1) = 1 read(7, "i", 1) = 1 read(7, "s", 1) = 1 read(7, "t", 1) = 1 read(7, "_", 1) = 1 read(7, "l", 1) = 1 read(7, "i", 1) = 1 read(7, "n", 1) = 1 read(7, "k", 1) = 1 read(7, "s", 1) = 1 read(7, "\n", 1) = 1 stat64("/work/test/91//memory_test/.list_links", 0xbfa1dd10) = -1 ENOENT (No such file or directory) open("/work/test/91//memory_test/.list_links", O_WRONLY|O_CREAT|O_LARGEFILE, 0644) = 3 write(6, "\0", 1) = 1 fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 fcntl64(7, F_GETFL) = 0 (flags O_RDONLY) fcntl64(7, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 fcntl64(7, F_GETFL) = 0x800 (flags O_RDONLY|O_NONBLOCK) fcntl64(7, F_SETFL, O_RDONLY) = 0 ftruncate64(3, 0) = 0 close(3) = 0 read(7, "\0", 1) = 1 write(6, "\0", 1) = 1 read(7, "C", 1) = 1 read(7, "0", 1) = 1 read(7, "6", 1) = 1 read(7, "4", 1) = 1 read(7, "4", 1) = 1 read(7, " ", 1) = 1 read(7, "3", 1) = 1 read(7, "4", 1) = 1 read(7, "3", 1) = 1 read(7, " ", 1) = 1 read(7, "m", 1) = 1 read(7, "e", 1) = 1 read(7, "m", 1) = 1 read(7, "o", 1) = 1 read(7, "r", 1) = 1 read(7, "y", 1) = 1 read(7, ".", 1) = 1 read(7, "c", 1) = 1 read(7, "\n", 1) = 1 stat64("/work/test/91//memory_test/memory.c", 0xbfa1dd10) = -1 ENOENT (No such file or directory) open("/work/test/91//memory_test/memory.c", O_WRONLY|O_CREAT|O_LARGEFILE, 0644) = 3 write(6, "\0", 1) = 1 fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 fcntl64(7, F_GETFL) = 0 (flags O_RDONLY) fcntl64(7, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 read(7, 0xb834b4b0, 343) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=7, events=POLLIN, revents=POLLIN}], 1, -1) = 1 read(7, "#include \n#include fcntl64(7, F_GETFL) = 0x800 (flags O_RDONLY|O_NONBLOCK) fcntl64(7, F_SETFL, O_RDONLY) = 0 write(3, "#include \n#include ftruncate64(3, 343) = 0 close(3) = 0 read(7, "\0", 1) = 1 write(6, "\0", 1) = 1 read(7, "C", 1) = 1 read(7, "0", 1) = 1 read(7, "7", 1) = 1 read(7, "5", 1) = 1 read(7, "5", 1) = 1 read(7, " ", 1) = 1 read(7, "7", 1) = 1 read(7, "4", 1) = 1 read(7, "1", 1) = 1 read(7, "4", 1) = 1 read(7, " ", 1) = 1 read(7, "m", 1) = 1 read(7, "e", 1) = 1 read(7, "m", 1) = 1 read(7, "o", 1) = 1 read(7, "r", 1) = 1 read(7, "y", 1) = 1 read(7, "_", 1) = 1 read(7, "6", 1) = 1 read(7, "4", 1) = 1 read(7, "\n", 1) = 1 stat64("/work/test/91//memory_test/memory_64", 0xbfa1dd10) = -1 ENOENT (No such file or directory) open("/work/test/91//memory_test/memory_64", O_WRONLY|O_CREAT|O_LARGEFILE, 0755) = 3 write(6, "\0", 1) = 1 fstat64(3, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0 fcntl64(7, F_GETFL) = 0 (flags O_RDONLY) fcntl64(7, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 read(7, 0xb834b4b0, 7414) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=7, events=POLLIN, revents=POLLIN}], 1, -1) = 1 read(7, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\2\0>\0\1\0\0\0\220\4@\0\0\0\0\0"..., 7414) = 7414 fcntl64(7, F_GETFL) = 0x800 (flags O_RDONLY|O_NONBLOCK) fcntl64(7, F_SETFL, O_RDONLY) = 0 write(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\2\0>\0\1\0\0\0\220\4@\0\0\0\0\0"..., 7414) = 7414 ftruncate64(3, 7414) = 0 close(3) = 0 read(7, "\0", 1) = 1 write(6, "\0", 1) = 1 read(7, "E", 1) = 1 read(7, "\n", 1) = 1 write(6, "\0", 1) = 1 chmod("/work/test/91//memory_test", 0755) = 0 --- SIGCHLD (Child exited) @ 0 (0) --- read(7, "", 1) = 0 close(7) = 0 waitpid(16752, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 16752 exit_group(0) = ? ##################################################
Of course if I launch the command from a terminal, it works.. Any help? I've tried with scp -B or not , rsync without z, etc. etc. What it really annoys me is that with the previous software stack was working..
|
Answer : rsync/scp fails with ENOTTY problem in a job script to transfer data
|
|
The problem is that ssh tries to allocate a pseudo terminal for possible output. ssh is the transport used for scp.
Some implementations skip allocating a terminal if the option EscapeChar is set to none -o 'EscapeChar=none' Otherwise check how you can pass the -T option (disable- pseudo-tty) to the ssh process.
|
|
|
|
|