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

Log error Container #14

Closed
otebono opened this issue Oct 25, 2022 · 6 comments
Closed

Log error Container #14

otebono opened this issue Oct 25, 2022 · 6 comments
Assignees

Comments

@otebono
Copy link

otebono commented Oct 25, 2022

When I try to start Docker container I get this error:

exec /opt/env/bin/python3: exec format error

I'm using Debian 11 OS in a Raspberry pi 4.

@rosskouk
Copy link
Owner

Hi,

Can you give me the full docker run command or a copy of your compose file as I'm not able to recreate the issue.

Thanks.

@rosskouk rosskouk self-assigned this Oct 29, 2022
@otebono
Copy link
Author

otebono commented Nov 5, 2022

Sure, here it is.

docker-compose.txt

@rosskouk
Copy link
Owner

Hi @otebono

I think this is happening because you are running the container on a Raspberry PI. The container image I have provided was built on an amd64 platform. I will look into this in the future, however the quickest way for you to get up and running would be to use your Raspberry PI to build a fresh image using the Dockerfile in the repository. I hope that helps, please let me know how you get on.

@celynw
Copy link

celynw commented Nov 24, 2022

For what it's worth, I managed to use @rosskouk's suggestion to make it work. Glad I found this issue, great project, thanks!

I did have a problem pulling the alpine image:

ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/main: temporary error (try again later)

but I managed to fix that with this issue comment:

sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

@ScruffyDerHausmeister
Copy link

@celynw Can you describe how to create an image / container for raspberrypi (4)?

@celynw
Copy link

celynw commented Feb 26, 2024

Sure - it's been a while and I wanted to set this up again anyway. I'm not sure how familiar you are with this process but I think this might be detailed enough:

  1. Create a directory somewhere on your raspberry pi, e.g.

    mkdir ~/asknavidrome
  2. Get the Dockerfile from this repository.

  3. Put the Dockerfile directly in that directory, so in my case it was ~/asknavidrome/Dockerfile.

  4. From the terminal, change directory to that directory:

    cd ~/asknavidrome
  5. Then run

    docker build .

    (You will need to have docker installed)
    This might take a while. If it worked, the final line should say:

    Successfully built c3fa3e3682db

    or something like that. If you have an issue like I mentioned in my previous message, try following that. But I didn't have that error this time.

  6. You can double check the image exists by running docker image ls, and near the top it should have something like:

    REPOSITORY                                             TAG                         IMAGE ID       CREATED         SIZE
    <none>                                                 <none>                      c3fa3e3682db   3 minutes ago   122MB
    
  7. You could now do docker run c3fa3e3682db and it would work, but it might be better to tag it:

     docker image tag c3fa3e3682db asknavidrome:v0.8

    which makes it much easier to find later

    REPOSITORY                                             TAG                         IMAGE ID       CREATED          SIZE
    asknavidrome                                           v0.8                        c3fa3e3682db   11 minutes ago   122MB
    
  8. Now you can edit your docker-compose.yml to point to the image you built:

    image: 'asknavidrome:v0.8'

    I do this part with Portainer, so after pressing Update the stack it's up and running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants