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

Unable to run analysis on a directory of multiple applications

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • MTA 7.0.2
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Customer Facing, Customer Reported
    • No

      Description of problem:

      I am currently running MTA version 7.0.2. Attached is full log of one of the failures. Below is the snippet with relevant error.
      Based on the error logs the analyzer is expecting a pom file in the root dir, the applications that are failing the analysis have the below dir structure
      – app-module1
      `-- pom.xml
      – app-module2
      `-- pom.xml
      – parent
      `-- pom.xml

      MTA 6.2 was able to successfully scan the apps that had the above dir structure.

      • '[CMD] /usr/bin/konveyor-analyzer succeeded.'
      • '[CMD] Running: /usr/bin/konveyor-analyzer-dep --provider-settings /addon/opt/settings.json --output-file /addon/deps.yaml'
      • '> time="2024-04-28T18:12:01Z" level=error msg="grpc unable to get info" error="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp [::1]:39083: connect: connection refused\"" logger=go provider=grpc'
      • '> time="2024-04-28T18:12:04Z" level=info msg="init''d provider" provider=go'
      • '> time="2024-04-28T18:12:13Z" level=info msg="init''d provider" provider=java'
      • '> time="2024-04-28T18:12:13Z" level=info msg="init''d provider" provider=builtin'
      • '> time="2024-04-28T18:12:17Z" level=error msg="failed to get list of dependencies for provider" error="exit status 1" provider=go'
      • '> time="2024-04-28T18:12:25Z" level=info msg="unable to get dependencies, using fallback" error="{\"Stderr\":null}" provider=java'
      • '> time="2024-04-28T18:12:29Z" level=error msg="Analyzing POM" error="open /addon/source/baprofile/pom.xml: no such file or directory" provider=java'
      • '> time="2024-04-28T18:12:29Z" level=error msg="failed to get list of dependencies for provider" error="open /addon/source/baprofile/pom.xml: no such file or directory" provider=java'
      • '> time="2024-04-28T18:12:29Z" level=info msg="provider does not have dependency capability" provider=builtin'
      • '> time="2024-04-28T18:12:29Z" level=info msg="failed to get dependencies from all given providers"'
      • '> '
      • '[CMD] /usr/bin/konveyor-analyzer-dep failed: exit status 1'
        attached:
      • id: 2144
        name: konveyor-analyzer-dep.output
        activity: 52
      • id: 2111
        name: konveyor-analyzer.output
        activity: 50
      • id: 2110
        name: windup-shim.output
        activity: 23
      • id: 2109
        name: git.output
        activity: 11
      • id: 2108
        name: ssh-agent.output
        activity: 2

         

      Version-Release number of selected component (if applicable):

      7.0.2 

      How reproducible:

       100%

      Steps to Reproduce:
      1. Create a directory structure as shown above
      2. Run analysis

      Actual results:

      See Above 

      Expected results:

       In 6.2 it was expected that the analysis would succeed because Windup wasn't analyzing Java applications the same way that the new analysis engine is. Because of it working in 6.2, it's expected to succeed.

      Additional info:

            Unassigned Unassigned
            rhn-engineering-dymurray Dylan Murray
            Karishma Punwatkar Karishma Punwatkar
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: