Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-5229

[Documentation for] [CLI] .NET framework analysis fails on Windows

XMLWordPrintable

    • Quality / Stability / Reliability
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Done
    • 2
    • Sprint 10-MMSDOCS 2025
    • None

      *This Documentation task is for documenting this workaround
      *

      *From the log I believe this issue is the same as https://issues.redhat.com/browse/MTA-3239*

      Steps to Reproduce:
      1. Ensure you're running windows containers and that you have the following env variables

       

      NAME VALUE
      DOTNET_PROVIDER_IMG quay.io/konveyor/dotnet-external-provider:release-0.7
      RUNNER_IMG quay.io/konveyor/kantra:latest
      PODMAN_BIN C:\Program Files\Docker\Docker\resources\bin\docker.exe

      2.Execute the following command

       

      ./windows-mta-cli.exe analyze --input D:\redhat\apps\nerd-dinner --output D:\redhat\nerd-dinner-report --overwrite --provider dotnet --rules D:\redhat\rules\dotnet --run-local=false

      The app used is: https://github.com/konveyor/analyzer-lsp/tree/main/external-providers/dotnet-external-provider/examples/nerd-dinner and the rule folder contains the two yaml files attached.

      Actual results:

      The analysis fails with the following error

       

       time="2025-05-14T13:30:58+02:00" level=info msg="--run-local set to false. Running analysis in container mode"
      time="2025-05-14T13:30:58+02:00" level=info msg="running windup shim" args="convert --outputdir=/opt/shimoutput /opt/xmlrules" output="D:\\redhat\\nerd-dinner-report" volumes="{\"C:\\\\Users\\\\Brugui\\\\AppData\\\\Local\\\\Temp\\\\transform-output-3124556005\":\"/opt/shimoutput\",\"D:\\\\redhat\\\\rules\\\\dotnet\":\"/opt/xmlrules/dotnet\"}"
      time="2025-05-14T13:30:58+02:00" level=info msg="generating shim log in file" file="D:\\redhat\\nerd-dinner-report\\shim.log"
      C:\Program Files\Docker\Docker\resources\bin\docker.exe run --rm --name ovLJTBFRiTXepXrA --entrypoint /usr/local/bin/windup-shim -v C:\Users\Brugui\AppData\Local\Temp\transform-output-3124556005:/opt/shimoutput -v D:\redhat\rules\dotnet:/opt/xmlrules/dotnet quay.io/konveyor/kantra:latest convert --outputdir=/opt/shimoutput /opt/xmlrulestime="2025-05-14T13:30:58+02:00" level=error msg="container run error" error="exit status 125"
      time="2025-05-14T13:30:58+02:00" level=error msg="failed to convert xml rules" error="docker: Error response from daemon: invalid volume specification: 'C:\\Users\\Brugui\\AppData\\Local\\Temp\\transform-output-3124556005:/opt/shimoutput'.\nSee 'docker run --help'.\n"
      Error: docker: Error response from daemon: invalid volume specification: 'C:\Users\Brugui\AppData\Local\Temp\transform-output-3124556005:/opt/shimoutput'.
      See 'docker run --help'.

       
      Expected results:

       The analysis should complete

              rhn-support-pkylasam PRABHA Kylasamiyer Sundara Rajan
              istein@redhat.com Ilanit Stein
              Emily McMullan Emily McMullan
              Alejandro Brugarolas Alejandro Brugarolas
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: