Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation Exception While Running actions-sync from K8s CronJob #20

Closed
wazery opened this issue Apr 22, 2021 · 3 comments
Closed

Validation Exception While Running actions-sync from K8s CronJob #20

wazery opened this issue Apr 22, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@wazery
Copy link

wazery commented Apr 22, 2021

Running the actions-sync tool from a CronJob in K8s always results in an exception, while running the exact same command on local machine (Macbook Pro) always succeeds.

Command I tried:

/bin/actions-sync sync --cache-dir=/tmp/ --destination-token <token> --source-url=https://github.com --destination-url=https://github-<enterprise-url> --repo-name-list "Azure/setup-kubectl:actions/setup-kubectl"

Results (inside CronJob):

fetching * refs for Azure/setup-kubectl ...
syncing `actions/setup-kubectl`
error creating github repository `actions/setup-kubectl`: error creating organization actions POST https://github-<enterprise-url>/api/v3/admin/organizations: 422 Validation Failed [{Resource:Organization Field:login Code:custom Message:login is not available} {Resource:Organization Field:admins Code:missing_field Message:}]

On Macbook machine with exact same command:

fetching * refs for Azure/setup-kubectl ...
syncing `actions/setup-kubectl`
successfully synced `actions/setup-kubectl`

One thing I noticed is that it succeeds on the CronJob only when the organisation and repo are not existing before, so it creates them and works, but if org/repo are existing it fails.

Used version: https://github.com/actions/actions-sync/releases/tag/v202009231612

Any idea what causes this discrepancy?

@ajaykn
Copy link
Contributor

ajaykn commented May 17, 2021

@wazery Which release bundle are you using.
We have a known issue with 32 bundles. #18

@ajaykn ajaykn added the bug Something isn't working label May 17, 2021
@wazery
Copy link
Author

wazery commented Jul 23, 2021

That was this version https://github.com/actions/actions-sync/releases/tag/v202009231612
@ajaykn thanks for checking 🙇

@ajaykn
Copy link
Contributor

ajaykn commented Mar 19, 2022

@wazery Closing this, since this issue is from 32 bundles (gh_202009231612_linux_386.tar.gz, gh_202009231612_windows_386.tar.gz)

And as a workaround, we have to use 64 bundles.

Please feel free to reopen if u see any concerns.

@ajaykn ajaykn closed this as completed Mar 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants