skypilot-users

How to troubleshoot GCS file mount issues when running on a different provider?

I'm facing difficulties with GCS file mount when running on a different provider. The file mount configuration is not working as expected, and the mounted directory appears empty after provisioning. I've tried using mode: MOUNT but encountered issues. mode: COPY works fine. How can I troubleshoot and resolve this issue?

As

Ash

Asked on Mar 28, 2024

  1. Check the cloud provider's support for mounting object stores:

    • Some cloud providers may not support mounting object stores like GCS without privileged mode.
  2. Use COPY mode as an alternative:

    • Manually upload files at the end of the task using gsutil cp.
  3. Consider the following workaround:

    resources:
      cloud: runpod
    
      ...
    
    file_mounts:
      /data:
        source: gs://<bucket-name>
        mode: MOUNT
    
    run: |
      echo hi > mycheckpoint.dat
      gsutil cp mycheckpoint.dat gs://mybucket/
    
  4. Future improvements:

Mar 28, 2024Edited by