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

checking the ocis version returns Failed to connect to NATS Server #8070

Closed
nabim777 opened this issue Dec 27, 2023 · 5 comments · Fixed by #8408
Closed

checking the ocis version returns Failed to connect to NATS Server #8070

nabim777 opened this issue Dec 27, 2023 · 5 comments · Fixed by #8408
Assignees
Labels
Milestone

Comments

@nabim777
Copy link
Member

nabim777 commented Dec 27, 2023

Describe the bug

According to the document while installing ocis by binary set up, the output comes different while using the command ocis version

Expected behavior

something similar to:

$ ocis version

Version: 5.0.0-beta.2
Compiled: 2023-12-20 00:00:00 +0000 UTC

No running services found.

Actual behavior

image

Tested on

OCIS version : 5.0.0-beta.2

@nabim777 nabim777 changed the title unexpected outcomes for ocis version while installation of binary setup ocis unexpected outcomes for command ocis version while installation of binary setup ocis Dec 27, 2023
@nabim777 nabim777 changed the title unexpected outcomes for command ocis version while installation of binary setup ocis checking the ocis version returns Failed to connect to NATS Server Dec 27, 2023
@nabim777 nabim777 mentioned this issue Dec 27, 2023
71 tasks
@kobergj
Copy link
Collaborator

kobergj commented Dec 27, 2023

Cannot reproduce locally. It works with the default setup.

When nats is not running on the standart port you need to set MICRO_REGISTRY_ADDRESS . How did you set up ocis? Anything special you set?

@saw-jan
Copy link
Member

saw-jan commented Dec 27, 2023

How did you set up ocis? Anything special you set?

It should be binary from https://download.owncloud.com/ocis/ocis/testing/5.0.0-beta.2/?sort=time&order=asc
Also, I built the latest ocis from git and same error with command ./ocis/bin/ocis version

@saw-jan
Copy link
Member

saw-jan commented Jan 1, 2024

sometimes while running ocis server as well. See #7838

@dragonchaser dragonchaser moved this from Qualification to Prio 3 or less in Infinite Scale Team Board Feb 5, 2024
@dragonchaser dragonchaser self-assigned this Feb 7, 2024
@dragonchaser dragonchaser moved this from Prio 3 or less to In progress in Infinite Scale Team Board Feb 7, 2024
@micbar micbar added this to the Release 5.0.0 milestone Feb 7, 2024
@dragonchaser
Copy link
Contributor

I can reproduce it in two cases

  • ocis is not running
  • ocis is in startup and nats is not available jet

@saw-jan
Copy link
Member

saw-jan commented Feb 29, 2024

The ocis version cmd listed all services by default. This is not always intended,
so we allow to skip the listing of the services by using the --skip-services flag.

We must use --skip-services to only check the versions string

$ ./ocis version --skip-services

Version: 5.1.0-prealpha+c7f80767ec
Compiled: 2024-02-29 00:00:00 +0000 UTC

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

Successfully merging a pull request may close this issue.

5 participants