-
Notifications
You must be signed in to change notification settings - Fork 32
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
An error occurred when redeploying OpneSearch. #668
Comments
@shimoune You mentioned that you are deploying OpenSearch 1.3.5. We moved to OpenSearch 2.x with our 1.2.10 release (14FEB2023), so it's been quite a while since we deployed that version. Is there a specific reason you are trying to deploy with OpenSearch 1.3.5? What version of our project (branch or tag) are you using? We generally recommend users deploy from our "stable" branch and the code on that branch is geared towards OpenSearch 2.x. We also recommend users upgrade once or twice a year so they can benefit from new features and security fixes. As the ERROR message suggests, the first place to look when diagnosing this problem would be the OpenSearch pods. Are the OpenSearch pods-up-and running? If not, can you determine why they are not up? They could be down for a wide range of reasons: insufficient resources (CPU, Memory, etc.), they could be waiting for the PVCs to be ready or they may be unable to access the container image. If the pods are up, review the pod logs and see if there are any helpful messages (WARNING, ERRORS, etc.) that might explain why OpenSearch isn't ready. But my recommendation would be to move to the newest version of our project (i.e. deploy from the stable branch) if you can. I would also encourage you to review what you have included in your USER_DIR directories. There are often changes, sometime significant ones, in the configuration settings defined in those files from release. I would expect that to be especially true if you have not upgraded since we deployed OpenSearch 1.3.5. For many users, our default values are acceptable/approprate and there is only a minimal amount of customization that needs to be provided in the USER_DIR files. |
@gsmith-sas Thank you for your response. I am separately considering migrating to the latest version of OpenSearch. After checking the error message, I found that the error occurred when executing "logging/bin/deploy_opensearch_content.sh" in "logging/bin/deploy_logging.sh". if [ "$esready" != "TRUE" ]; then |
@gsmith-sas Please allow me to ask an additional question. |
@shimoune I apologize for the delayed response but I was out of the office.
|
The following error occurred when redeploying OpneSearch.
Please let me know how to resolve it.
【Error Description】
INFO Loading Content into OpenSearch
Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.
ERROR The OpenSearch REST endpoint has NOT become accessible in the expected time; exiting.
ERROR Review the OpenSearch pod's events and log to identify the issue and resolve it before trying again.
ERROR Exiting script [deploy_logging.sh] due to an error executing the command [logging/bin/deploy_opensearch_content.sh].
INFO User directory: /*****************************
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.
INFO Kubernetes client version: v1.27.12-eks-aaaaaa
INFO Kubernetes server version: v1.28.9-eks-bbbbbb
【Procedure】
The procedure for redeploying OpenSearch is as follows.
Note that we are using OpneSearch version 1.3.5.
・remove the log-monitoring components
Set the USER_DIR environment variable
Execution of logging/bin/remove_logging.sh
・deploy the log-monitoring components
Set the USER_DIR environment variable
Execution of logging/bin/deploy_logging.sh
The text was updated successfully, but these errors were encountered: