Problems installing (not publishing) collections #142
Replies: 3 comments 3 replies
-
I've tried using the same API key with a test script targeting the same artifactory instance and it's working from artifactory import ArtifactoryPath
art_api_key = "tokenHere"
art_url = "https://artifactory.megacorp.com/artifactory/corp-galactory-generic-local/corp-dev/"
galaxy_package = "corp_infra-collection_demo-2024.7.3.tar.gz"
galaxy_download = "test-download.tar.gz"
# API KEY
path = ArtifactoryPath(art_url + galaxy_package, apikey=art_api_key)
print(f'Downloading {galaxy_package} to {galaxy_download}...')
with path.open() as fd, open(galaxy_download, "wb") as out:
out.write(fd.read())
print(f'Done!') The package I pushed is in the same directory, just verifying I downloaded the same package
|
Beta Was this translation helpful? Give feedback.
-
It should be making it there. Your output shows that it's not actually the download that's failing, it's the Your test script is accessing the download though, so it's not testing the same API call to artifactory. You may want to check if the token you're using with artifactory is authorized to list artifacts, it may be the case that it has limited permissions. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply-- Interesting! I will check on that with our Artifactory admins. In the meantime, it looks like my test script with the same token has access to + print(f'Testing stat on {art_url + galaxy_package}...')
+ print(path.stat())
print(f'Downloading {galaxy_package} to {galaxy_download}...')
with path.open() as fd, open(galaxy_download, "wb") as out:
out.write(fd.read())
print(f'Done!')
I also gave setting I guess I can try wrapping my test script in |
Beta Was this translation helpful? Give feedback.
-
Hi again,
Galactory is doing a great job publishing collections to Artifactory. However I am receiving 403s from Artifactory & 500s from galactory when I try to install. I feel some authentication is not making it into the download request, but I'm not sure how to inspect that.
I've included debug-level working & not working log output below.
Config
Publishing - works as expected
galactory log
galactory log without token
Installing - not working as expected
Beta Was this translation helpful? Give feedback.
All reactions