URL Rewrite 2.1

Scott Vaughan's Avatar

Scott Vaughan

17 Sep, 2018 09:10 AM

Builds have stopped working recently with an error message:

https://ci.appveyor.com/project/agidea/springboard-analyser

Build started
git clone -q --branch=master git@bitbucket.org:sbdevelopers/springboard-analyser.git C:\projects\springboard-analyser
Warning: Permanently added the RSA host key for IP address '18.205.93.0' to the list of known hosts.
git checkout -qf 8f94815ff5b4863a5bc06b0b63ab7f7c767ed5b2
Running Install scripts
WebpiCmd /Install /Products:UrlRewrite2 /AcceptEula /OptInMU /SuppressPostFinish

The software that you obtain using the Web Platform Installer Command Line Tool is licensed to you by its owner. Microsoft grants you no rights for third party software.
Successfully loaded primary feed: https://go.microsoft.com/?linkid=9842185
The following software is going to be installed:
EULA: 'URL Rewrite 2.1', which is owned by 'Microsoft', will be downloaded from 'http://download.microsoft.com/download/D/D/E/DDE57C26-C62C-4C59-A1B...'.
The license agreement to 'URL Rewrite 2.1' is available at 'http://download.microsoft.com/download/D/D/E/DDE57C26-C62C-4C59-A1B...'.
Accepted EULA.
Starting Installation
Started downloading products...
Started downloading: 'URL Rewrite 2.1'
Downloaded: 'URL Rewrite 2.1'
Install completed (Failure): 'URL Rewrite 2.1'
UrlRewrite2 : Failed.
Downloaded file failed signature verification and may have been tampered with

Verifying successful installation...
URL Rewrite 2.1 False
Install of Products: FAILURE
Command exited with code -1

Can you help please.

Thanks

  1. 1 Posted by Nick on 17 Sep, 2018 01:34 PM

    Nick's Avatar

    I also just started seeing this issue.

  2. Support Staff 2 Posted by Ilya Finkelshte... on 17 Sep, 2018 06:22 PM

    Ilya Finkelshteyn's Avatar

    I think something broke with digital signature of file which is being downloaded. Error is the same on all AppVeyor build images. Also if you download http://download.microsoft.com/download/D/D/E/DDE57C26-C62C-4C59-A1B... to your local machine you see that digital signature is recently updated, and if you try to install it manually, you see the same kind of error.

    Will update on our findings.

  3. Support Staff 3 Posted by Ilya Finkelshte... on 19 Sep, 2018 01:26 AM

    Ilya Finkelshteyn's Avatar

    Found link to seemingly older .msi and it seems to work. It was found by exploring WebPi feed and checking trackingURL for URL Rewrite.

    Can you please try the following workaround. Add this in PowerShell instead of WebpiCmd:

    Write-Host "Installing UrlReWrite..." -ForegroundColor Cyan
    
    Write-Host "Downloading..."
    $msiPath = "$($env:USERPROFILE)\rewrite_amd64.msi"
    (New-Object Net.WebClient).DownloadFile('http://download.microsoft.com/download/C/9/E/C9E8180D-4E51-40A6-A9BF-776990D8BCA9/rewrite_amd64.msi', $msiPath)
    
    Write-Host "Installing..."
    cmd /c start /wait msiexec /i "$msiPath" /q
    del $msiPath
    
    Write-Host "Installed UrlReWrite" -ForegroundColor Green
    

    You can also download this .msi and install it manually in your lab to ensure that it is correct version. Let us know how it goes.

  4. 4 Posted by Scott on 19 Sep, 2018 08:08 AM

    Scott's Avatar

    I can confirm that this workaround fixed. The URL Rewrite module downloads and installs correctly.

  5. Support Staff 5 Posted by Ilya Finkelshte... on 19 Sep, 2018 08:13 AM

    Ilya Finkelshteyn's Avatar

    Good, but consider it as a temporary workaround. My feeling is that that they should fix (probably SHA in the feed or something like this) this soon. Try proper approach from time to time. We will update this ticket too if we see it fixed.

  6. 6 Posted by dariokondratiuk on 19 Sep, 2018 09:58 PM

    dariokondratiuk's Avatar

    I'm trying to apply this issue but I'm getting a:

    Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request."
    At line:2 char:43
    + Write-Host "Downloading..." $msiPath = "$($env:USERPROFILE)\rewrite_a ... + ~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException

    Installing... cmd /c start /wait msiexec /i /q del

    Rings a bell?

  7. Support Staff 7 Posted by Ilya Finkelshte... on 19 Sep, 2018 10:11 PM

    Ilya Finkelshteyn's Avatar

    @dariokondratiuk please share a link to the build.

  8. 8 Posted by dariokondratiuk on 20 Sep, 2018 12:58 PM

    dariokondratiuk's Avatar

    It's a private build I don't know if you can get to it https://ci.appveyor.com/project/MultiTracks/multitracks-com/build/1....

    I can share some piece of my config:

    install:
    - ps: Install-Product node 8
    - c:\projects\multitracks.com\AppVeyor\install.bat
    - ps: >-
        Write-Host "Installing UrlReWrite..." -ForegroundColor Cyan
    
        Write-Host "Downloading..."
        $msiPath = "$($env:USERPROFILE)\rewrite_amd64.msi"
        (New-Object Net.WebClient).DownloadFile('http://download.microsoft.com/download/C/9/E/C9E8180D-4E51-40A6-A9BF-776990D8BCA9/rewrite_amd64.msi', $msiPath)
    
        Write-Host "Installing..."
        cmd /c start /wait msiexec /i "$msiPath" /q
        del $msiPath
    
        Write-Host "Installed UrlReWrite" -ForegroundColor Green
    

    Thanks
    Darío

  9. 9 Posted by Scott on 20 Sep, 2018 01:04 PM

    Scott's Avatar

    Have you tried creating a powershell script and calling this within the appveyor.yml like so:

    install:
    - ps: ./InstallUrlRewrite.ps1

  10. Support Staff 10 Posted by Ilya Finkelshte... on 20 Sep, 2018 03:55 PM

    Ilya Finkelshteyn's Avatar

    Script will work but people often prefer to see everything in YAML. Problem in this case is that - ps: >- syntax is critical to spaces between lines. It is mentioned in docs but maybe not stressed enough. You can copy-paste your script to UI and press Export YAML to get correct syntax. Or simple use - ps: | instead of - ps: >-.

  11. 11 Posted by dariokondratiuk on 20 Sep, 2018 03:55 PM

    dariokondratiuk's Avatar

    It worked!
    Thanks a lot.

  12. Support Staff 12 Posted by Ilya Finkelshte... on 20 Sep, 2018 09:00 PM

    Ilya Finkelshteyn's Avatar

    Seems like Web PI feed is fixed, you can get rid of the workaround.

  13. Ilya Finkelshteyn closed this discussion on 20 Sep, 2018 09:00 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac