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

oCIS server in app-provider CI pipeline can exit sometimes (ocis using MICRO_REGISTRY=mdns) #9687

Closed
SagarGi opened this issue Sep 12, 2023 · 7 comments · Fixed by #9949
Closed
Labels

Comments

@SagarGi
Copy link
Member

SagarGi commented Sep 12, 2023

Descritpion

The login step for the pipeline in the web-master is being flaky. Need some investigation why it is being flaky.
Build link: https://drone.owncloud.com/owncloud/web/38669/11/19

Scenario: create an OpenDocument file with Collabora # tests/e2e/cucumber/features/smoke/app-provider/officeSuites.feature:15
    Given "Admin" creates following users using API
      │ id    │
      │ Alice │
(node:21) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
    And "Alice" logs in
    ✖ failed
      locator.waitFor: Timeout 30000ms exceeded.
      =========================== logs ===========================
      waiting for locator('#web-content') to be visible
      ============================================================
          at World.LogInUser (/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/session.ts:21:40)
    And "Alice" opens the "files" app
    - skipped
    When "Alice" creates the following resources
      │ resource         │ type         │ content              │
      │ OpenDocument.odt │ OpenDocument │ OpenDocument Content │
    - skipped
    And "Alice" creates a public link for the resource "OpenDocument.odt" using the sidebar panel
    - skipped
    And "Alice" edits the public link named "Link" of resource "OpenDocument.odt" changing role to "Can edit"
    - skipped
    And "Alice" logs out
    - skipped
    And "Anonymous" opens the public link "Link"
    - skipped
    Then "Anonymous" should see the content "OpenDocument Content" in editor "Collabora"
    - skipped
@SagarGi SagarGi self-assigned this Sep 12, 2023
@SagarGi
Copy link
Member Author

SagarGi commented Sep 12, 2023

oCIS Server log:
{"level":"error","service":"frontend","error":"com.owncloud.api.gateway: service not found","time":"2023-09-12T00:35:03.519061702Z","message":"cannot get gateway client"} {"level":"error","service":"frontend","error":"com.owncloud.api.gateway: service not found","server":"frontend","time":"2023-09-12T00:35:03.519325126Z","message":"Shutting down server"}

On UI it is stucked at while login:
web-ui-error

@SwikritiT
Copy link
Contributor

SwikritiT commented Sep 15, 2023

this is a server related issue which is reported here owncloud/ocis#7279

@saw-jan
Copy link
Member

saw-jan commented Sep 19, 2023

e2e fails when the created user wants to login. Looks like admin user can login and do requests during the test

{"level":"info","service":"proxy","proto":"HTTP/1.1","request-id":"fd77bcb30b62/jbpv51X8eq-000333","remote-addr":"192.168.69.8:44294","method":"POST","status":200,"path":"/signin/v1/identifier/_/hello","duration":0.529025,"bytes":86,"time":"2023-09-19T04:11:03.192422709Z","line":"/go/src/github.com/owncloud/ocis/services/proxy/pkg/middleware/accesslog.go:31","message":"access-log"}
{"level":"info","service":"proxy","proto":"HTTP/1.1","request-id":"fd77bcb30b62/jbpv51X8eq-000337","remote-addr":"192.168.69.8:44290","method":"POST","status":200,"path":"/signin/v1/identifier/_/logon","duration":122.754809,"bytes":282,"time":"2023-09-19T04:11:03.455146966Z","line":"/go/src/github.com/owncloud/ocis/services/proxy/pkg/middleware/accesslog.go:31","message":"access-log"}
2023/09/19 04:11:03 http: proxy error: context canceled
{"level":"info","service":"proxy","proto":"HTTP/1.1","request-id":"fd77bcb30b62/jbpv51X8eq-000339","remote-addr":"192.168.69.8:44290","method":"GET","status":502,"path":"/signin/v1/identifier/_/authorize","duration":0.939195,"bytes":0,"time":"2023-09-19T04:11:03.462107927Z","line":"/go/src/github.com/owncloud/ocis/services/proxy/pkg/middleware/accesslog.go:31","message":"access-log"}
2023/09/19 04:11:03 http: proxy error: context canceled
{"level":"info","service":"proxy","proto":"HTTP/1.1","request-id":"fd77bcb30b62/jbpv51X8eq-000342","remote-addr":"192.168.69.8:44294","method":"GET","status":502,"path":"/signin/v1/identifier/_/authorize","duration":0.190077,"bytes":0,"time":"2023-09-19T04:11:03.468320392Z","line":"/go/src/github.com/owncloud/ocis/services/proxy/pkg/middleware/accesslog.go:31","message":"access-log"}
{"level":"info","service":"proxy","proto":"HTTP/1.1","request-id":"fd77bcb30b62/jbpv51X8eq-000341","remote-addr":"192.168.69.8:44276","method":"GET","status":302,"path":"/signin/v1/identifier/_/authorize","duration":36.475801,"bytes":0,"time":"2023-09-19T04:11:03.504607939Z","line":"/go/src/github.com/owncloud/ocis/services/proxy/pkg/middleware/accesslog.go:31","message":"access-log"}

@amrita-shrestha
Copy link
Contributor

currently, ocis exists at service so started to fail at wait -for-ocis.
https://drone.owncloud.com/owncloud/web/39223/11/14

{"level":"info","time":"2023-10-05T01:07:51.910523582Z","caller":"/go/src/github.com/owncloud/ocis/vendor/github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/migrator/0005_fix_messagepack_space_index_format.go:72","message":"done."}
{"level":"error","service":"frontend","error":"com.owncloud.api.gateway: service not found","time":"2023-10-05T01:07:52.057008434Z","message":"cannot get gateway client"}
{"level":"error","service":"frontend","error":"com.owncloud.api.gateway: service not found","server":"frontend","time":"2023-10-05T01:07:52.057034602Z","message":"Shutting down server"}

@saw-jan
Copy link
Member

saw-jan commented Oct 6, 2023

It happens with ocis when using MICRO_REGISTRY=mdns (and we need mdns for app-provider tests). So can't do anything from our side.

Checked in #9767.

@kobergj
Copy link
Contributor

kobergj commented Oct 6, 2023

Needs nats micro registry. Followed by this ticket: owncloud/ocis#7296

@saw-jan saw-jan changed the title Web nightly failing on login step for app-providersuite in master branch oCIS server in app-provider CI pipeline can exit sometimes (ocis using MICRO_REGISTRY=mdns) Oct 6, 2023
@saw-jan saw-jan removed their assignment Oct 6, 2023
@grgprarup
Copy link
Contributor

Failed in nightly https://drone.owncloud.com/owncloud/web/39339/11/15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants