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

Improve error message when volume is incorrect (or auto append "file://") #4788

Open
aronchick opened this issue Dec 19, 2024 · 1 comment
Open
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

❯ bacalhau docker run -i /var/log/logs_to_process:/var/log/logs_to_process:rw ubuntu ls -la /var/log/logs_to_process

Error: invalid argument "/var/log/logs_to_process:/var/log/logs_to_process:rw" for "-i, --input" flag: parse ":///var/log/logs_to_process:/var/log/logs_to_process": missing protocol scheme

IDEALLY this would just append "file://" to the front.

❯ bacalhau docker run -i file://var/log/logs_to_process:/var/log/logs_to_process:rw ubuntu ls -la /var/log/logs_to_process
Job successfully submitted. Job ID: j-0bc2419e-7e98-44df-b335-a2150960e1f2
Checking job status... (Enter Ctrl+C to exit at any time, your job will continue running):

 TIME          EXEC. ID    TOPIC            EVENT
 21:47:25.375              Submission       Job submitted
 21:47:25.408  e-1773ec70  Scheduling       Requested execution on 4b60888a
 21:47:27.252  e-1773ec70  Exec Scanning    Error: calculating resource usage of job: error getting job disk space requirements: volume
                                            not in allowed paths

This is an incorrect error - it's not "disk space requirements". IDEALLY we had something more clear!

@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 Dec 19, 2024
Copy link

linear bot commented Dec 19, 2024

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