Closed BigFlubba closed 2 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
.
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)
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$
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
/app/www
php artisan app:ookla-list-servers
This should return the server list.
Hey, @svenvg93 it worked perfectly. Thanks! Could this be put in the release notes by chance?
Cool! Please close the issue if it is revolved :) Will have a look at the docs to improve it :)
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
cd app/www/
php artisan app:ookla-list-servers
Could not open input file: artisan
Expected behavior Show server id's.
Environment (please complete the following information):