elasticsearch sync index error
Provide the Bytebase version you are using
3.8.1
Describe the bug
elasticsearch 6.6 sync index error error log: Code 13: Internal [internal] error: runtime error: index out of range [2] with length 0 github.com/bytebase/bytebase/backend/plugin/db/elasticsearch.(*Driver).getIndices /backend-build/backend/plugin/db/elasticsearch/sync.go:123 github.com/bytebase/bytebase/backend/plugin/db/elasticsearch.(*Driver).SyncDBSchema /backend-build/backend/plugin/db/elasticsearch/sync.go:53 github.com/bytebase/bytebase/backend/plugin/db/elasticsearch.(*Driver).SyncInstance /backend-build/backend/plugin/db/elasticsearch/sync.go:28 github.com/bytebase/bytebase/backend/runner/schemasync.(*Syncer).GetInstanceMeta /backend-build/backend/runner/schemasync/syncer.go:271 github.com/bytebase/bytebase/backend/runner/schemasync.(*Syncer).SyncInstance /backend-build/backend/runner/schemasync/syncer.go:287 github.com/bytebase/bytebase/backend/api/v1.(*InstanceService).CreateInstance /backend-build/backend/api/v1/instance_service.go:355 connectrpc.com/connect.NewUnaryHandler[...].func1 /go/pkg/mod/connectrpc.com/[email protected]/handler.go:51 connectrpc.com/connect.(*recoverHandlerInterceptor).WrapUnary.func1 /go/pkg/mod/connectrpc.com/[email protected]/recover.go:57 github.com/bytebase/bytebase/backend/api/v1.(*AuditInterceptor).WrapUnary.func1 /backend-build/backend/api/v1/audit.go:54 github.com/bytebase/bytebase/backend/api/v1.(*ACLInterceptor).WrapUnary.func1 /backend-build/backend/api/v1/acl.go:50 github.com/bytebase/bytebase/backend/api/auth.(*APIAuthInterceptor).WrapUnary.func1 /backend-build/backend/api/auth/auth.go:107 github.com/bytebase/bytebase/backend/api/v1.(*DebugInterceptor).WrapUnary.func1 /backend-build/backend/api/v1/debug_interceptor.go:35 connectrpc.com/connect.NewUnaryHandler[...].func2 /go/pkg/mod/connectrpc.com/[email protected]/handler.go:69 connectrpc.com/connect.(*Handler).ServeHTTP /go/pkg/mod/connectrpc.com/[email protected]/handler.go:237 github.com/bytebase/bytebase/backend/generated-go/v1/v1connect.NewInstanceServiceHandler.func1 /backend-build/backend/generated-go/v1/v1connect/instance_service.connect.go:404 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:2294 github.com/bytebase/bytebase/backend/server.configureGrpcRouters.WrapHandler.func12 /go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:926 github.com/labstack/echo/v4.(*Echo).add.func1 /go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:581 github.com/labstack/echo-contrib/prometheus.(*Prometheus).HandlerFunc-fm.(*Prometheus).HandlerFunc.func1 /go/pkg/mod/github.com/labstack/[email protected]/prometheus/prometheus.go:423 github.com/labstack/echo/v4/middleware.StaticWithConfig.func1.1 /go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/static.go:196
Steps to reproduce
config elasticsearch sync index
Expected behavior
sync success
Provide the database you are using
No response
Additional context
No response
Does the problem exist on the latest Bytebase version 3.9.1?
The version I'm using is 3.8.1 and I haven't tried 3.9.1. Only 3.9.1 clearly indicates that the issue has been fixed. I will then attempt to upgrade
| | wangliming | | @.*** |
---- Replied Message ---- | From | Danny @.> | | Date | 08/22/2025 14:25 | | To | @.> | | Cc | @.> , @.> | | Subject | Re: [bytebase/bytebase] elasticsearch sync index error (Issue #17258) | d-bytebase left a comment (bytebase/bytebase#17258)
Does the problem exist on the latest Bytebase version 3.9.1?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
"Has there been any progress or planned fix for this issue?"