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

terrarium not working on x86_64 #137

Open
joelsprunger opened this issue May 14, 2024 · 8 comments
Open

terrarium not working on x86_64 #137

joelsprunger opened this issue May 14, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@joelsprunger
Copy link

What is the issue?

I'm running Ubuntu 22 on an x86 machine and getting this message when I deploy locally.

! terrarium The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested                             0.0s 
Watch enabled

I tried specifying the platform in the docker-compose.yml and got this error instead.

[+] Running 0/1
 ⠇ terrarium Pulling                                                                                                                                                                       0.9s 
image with reference ghcr.io/cohere-ai/terrarium:latest was found but does not match the specified platform: wanted linux/amd64/v3, actual: linux/arm64/v8

Is this terrarium image only for amd64?

Additional information

No response

@joelsprunger joelsprunger added the bug Something isn't working label May 14, 2024
@tianjing-li
Copy link
Collaborator

@joelsprunger Not sure this will work, but can you try specifying arm64v8 in the docker compose?

@joelsprunger
Copy link
Author

When I do that I get the following message

docker compose up terrarium 
WARN[0000] /home/joel/src/cohere-toolkit/docker-compose.yml: `version` is obsolete 
[+] Running 0/1
 ⠧ terrarium Pulling                                                                                                                                                                       0.7s 
image with reference ghcr.io/cohere-ai/terrarium:latest was found but does not match the specified platform: wanted linux/amd64/v8, actual: linux/arm64/v8

@tianjing-li
Copy link
Collaborator

Ah excuse me, try amd64v8

@joelsprunger
Copy link
Author

I'm sorry - that's what I used.

terrarium:
  image: ghcr.io/cohere-ai/terrarium:latest
  platform: linux/amd64/v8
  ports:
    - '8080:8080'
  expose:
    - '8080'

@joelsprunger
Copy link
Author

To summarize

Specify AMD

  terrarium:
    image: ghcr.io/cohere-ai/terrarium:latest
    platform: linux/amd64/v8
    ports:
      - '8080:8080'
    expose:
      - '8080'

Output:

docker compose up terrarium 
WARN[0000] /home/joel/src/cohere-toolkit/docker-compose.yml: `version` is obsolete 
[+] Running 0/1
 ⠧ terrarium Pulling                                                                                                                                                                       0.7s 
image with reference ghcr.io/cohere-ai/terrarium:latest was found but does not match the specified platform: wanted linux/amd64/v8, actual: linux/arm64/v8

Specify ARM

  terrarium:
    image: ghcr.io/cohere-ai/terrarium:latest
    platform: linux/arm64/v8
    ports:
      - '8080:8080'
    expose:
      - '8080'

Output:

docker compose up terrarium 
WARN[0000] /home/joel/src/cohere-toolkit/docker-compose.yml: `version` is obsolete 
[+] Running 1/0
 ✔ Container cohere-toolkit-terrarium-1  Recreated                                                                                                                                         0.0s 
Attaching to terrarium-1
terrarium-1  | exec /usr/local/bin/ts-node: exec format error

and

Specify Nothing

  terrarium:
    image: ghcr.io/cohere-ai/terrarium:latest
    ports:
      - '8080:8080'
    expose:
      - '8080'

Output:

docker compose up terrarium 
WARN[0000] /home/joel/src/cohere-toolkit/docker-compose.yml: `version` is obsolete 
[+] Running 2/0
 ✔ Container cohere-toolkit-terrarium-1                                                                                                                        Recreated                   0.0s 
 ! terrarium The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested                             0.0s 
Attaching to terrarium-1
terrarium-1  | exec /usr/local/bin/ts-node: exec format error
terrarium-1 exited with code 1

@tianjing-li
Copy link
Collaborator

@joelsprunger Thanks for all the details, we're aware of the issues with some operating systems and will look into it

@tianjing-li
Copy link
Collaborator

Hey @joelsprunger it's been a while but we should have a fix for this soon

@tianjing-li
Copy link
Collaborator

tianjing-li commented May 31, 2024

@joelsprunger We've recently pushed a new version of the terrarium image that resolves this issue, you should be able to try again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants