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

MTA (7.1.0) seems to access 0.0.0.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • MTA 7.2.0
    • None
    • MTA CLI
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Critical
    • None

      Customer reports that MTA does not work when it is used within their proxy. MTA repeatedly outputs errors [1-1,1-2]. If they add "0.0.0.0" to "NO_PROXY" environment variable, MTA works correctly. They say it seems that "/usr/local/bin/konveyor-analyzer" in "registry.redhat.io/mta/mta-cli-rhel9:7.1.0" tries to access "0.0.0.0". 

      As far as I ckecked, there are some codes which are related to "0.0.0.0" [2-1,2-2]. Could you please check?

       

      [1-1] analysis.log
      ~~~
      time="2024-09-06T06:19:03Z" level=error msg="error for list services retrying" error="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: failed to do connect handshake, response: \\\"HTTP/1.1 503 Service Unavailable\\\\r\\\\nConnection: close\\\\r\\\\nContent-Length: 0\\\\r\\\\n\\\\r\\\\n\\\"\"" logger=java provider=grpc
      time="2024-09-06T06:19:06Z" level=error msg="error for list services retrying" error="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: failed to do connect handshake, response: \\\"HTTP/1.1 503 Service Unavailable\\\\r\\\\nConnection: close\\\\r\\\\nContent-Length: 0\\\\r\\\\n\\\\r\\\\n\\\"\"" logger=java provider=grpc
      time="2024-09-06T06:19:09Z" level=error msg="error for list services retrying" error="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: failed to do connect handshake, response: \\\"HTTP/1.1 503 Service Unavailable\\\\r\\\\nConnection: close\\\\r\\\\nContent-Length: 0\\\\r\\\\n\\\\r\\\\n\\\"\"" logger=java provider=grpc
      time="2024-09-06T06:19:12Z" level=error msg="error for list services retrying" error="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: failed to do connect handshake, response: \\\"HTTP/1.1 503 Service Unavailable\\\\r\\\\nConnection: close\\\\r\\\\nContent-Length: 0\\\\r\\\\n\\\\r\\\\n\\\"\"" logger=java provider=grpc
      ~~~

      [1-2] console output
      ~~~
      /usr/bin/podman run --rm --name MBahuXfdvbcpURUN --entrypoint /usr/local/bin/mta-cli --env RUN_MODE=container registry.redhat.io/mta/mta-cli-rhel9:7.1.0 analyze --list-sources/usr/bin/podman run --rm --name lmXQAJWZpMLXpoLb --entrypoint /usr/local/bin/mta-cli --env RUN_MODE=container registry.redhat.io/mta/mta-cli-rhel9:7.1.0 analyze --list-targetsWVsYNtiCkJnHCtiK
      VdfXwGTiMdHRKJQH
      time="2024-09-06T15:18:54+09:00" level=info msg="starting first provider" provider=java
      /usr/bin/podman run -d --rm --name nBDQMqtvmlTJeHjF --network WVsYNtiCkJnHCtiK -v VdfXwGTiMdHRKJQH:/opt/input/source:z registry.redhat.io/mta/mta-java-external-provider-rhel9:7.1.0 --port=36021dacf16912b52a18b4c5720058b3c5440f96eeadcabc056e01c4961057f48d2fa
      time="2024-09-06T15:18:55+09:00" level=info msg="running dependency retrieval during analysis"
      time="2024-09-06T15:18:55+09:00" level=info msg="running source code analysis" args="--provider-settings=/opt/input/config/settings.json --output-file=/opt/output/output.yaml --context-lines=100 --rules=/opt/rulesets/ --verbose=4 --label-selector=((konveyor.io/target=jakarta-ee) && (konveyor.io/source=java-ee)) || (discovery) --dep-label-selector=(!konveyor.io/dep-source=open-source) --dep-output-file=/opt/output/dependencies.yaml" input=/home/user/mta/kitchensink log=/home/user/mta/kitchensink-out9/analysis.log output=/home/user/mta/kitchensink-out9 volumes="{\"/home/user/mta/kitchensink-out9\":\"/opt/output\",\"/tmp/analyze-config-1100958209\":\"/opt/input/config\",\"/tmp/m2-repo-3413087727\":\"/root/.m2\",\"VdfXwGTiMdHRKJQH\":\"/opt/input/source\"}"
      time="2024-09-06T15:18:55+09:00" level=info msg="generating analysis log in file" file=/home/user/mta/kitchensink-out9/analysis.log
      /usr/bin/podman run --rm --name YvtcxfuxHqzosKNc --network container:nBDQMqtvmlTJeHjF --entrypoint /usr/local/bin/konveyor-analyzer -v VdfXwGTiMdHRKJQH:/opt/input/source:z -v /home/user/mta/kitchensink-out9:/opt/output:z -v /tmp/analyze-config-1100958209:/opt/input/config:z -v /tmp/m2-repo-3413087727:/root/.m2:z registry.redhat.io/mta/mta-cli-rhel9:7.1.0 --provider-settings=/opt/input/config/settings.json --output-file=/opt/output/output.yaml --context-lines=100 --rules=/opt/rulesets/ --verbose=4 --label-selector=((konveyor.io/target=jakarta-ee) && (konveyor.io/source=java-ee)) || (discovery) --dep-label-selector=(!konveyor.io/dep-source=open-source) --dep-output-file=/opt/output/dependencies.yaml
      ~~~

      [2-1] MTA - CLI mta/mta-cli-rhel9
      https://catalog.redhat.com/software/containers/mta/mta-cli-rhel9/650216383ce549a2955ad358?container-tabs=dockerfile

      [2-2] kantra/cmd/analyze.go
      https://github.com/konveyor/kantra/blob/ccaf5c2a0c1fb45ec998683b423bffdbf8bca22d/cmd/analyze.go#L824
      https://github.com/konveyor/kantra/blob/ccaf5c2a0c1fb45ec998683b423bffdbf8bca22d/cmd/analyze.go#L850
      https://github.com/konveyor/kantra/blob/ccaf5c2a0c1fb45ec998683b423bffdbf8bca22d/cmd/analyze.go#L866
      https://github.com/konveyor/kantra/blob/ccaf5c2a0c1fb45ec998683b423bffdbf8bca22d/cmd/analyze.go#L881

              emcmulla@redhat.com Emily McMullan
              rhn-support-mkawakam Manabu Kawakami
              Alejandro Brugarolas Alejandro Brugarolas
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: