alexjustesen / speedtest-tracker

Speedtest Tracker is a self-hosted internet performance tracking application that runs speedtest checks against Ookla's Speedtest service.
https://speedtest-tracker.dev/
MIT License
2.77k stars 106 forks source link

unable to exec /etc/s6-overlay/scripts/startup: Permission denied #44

Closed benjamin-feron closed 1 year ago

benjamin-feron commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Allright ! thank you

benjamin-feron commented 2 years ago

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

alexjustesen commented 1 year ago

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 commented 1 year ago

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