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

Why is this configuration bug happening? #4804

Open
aronchick opened this issue Jan 9, 2025 · 1 comment
Open

Why is this configuration bug happening? #4804

aronchick opened this issue Jan 9, 2025 · 1 comment
Labels
request/new Request: Indicates a new request that has been submitted and awaits initial triage type/bug Type: Something is not working as expected

Comments

@aronchick
Copy link
Collaborator

aronchick commented Jan 9, 2025

❯ bacalhau config set API.Host=https://REDACTED-aee8-4d5f-b8db-ee6514735347.us1.cloud.expanso.io
Writing config to /Users/daaronch/.bacalhau/config.yaml

❯ more ~/.bacalhau/config.yaml
api:
    host: https://REDACTED-aee8-4d5f-b8db-ee6514735347.us1.cloud.expanso.io
compute:
  Orchestrators:
    - nats://REDACTED-aee8-4d5f-b8db-ee6514735347.us1.cloud.expanso.io:4222
  Auth:
    Token: "REDACTEDJaXZeEb7MwzZPGd6PBry37kPp44uGpmHWETbEBu7qumitJzkhqVHq9"

❯ bacalhau node list
token:

Error: failed request: context canceled

❯ echo "REDACTEDaXZeEb7MwzZPGd6PBry37kPp44uGpmHWETbEBu7qumitJzkhqVHq9" | bacalhau node list
token:
Error: unauthorized
Hint:  to resolve this, either:
1. Ensure that the server is running and reachable at https://REDACTED-7a02-4083-bf08-bcc2f5fbc025.us1.dev-cloud.expanso.dev:1234
2. Update the configuration to use a different host and port using:
   a. The '--api-host=<new_address> --api-port=<new_port>' flags with your command
   b. The '-c API.Host=<new_host> -c API.Port=<new_port>' flags with your command
   c. Set the host in a configuration file with 'bacalhau config set API.Host=<new_address>' and port with 'bacalhau config set API.Port=<new_port>'
   
❯ env | rg BACALHAU

❯ 

Notice that the "unauthorized" message is being reported from the wrong API server. But my config directory is correct? And there's nothing in ~/.config/bacalhau

@aronchick aronchick added type/bug Type: Something is not working as expected request/new Request: Indicates a new request that has been submitted and awaits initial triage labels Jan 9, 2025
Copy link

linear bot commented Jan 9, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request/new Request: Indicates a new request that has been submitted and awaits initial triage type/bug Type: Something is not working as expected
Projects
None yet
Development

No branches or pull requests

1 participant