Hi,
Thanks for your inputs. Could you please let us know if there are a list of known dependencies gpg and the most notable ones? We shall look out if we can narrow down to the problem.
---------- Post updated at 06:03 PM ---------- Previous update was at 02:32 PM ----------
Truss output from a server where gpg is NOT working :
/home> truss /opt/TWWfsw/bin/gpg --verbose --default-recipient-self --yes --encrypt-files sample2 > truss.out
execve("/usr/bin/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/etc/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/usr/sbin/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/usr/ucb/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/home/adwodadm/bin/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/usr/bin/X11/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/sbin/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("./gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/datastage/adwprod_753_app/Ascential/DataStage/DSEngine/bin/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("./gpg", 0x2FF2253C, 0x2000FB38) argc: 7
truss: 0915-007 Lost control of process.
gpg: using secondary key DFEEFFE instead of primary key 97SDFERF4
gpg: reading from `sample2'
gpg: writing to `sample2.gpg'
gpg: ELG-E/AES256 encrypted for: "D8C00BBB test01 (test ods)
gpg: out of memory while allocating 8192 bytes
---------- Post updated at 06:04 PM ---------- Previous update was at 06:03 PM ----------
Truss output from a server where its WORKING :
$ t-self --yes --encrypt-files sample3 > truss.out <
execve("/usr/bin/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("/etc/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("/usr/sbin/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("/usr/ucb/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("/home/adwodadm/bin/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("/usr/bin/X11/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("/sbin/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("./gpg", 0x2FF22C54, 0x2000FB38) argc: 7
_exit(127)
---------- Post updated 01-22-13 at 12:22 AM ---------- Previous update was 01-21-13 at 06:04 PM ----------
The gpg process is not running as a daemon on the server. Its a stand alone software which is invoked by the batch scripts (shell scripts) at scheduled times run by admin ids.
There is no centralized trustdb for all the id's. There are individual trustdbs for all the admin ids in their own home directories. The trustdbs are not expected to be corrupted and are in tact.
Please find the encryption outputs run with debug options on the server where it is working and where it isnt.
Debug output - Server where gpg is working:
$ /opt/TWWfsw/gnupg12/bin/gpg --debug-all --encrypt-file simple1
gpg: NOTE: no default option file `/home/a510373/.gnupg/options'
You did not specify a user ID. (you may use "-r")
Enter the user ID. End with an empty line: sradithya
Added 1024g/212DCF43 2013-01-18 "sradithya (Hi) <
Aditya.Sr@abc.com>"
Enter the user ID. End with an empty line:
File `simple1.gpg' exists. Overwrite (y/N)? y
$ ls -lrt
-rwxrwxrwx 1 a510373 adwsup 6 Jan 20 13:41 simple1
-rw-r--r-- 1 a510373 adwsup 347 Jan 20 19:45 simple1.gpg
Debug output - Server where gpg is NOT working:
/home/a510373 >/opt/TWWfsw/gnupg12/bin/gpg --debug-all --encrypt-file simple1
gpg: NOTE: no default option file `/home/a510373/.gnupg/options'
You did not specify a user ID. (you may use "-r")
Enter the user ID. End with an empty line: sradithya
gpg: DBG: fd_cache_open (/home/a510373/.gnupg/pubring.gpg) not cached
gpg: DBG: iobuf-1.0: open `/home/a510373/.gnupg/pubring.gpg' fd=4
gpg: DBG: iobuf-1.0: underflow: req=8192
gpg: DBG: iobuf-1.0: underflow: got=1819 rc=0
gpg: DBG: parse_packet(iob=1): type=6 length=418 (search.keyring.c.963)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: mpi_alloc(160)
gpg: DBG: mpi_alloc_limb_space(160)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: free_packet() type=6
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: parse_packet(iob=1): type=13 length=37 (search.keyring.c.963)
gpg: DBG: fd_cache_open (/home/a510373/.gnupg/pubring.gpg) not cached
gpg: DBG: iobuf-2.0: open `/home/a510373/.gnupg/pubring.gpg' fd=5
gpg: DBG: iobuf-2.0: underflow: req=8192
gpg: DBG: iobuf-2.0: underflow: got=1819 rc=0
gpg: DBG: parse_packet(iob=2): type=6 length=418 (search.keyring.c.963)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: mpi_alloc(160)
gpg: DBG: mpi_alloc_limb_space(160)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: free_packet() type=6
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: fd_cache_open (/home/a510373/.gnupg/pubring.gpg) not cached
gpg: DBG: iobuf-3.0: open `/home/a510373/.gnupg/pubring.gpg' fd=6
gpg: DBG: iobuf-3.0: underflow: req=8192
gpg: DBG: iobuf-3.0: underflow: got=1819 rc=0
gpg: DBG: parse_packet(iob=3): type=6 length=418 (parse.keyring.c.382)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: mpi_alloc(160)
gpg: DBG: mpi_alloc_limb_space(160)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: parse_packet(iob=3): type=13 length=37 (parse.keyring.c.382)
gpg: DBG: parse_packet(iob=3): type=2 length=94 (parse.keyring.c.382)
gpg: DBG: mpi_alloc(160)
gpg: DBG: mpi_alloc_limb_space(160)
gpg: DBG: mpi_alloc(160)
gpg: DBG: mpi_alloc_limb_space(160)
gpg: DBG: parse_packet(iob=3): type=12 length=2 (parse.keyring.c.382)
gpg: DBG: parse_packet(iob=3): type=14 length=269 (parse.keyring.c.382)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: mpi_alloc(32)
gpg: DBG: mpi_alloc_limb_space(32)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: parse_packet(iob=3): type=2 length=73 (parse.keyring.c.382)
gpg: DBG: mpi_alloc(160)
gpg: DBG: mpi_alloc_limb_space(160)
gpg: DBG: mpi_alloc(160)
gpg: DBG: mpi_alloc_limb_space(160)
gpg: DBG: parse_packet(iob=3): type=12 length=2 (parse.keyring.c.382)
gpg: DBG: parse_packet(iob=3): type=6 length=418 (parse.keyring.c.382)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: mpi_alloc(160)
gpg: DBG: mpi_alloc_limb_space(160)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: mpi_alloc(1024)
gpg: DBG: mpi_alloc_limb_space(1024)
gpg: DBG: free_packet() type=6
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: iobuf-3.0: close `file_filter(fd)'
gpg: DBG: /home/a510373/.gnupg/pubring.gpg: close fd 6
gpg: DBG: fd_cache_close (/home/a510373/.gnupg/pubring.gpg) new slot created
gpg: DBG: build_packet() type=6
gpg: out of memory while allocating 8192 bytes
Please find the truss outputs run on gpg on the server where it is working and where it isnt.
Truss output - Server where gpg is working:
$ t-self --yes --encrypt-files sample3 > truss.out <
execve("/usr/bin/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("/etc/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("/usr/sbin/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("/usr/ucb/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("/home/adwodadm/bin/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("/usr/bin/X11/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("/sbin/gpg", 0x2FF22C54, 0x2000FB38) argc: 7
execve("./gpg", 0x2FF22C54, 0x2000FB38) argc: 7
_exit(127)
Truss output - Server where gpg is NOT working:
home> truss /opt/TWWfsw/bin/gpg --verbose --default-recipient-self --yes --encrypt-files sample2 > truss.out
execve("/usr/bin/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/etc/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/usr/sbin/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/usr/ucb/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/home/adwodadm/bin/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/usr/bin/X11/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/sbin/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("./gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("/datastage/adwprod_753_app/Ascential/DataStage/DSEngine/bin/gpg", 0x2FF2253C, 0x2000FB38) argc: 7
execve("./gpg", 0x2FF2253C, 0x2000FB38) argc: 7
truss: 0915-007 Lost control of process.
gpg: using secondary key D8C00BBB instead of primary key 97DBC284
gpg: reading from `sample2'
gpg: writing to `sample2.gpg'
gpg: ELG-E/AES256 encrypted for: "D8C00BBB test01 (test ods) gpg: out of memory while allocating 8192 bytes