Delphix Toolkits (dxToolkit and dxmToolkit)

 View Only
Expand all | Collapse all

Trouble running the dxtoolkit commands on a Linux machine

  • 1.  Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-12-2023 05:08:00 PM

    Hi everyone,

    I'm having trouble running the dxtoolkit command on my Linux machine. I followed these steps:

    1. I checked the current working directory.
    2. I created a directory called delphix.
    3. I changed to the delphix directory.
    4. I used the wget command to download the dxtoolkit2-v2.4.20-redhat8-installer.tar.gz file from GitHub.
    5. I used the gunzip command to unzip the file.
    6. I used the tar command to extract the files from the archive.
    7. I changed to the dxtoolkit2 directory.
    8. I used the ls command to list the contents of the directory.
    9. I used the sh command to run the install.sh script.
    10. I created a file called dxtools.conf and modified the following entry:
      {

        "data":[
            {
                "hostname" : "xxxxx.xxx.com",
                "ip_address" : "xxx.1xx.xxx.xxx",
                "username" : "username",
                "password" : "pwd",
                "port" : "80",
                "default" : "false",
                "encrypted" : "false",
                "timeout" : "60"
            }
        ]
    }

    1. I ran the following command:
    ./dx_get_appliance -all

    Actual Output: Command did not return any output. DX Toolkit is installed and that the source_dir setting in the dxtools.conf file is correct.

    I hope this is more clear. Let me know if you have any other questions.

    command not working


    ------------------------------
    Nagalakshmi Thangavelu
    Delphix Community Members
    ------------------------------


  • 2.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-12-2023 05:19:00 PM

    Hello,

    If you run the command with the "--debug" argument, does it give you more information on the failure? Can you post the output of running with that flag?

    Thanks,

    Neal



    ------------------------------
    Neal Stack
    Senior Principal Technical Support Engineer
    Delphix
    ------------------------------



  • 3.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-13-2023 06:41:00 AM

    Hi Neal,

    To follow up on our conversation about the debugging issue. I've attached the output from the -debug command, which I ran on the Linux machine.

    image

    I followed the same steps on my Windows machine, and the command worked as expected. However, I'm not getting the same results on the Linux machine.

    Can you please take a look at the output and let me know if you have any ideas?



    ------------------------------
    Nagalakshmi Thangavelu
    Delphix Community Members
    ------------------------------



  • 4.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-18-2023 09:15:00 AM

    Hello Nagalaxmi, 

    if you are using HTTPS then use port 443

    for HTTP check with 8080 or 80

    also can you try with this command and send logs

    ./dx_get_appliance -d ENGINE -configfile PATH_OF_CONF_FILE -debug



    ------------------------------
    Pankaj Asegaonkar
    Masking/Virtualization Specialist
    +91 9689996500
    ------------------------------



  • 5.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-18-2023 09:31:00 AM

    Thanks Pankaj . Tried both not working



    ------------------------------
    Nagalakshmi Thangavelu
    Community Member
    The TJX Companies, Inc.
    ------------------------------



  • 6.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-18-2023 09:43:00 AM

    Hello,

    What version are of Linux are you using? Can you run "cat /etc/*release" and provide the results?

    Can you run the following three commands and provide the results?

    ls -la dx_get_appliance 

    ls -la runner

    ldd runner



    ------------------------------
    Neal Stack
    Senior Principal Technical Support Engineer
    Delphix
    ------------------------------



  • 7.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-18-2023 09:57:00 AM

    Hi Neal , Thank you . Please see the below result

    image

     

    [ @  dxtoolkit2]$ ls -la dx_get_appliance
    lrwxrwxrwx 1 XXXXX uxgenusr 6 Sep  8 12:49 dx_get_appliance -> runner
    [ @  dxtoolkit2]$ ls -la runner
    -rwxr-x--- 1 XXXXXX uxgenusr 13267585 Jul 12 10:42 runner
    [ @  dxtoolkit2]$ ldd runner
            linux-vdso.so.1 =>  (0x00007fff8890c000)
            libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f64d6f05000)
            libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f64d6ceb000)
            libdl.so.2 => /lib64/libdl.so.2 (0x00007f64d6ae7000)
            libm.so.6 => /lib64/libm.so.6 (0x00007f64d67e5000)
            libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f64d65ae000)
            libutil.so.1 => /lib64/libutil.so.1 (0x00007f64d63ab000)
            libc.so.6 => /lib64/libc.so.6 (0x00007f64d5fdd000)
            /lib64/ld-linux-x86-64.so.2 (0x00007f64d7572000)
            libfreebl3.so => /lib64/libfreebl3.so (0x00007f64d5dda000)
    [ @  dxtoolkit2]$ cat /etc/*release
    NAME="Red Hat Enterprise Linux Server"
    VERSION="7.9 (Maipo)"
    ID="rhel"
    ID_LIKE="fedora"
    VARIANT="Server"
    VARIANT_ID="server"
    VERSION_ID="7.9"
    PRETTY_NAME="Red Hat Enterprise Linux"
    ANSI_COLOR="0;31"
    CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
    HOME_URL="https://www.redhat.com/"
    BUG_REPORT_URL="https://bugzilla.redhat.com/"

     

    REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
    REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
    REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
    REDHAT_SUPPORT_PRODUCT_VERSION="7.9"
    Red Hat Enterprise Linux Server release 7.9 (Maipo)
    Red Hat Enterprise Linux Server release 7.9 (Maipo)



    ------------------------------
    Nagalakshmi Thangavelu
    Community Member
    The TJX Companies, Inc.
    ------------------------------



  • 8.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-18-2023 10:20:00 AM

    Hello,

    It looks like you have RedHat 7.9 but you mentioned in your first post that you downloaded and installed "dxtoolkit2-v2.4.20-redhat8-installer.tar.gz" which is for RedHat 8.

    Can you try downloading and installing the one for RedHat 7 ( https://github.com/delphix/dxtoolkit/releases )?

    Thanks,

    Neal



    ------------------------------
    Neal Stack
    Senior Principal Technical Support Engineer
    Delphix
    ------------------------------



  • 9.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-19-2023 05:45:00 AM

    Hello Nagalakshmi

    Did you try with RedHat 7 ( https://github.com/delphix/dxtoolkit/releases )?

    if you are facing issue kindly let me know



    ------------------------------
    Pankaj Asegaonkar
    Masking/Virtualization Specialist
    +91 9689996500
    ------------------------------



  • 10.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-19-2023 09:10:00 AM

    Hi Neal/Pankaj,

      Thank you. Install Redhat 7. Still the issue not resolved.



    ------------------------------
    Nagalakshmi Thangavelu
    Community Member
    The TJX Companies, Inc.
    ------------------------------



  • 11.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-19-2023 09:22:00 AM

    Hello,

    Did you rerun the "install.sh"? After rerunning the "install.sh" script, please provide the output from these commands:

    ls -la dx_get_appliance 

    ls -la runner

    ldd runner



    ------------------------------
    Neal Stack
    Senior Principal Technical Support Engineer
    Delphix
    ------------------------------



  • 12.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-19-2023 09:31:00 AM
    Edited by Michael Torok 09-19-2023 10:06:30 AM
    Can you do
    Chmod 777 for dxtookit2 folder and try 



  • 13.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-19-2023 10:40:00 AM

    Hello,

    One other thought if the previous commands and changing permissions don't help. You might try the Linux "strace" utility to see where things are going wrong...

    [sybase@nealrh83 dxtoolkit2]$ strace -f -o strace.out ./dx_get_appliance --engine neal1400

    Appliance            Status   Version  Total (GB) Used (GB)  Free (GB)  PctUsed(%) dSource# VDBs#    Total Ob 
    -------------------- -------- -------- ---------- ---------- ---------- ---------- -------- -------- -------- 
    neal1400             UP       14.0.0.0 21.80      7.30       14.50      33.49      4        5        9        
    [sybase@nealrh83 dxtoolkit2]$ grep test2
    ^C
    [sybase@nealrh83 dxtoolkit2]$ pwd
    /tmp/test2/dxtoolkit2
    [sybase@nealrh83 dxtoolkit2]$ strace -f -o strace.out ./dx_get_appliance --engine neal1400

    Appliance            Status   Version  Total (GB) Used (GB)  Free (GB)  PctUsed(%) dSource# VDBs#    Total Ob 
    -------------------- -------- -------- ---------- ---------- ---------- ---------- -------- -------- -------- 
    neal1400             UP       14.0.0.0 21.80      7.30       14.50      33.49      4        5        9       

    [sybase@nealrh83 dxtoolkit2]$ grep dxtoolkit2 strace.out

    425866 getcwd("/tmp/test2/dxtoolkit2", 4095) = 22

    425866 openat(AT_FDCWD, "/tmp/test2/dxtoolkit2/./dx_get_appliance", O_RDONLY) = 6

    425866 openat(AT_FDCWD, "/tmp/test2/dxtoolkit2/./dx_get_appliance", O_RDONLY) = 6

    425866 openat(AT_FDCWD, "/tmp/test2/dxtoolkit2/./dx_get_appliance", O_RDONLY) = 6

    425866 openat(AT_FDCWD, "/tmp/test2/dxtoolkit2/./dx_get_appliance", O_RDONLY) = 6

    425866 stat("/tmp/test2/dxtoolkit2/./dx_get_appliance", {st_mode=S_IFREG|0755, st_size=13242818, ...}) = 0

    425866 stat("/tmp/test2/dxtoolkit2/./dx_get_appliance", {st_mode=S_IFREG|0755, st_size=13242818, ...}) = 0

    425866 getcwd("/tmp/test2/dxtoolkit2", 4095) = 22

    425866 readlink("/tmp/test2/dxtoolkit2/dx_get_appliance", "runner", 4095) = 6

    425866 readlink("/tmp/test2/dxtoolkit2/runner", 0x7fffffffb740, 4095) = -1 EINVAL (Invalid argument)

    425866 lstat("/tmp/test2/dxtoolkit2", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0

    425866 lstat("/tmp/test2/dxtoolkit2", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0

    425866 openat(AT_FDCWD, "/tmp/test2/dxtoolkit2/dxtools.conf", O_RDONLY) = 8



    ------------------------------
    Neal Stack
    Senior Principal Technical Support Engineer
    Delphix
    ------------------------------



  • 14.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-19-2023 12:41:00 PM

    Hi Neal,

      Please see below result from trace.

    28394 write(4, "d UTF-8 string in '%c' format in"..., 32768) = 32768
    128394 write(4, "A\v\2\271\n\16(G\16 A\16\30B\16\20B\16\10K\vN\16(D\16 A\16\30B\16"..., 32768) = 32768
    128394 write(4, "\0F\16\20\214\2D\16\30\206\3D\16 \203\4e\n\16\30A\16\20E\16\10G\vN\16\30A"..., 32768) = 32768
    128394 write(4, "\16\20B\16\10\0\0\0(\0\0\0\244&\1\0000\373\360\377\326\0\0\0\0E\16\20\206\2D\16"..., 32768) = 32768
    128394 write(4, "\16 B\16\30B\16\20B\16\10G\v\0\0\0X\0\0\0\254\246\1\0\250i\366\377\324\5\0\0"..., 32768) = 32768
    128394 write(4, "\321\351\35\0\0\0\0\0\334\351\35\0\0\0\0\0\346\351\35\0\0\0\0\0\362\351\35\0\0\0\0\0"..., 32768) = 32768
    128394 write(4, "GA*GOW\0*E\0\0\0\6\0\0\0\0\0\0\0\0\1\0\0GA*\2\3\0\0\0"..., 32768) = 32768
    128394 write(4, "\247\202\367\214\311\377\374\35\16\300t|\"\217\243\222\371b\262\215q\206u\376'\317jR\360\355\253\272"..., 2760) = 2760
    128394 close(4)                         = 0
    128394 chmod("/tmp/par-67616e3030303231/cache-1be22e9b0a8a8cc99ae4a6146241a3b5685e7ffc/libperl.so.5.26.128394", 0750) = 0
    128394 rename("/tmp/par-67616e3030303231/cache-1be22e9b0a8a8cc99ae4a6146241a3b5685e7ffc/libperl.so.5.26.128394", "/tmp/par-67616e3030303231/cache-1be22e9b0a8a8cc99ae4a6146241a3b5685e7ffc/libperl.so.5.26") = 0
    128394 execve("/tmp/par-67616e3030303231/cache-1be22e9b0a8a8cc99ae4a6146241a3b5685e7ffc/dx_get_appliance", ["/tmp/par-67616e3030303231/cache-"..., "--engine", "zdlfx002q.tjx.com"], 0x5631d26be650 /* 36 vars */) = -1 EACCES (Permission denied)
    128394 exit_group(255)                  = ?



    ------------------------------
    Nagalakshmi Thangavelu
    Community Member
    The TJX Companies, Inc.
    ------------------------------



  • 15.  RE: Trouble running the dxtoolkit commands on a Linux machine

    Posted 09-19-2023 01:01:00 PM

    Hello,

    Can you email the complete "strace.out" directly? My email address is in my profile on this site.

    Then also run the command with debug level 3 ( ./dx_get_appliance --engine neal1400 -debug 3). This will create a directory with lots of files:
    [sybase@nealrh83 dxtoolkit2]$ ls -la debug_neal1400/
    total 204
    drwxrwxr-x. 3 sybase sybase  4096 Sep 19 13:59 .
    drwxr-xr-x. 3 sybase sybase  4096 Sep 19 13:59 ..
    -rw-rw-r--. 1 sybase sybase  1698 Sep 19 13:59 about.json
    -rw-rw-r--. 1 sybase sybase 14421 Sep 19 13:59 database.json

    ...etc...

    Please tar up the entire directory and send it to me as well.

    Thanks,

    Neal



    ------------------------------
    Neal Stack
    Senior Principal Technical Support Engineer
    Delphix
    ------------------------------