1 2 Previous Next 28 Replies Latest reply: Aug 15, 2008 9:45 AM by punisher46 RSS

    Failed to install package

    Apprentice

       

      Hi,

       

       

      since yesterday afternoon any push job that has a batch file comes up with "Failed to install package"

       

       

      I've also noticed that when the job tries to run on the client a dos windows flash's up?

       

       

      Now these jobs haven't changed and have been working perfect, just happend since yesterday?

       

       

      I've tried re-starting services etc but nothing changes.....any ideas?

       

       

      Log from 1 of the jobs

       

       

      Fri, 04 Jul 2008 12:32:48 processing of package is complete, result 0 (0x00000000 - code 0)

      Fri, 04 Jul 2008 12:32:51 File (
      gbr607sz002\apps$\deploy\CompassBackup\AdhocChanges\Install.cmd) is cached locally

      Fri, 04 Jul 2008 12:32:53 Downloading file
      gbr607sz002\apps$\deploy\CompassBackup\AdhocChanges\Install.cmd (87DRuQKfjutGrDicv4qfHw==, 5)

      Fri, 04 Jul 2008 12:32:53 Downloading file 1 of 4 from '
      gbr607sz002\apps$\deploy\CompassBackup\AdhocChanges\Install.cmd'

      Fri, 04 Jul 2008 12:32:53 Downloading file
      gbr607sz002\apps$\deploy\CompassBackup\AdhocChanges\CompassAdhocChanges.zip (Okok6V/21PtSMf8Cip6lmQ==, 5)

      Fri, 04 Jul 2008 12:32:53 Downloading file 2 of 4 from '
      gbr607sz002\apps$\deploy\CompassBackup\AdhocChanges\CompassAdhocChanges.zip'

      Fri, 04 Jul 2008 12:32:53 Downloading file
      gbr607sz002\apps$\deploy\CompassBackup\AdhocChanges\UNZIP.EXE (81suLWZBZ9iCgCgZctQO5A==, 5)

      Fri, 04 Jul 2008 12:32:53 Downloading file 3 of 4 from '
      gbr607sz002\apps$\deploy\CompassBackup\AdhocChanges\UNZIP.EXE'

      Fri, 04 Jul 2008 12:32:53 Downloading file
      gbr607sz002\apps$\deploy\CompassBackup\AdhocChanges\LPBuild.jpg (87b0S4eFrUSUJIU/02Jwdg==, 5)

      Fri, 04 Jul 2008 12:32:53 Downloading file 4 of 4 from '
      gbr607sz002\apps$\deploy\CompassBackup\AdhocChanges\LPBuild.jpg'

      Fri, 04 Jul 2008 12:32:53 Batch file Client Thread

      Fri, 04 Jul 2008 12:32:53 PackagePath:  http://\\gbr607sz002\apps$\deploy\CompassBackup\AdhocChanges\Install.cmd

      Fri, 04 Jul 2008 12:32:56 Custom Message : UNZIP: CompassAdhocChanges.zip

      Fri, 04 Jul 2008 12:32:56 Core name 'GBR607SZ002.retail-group.net:10.224.2.37' obtained from active task list

      Fri, 04 Jul 2008 12:32:56 Sending task status, cmd line -coreandip=GBR607SZ002.retail-group.net:10.224.2.37 -taskid=1517 -retcode=-1 "-message=UNZIP: CompassAdhocChanges.zip"

       

       

      Fri, 04 Jul 2008 12:32:57 Custom Message : Run Sync Changes Bat

      Fri, 04 Jul 2008 12:32:57 Core name 'GBR607SZ002.retail-group.net:10.224.2.37' obtained from active task list

      Fri, 04 Jul 2008 12:32:57 Sending task status, cmd line -coreandip=GBR607SZ002.retail-group.net:10.224.2.37 -taskid=1517 -retcode=-1 "-message=Run Sync Changes Bat"

       

       

      Fri, 04 Jul 2008 12:34:57

      Fri, 04 Jul 2008 12:34:57 Installation result 8DAC4002

      Fri, 04 Jul 2008 12:34:57 processing of package is complete, result -1918091262 (0x8dac4002 - code 16386)

       

       

      running 8.8

       

       

       

       

       

      Thanks

       

       

      Chris

       

       

        • 1. Re: Failed to install package
          zman Master
          • Is the batch installing a MSI package? I think 16386 is a MSI error.

          • Can you post your batch file/contents of zip?

           

          Looks like there is multiple files involved here (cmd, exe, zip, etc..) So is the app being installed and just reporting failed or is failing all together?

           

           

           

           

          • 2. Re: Failed to install package
            Apprentice

             

            @ECHO OFF

             

             

            Set TIMESTAMP=%DATE%-%TIME%

            Set TIMESTAMP=%TIMESTAMP:/=-%

            Set TIMESTAMP=%TIMESTAMP::=-%

            Set TIMESTAMP=%TIMESTAMP: =0%

             

             

            "C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="UNZIP: CompassAdhocChanges.zip"

            UNZIP.EXE -o CompassAdhocChanges.zip -d c:\compassadhocchanges

            If NOT "%ERRORLEVEL%"=="0" Goto FailedUnzip

             

             

            "C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="Run Sync Changes Bat"

            call C:\compassadhocchanges\bin\run_sync_changes_for_backup.bat

            If NOT "%ERRORLEVEL%"=="0" Goto FailedRun

             

             

            Goto END

             

             

            :FailedUnzip

            "C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="FAILED: UNZIP: CompassAdhocChanges.zip"

            ECHO %TIMESTAMP% - FAILED: Could not Unzip File >>C:\install\%COMPUTERNAME%AMSinstall.log

            Exit /B %ERRORLEVEL%

             

             

            :FailedRun

            "C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="FAILED: RUN: Sync Changes Batch"

            ECHO %TIMESTAMP% - FAILED: Run Sync Batch File >>C:\install\%COMPUTERNAME%AMSinstall.log

            Exit /B %ERRORLEVEL%

             

             

            :END

            "C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="SUCCESS"

            ECHO %TIMESTAMP% - SUCCESS: Compass ADHOC Changes Installed OK >>C:\install\%COMPUTERNAME%AMSinstall.log

            Exit /B %ERRORLEVEL%

             

             

            its a batch file, the preliminary job is a vbscript and the main is the batch file.

             

             

            The vbscript part works, just doesnt like the batch file that has been working previously

             

             

            • 3. Re: Failed to install package
              zman Master

               

              Hmmm, looks like it stops here:

               

               

              "C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="Run Sync Changes Bat"
              call C:\compassadhocchanges\bin\run_sync_changes_for_backup.bat
              If NOT "%ERRORLEVEL%"=="0" Goto FailedRun

               

               

              What is in  C:\compassadhocchanges\bin\run_sync_changes_for_backup.bat? Does this all work outside of LANDesk?

               

               

              • 4. Re: Failed to install package
                Apprentice

                 

                yeah works fine if run outside landesk, also runs from the run box in the remote control

                 

                 

                 

                 

                 

                doesnt seems to be just that batch file job, all i've tried so far are failling and start a dos box on the clients

                 

                 

                • 5. Re: Failed to install package
                  zman Master

                  So you are indicating that all jobs are failing on the client (batch, msi, exe, etc..) Have you tried reinstalling the client?

                  • 6. Re: Failed to install package
                    Apprentice

                     

                    MSI's and EXE's,vb's are ok

                     

                     

                    I've just re-installed the clients on the machines i'm running the scripts on and still dont work

                     

                     

                    so this is what i've done, tried it on a machine that has an agent which is 8.70.8.19 and the script works fine - try it on system which is the same but with an agent 8.80.1.18 and it fails?

                     

                     

                    • 7. Re: Failed to install package
                      zman Master

                      I would open up a case. In the mean time I would try and simply the package if you can. A vbscript, batch file, batch file calling another batch file, zip files, etc... I would try just using Autoitscript, or just plain package builder.

                      • 8. Re: Failed to install package
                        Apprentice

                         

                        Thanks for trying

                         

                         

                        I've logged a call - see where that gets me!

                         

                         

                        Cheers

                         

                         

                         

                         

                         

                        Chris

                         

                         

                        • 9. Re: Failed to install package
                          Apprentice

                          did someone change your job to run as "current user" instead of "local system" ? I have console users who like to mix things up for me on Mondays

                          • 10. Re: Failed to install package
                            Apprentice

                             

                            Thats what I originaly thought, but i've checked all the jobs and they are set to localuser

                             

                             

                            I've know they work on a previous agent that hasnt been upgraded, so I tried installing the old agent over the top of the 8.8 agent and deploying the job again - it gets totaly confused then as  it trys processing the job with sdistmsi.exe instead of sdistbat.exe and the job is a batch file one.

                             

                             

                            I'm just going to try and totaly uninstall the agent, then install the old agent again see if it works then...

                             

                             

                            (don't really want to uninstall 5,500 agents and re-deploy the older agent)

                             

                             

                            • 11. Re: Failed to install package
                              Apprentice

                               

                              Not sure if this helps anyone....kinda pulling my hair out

                               

                               

                              This first sdclient log was taken from a machine with an agent version of 8.70.8.19

                               

                               

                              Tue, 08 Jul 2008 21:16:29 File (
                              gbr607sz002\apps$\deploy\CompassSyncScript\RunManualSync.cmd) is not in cache

                              Tue, 08 Jul 2008 21:16:31 Downloading file
                              gbr607sz002\apps$\deploy\CompassSyncScript\RunManualSync.cmd (86rOJjCoxiGCUTWwaqB85g==, 4)

                              Tue, 08 Jul 2008 21:16:31 Downloading file 1 of 2 from '
                              gbr607sz002\apps$\deploy\CompassSyncScript\RunManualSync.cmd'

                              Tue, 08 Jul 2008 21:16:33 Downloading file
                              gbr607sz002\apps$\deploy\CompassSyncScript\sleep.exe (OWb7uhaEY/1Z++uqznELHA==, 4)

                              Tue, 08 Jul 2008 21:16:33 Downloading file 2 of 2 from '
                              gbr607sz002\apps$\deploy\CompassSyncScript\sleep.exe'

                              Tue, 08 Jul 2008 21:16:38 Batch file Client Thread

                              Tue, 08 Jul 2008 21:16:38 PackagePath:     http://\\gbr607sz002\apps$\deploy\CompassSyncScript\RunManualSync.cmd

                              Tue, 08 Jul 2008 21:16:39 Custom Message : Stop Sync

                              Tue, 08 Jul 2008 21:16:39 Core name '10.224.2.37:10.224.2.37' obtained from active task list

                               

                              Tue, 08 Jul 2008 21:16:40 Custom Message : SLEEP

                              Tue, 08 Jul 2008 21:16:40 Core name '10.224.2.37:10.224.2.37' obtained from active task list

                               

                              Tue, 08 Jul 2008 21:16:40 Custom Message : Run Sync

                              Tue, 08 Jul 2008 21:16:40 Core name '10.224.2.37:10.224.2.37' obtained from active task list

                               

                              Tue, 08 Jul 2008 21:19:48 Custom Message : Start Sync

                              Tue, 08 Jul 2008 21:19:48 Core name '10.224.2.37:10.224.2.37' obtained from active task list

                               

                              Tue, 08 Jul 2008 21:19:49 Custom Message : SUCCESS!

                              Tue, 08 Jul 2008 21:19:49 Core name '10.224.2.37:10.224.2.37' obtained from active task list

                               

                              Tue, 08 Jul 2008 21:19:49 Setting status for batch file to 0

                               

                              Tue, 08 Jul 2008 21:19:49 Batch file status of 0 obtained from shared memory

                              Tue, 08 Jul 2008 21:19:49 treating status as win32 HRESULT, updated value 008x

                              Tue, 08 Jul 2008 21:19:49 Bat file output :

                               

                              C:\Program Files\LANDesk\LDClient\sdmcache\apps$\deploy\CompassSyncScript>call "RunManualSync.cmd" 

                               

                               

                               

                              C:\Program Files\LANDesk\LDClient\sdmcache\apps$\deploy\CompassSyncScript>C:

                               

                               

                               

                              C:\Program Files\LANDesk\LDClient\sdmcache\apps$\deploy\CompassSyncScript>CD\

                               

                               

                               

                              C:\>xcopy sleep.exe c:\ /Y

                               

                              0 File(s) copied

                               

                               

                               

                              C:\>CD C:\CompassApp\Live\db\bin

                               

                               

                               

                              C:\CompassApp\live\db\bin>"C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="Stop Sync"

                               

                               

                               

                              C:\CompassApp\live\db\bin>CALL StopSyncSvc.cmd

                               

                               

                               

                              C:\CompassApp\live\db\bin>REM Command to stop Compass Data Sync Scheduling for BRCH7327-900000000001773

                               

                               

                               

                              C:\CompassApp\live\db\bin>dbsvc -x CoMPaSS-SyncScheduler_BRCH7327-900000000001773

                               

                              Adaptive Server Anywhere Service Utility Version 9.0.2.3267

                               

                              Service "CoMPaSS-SyncScheduler_BRCH7327-900000000001773" stop pending.

                               

                              Service "CoMPaSS-SyncScheduler_BRCH7327-900000000001773" was stopped successfully.

                               

                               

                               

                              C:\CompassApp\live\db\bin>If NOT "0" == "0" "C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="FAILED:Could Not Stop Sync"

                               

                               

                               

                              C:\CompassApp\live\db\bin>"C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="SLEEP"

                               

                               

                               

                              C:\CompassApp\live\db\bin>c:\SLEEP.exe 60"

                               

                               

                               

                              C:\CompassApp\live\db\bin>"C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="Run Sync"

                               

                               

                               

                              C:\CompassApp\live\db\bin>start /B /WAIT run_sync.cmd

                               

                              C:\CompassApp\live\db\bin\

                               

                              Sync Result Code is 0

                               

                               

                               

                              C:\CompassApp\live\db\bin>If NOT "0" == "0" "C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="FAILED:Could Not RUN Sync"

                               

                               

                               

                              C:\CompassApp\live\db\bin>"C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="Start Sync"

                               

                               

                               

                              C:\CompassApp\live\db\bin>CALL startSyncSvc.cmd

                               

                               

                               

                              C:\CompassApp\live\db\bin>REM Command to start Compass Data Sync Scheduling for BRCH7327-900000000001773

                               

                               

                               

                              C:\CompassApp\live\db\bin>dbsvc -u CoMPaSS-SyncScheduler_BRCH7327-900000000001773

                               

                              Adaptive Server Anywhere Service Utility Version 9.0.2.3267

                               

                              Service "CoMPaSS-SyncScheduler_BRCH7327-900000000001773" start pending.

                               

                              Service "CoMPaSS-SyncScheduler_BRCH7327-900000000001773" was started successfully.

                               

                               

                               

                              C:\CompassApp\live\db\bin>If NOT "0" == "0" "C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="FAILED:Could Not Start Sync"

                               

                               

                               

                              C:\CompassApp\live\db\bin>Goto END

                               

                               

                               

                              C:\CompassApp\live\db\bin>"C:\Program Files\LANDesk\LDClient\sdclient.exe" /msg="SUCCESS!"

                               

                               

                               

                              C:\CompassApp\live\db\bin>Exit /B 0

                               

                               

                               

                              C:\CompassApp\live\db\bin>"C:\Program Files\LANDesk\LDClient\sdclient.exe" /setbatchstatus=0

                               

                               

                              Tue, 08 Jul 2008 21:19:49 Installation result 0

                              Tue, 08 Jul 2008 21:19:49 processing of package is complete, result 0 (0x00000000 - code 0)

                               

                               

                               

                              second log is from an agent 8.80.1.18 - same job, same configuration

                               

                               

                               

                               

                               

                              Tue, 08 Jul 2008 21:16:26 File (
                              gbr607sz002\apps$\deploy\CompassSyncScript\RunManualSync.cmd) is not in cache

                              Tue, 08 Jul 2008 21:16:28 Downloading file
                              gbr607sz002\apps$\deploy\CompassSyncScript\RunManualSync.cmd (86rOJjCoxiGCUTWwaqB85g==, 4)

                              Tue, 08 Jul 2008 21:16:28 Downloading file 1 of 2 from '
                              gbr607sz002\apps$\deploy\CompassSyncScript\RunManualSync.cmd'

                              Tue, 08 Jul 2008 21:16:28 The file
                              gbr607sz002\apps$\deploy\CompassSyncScript\RunManualSync.cmd (4 levels) was not in the TMC cache.

                              Tue, 08 Jul 2008 21:16:28 The file
                              gbr607sz002\apps$\deploy\CompassSyncScript\RunManualSync.cmd (4 levels) was not in the TMC cache.

                              Tue, 08 Jul 2008 21:16:30 Downloading file
                              gbr607sz002\apps$\deploy\CompassSyncScript\sleep.exe (OWb7uhaEY/1Z++uqznELHA==, 4)

                              Tue, 08 Jul 2008 21:16:30 Downloading file 2 of 2 from '
                              gbr607sz002\apps$\deploy\CompassSyncScript\sleep.exe'

                              Tue, 08 Jul 2008 21:16:30 The file
                              gbr607sz002\apps$\deploy\CompassSyncScript\sleep.exe (4 levels) was not in the TMC cache.

                              Tue, 08 Jul 2008 21:16:30 The file
                              gbr607sz002\apps$\deploy\CompassSyncScript\sleep.exe (4 levels) was not in the TMC cache.

                              Tue, 08 Jul 2008 21:16:33 Batch file Client Thread

                              Tue, 08 Jul 2008 21:16:33 PackagePath:     http://\\gbr607sz002\apps$\deploy\CompassSyncScript\RunManualSync.cmd

                              Tue, 08 Jul 2008 21:16:36 Custom Message : Stop Sync

                              Tue, 08 Jul 2008 21:16:36 Core name '10.224.2.37:10.224.2.37' obtained from active task list

                              Tue, 08 Jul 2008 21:16:36 Sending task status, cmd line -coreandip=10.224.2.37:10.224.2.37 -taskid=1142 -retcode=-1 "-message=Stop Sync" "-ldap=CN=Compass User,OU=PMR-Compass,OU=Pharmacy Users,OU=GB Pharmacy,OU=GB,DC=retail-group,DC=net"

                               

                              Tue, 08 Jul 2008 21:16:38 Custom Message : SLEEP

                              Tue, 08 Jul 2008 21:16:38 Core name '10.224.2.37:10.224.2.37' obtained from active task list

                              Tue, 08 Jul 2008 21:16:38 Sending task status, cmd line -coreandip=10.224.2.37:10.224.2.37 -taskid=1142 -retcode=-1 "-message=SLEEP" "-ldap=CN=Compass User,OU=PMR-Compass,OU=Pharmacy Users,OU=GB Pharmacy,OU=GB,DC=retail-group,DC=net"

                               

                              Tue, 08 Jul 2008 21:18:38

                              Tue, 08 Jul 2008 21:18:38 Installation result 8DAC4002

                              Tue, 08 Jul 2008 21:18:38 processing of package is complete, result -1918091262 (0x8dac4002 - code 16386)

                               

                               

                               

                               

                               

                              Kinda totaly different?

                               

                               

                               

                               

                               

                               

                               

                               

                              • 12. Re: Failed to install package
                                ahe Expert

                                Hello,

                                 

                                can you check the members of the local administrators group? Are they identical?

                                 

                                 

                                What's happen if you delete all the sdclient.exe lines? For testing you can write errorlevels in a log file... (s. Understanding Batch File Distribution Packages)

                                 

                                 

                                 

                                 

                                Regards

                                Axel

                                • 13. Re: Failed to install package
                                  Apprentice

                                  both machines are identical apart from the agent versions

                                  • 14. Re: Failed to install package
                                    zman Master

                                    Any word from LANDesk? Also, have you tried to just create a very simple batch (e.g., just runs notepad or fires off a patch) and see if it works? My gut feeling is that for some reason it can't handle the complexity of your batch file.

                                    1 2 Previous Next