Getting file does not exist..but file is there
Hi
As root I am trying to execute a file but I get file does not exist. app01:/usr/local/tungsten-enterprise-2009-1.2/cluster-home/bin# ls wrapper-linux-x86-64 wrapper-linux-x86-64 app01:/usr/local/tungsten-enterprise-2009-1.2/cluster-home/bin# ./wrapper-linux-x86-64 -bash: ./wrapper-linux-x86-64: No such file or directory app01:/usr/local/tungsten-enterprise-2009-1.2/cluster-home/bin# uname -a Linux app01 2.6.29.2.20090503.x3550 #1 SMP Sun May 3 12:57:31 CDT 2009 x86_64 GNU/Linux app01:/usr/local/tungsten-enterprise-2009-1.2/cluster-home/bin# file wrapper-linux-x86-64 wrapper-linux-x86-64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.0, not stripped Please advice. |
show a few lines of the wrapper-linux-x86-64 script
|
Possibly a dynamic-linker problem similar to the one in this LQ thread.
|
Hi This is the first part of it
^?ELF^B^A^A^@^@^@^@^@^@^@^@^@^B^@>^@^A^@^@^@�0@^@^@^@^@^@@^@^@^@^@^@^@^@<88>�^A^@^@^@^@^@^@^@^@^@@^@ 8^@^H^@@^@!^@^^^@^F^@^@^@^E^@^@^@@^@^@^@^@^@^@^@@^@@$ ^@^@^@^@^@^@^@y^@^@^@^@^@^@^@^@^@^@^@<96>^@^@^@<84>^@^@^@^@^@^@^@m^@^@^@^@^@^@^@T^@^@^@V^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@^@$ ^@^@^@^@^@^@^@�^B^@^@^Q^@^X^@^L<99>Q^@^@^@^@^@^D^@^@^@^@^@^@^@�^B^@^@^Q^@^X^@��Q^@^@^@^@^@<80>^L^@^@ ^@^@^@^@^M^C^@^@^Q^@^X^@�<98>Q^@^@^@^@^@^H^@^@^@^@^@$ ^@^@^@^@^@^@^@i^F^@^@^Q^@^X^@<80>�Q^@^@^@^@^@^@^D^@^@^@^@^@^@{^F^@^@^Q^@^X^@ȩQ^@^@^@^@^@^H^@^@^@^@^@ ^@^@<83>^F^@^@^Q^@^W^@<98><97>Q^@^@^@^@^@^D^@^@^@^@$ ^@^@^@^@^@^@^@^@^@^@^@^@<95>Q^@^@^@^@^@^G^@^@^@^K^@^@^@^@^@^@^@^@^@^@^@^H<95>Q^@^@^@^@^@^G^@^@^@^L^@ ^@^@^@^@^@^@^@^@^@^@^P<95>Q^@^@^@^@^@^G^@^@^@^M^@^@^$ i^Q^@�%^Li^Q^@<90><90><90><90>�% i^Q^@h^@^@^@^@������%^Bi^Q^@h^A^@^@^@������%�h^Q^@h^B^@^@^@������%�h^Q^@h^C^@^@^@������%�h^Q^@h^D^@^ @^@������%�h^Q^@h^E^@^@^@�<90>����%�h^Q^@h^F^@^@^@�<$ ^@^@^@�@����%�h^Q^@h^K^@^@^@�0����%�h^Q^@h^L^@^@^@� ����%�h^Q^@h^M^@^@^@�^P����%<9A>h^Q^@h^N^@^@^@�^@����%<92>h^Q^@h^O^@^@^@������%<8A>h^Q^@h^P^@^@^@��� $ h^Q^@h ^@^@^@������%^Bh^Q^@h!^@^@^@������%�g^Q^@h"^@^@^@������%�g^Q^@h#^@^@^@������%�g^Q^@h$^@^@^@������%�g ^Q^@h%^@^@^@�<90>����%�g^Q^@h&^@^@^@�<80>����$ g^Q^@h@^@^@^@������%^Bg^Q^@hA^@^@^@������%�f^Q^@hB^@^@^@������%�f^Q^@hC^@^@^@������%�f^Q^@hD^@^@^@�� ����%�f^Q^@hE^@^@^@�<90>����%�f^Q^@hF^@^@^@�<80>����$ �<83>�^@^@^@����D<8B>K0E<85>�^O<84><87>^M^@^@H<8B>^E�P^Q^@H<8D>5��^@^@�^@�^B^@H<8B>8�s�^@^@<8D>^T�^@ ^@^@^@H<8D>5��^@^@<8D>^DB�^@�^B^@<89>C8H<8B>^E�P^Q^@$ ^@^@^@H<8B>8踱^@^@<89><83>�^@^@^@H<8B>^E^[N^Q^@H<8D>5n�^@^@I<8B>^_�^^^@^@^@H<8B>8�<94>�^@^@<89><83>�^@^@^@H<8B>^E�M^Q^@H<8D>5b�^@^@I<8B>^_�^^^ @^@^@H<8B$ ^@^@=<80>Q^A^@^O<8F>� ^@^@I<8B>^G<8B><90>�^@^@^@<85>�~^Q<8B><88>�^@^@^@<83>�^E9�^O<8C>^] ^@^@I<8B>^G<8B><90>�^@^@^@<85>�~D<8B><80>�^@^@^@<85>�~^H9�^O<8F>k ^@^@I<8B>^W<8B><82>�^@^@^@<85>�~^L;<82>�^@^@^@^O<8C>o ^@^@I<8B>^W<8B><82>�^@^@^@<85>�~^L;<82>�^@^@^@^O<8C>^\ |
You'll need to ensure it's got executable perms first. Show
ls -l wrapper-linux-x86-64 |
Sound like there is a file called within that application but it doesnt exist. Can you debug it with strace and post the output?
|
app01:/usr/local/tungsten-enterprise-2009-1.2# ls -l ./cluster-home/bin/wrapper-linux-x86-64
-rwxr-xr-x 1 root staff 126194 2009-12-15 05:13 ./cluster-home/bin/wrapper-linux-x86-64 app01:/usr/local/tungsten-enterprise-2009-1.2# strace ./cluster-home/bin/wrapper-linux-x86-64 execve("./cluster-home/bin/wrapper-linux-x86-64", ["./cluster-home/bin/wrapper-linux"...], [/* 17 vars */]) = -1 ENOENT (No such file or directory) dup(2) = 3 fcntl64(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7f0e000 _llseek(3, 0, 0xffe2bf38, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(3, "strace: exec: No such file or dir"..., 40strace: exec: No such file or directory ) = 40 close(3) = 0 munmap(0xf7f0e000, 4096) = 0 exit_group(1) = ? app01:/usr/local/tungsten-enterprise-2009-1.2# |
app01:/usr/local/tungsten-enterprise-2009-1.2# readelf -l ./cluster-home/bin/wrapper-linux-x86-64
Elf file type is EXEC (Executable file) Entry point 0x4030f0 There are 8 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags Align PHDR 0x0000000000000040 0x0000000000400040 0x0000000000400040 0x00000000000001c0 0x00000000000001c0 R E 8 INTERP 0x0000000000000200 0x0000000000400200 0x0000000000400200 0x000000000000001c 0x000000000000001c R 1 [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000 0x00000000000190c4 0x00000000000190c4 R E 100000 LOAD 0x00000000000190c8 0x00000000005190c8 0x00000000005190c8 0x0000000000000798 0x00000000000036f8 RW 100000 DYNAMIC 0x00000000000190f0 0x00000000005190f0 0x00000000005190f0 0x00000000000001b0 0x00000000000001b0 RW 8 NOTE 0x000000000000021c 0x000000000040021c 0x000000000040021c 0x0000000000000020 0x0000000000000020 R 4 GNU_EH_FRAME 0x00000000000171d0 0x00000000004171d0 0x00000000004171d0 0x000000000000066c 0x000000000000066c R 4 GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 RW 8 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame 03 .ctors .dtors .jcr .dynamic .got .got.plt .data .bss 04 .dynamic 05 .note.ABI-tag 06 .eh_frame_hdr 07 app01:/usr/local/tungsten-enterprise-2009-1.2# |
All times are GMT -5. The time now is 06:05 AM. |