replicate / codespaces

Internal scripts and tools to make Codespaces work better
6 stars 3 forks source link

unable to `cog run bash` on a fresh codespace #4

Closed zeke closed 1 year ago

zeke commented 1 year ago

I ran this command on a fresh GPU codespace, starting from https://github.com/chenxwh/textual-inversion-codespace

curl https://replicate.github.io/codespaces/scripts/install-cog.sh | bash

Cog is installed:

@zeke ➜ /workspaces/textual-inversion-codespace (main) $ cog --version
cog version 0.4.2 (built 2022-08-23T14:57:26Z)

But cog run bash fails:

@zeke ➜ /workspaces/textual-inversion-codespace (main) $ cog run bash
⚠ Cog doesn't know if CUDA 11.3 is compatible with PyTorch 1.11.0 --extra-index-url=https://download.pytorch.org/whl/cu113. This might cause CUDA problems.
Building Docker image from environment in cog.yaml...
⚠ Cog doesn't know if CUDA 11.3 is compatible with torchvision 0.12.0 --extra-index-url=https://download.pytorch.org/whl/cu113. This might cause CUDA problems.
failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: connection refused
ⅹ Failed to build Docker image: exit status 1

I'm not sure what's changed since yesterday that would make this crash and burn now.

Any ideas, @chenxwh and @andreasjansson?

zeke commented 1 year ago

Fixed by https://github.com/replicate/codespaces/pull/5

Thanks @chenxwh and @andreasjansson

Still curious why this broke suddenly...