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

fez hangs during upload - --unattended flag is not honored #83

Closed
melezhik opened this issue Feb 3, 2023 · 13 comments
Closed

fez hangs during upload - --unattended flag is not honored #83

melezhik opened this issue Feb 3, 2023 · 13 comments

Comments

@melezhik
Copy link
Contributor

melezhik commented Feb 3, 2023

During upload operation fez hangs. Full log including fez version and other details here - https://ci.sparrowhub.io/report/2843

HTH

@tony-o
Copy link
Owner

tony-o commented Feb 3, 2023

Can you point me to the repo this is happening with? (Or supply your handmade tarball?)

@melezhik
Copy link
Contributor Author

melezhik commented Feb 3, 2023

@melezhik
Copy link
Contributor Author

melezhik commented Feb 3, 2023

And … I install fez from https://github.com/tony-o/raku-fez.git , maybe not very good idea …

@tony-o
Copy link
Owner

tony-o commented Feb 4, 2023

@melezhik which version does it report from fez -v ?

@melezhik
Copy link
Contributor Author

melezhik commented Feb 4, 2023

20:13:55 :: ===> Installing: fez:ver<40>:authzef:tony-o:api<0>
20:14:04 ::
20:14:04 :: 1 bin/ script [fez] installed to:
20:14:04 :: /home/worker/.raku/bin
20:14:05 :: cleaning /var/.sparrowdo/env/test/.sparrowdo/source/.tom/.cache ...
20:14:05 :: >>= fez version: 40
20:14:06 :: >>= Looking in "sdist/WsmUK7ED.tar.gz" for META6.json
20:14:08 :: >>= meta looks OK
20:14:08 :: >>= meta looks OK
20:14:08 :: >>= SparrowCI:ver<0.0.11>:authzef:melezhik looks OK

@tony-o
Copy link
Owner

tony-o commented Feb 5, 2023

@melezhik is this running in the busybox container?

@melezhik
Copy link
Contributor Author

melezhik commented Feb 5, 2023 via email

@melezhik
Copy link
Contributor Author

melezhik commented Feb 6, 2023

Ok, this is not a tar issue, I've run command manually from container, and it seems that --unattended flag is not honored:

worker@ca60ead8977c:/var/.sparrowdo/env/test/.sparrowdo/source$ cat ~/.fez-config.json 
 {
    "groups":[],"un":"melezhik","key":"**********",
    "bundlers": ["Fez::Util::Pax"]
 }
worker@ca60ead8977c:/var/.sparrowdo/env/test/.sparrowdo/source$ fez upload --u^C
worker@ca60ead8977c:/var/.sparrowdo/env/test/.sparrowdo/source$ fez upload --unattended
>>= Looking in "sdist/Yq0ijUw3.tar.gz" for META6.json
>>= meta<provides> looks OK
>>= meta<resources> looks OK
>>= SparrowCI:ver<0.0.11>:auth<zef:melezhik> looks OK
=<< Key is expired, please login:
>>= Username: ^C

@melezhik melezhik changed the title fez hangs during upload fez hangs during upload - --unattended flag is not honored Feb 6, 2023
@tony-o
Copy link
Owner

tony-o commented Feb 8, 2023

@melezhik ahhh okay, i'm working on this issue - this is more difficult and I need a new pattern to remove universal flags in MAIN

@melezhik
Copy link
Contributor Author

melezhik commented Feb 8, 2023

@tony-o sure, no rush

@patrickbkr
Copy link
Collaborator

IIU this issue correctly, it's the server that rejected the request because the "Key is expired". There isn't much an --unattended flag could do about that. Right?

@melezhik
Copy link
Contributor Author

melezhik commented Feb 9, 2023

When runs with unattended flag fez should not hang if a user token is expired, but exit immediately with proper exit code. Instead of this ( and this is the essence of the issue) fez waits for a login and password to regenerate token.

“Killed” line in the end of report simply means that a docker container is terminated by SparrowCI orchestrator after some timeout …

Expected behavior for fez when runs with unattended flag is to exit immediately with none zero exit code ( and helpful message in stderr) in case of any errors …

HTH

@tony-o
Copy link
Owner

tony-o commented Feb 12, 2023

@patrickbkr if the key expired then fez will prompt for a username and password

This is fixed in the dist branch -

@tony-o tony-o closed this as completed Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants