konveyor / kantra

A CLI that unifies analysis and transformation capabilities of Konveyor
Apache License 2.0
9 stars 25 forks source link

[BUG] kantra newer completes to run / stuck downloading #339

Open maxandersen opened 1 month ago

maxandersen commented 1 month ago

Is there an existing issue for this?

Konveyor version

don't know - using kantra v0.5.3

Priority

Blocker

Current Behavior

downloaded kantra for osx and run it and I get stuck with this:

kantra analyze --overwrite --output=kantra
LmFaUqLJJGyYaGcG
iJiSrWVpZuEGNJBj
INFO[0000] starting first provider                       provider=java
/opt/podman/bin/podman run -d --rm --name DrdaNnLGYavshAsT --network LmFaUqLJJGyYaGcG -v iJiSrWVpZuEGNJBj:/opt/input/source quay.io/konveyor/java-external-provider:v0.5.3 --port=57434Trying to pull quay.io/konveyor/java-external-provider:v0.5.3...
Getting image source signatures
Copying blob sha256:a22afa8200fd486ebefd72442e04754f56a2d413fead53c6b860742013a675e0
Copying blob sha256:7f4c208fc9d6476429f31af472b905008fc68c5a198c7215fb299d29c916ae28
Copying blob sha256:ee6e912c9b5dd1eccfd8d00e8c068308fe23ad601c13200c01a70d2f7b9c6712

Expected Behavior

that it would complete - and if errors/fail timeout and provide hints to user

How Reproducible

Always (Default)

Steps To Reproduce

No response

Environment

Anything else?

No response

konveyor-ci-bot[bot] commented 1 month ago

This issue is currently awaiting triage. If contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance. The triage/accepted label can be added by org members.

dymurray commented 1 month ago

@maxandersen thanks for reporting, looks like this is a bug when --input flag isn't set. Can you please rerun with --input pointing to the source code of the application you are trying to analyze? I will fix this bug in the meantime

maxandersen commented 1 month ago

so kantra analyze --overwrite --output=kantra --input=. seem to give the same problem.

dymurray commented 1 month ago

@maxandersen can you confirm that you have followed these instructions? https://github.com/konveyor/kantra/?tab=readme-ov-file#mac-1

This "pause" that you are seeing is podman creating the volume which will be mounted in the container. You should be seeing it in podman volume ls after you start kantra. Depending on how big the input dir is and the content it could be taking a few seconds to finish the mounting process and creating the network.

For reference, I'm on linux and I used a 500Gb directory it took ~11 seconds for podman to mount the volume.

I would also recommend rerunning with --log-level=10 to get more details about what is happening with podman under the hood