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.72k stars 100 forks source link

[Server_ID Fail] - Could not open input file: artisan #1590

Closed BigFlubba closed 2 months ago

BigFlubba commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Run cd app/www/
  2. Run php artisan app:ookla-list-servers
  3. See error Could not open input file: artisan

Expected behavior Show server id's.

Environment (please complete the following information):

alexjustesen commented 3 months ago

This can happen if your PUID and PGID vars aren't correct, while the default is 1000 it could be different for the user that runs Docker on your machine.

To ensure you have the right IDs run id username.

BigFlubba commented 3 months ago
administrator@docker:~$ id administrator
uid=1000(administrator) gid=1000(administrator) groups=1000(administrator),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),110(lxd)
BigFlubba commented 3 months ago

Here's what I'm entering. I also tried sudo just in case.

administrator@docker:~$ cd speedtest-tracker/www/
administrator@docker:~/speedtest-tracker/www$ php artisan app:ookla-list-servers
Could not open input file: artisan
administrator@docker:~/speedtest-tracker/www$ sudo php artisan app:ookla-list-servers
[sudo] password for administrator: 
Could not open input file: artisan
administrator@docker:~/speedtest-tracker/www$ 
svenvg93 commented 3 months ago

Hi @BigFlubba

These command only work from inside the container, not from the host directly (looking at your output) Can you run docker exec -it speedtest-tracker /bin/bash (adjust speedtest-tracker if your container has a different name)

Then you can run

This should return the server list.

BigFlubba commented 2 months ago

Hey, @svenvg93 it worked perfectly. Thanks! Could this be put in the release notes by chance?

svenvg93 commented 2 months ago

Cool! Please close the issue if it is revolved :) Will have a look at the docs to improve it :)