-
Notifications
You must be signed in to change notification settings - Fork 187
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
Starting oCIS can fail with nats connection error #7838
Comments
looks like there are some error logs but ocis didn't exit so the wrapper won't restart. |
Similar error: {"level":"error","service":"app-provider","error":"unable to register services: rgrpc: grpc service appprovider could not be started,: Get \"http://fakeoffice:8080/hosting/discovery\": readLoopPeekFailLocked: %!w(<nil>)","time":"2024-01-31T01:22:07Z","message":"error starting the grpc server"}
2024/01/31 01:22:07 [ociswrapper] oCIS server exited with code 1
2024/01/31 01:22:07 [ociswrapper] Retry starting oCIS server... (retry 1)
{"level":"info","time":"2024-01-31T01:22:14Z","caller":"/drone/src/vendor/github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/decomposedfs.go:195","message":"Migrating spaces directory structure..."}
{"level":"info","time":"2024-01-31T01:22:14Z","caller":"/drone/src/vendor/github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/decomposedfs.go:195","message":"Migrating space types indexes..."}
{"level":"info","time":"2024-01-31T01:22:14Z","caller":"/drone/src/vendor/github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/decomposedfs.go:195","message":"Migrating spaces directory structure..."}
{"level":"info","time":"2024-01-31T01:22:14Z","caller":"/drone/src/vendor/github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/decomposedfs.go:195","message":"Migrating space types indexes..."}
{"level":"info","root":"/root/.ocis/storage/metadata","time":"2024-01-31T01:22:14Z","caller":"/drone/src/vendor/github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/decomposedfs.go:195","message":"Migrating to messagepack metadata backend..."}
{"level":"info","time":"2024-01-31T01:22:14Z","caller":"/drone/src/vendor/github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/decomposedfs.go:195","message":"done."}
{"level":"warn","error":"open /root/.ocis/storage/metadata/indexes/by-user-id: no such file or directory","time":"2024-01-31T01:22:14Z","caller":"/drone/src/vendor/github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/decomposedfs.go:195","message":"error listing user indexes"}
{"level":"warn","error":"open /root/.ocis/storage/metadata/indexes/by-group-id: no such file or directory","time":"2024-01-31T01:22:14Z","caller":"/drone/src/vendor/github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/decomposedfs.go:195","message":"error listing group indexes"}
{"level":"info","time":"2024-01-31T01:22:14Z","caller":"/drone/src/vendor/github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/decomposedfs.go:195","message":"done."}
{"level":"info","root":"/root/.ocis/storage/users","time":"2024-01-31T01:22:14Z","caller":"/drone/src/vendor/github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/decomposedfs.go:195","message":"Migrating to messagepack metadata backend..."}
{"level":"info","time":"2024-01-31T01:22:14Z","caller":"/drone/src/vendor/github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/decomposedfs.go:195","message":"done."}
{"level":"error","service":"search","error":"error parsing mapping JSON: unexpected end of JSON input\nmapping contents:\n","time":"2024-01-31T01:22:14Z","message":"Error initializing search service"}
{"level":"error","service":"search","error":"error parsing mapping JSON: unexpected end of JSON input\nmapping contents:\n","time":"2024-01-31T01:22:14Z","message":"Error initializing search service"}
{"level":"error","service":"search","error":"error parsing mapping JSON: unexpected end of JSON input\nmapping contents:\n","time":"2024-01-31T01:22:14Z","message":"Error initializing search service"} |
Haven't seen similar failures for months. There were a couple of nats fixes. |
Describe the bug
While starting ocis server, some services fail with
Failed to connect to NATS Server: nats: no servers available for connection
error and ocis exists. ociswrapper then tries to restart the ocis but the search service could not start properly (error:unexpected end of JSON input
)Builds:
https://drone.owncloud.com/owncloud/ocis/29404/37/6
https://drone.owncloud.com/owncloud/ocis/29423/58/9
https://drone.owncloud.com/owncloud/ocis/29427/36/3
https://drone.owncloud.com/owncloud/ocis/29460/31/3
The text was updated successfully, but these errors were encountered: