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 exec /etc/s6-overlay/scripts/startup: Permission denied #44

Closed
benjamin-feron opened this issue Oct 6, 2022 · 8 comments
Closed

Comments

@benjamin-feron
Copy link

Hello,

I encounter a problem when I launch the image with an error message :

s6-rc-oneshot-run: fatal: unable to exec /etc/s6-overlay/scripts/startup: Permission denied

I launched it with docker-compose with this simple configuration :

services:
  speedtest-tracker:
    build: ./speedtest-tracker

The repo is freshly cloned in speedtest-tracker directory.

Architecture : aarch64

Can you help me ?

Thanks

@alexjustesen
Copy link
Owner

Hey @benjamin-feron I'd avoid the main branch atm and use a release. I'm aware of a permission issue when creating the SQLite DB during startup if you don't specify an external db.

@benjamin-feron
Copy link
Author

Hey,

Thank you for your response

I've done a git checkout v0.1.0-alpha.6 in the repo and the same issue persits.

networks:
  databases:
    external: true

services:
  speedtest-tracker:
    build: ./speedtest-tracker
    restart: unless-stopped
    networks:
      - databases
    environment:
      DB_CONNECTION: mysql
      DB_HOST: mariadb
      DB_PORT: 3306
      DB_DATABASE: speedtest-tracker_test
      DB_USERNAME: speedtest-tracker_test
      DB_PASSWORD: speedtest-tracker_test

s6-rc-oneshot-run: fatal: unable to exec /etc/s6-overlay/scripts/startup: Permission denied

The database exists with privileges on speedtest-tracker_test user.

@benjamin-feron
Copy link
Author

benjamin-feron commented Oct 7, 2022

Sorry I re-write my comment :

I've done a git checkout v0.1.0-alpha.6 in the repo, force a re-build with docker-compose up --build and it seams this release is NOT aarch64 complient :

networks:
  databases:
    external: true

services:
  speedtest-tracker:
    build: ./speedtest-tracker
    restart: unless-stopped
    networks:
      - databases
    environment:
      DB_CONNECTION: mysql
      DB_HOST: mariadb
      DB_PORT: 3306
      DB_DATABASE: speedtest-tracker_test
      DB_USERNAME: speedtest-tracker_test
      DB_PASSWORD: speedtest-tracker_test

docker-compose up --build

standard_init_linux.go:219: exec user process caused: exec format error

The database exists with privileges on speedtest-tracker_test user.

@alexjustesen
Copy link
Owner

That is correct the current alpha release is no multi-arch. The code sitting in main has basic support for multi-arch but has not been tested yet. Looking to get that done over the weekend.

#32

@benjamin-feron
Copy link
Author

Allright !
thank you

@benjamin-feron
Copy link
Author

Hi, do you have some news about the multi-arch compatibility ?

@alexjustesen
Copy link
Owner

I'm obviously behind on it, got some client work to wrap up before I circle back around to the issues backlog here. You might be able to pull in main and build the image locally (not from the releases) and give it a test.

My rpi's are offline right now, waiting on 1 more poe hat to come in before I put them back in the rack or I'd test it sooner.

@alexjustesen
Copy link
Owner

Closing as the initial issue was resolved in #51 and multi-arch will be addressed and is logged in another issue

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

2 participants