Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Fail extracting artifact zip file ...

    Scheduled Pinned Locked Moved Support
    buildmaster
    2 Posts 1 Posters 9 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Any suggestions on the below error (deploy artifact to Solaris server).
      TMP & SOURCE created OK on remote Solaris server.
      Failed during artifact unzip on same remote server.

      B-AUTH Release 7770020 Build 3 to XCQ
      Build Execution
      Status	Failed
      Initiated By	Admin on 4/23/2014 1:47:41 PM
      Promoted	4/16/2014 2:30:33 PM to XCQ by dmccaffr
      Execution Started	4/23/2014 1:47:41 PM
      Execution Ended	4/23/2014 1:48:46 PM
      Duration	1min 4.11s
      
      Failure Details
      Failed During: Action Group 1 ()
      . 
      AgentBasedAction Initialization Complete: 
      Temp Directory: /home/dmccaffr/_A3/_S4/TMP 
      Source Directory: /home/dmccaffr/_A3/_S4/WRK 
      Target Directory: /home/dmccaffr 
      Server: ACPXCQ (Id: 6) 
      Initializing action... 
      Initialization complete. Executing... 
      Preparing directories... 
      Attempting to get artifact associated with deployable ID: 4 
      Artifact for action group's deployable found at: C:\BuildMaster\Artifacts\3\777.0020\3\4\FILE.zip 
      Loading file from C:\BuildMaster\Artifacts\3\777.0020\3\4\FILE.zip... 
      Getting list of files in target path... 
      Getting list of files in artifact... 
      Determining which files need to be deployed... 
      1 files in artifact; 1 files have changed 
      Deploying files... 
      b1770001.zip 
      
      Extracting artifact zip file... 
      
      An unhandled exception occurred while executing this action: System.IO.IOException at Inedo.BuildMaster.Extensibility.Agents.Ssh.SshAgent.ExtractZipFile(String sourceFileName, String targetPath, Boolean overwrite) at Inedo.BuildMaster.Extensibility.Actions.Artifacts.DeployArtifactAction.DeployIncremental(AgentBase agent, String artifactPath, Boolean deleteInTarget) at Inedo.BuildMaster.Extensibility.Actions.Artifacts.DeployArtifactAction.Execute() at Inedo.BuildMaster.Extensibility.Actions.ActionBase.ExecuteInternal(IActionExecutionContext context, ExtensionConfigurerBase extensionConfigurer, Boolean resumeNextOnError, Boolean logErrorsAsWarnings)
      
      Product: BuildMaster  
      Version: 4.2.0
      
      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Thank you for posting the action log. When extracting the zip file, the deploy artifact action attempts to run the unzip program, is that program available on the server?

        Based on the log above, the exact command is:

        unzip -o "/home/dmccaffr/_A3/_S4/TMP/[artifactName].zip" -d "/home/dmccaffr"
        

        An IOException is thrown if the exit status returned is not equal to 0. Can you verify that running that command on the server above actually unzips the artifact, and that its exit code is 0?

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation