-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Getting redis WARN and supervisor ERROR while bench init command #1607
Comments
@akhilnarang Any update on this? or at least give us some kind of explanations that we can be aware of. I understand you guys trying your best to address the issues, I totally appreciate your efforts on this. It would help us a lot better if you guys give us some kind of explanations. |
Hey, Both the warnings are fine and can be ignored. |
Resolves frappe#1607 Signed-off-by: Akhil Narang <me@akhilnarang.dev>
@yknevenky I've fixed it for the cases where supervisorctl is not installed. In your case, you do have it installed, so it will try to restart, and fail if its not being used, like your current case. |
I am still kind of confused. But what's the role of supervisor here? and what does Basically I am trying to understand the things that are happening in the bench init command. Please help me with this. Thank you so much for your efforts @akhilnarang . sudo supervisorctl restart frappe: WARN Cannot connect to redis_cache to update assets_json |
@yknevenky supervisor would be used in production setups, so by default when any frappe app is installed, we restart the bench, if your system has supervisor we try to restart the relevant supervisor groups. Regarding the other warning, it comes from here: https://github.com/frappe/frappe/blob/develop/esbuild/esbuild.js#L481 When a site is running normal, redis will be running and we can use it for caching. During bench init redis isn't available, hence the warning. |
Description of the issue
Context information (for bug reports)
Output of
bench version
Steps to reproduce the issue
Observed result
$ sudo supervisorctl restart frappe:
frappe: ERROR (no such group)
frappe: ERROR (no such group)
WARN: restarting supervisor group
frappe:
failed. Usebench restart
to retry.DONE Total Build Time: 14.695s
WARN Cannot connect to redis_cache to update assets_json
WARN Cannot connect to redis_cache to update assets_json
WARN Cannot connect to redis_cache to update assets_json
Expected result
No WARN and ERROR
Stacktrace / full error message
Additional information
Linux Ubuntu
The text was updated successfully, but these errors were encountered: