Delphix Products

 View Only
  • 1.  Library issue with dxtoolkit2 version 2.3.7 and 2.38 - Dependent module /usr/lib/libcrypto.so could not be loaded.

    Posted 12-19-2018 10:36:00 PM
    Hi, 
    I am trying out automating VDB provisioining. 
    I have engine version 5.1.9 and  had  Toolkit version 2.3.2 . 
    I am executing the tollkit from AIX to provision an Oracle VDB on to Oracle platform. 

    Command for VDB creaton was :
    /oraback01/admin/delphix_scripts/DX_KIT/dxtoolkit2/dx_provision_vdb -engine app1002p \
     -sourcename WPRNSAC1 -group SAC_VDB_TRAINING -targetname V_TEST environment uora1009n \
     -dbname V_TEST -envinst /opt/oracle/product/12.1.0.2 -type oracle \
     -mntpoint /mnt/delphix -envUser svcdpx -listeners BSCLISTENER \
     -archivelog no -redoGroup 5 -redoSize 250 -autostart yes

    It failed with an error:
    Error: source->allowAutoVDBRestartOnHostReboot->The field "{0}" is required.

    It looks like -autostart=yes s not getting translated to source.allowAutoVDBRestartOnHostReboot properly. 

    So, I downloaded the version 2.3.7 and 2.3.8 of the toolkit and tried again. 
    This time I am gettign an error :
    0509-150   Dependent module /usr/lib/libcrypto.so could not be loaded.
            0509-022 Cannot load module /usr/lib/libcrypto.so.
            0509-026 System error: Cannot run a file that does not have a valid format.
            0509-022 Cannot load module /tmp/par-737663647078/cache-5bc4fc3becf630d1a27dbd5d2730a625d4d4f61b/8b879676.so.
            0509-150   Dependent module /tmp/par-737663647078/cache-5bc4fc3becf630d1a27dbd5d2730a625d4d4f61b/8b879676.so could not be loaded. at /loader/HASH(0x110122898)/DynaLoader.pm line 193.


    I tried setting up the LD_LIBRARY_PATH to include /usr/bin and the libraries are in that location.  It didn't make any difference. 

    Has anyone faces it? Any suggestions ? 



  • 2.  RE: Library issue with dxtoolkit2 version 2.3.7 and 2.38 - Dependent module /usr/lib/libcrypto.so could not be loaded.
    Best Answer

    Posted 12-20-2018 11:40:00 AM
    Hello,

    Newest version of AIX was compiled with a newest version of OpenSSL library 1.0.2n.
    If this version is not available on your AIX installation, please download a file called dxtoolkit2-2.3.8.1-aix-openssl which include a openssl libraries and should work on any AIX.

    https://github.com/delphix/dxtoolkit/releases/download/v2.3.8.1/dxtoolkit2-2.3.8.1-aix-openssl.tar.g...


    regards,
    Marcin



  • 3.  RE: Library issue with dxtoolkit2 version 2.3.7 and 2.38 - Dependent module /usr/lib/libcrypto.so could not be loaded.

    Posted 12-20-2018 08:01:00 PM
    Hi Marcin, 
      Thanks for your response. I doenloaded the package mentioned and used that. 
       I am still getting the same error as before. 

      0509-150   Dependent module /usr/lib/libcrypto.so could not be loaded.        0509-022 Cannot load module /usr/lib/libcrypto.so.
            0509-026 System error: Cannot run a file that does not have a valid format.
    .........





  • 4.  RE: Library issue with dxtoolkit2 version 2.3.7 and 2.38 - Dependent module /usr/lib/libcrypto.so could not be loaded.

    Posted 12-21-2018 08:33:00 AM
    Hello,

    This is strange and looks like it's still looking in library in standard place not a one included in file.

    Could  you please run this command with truss -o output.txt ./dx_xxxxxxxx
    where dx_xxxxx is your dxtoolkit command ? 

    And then run this command grep libcryp output.txt and send me output ? 

    Also try to delete /tmp/par-* directories before running new toolkit command.

    regards,
    Marcin



  • 5.  RE: Library issue with dxtoolkit2 version 2.3.7 and 2.38 - Dependent module /usr/lib/libcrypto.so could not be loaded.

    Posted 12-21-2018 09:25:00 PM
    Thanks Marcin. 

    Here it is :

    uorc372n:/oraback01/admin/delphix_scripts/DX_KIT> grep bcryp output.txt
    statx("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/libcrypto.a", 0x0000000110016208, 176, 0) E                                                                      rr#2  ENOENT
    kopen("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/libcrypto.a", O_WRONLY|O_CREAT|O_TRUNC, S_I                                                                      RUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) = 6
    chmod("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/libcrypto.a", 0100644) = 0
    utimes("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/libcrypto.a", 0x0FFFFFFFFFFFE580) = 0
    statx("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/inc/shlib/aix-64all-thread/libcrypto.a", 0x                                                                      0000000110016208, 176, 0) Err#2  ENOENT
    kopen("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/inc/shlib/aix-64all-thread/libcrypto.a", O_                                                                      WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) = 7
    chmod("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/inc/shlib/aix-64all-thread/libcrypto.a", 01                                                                      00644) = 0
    utimes("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/inc/shlib/aix-64all-thread/libcrypto.a", 0                                                                      x0FFFFFFFFFFFE580) = 0
    utimes("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/inc/shlib/aix-64all-thread/libcrypto.a", 0                                                                      x0000000000000000) = 0
    uorc372n:/oraback01/admin/delphix_scripts/DX_KIT> grep libcryp output.txt
    statx("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/libcrypto.a", 0x0000000110016208, 176, 0) Err#2  ENOENT
    kopen("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/libcrypto.a", O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRG                                                    RP|S_IWGRP|S_IROTH|S_IWOTH) = 6
    chmod("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/libcrypto.a", 0100644) = 0
    utimes("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/libcrypto.a", 0x0FFFFFFFFFFFE580) = 0
    statx("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/inc/shlib/aix-64all-thread/libcrypto.a", 0x0000000110016208,                                                     176, 0) Err#2  ENOENT
    kopen("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/inc/shlib/aix-64all-thread/libcrypto.a", O_WRONLY|O_CREAT|O_T                                                    RUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) = 7
    chmod("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/inc/shlib/aix-64all-thread/libcrypto.a", 0100644) = 0
    utimes("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/inc/shlib/aix-64all-thread/libcrypto.a", 0x0FFFFFFFFFFFE580)                                                     = 0
    utimes("/tmp/par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b/inc/shlib/aix-64all-thread/libcrypto.a", 0x0000000000000000)                                                     = 0

    ---------------------------------------------

    Last  few lines of the output.txt is 
    kload("/usr/lib/nls/loc/en_US__64", 128, "/tmp//par-737663647078/cache-bbf3859c7b016f4fc2ad59d9d438f0de7f34ae9b") = 648518346072922544
    _getpid()                                       = 21430752
    _getpid()                                       = 21430752
    _getpid()                                       = 21430752
    _getpid()                                       = 21430752
    lseek(5, 5631151, 0)                            = 5631151
    lseek(5, 0, 1)                                  = 5631151
    close(4)                                        = 0
    close(5)                                        = 0
    kfcntl(1, F_GETFL, 0x0000000013E50199)          = 67110914
    kfcntl(2, F_GETFL, 0x0000000013E50199)          = 67110914
    _exit(8)





  • 6.  RE: Library issue with dxtoolkit2 version 2.3.7 and 2.38 - Dependent module /usr/lib/libcrypto.so could not be loaded.

    Posted 01-02-2019 06:58:00 PM
    Any suggestion ?


  • 7.  RE: Library issue with dxtoolkit2 version 2.3.7 and 2.38 - Dependent module /usr/lib/libcrypto.so could not be loaded.

    Posted 01-03-2019 09:16:00 AM
    Hi,

    Based on the output provided - I can see it's looking for libcrypto file from /tmp directory. I don't any idea why it's complaining about /usr/lib/libcrypto lib during execution.

    Did you tried to delete all /tmp/par-* files and run again ?

    regards,
    Marcin


  • 8.  RE: Library issue with dxtoolkit2 version 2.3.7 and 2.38 - Dependent module /usr/lib/libcrypto.so could not be loaded.

    Posted 01-03-2019 10:56:00 PM
    /tmp/par* files all removed when I tried this. It didn't help.


  • 9.  RE: Library issue with dxtoolkit2 version 2.3.7 and 2.38 - Dependent module /usr/lib/libcrypto.so could not be loaded.

    Posted 01-04-2019 09:00:00 AM
    OK - Can you send me entire output.txt file ? 

    And also let me know which AIX version do you have and what openssl libs are installed ? 

    regards,
    Marcin