Development and Pipeline

Development and Pipeline

Development and Pipeline

Connecting mainframe application developers to discuss efficiently creating and maintaining z/OS applications

 View Only
  • 1.  Error extracting tarball: checksum error on tape (got 38cd, expected 0)

    Posted Wed December 11, 2024 09:27 AM

    Im getting an error message when attempting to deploy a package. In this instance, the package was downloaded from Azure Artifacts (stored as a tarball). When using Wazi Deploy, I get the following error:

    2024-11-21T15:01:25.4522800Z wazideploy-generate --deploymentMethod /opt/dbb/dbb-utils/wazi/deploymentMethods/staticDeploy.yml --deploymentPlan /u/build/deploy/deployPkgDir/deploymentPlan.yaml --packageInputFile /u/build/deploy/mainframe-source-sandbox.tar --deploymentPlanReport /u/build/deploy/deployPkgDir/deploy-logs/deployment-plan-report.html
    2024-11-21T15:01:25.4523139Z 
    2024-11-21T15:01:26.2049850Z * Read the deployment method from: /opt/dbb/dbb-utils/wazi/deploymentMethods/staticDeploy.yml
    2024-11-21T15:01:26.2050323Z * Build the deployment plan from the deployment method with the deployment plan extension: WdDeploymentStateExtension
    2024-11-21T15:01:26.2050727Z Traceback (most recent call last):
    2024-11-21T15:01:26.2051057Z   File "/usr/lpp/IBM/cyp/v3r12/pyz/bin/wazideploy-generate", line 8, in <module>
    2024-11-21T15:01:26.2051344Z     sys.exit(main())
    2024-11-21T15:01:26.2051603Z              ^^^^^^
    2024-11-21T15:01:26.2051883Z   File "<wazideploy-3.0.2.1>/wazideploy/util/wd.py", line 30, in main
    2024-11-21T15:01:26.2052204Z   File "<wazideploy-3.0.2.1>/wazideploy/manager/state/deployment_state_manager.py", line 483, in build
    2024-11-21T15:01:26.2052538Z   File "<wazideploy-3.0.2.1>/wazideploy/manager/state/deployment_state_manager.py", line 644, in __build__
    2024-11-21T15:01:26.2052885Z   File "<wazideploy-3.0.2.1>/wazideploy/manager/state/deployment_state_manager.py", line 544, in __process_package_input_files__
    2024-11-21T15:01:26.2053550Z RuntimeError: FATAL: cannot unpack tar file /u/dbbbuild/deploy/mainframe-source-sandbox.tar CompletedProcess(args=['tar', '-xf', '/u/dbbbuild/deploy/mainframe-source-sandbox.tar', '-L', 'T', '-C', '/tmp/tmp25rftg6d/package'], returncode=1, stdout='', stderr='tar: checksum error on tape (got 38cd, expected 0)\n\n')
    2024-11-21T15:01:26.2055997Z 
    2024-11-21T15:01:26.7581319Z wazideploy-generate.sh: [ERROR] Unable to Generate Deployment Plan with Wazi Deploy. rc=1
    Looking deeper, if I try to extract out the tar file manually, I get the error:

    tar: checksum error on tape (got 38cd, expected 0)

    This tarball was packaged using the DBB utils PackageBuildOutputs.groovy. If we immediately deploy the package (without sending to Azure Artifacts), we can successfully deploy the artifacts. If we donwload from Azure, we get the error above. Is anyone aware of issues with storing artifacts with Azure?



    ------------------------------
    Kenny Smith
    Principal Consultant
    Strongback Consulting
    Lake Helen
    3862328746
    ------------------------------


  • 2.  RE: Error extracting tarball: checksum error on tape (got 38cd, expected 0)

    Posted Fri February 14, 2025 11:17 AM

    Hi,

    In your case, the file gets corrupted in the upload or download process from Azure.

    Regards

    Jean-Yves BAUDY



    ------------------------------
    JEAN-YVES BAUDY
    ------------------------------



  • 3.  RE: Error extracting tarball: checksum error on tape (got 38cd, expected 0)

    Posted 26 days ago

    Hi, 

    I get the same issue with nexus. What was the resolution? 

    When i download the same file from nexus using curl i can extract it using tar. 

    The difference in my case is the tagging. 

    Using curl the download file has : 

    t ISO8859-1   T=on 

    Wazi has 

    - untagged   

    when i tag the wazi file unpack works.



    ------------------------------
    Marcel Bischofberger
    ------------------------------



  • 4.  RE: Error extracting tarball: checksum error on tape (got 38cd, expected 0)

    Posted 26 days ago

    I'll look a this today



    ------------------------------
    JEAN-YVES BAUDY
    ------------------------------



  • 5.  RE: Error extracting tarball: checksum error on tape (got 38cd, expected 0)

    Posted 26 days ago

    I can't reproduce. Maybe a direct call can help. In the meanwhile, can I have:

    • wazideploy-generate -v
    • nexus version

    regards



    ------------------------------
    JEAN-YVES BAUDY
    ------------------------------



  • 6.  RE: Error extracting tarball: checksum error on tape (got 38cd, expected 0)

    Posted 26 days ago

    I need python3 -V output also



    ------------------------------
    JEAN-YVES BAUDY
    ------------------------------



  • 7.  RE: Error extracting tarball: checksum error on tape (got 38cd, expected 0)

    Posted 25 days ago

    As requested the version information, we can have a call next week. 

    IBM Open Enterprise SDK for Python 3.12.8

    wazideploy-generate -v
    Version: 3.0.4
    Build Number: 2940
    Build Date: Fri Feb 14 13:58:15 UTC 2025

    Nexus Version :

    Version 3.70.1-02
    Edition PRO
    Build Revision 07609904e8b20864cc6147d19aed2fcd9f36e61b
    Build Timestamp 2024-07-11-0055-20393



    ------------------------------
    Marcel Bischofberger
    ------------------------------