Skip to content
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

Notifications don't work after switching ocis to new version #8107

Closed
ScharfViktor opened this issue Jan 2, 2024 · 0 comments
Closed

Notifications don't work after switching ocis to new version #8107

ScharfViktor opened this issue Jan 2, 2024 · 0 comments

Comments

@ScharfViktor
Copy link
Contributor

As a result of compatibility testing, I found that auto-acceptance does not work by default

use: https://github.com/owncloud/ocis/blob/master/deployments/examples/ocis_traefik/docker-compose.yml

Steps:

  • start ocis 4.0.5: git checkout stable-4.0.5 -> OCIS_DOCKER_TAG=4.0.5 docker-compose up -d
  • create folders f1 and share it to einstein
  • upgrade ocis: git checkout master -> OCIS_DOCKER_TAG=5.0.0-rc.1 docker-compose up -d
  • admin creates f3 and shares to einstein
  • einstein is waiting notification

Expected:
einstein is getting notification

Actual:

Screenshot 2024-01-02 at 13 36 42

ocis_log:

2024-01-02 13:19:42 {"level":"error","service":"userlog","error":"unexpected status code while authenticating service user: CODE_UNAUTHENTICATED","time":"2024-01-02T12:19:42Z","line":"github.com/owncloud/ocis/v2/services/userlog/pkg/service/http.go:57","message":"cant get service account"}
2024-01-02 13:19:42 {"level":"info","service":"proxy","proto":"HTTP/1.1","request-id":"73099fc6-fdeb-4e76-801e-b00cc61f8d70","traceid":"341608812126523b827361beb3c91230","remote-addr":"172.31.0.1","method":"GET","status":500,"path":"/ocs/v2.php/apps/notifications/api/v1/notifications","duration":13.563209,"bytes":0,"time":"2024-01-02T12:19:42Z","line":"github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/accesslog.go:34","message":"access-log"}

maybe it related somehow, I used service account and new micro registry in new ocis version

MICRO_REGISTRY: "nats-js-kv"
OCIS_SERVICE_ACCOUNT_ID: "d738470e-d561-48ca-aefb-f8686ebb2e52"
OCIS_SERVICE_ACCOUNT_SECRET: "test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants