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

Unable to build Singularity container #1209

Closed
1 task
IsmailAM1999 opened this issue Oct 8, 2024 · 2 comments
Closed
1 task

Unable to build Singularity container #1209

IsmailAM1999 opened this issue Oct 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@IsmailAM1999
Copy link

Prerequisites

Please make sure to check off these prerequisites before submitting a bug report.

  • [ X ] Test that the bug appears on the current version of the dev-branch. Make sure to include the commit hash of the commit you checked out.
  • [ X ] Check that the issue hasn't already been reported, by checking the currently open issues.
  • [ X ] If there are steps to reproduce the problem, make sure to write them down below.
  • If relevant, please include the ONNX files, which were created directly before and/or after the bug.

Quick summary

Hello !
I am a very newbie in Singularity/Docker environments,

FINN worked fluently with Docker and for some reasons I have to move to a machine without root permission. Thus, I found a potential solution with singularity

While trying to launch singularity container instead of Docker by following these steps : #868
I got the error below :

Downloading and extracting board files...
cp: cannot stat '/users/local/ismail_env/finn-dev/deps/avnet-bdf/*': No such file or directory
cp: cannot stat '/users/local/ismail_env/finn-dev/deps/xil-bdf/boards/Xilinx/rfsoc2x2': No such file or directory
cp: cannot stat '/users/local/ismail_env/finn-dev/deps/rfsoc4x2-bdf/board_files/rfsoc4x2': No such file or directory
cp: cannot stat '/users/local/ismail_env/finn-dev/deps/kv260-som-bdf/boards/Xilinx/kv260_som': No such file or directory
FINN_SINGULARITY is set, launching Singularity container instead of Docker
INFO[0000] trying next host                              error="failed to authorize: failed to fetch oauth token: unexpected status: 403 Forbidden" host=ghcr.io
FATAL:   Unable to handle oras://ghcr.io/eki-project/experiment-manager/finn_apptainer_xilinx:dev uri: failed to get checksum for oras://ghcr.io/eki-project/experiment-manager/finn_apptainer_xilinx:dev: while resolving reference: failed to authorize: failed to fetch oauth token: unexpected status: 403 Forbidden

Steps to Reproduce

1 - clone dev-branch to local
2 - export environment variable export FINN_SINGULARITY=oras://ghcr.io/eki-project/experiment-manager/finn_apptainer_xilinx:dev
3 - running ./run-docker.sh

Thank you for your work and in advance your help

@IsmailAM1999 IsmailAM1999 added the bug Something isn't working label Oct 8, 2024
@fpjentzsch
Copy link
Collaborator

Hi, the public Singularity image build at oras://ghcr.io/eki-project/experiment-manager is no longer maintained.

I recommend to build your own Singularity image from the FINN Docker image of the version you need. We do it with these two commands:
docker build --no-cache -f docker/Dockerfile.finn --tag=finn_docker_export .
apptainer build finn_singularity_image.sif docker-daemon://finn_docker_export:latest

Then you can point FINN_SINGULARITY to the .sif file.

@IsmailAM1999
Copy link
Author

Hi,

It's working perfectly! Thank you very much for the quick response 🤗

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