6 Replies Latest reply on Apr 28, 2017 9:22 AM by JoeDrwiega

    Why is the console reporting error 1110 & failed while "result" shows successful?

    FormerAltirisGuy Apprentice

      Our LANdesk environment has grown over the years and was managed by different people...Now, I'm in charge.

      I created a universal PowerShell install/uninstall framework. It exits with either 0, 3010, 3011 or with any other error code that the installer returns.

       

      But why does the console report "failed" when it shows me my custom success message for error code 0 or 3010?????

      I'm running a deployment on 311 clients but only 99 report success. 68 ran successfully but report error 1110. Despite showing column "result" = successful within the same view because of 0/3010. Somehow these error codes are later replaced/overwritten by 1110 so that the console reports failed. Why? Why? Why?

      1.PNG

       

      It DOES work, too. But not always....

      3.PNG

       

      That's my return code template:

      2.PNG

       

      Any hint is very appreciated.

      I'm on 9.6 sp1 but cannot upgrade.

        • 1. Re: Why is the console reporting error 1110 & failed while "result" shows successful?
          JoeDrwiega SupportEmployee

          What type of package is this and what type of distribution are you using? This error is generally for the agent being Off: Agent Return Codes

          Also check the client log for your software distro: Log file locations by LANDesk component for 9.x

          Can you try this to be sure the agent is connected:

          From an admin cmd prompt navigate to the ManagementSuite directory location and execute:

          pds2dis.exe ping ip_address_of_your_target

          • 2. Re: Why is the console reporting error 1110 & failed while "result" shows successful?
            FormerAltirisGuy Apprentice

            Hello Joe

            Thanks for your reply.

             

            It is a batch file package. It's running a powershell from a batch file because if you run the powershell directly, the user gets a message of the "interactive services detection" service.

            And yes I know what the error 1110 means, but these clients are not OFF, they installed successfully.

            Task type is always "policy-supported push".

             

            Here's the log of a client:

            Wed, 12 Apr 2017 17:40:01

            Wed, 12 Apr 2017 17:40:01 Bat file output :

             

             

            C:\Program Files (x86)\LANDesk\LDClient\sdmcache\packages$\Winzip\21.0\>call "install.cmd" 

             

             

            Running PowerShell Version: 2.0

            Detecting Application...

            Current WinZip 21.0 Version: 21.0.12288 *** not found ***. Continuing...

            Running UniversalUninstaller with Arguments: WinZip* 0 SHOW_WEBPAGE=0

            Running PowerShell Version: 2.0

            Looking up "WinZip*"...

            Checking if process "Winzip*" is running...

            Removing WinZip 15.0...

            Uninstalled successfully!

            End of UniversalUninstaller...

            Uninstall was successful or nothing to uninstall, continuing!

            UserNotify: 0 / Reboot: 0

            Checking if process "Winzip*" is running...

            Installing WinZip 21.0...

            Installed successfully!

            UserNotify: 0 / Reboot: 0

            Running additional commands...

            Copying license file...

             

             

            Wed, 12 Apr 2017 17:40:01 Installation result DB50000

            Wed, 12 Apr 2017 17:40:01 Rebooting system if needed

            Wed, 12 Apr 2017 17:40:09 processing of package is complete, result 229965824 (0x0db50000 - code 0)

             

            And that shows the console:

            4.PNG

             

            I don't get it why the console shows my CUSTOM "Result" message for ErrorCode 0/3010/3011, but at the same time reports "Return Code" 1110 with "Status" Failed when it was actually successful.

            I don't know what the other guy before me did to that server.

             

            The actual default return code template looks like this:

            5.PNG

            Everything is a success with message "failed". Doesn't make sense, does it?

            But I changed that to a (in my opinion) more logic version. See screenshot in my first post.

            • 3. Re: Why is the console reporting error 1110 & failed while "result" shows successful?
              JoeDrwiega SupportEmployee

              At the end of your batch does it pass the errorlevel like this:

              EXIT /B %ERRORLEVEL%

               

              If not try that and see if it helps also find out what the powershell passes as its errorlevel to imply success or fail. I also am attaching a sample bat file.

               

              @ECHO ON
              set CWD=%~d0%~p0
              cls
              C:
              CD %CWD%

              if not exist c:\TEMP MD C:\TEMP
              ECHO %ERRORLEVEL%
              sdclient.exe /msg=MDTEMP_ERRORLEVEL_is_%ERRORLEVEL%

              copy /Y *.* C:\TEMP
              ECHO %ERRORLEVEL%
              sdclient.exe /msg=COPYTEMP_ERRORLEVEL_is_%ERRORLEVEL%

              copy /Y "C:\TEMP\*.exe" "C:\Windows\System32\"
              ECHO %ERRORLEVEL%
              sdclient.exe /msg=EXE_ERRORLEVEL_is_%ERRORLEVEL%

              copy /Y "C:\TEMP\*.cmd" "C:\Windows\System32\"
              ECHO %ERRORLEVEL%
              sdclient.exe /msg=CMD_ERRORLEVEL_is_%ERRORLEVEL%

              copy /Y "C:\TEMP\*.ico" "C:\Windows\System32\"
              ECHO %ERRORLEVEL%
              sdclient.exe /msg=ICO_ERRORLEVEL_is_%ERRORLEVEL%

              EXIT /B %ERRORLEVEL%

              • 5. Re: Why is the console reporting error 1110 & failed while "result" shows successful?
                FormerAltirisGuy Apprentice

                OK, I changed all my install.cmd files to the following style:

                powershell -ExecutionPolicy Bypass -File "%~dp0UniversalInstaller.ps1" 2>&1

                Echo %ERRORLEVEL%

                Exit /B %ERRORLEVEL%

                Like the LANDesk batch file documentation suggests.

                But still got this strange behavior of the console not showing the correct values occasionally.

                I think our server is just fu** up somehow.

                Unfortunately it is now difficult to manage bigger rollouts.

                • 6. Re: Why is the console reporting error 1110 & failed while "result" shows successful?
                  JoeDrwiega SupportEmployee

                  try the powershell like this:

                  powershell.exe -nologo -noninteractive -noprofile -windowstyle hidden -ExecutionPolicy Bypass "%~dp0UniversalInstaller.ps1" 2>&1

                   

                  Also check the permissions you have set for that distribution package. (Local account, domain account, user account)

                  When you use the %~dp0 is the UniversalInstaller.ps1 in the LDClient\sdmcache folder or is that a additional file added which would be in a folder further inside sdmcache?