Hello Team.
I’m in the process of setting up a datahub in an AWS environment.
At first, it was easy to install and operate with the datahub docker quickstart command in the AWS EC2 environment.
Within a few days, I got a message that said, “An unknown error occurred. (code 500)” error message and the ingested data is being deleted repeatedly.
( I’ve tried datahub versions 0.10.1 to 0.12.0 and it’s the same )
There is no proper GMS log, and judging from the log information in each Docker, I think the Elasticsearch service is shutting down abnormally.
I’m getting a code 500 error quite often, so I’m looking at https://datahubproject.io/docs/deploy/aws documentation and trying to set up a datahub.
The current status is that you have completed the AWS EKS setup and have completed the authentication process in AWS Certificate Manager.
But after modifying the values.yaml file,
helm upgrade --install datahub datahub/datahub --values values.yaml --debug
When I run the command, I get the following message and an error with timeout and the installation cannot continue.
history.go:56: [debug] getting history for release datahub
upgrade.go:153: [debug] preparing upgrade for datahub
upgrade.go:161: [debug] performing update for datahub
upgrade.go:354: [debug] creating upgraded release for datahub
client.go:486: [debug] Starting delete for "datahub-elasticsearch-setup-job" Job
client.go:142: [debug] creating 1 resource(s)
client.go:712: [debug] Watching for changes to Job datahub-elasticsearch-setup-job with timeout of 5m0s
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: ADDED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: MODIFIED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: MODIFIED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: MODIFIED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: MODIFIED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: MODIFIED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 0, jobs failed: 1, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: MODIFIED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 1, jobs failed: 1, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: MODIFIED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 1, jobs failed: 1, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: MODIFIED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 1, jobs failed: 1, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: MODIFIED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 0, jobs failed: 1, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: MODIFIED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 0, jobs failed: 2, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: MODIFIED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 1, jobs failed: 2, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for datahub-elasticsearch-setup-job: MODIFIED
client.go:779: [debug] datahub-elasticsearch-setup-job: Jobs active: 1, jobs failed: 2, jobs succeeded: 0
upgrade.go:466: [debug] warning: Upgrade "datahub" failed: pre-upgrade hooks failed: 1 error occurred:
* timed out waiting for the condition
Error: UPGRADE FAILED: pre-upgrade hooks failed: 1 error occurred:
* timed out waiting for the condition
helm.go:84: [debug] pre-upgrade hooks failed: 1 error occurred:
* timed out waiting for the condition
UPGRADE FAILED
main.newUpgradeCmd.func2
<http://helm.sh/helm/v3/cmd/helm/upgrade.go:229|helm.sh/helm/v3/cmd/helm/upgrade.go:229>
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
<http://github.com/spf13/cobra@v1.7.0/command.go:940|github.com/spf13/cobra@v1.7.0/command.go:940>
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
<http://github.com/spf13/cobra@v1.7.0/command.go:1068|github.com/spf13/cobra@v1.7.0/command.go:1068>
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
<http://github.com/spf13/cobra@v1.7.0/command.go:992|github.com/spf13/cobra@v1.7.0/command.go:992>
main.main
<http://helm.sh/helm/v3/cmd/helm/helm.go:83|helm.sh/helm/v3/cmd/helm/helm.go:83>
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1598```
After this result, pods looks like this:
```> kubectl get pods
NAME READY STATUS RESTARTS AGE
datahub-elasticsearch-setup-job-bmkzh 0/1 Error 0 7m9s
datahub-elasticsearch-setup-job-r8688 0/1 Error 0 9m19s
datahub-elasticsearch-setup-job-wqr4g 0/1 Error 0 4m49s
datahub-elasticsearch-setup-job-zmnl7 0/1 Error 0 2m9s```
I would like to know how I can solve it.
And here, too, seems to be a problem with Elasticsearch. How do I use AWS opensearch instead of elasticsearch?