Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1890

[Windows] Fix waiting during auto-upgrade

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 4.3.0
    • Component/s: Application update
    • Environment:
      Windows

      Description

      Issue

      Auto-Upgrade - Use system timeout.exe instead of cygwin

      Currently Drive uses the command timeout in the auto-updater to wait 5 seconds before restarting.
      However this is ambiguous because timeout exists in the Windows\system32 and in the cygwin binaries. This causes timeout.exe to fail with the following in the logs :

      timeout: invalid time interval ‘/t’
      Try 'timeout --help' for more information.
      

      Fix

      Move to ping (ping waits 1 second between attempts):

      ping 127.0.0.1 -n 6 > NUL
      

      Tip from https://tickets.puppetlabs.com/browse/MODULES-3657.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m