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

Issues mounting files #4863

Open
aronchick opened this issue Feb 27, 2025 · 1 comment
Open

Issues mounting files #4863

aronchick opened this issue Feb 27, 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

Anyone able to figure out what i'm doing wrong here?

Here's my config.yaml:

❯ more /Users/daaronch/.bacalhau/config.yaml
api:
    host: https://2d364392-d8e2-4560-a042-8bb49124370e.us1.cloud.expanso.io
orchestrator:
    enabled: true
compute:
    enabled: true
    auth:
        token: in52W4ifArJaXZeEb7MwzZPGd6PBry37kPp44uGpmHWETbEBu7qumitJzkhqVHq9
    AllowListedLocalPaths:
      - /tmp/foo:/tmp/bar:rw
      - /tmp/foo/qaz.txt:/tmp/qaz.txt
datadir: /Users/daaronch/.bacalhau

Here I am running:

❯ bacalhau docker run --input file:///tmp/foo:/tmp/bar:rw alpine --api-host 0.0.0.0 -- ls /tmp
Job successfully submitted. Job ID: j-828c1831-6a17-4800-82bf-db7b7899764c
Checking job status... (Enter Ctrl+C to exit at any time, your job will continue running):

 TIME          EXEC. ID    TOPIC            EVENT
 13:56:10.696              Submission       Job submitted
 13:56:10.712  e-3b2e2c81  Scheduling       Requested execution on n-5e1272e8
 13:56:10.748  e-3b2e2c81  Exec Scanning    Error: calculating resource usage of job: error getting job disk space requirements: volume
                                            does not exist
 13:56:10.772  e-8f9d0c2f  Scheduling       Requested execution on n-5e1272e8
 13:56:10.796  e-8f9d0c2f  Exec Scanning    Error: calculating resource usage of job: error getting job disk space requirements: volume
                                            does not exist

Error: job failed

To get more details about the run, execute:
        bacalhau job describe j-828c1831-6a17-4800-82bf-db7b7899764c

To get more details about the run executions, execute:
        bacalhau job executions j-828c1831-6a17-4800-82bf-db7b7899764c

Here i am starting and running:

❯ bacalhau serve --api-host 0.0.0.0
13:55:30 | INF Config loaded from: [/Users/daaronch/.bacalhau/config.yaml], and with data-dir /Users/daaronch/.bacalhau
13:55:30 | INF Starting bacalhau...
13:55:34 | WRN failed to start legacy connection manager. falling back to ncl protocol error="failed to create NATS client: failed to connect to nats://4adb3098-aee8-4d5f-b8db-ee6514735347.us1.cloud.expanso.io:4222: read tcp 192.168.1.193:53443->3.214.203.164:4222: i/o timeout"
13:55:34 | INF Starting connection manager node_id=n-5e1272e8-fcd4-49d3-aaf8-04cc7ee0b471 start_time=2025-02-27T13:55:31.901387-08:00
13:55:34 | INF Attempting to establish connection node_id=n-5e1272e8-fcd4-49d3-aaf8-04cc7ee0b471
13:55:34 | INF bacalhau node running name=n-5e1272e8-fcd4-49d3-aaf8-04cc7ee0b471 orchestrators=["nats://4adb3098-aee8-4d5f-b8db-ee6514735347.us1.cloud.expanso.io:4222"]
13:55:36 | ERR Connection attempt failed error="failed to setup transport: failed to connect to NATS: failed to connect to nats://4adb3098-aee8-4d5f-b8db-ee6514735347.us1.cloud.expanso.io:4222: read tcp 192.168.1.193:53444->3.214.203.164:4222: i/o timeout" backoffDuration=10s consecutiveFailures=1
^C13:55:43 | INF bacalhau node shutting down...
^C%                                                                                                                                                         ❯ vi ~/.bacalhau/config.yaml
❯ bacalhau serve --api-host 0.0.0.0
13:56:01 | INF Config loaded from: [/Users/daaronch/.bacalhau/config.yaml], and with data-dir /Users/daaronch/.bacalhau
13:56:01 | INF Starting bacalhau...
13:56:03 | INF Starting connection manager node_id=n-5e1272e8-fcd4-49d3-aaf8-04cc7ee0b471 start_time=2025-02-27T13:56:02.959798-08:00
13:56:03 | INF Attempting to establish connection node_id=n-5e1272e8-fcd4-49d3-aaf8-04cc7ee0b471
13:56:03 | INF bacalhau node running name=n-5e1272e8-fcd4-49d3-aaf8-04cc7ee0b471 orchestrators=["nats://127.0.0.1:4222"]
13:56:03 | INF handshake successful with node n-5e1272e8-fcd4-49d3-aaf8-04cc7ee0b471
13:56:10 | WRN Job failed Details={"IsError":"true","NodesAvailable":"1","NodesRequested":"1","NodesSuitable":"0"} EvalID=ea5a84b8-c969-4f01-840c-a9f0a99f5c37 Event="not enough nodes to run job. requested: 1, available: 1, suitable: 0.\n• Node n-5e1272e8: job already executed on this node more than once" JobID=j-828c1831-6a17-4800-82bf-db7b7899764c NewState=Failed NodeID=n-5e1272e8 OldRevision=1 OldState=Pending Reason="not enough nodes to run job. requested: 1, available: 1, suitable: 0.\n• Node n-5e1272e8: job already executed on this node more than once"
@aronchick aronchick added request/new Request: Indicates a new request that has been submitted and awaits initial triage type/bug Type: Something is not working as expected labels Feb 27, 2025
Copy link

linear bot commented Feb 27, 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