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

[Mac] Delay between crc setup and actual daemon start #3148

Closed
praveenkumar opened this issue Apr 26, 2022 · 3 comments · Fixed by #3150
Closed

[Mac] Delay between crc setup and actual daemon start #3148

praveenkumar opened this issue Apr 26, 2022 · 3 comments · Fixed by #3150

Comments

@praveenkumar
Copy link
Member

Using launchd we start crc daemon process as part of setup but there is bit delay around daemon process is actually running and serving to the requests so in scripted way user might face issues.

 ./crc setup && ./crc start
[...]
INFO Checking if crc daemon plist file is present and loaded 
INFO Adding crc daemon plist file and loading it  
Your system is correctly setup for using CRC. Use 'crc start' to start the instance
Is 'crc daemon' running? Cannot reach daemon API: Get "http://unix/api/version": dial unix /Users/prkumar/.crc/crc-http.sock: connect: connection refused
./crc setup && sleep 10 && ./crc start
[...]
INFO Checking if crc daemon plist file is present and loaded 
INFO Adding crc daemon plist file and loading it  
Your system is correctly setup for using CRC. Use 'crc start' to start the instance
INFO Checking if running as non-root              
INFO Checking if crc-admin-helper executable is cached 
INFO Checking for obsolete admin-helper executable 
INFO Checking if running on a supported CPU architecture 
[...]

At the end of setup we should have a check for daemon availability to fulfill the requests.

@adrianriobo
Copy link
Contributor

This behavior should be fixed based on #2687 with #2722

@praveenkumar
Copy link
Member Author

This behavior should be fixed based on #2687 with #2722

Both were the tray issue.

praveenkumar added a commit to praveenkumar/crc that referenced this issue Apr 26, 2022
This PR add time limit (15 sec) to make sure daemon able to serve
the requests after it is start because sometimes just after start
it takes time to serve.

fixes: crc-org#3148
@adrianriobo
Copy link
Contributor

Well the issue was solved adding the check on the tray but the #2687 was not talking about the tray it said setup does not guarantee the daemon valid state..

Now you are properly extended the check 👍

cfergeau pushed a commit to cfergeau/crc that referenced this issue Apr 26, 2022
This PR add time limit (15 sec) to make sure daemon able to serve
the requests after it is start because sometimes just after start
it takes time to serve.

fixes: crc-org#3148
praveenkumar added a commit to praveenkumar/crc that referenced this issue Apr 26, 2022
This PR add time limit (15 sec) to make sure daemon able to serve
the requests after it is start because sometimes just after start
it takes time to serve.

fixes: crc-org#3148
praveenkumar added a commit to praveenkumar/crc that referenced this issue Apr 27, 2022
This PR add time limit (15 sec) to make sure daemon able to serve
the requests after it is start because sometimes just after start
it takes time to serve.

fixes: crc-org#3148
praveenkumar added a commit to praveenkumar/crc that referenced this issue Apr 27, 2022
This PR add time limit (15 sec) to make sure daemon able to serve
the requests after it is start because sometimes just after start
it takes time to serve.

fixes: crc-org#3148
praveenkumar added a commit to praveenkumar/crc that referenced this issue May 4, 2022
This PR add time limit (15 sec) to make sure daemon able to serve
the requests after it is start because sometimes just after start
it takes time to serve.

fixes: crc-org#3148
praveenkumar added a commit to praveenkumar/crc that referenced this issue May 4, 2022
This PR add time limit (15 sec) to make sure daemon able to serve
the requests after it is start because sometimes just after start
it takes time to serve.

fixes: crc-org#3148
anjannath pushed a commit that referenced this issue May 4, 2022
This PR add time limit (15 sec) to make sure daemon able to serve
the requests after it is start because sometimes just after start
it takes time to serve.

fixes: #3148
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

Successfully merging a pull request may close this issue.

2 participants