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

[BUG] docker images not support right version of wget #421

Closed
kis87988 opened this issue Dec 19, 2020 · 28 comments
Closed

[BUG] docker images not support right version of wget #421

kis87988 opened this issue Dec 19, 2020 · 28 comments
Labels
bug Something isn't working

Comments

@kis87988
Copy link

Describe the bug
wget download speedtest cli tool fail
command wget https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-x86_64-linux.tgz -O speedtest.tgz

To Reproduce
create a new docker container.
You will see the fail log

Connecting to bintray.com (75.126.208.206:443)
wget: error getting response: Connection reset by peer

Expected behavior
Wget download success then execute the nginx

Screenshots

12/19/20 20:17	stdout	[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
12/19/20 20:17	stdout	[s6-init] ensuring user provided files have correct perms...exited 0.
12/19/20 20:17	stdout	[fix-attrs.d] applying ownership & permissions fixes...
12/19/20 20:17	stdout	[fix-attrs.d] done.
12/19/20 20:17	stdout	[cont-init.d] executing container initialization scripts...
12/19/20 20:17	stdout	[cont-init.d] 01-envfile: executing... 
12/19/20 20:17	stdout	[cont-init.d] 01-envfile: exited 0.
12/19/20 20:17	stdout	[cont-init.d] 10-adduser: executing... 
12/19/20 20:17	stdout	usermod: no changes
12/19/20 20:17	stdout	
12/19/20 20:17	stdout	-------------------------------------
12/19/20 20:17	stdout	          _         ()
12/19/20 20:17	stdout	         | |  ___   _    __
12/19/20 20:17	stdout	         | | / __| | |  /  \ 
12/19/20 20:17	stdout	         | | \__ \ | | | () |
12/19/20 20:17	stdout	         |_| |___/ |_|  \__/
12/19/20 20:17	stdout	
12/19/20 20:17	stdout	
12/19/20 20:17	stdout	Brought to you by linuxserver.io
12/19/20 20:17	stdout	-------------------------------------
12/19/20 20:17	stdout	
12/19/20 20:17	stdout	To support LSIO projects visit:
12/19/20 20:17	stdout	https://www.linuxserver.io/donate/
12/19/20 20:17	stdout	-------------------------------------
12/19/20 20:17	stdout	GID/UID
12/19/20 20:17	stdout	-------------------------------------
12/19/20 20:17	stdout	
12/19/20 20:17	stdout	User uid:    911
12/19/20 20:17	stdout	User gid:    911
12/19/20 20:17	stdout	-------------------------------------
12/19/20 20:17	stdout	
12/19/20 20:17	stdout	[cont-init.d] 10-adduser: exited 0.
12/19/20 20:17	stdout	[cont-init.d] 20-config: executing... 
12/19/20 20:17	stdout	[cont-init.d] 20-config: exited 0.
12/19/20 20:17	stdout	[cont-init.d] 30-keygen: executing... 
12/19/20 20:17	stdout	using keys found in /config/keys
12/19/20 20:17	stdout	[cont-init.d] 30-keygen: exited 0.
12/19/20 20:17	stdout	[cont-init.d] 40-config: executing... 
"
12/19/20 20:17	stdout	Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please manually download/update the GeoIP2 db and save as /config/geoip2db/GeoLite2-City.mmdb"		
12/19/20 20:17	stdout	[cont-init.d] 40-config: exited 0.
12/19/20 20:17	stdout	[cont-init.d] 50-speedtest: executing... 
12/19/20 20:17	stdout	Ookla GDPR and EULA accepted. Downloading Speedtest CLI.
12/19/20 20:17	stderr	Connecting to bintray.com (75.126.208.206:443)
12/19/20 20:17	stderr	wget: error getting response: Connection reset by peer
12/19/20 20:17	stderr	tar: can't open 'speedtest.tgz': No such file or directory
12/19/20 20:17	stderr	cp: cannot stat 'speedtest': No such file or directory
12/19/20 20:17	stderr	s6-applyuidgid: fatal: unable to exec /site/app/Bin/speedtest: No such file or directory
12/19/20 20:17	stdout	Copying latest site files to config
12/19/20 20:20	stdout	Database file exists
12/19/20 20:20	stdout	Env file exists
12/19/20 20:20	stdout	Running database migrations
12/19/20 20:20	stdout	Nothing to migrate.
12/19/20 20:20	stdout	App key exists
12/19/20 20:20	stdout	JWT secret exists
12/19/20 20:20	stdout	Slack webhook is unset
12/19/20 20:20	stdout	Telegram chat id and bot token unset
12/19/20 20:20	stdout	Base path is unset
12/19/20 20:20	stdout	AUTH variable not set. Disabling authentication
12/19/20 20:20	stdout	Disabling authentication
12/19/20 20:20	stdout	Clearing old jobs from queue
12/19/20 20:20	stderr	chmod: cannot access '/config/www/app/Bin/speedtest': No such file or directory
12/19/20 20:20	stdout	[cont-init.d] 50-speedtest: exited 1.
12/19/20 20:20	stdout	[cont-finish.d] executing container finish scripts...
12/19/20 20:20	stdout	[cont-finish.d] done.
12/19/20 20:20	stdout	[s6-finish] waiting for services.
12/19/20 20:20	stdout	[s6-finish] sending all processes the TERM signal.
12/19/20 20:20	stdout	[s6-finish] sending all processes the KILL signal and exiting.

Context

  • OS: docker
  • Speedtest-Tracker Version: 1.10.0

Additional context
We may need to add the following package into the docker image or docker file.

$ apk update
$ apk add ca-certificates wget

Temp solution:

# enter docker via `docker exec -it {container_name} /bin/bash`
$ apt update && apt add ca-certificates wget
$ exit
# restart the docker via `docker restart {container_name}`

or rebuild the docker images self

@kis87988 kis87988 added the bug Something isn't working label Dec 19, 2020
@felho001
Copy link

felho001 commented Dec 19, 2020

Hi i installed synology docker and always restart docker here is log:

Why not install this? If i try login ip no webpage....

date stream content
2020-12-19 21:28:52 stdout [s6-finish] sending all processes the KILL signal and exiting.
2020-12-19 21:28:49 stdout [s6-finish] sending all processes the TERM signal.
2020-12-19 21:28:49 stdout [s6-finish] waiting for services.
2020-12-19 21:28:49 stdout [cont-finish.d] done.
2020-12-19 21:28:49 stdout [cont-finish.d] executing container finish scripts...
2020-12-19 21:28:48 stdout �[32mEnabling authentication�[39m
2020-12-19 21:28:48 stdout AUTH variable set. Enabling authentication
2020-12-19 21:28:48 stdout Base path is unset
2020-12-19 21:28:48 stdout Telegram chat id and bot token unset
2020-12-19 21:28:48 stdout Slack webhook is unset
2020-12-19 21:28:48 stdout JWT secret exists
2020-12-19 21:28:48 stdout App key exists
2020-12-19 21:28:48 stdout �[32mNothing to migrate.�[39m
2020-12-19 21:28:48 stdout Running database migrations
2020-12-19 21:28:48 stdout Env file exists
2020-12-19 21:28:48 stdout Database file exists
2020-12-19 21:28:40 stdout Copying latest site files to config
2020-12-19 21:28:40 stdout s6-applyuidgid: fatal: unable to exec /site/app/Bin/speedtest: No such file or directory
2020-12-19 21:28:40 stdout cp: cannot stat 'speedtest': No such file or directory
2020-12-19 21:28:40 stdout tar: can't open 'speedtest.tgz': No such file or directory
2020-12-19 21:28:40 stdout wget: error getting response: Connection reset by peer
2020-12-19 21:28:39 stdout Connecting to bintray.com (108.168.194.93:443)
2020-12-19 21:28:39 stdout Ookla GDPR and EULA accepted. Downloading Speedtest CLI.
2020-12-19 21:28:39 stdout [cont-init.d] 50-speedtest: executing...
2020-12-19 21:28:39 stdout [cont-init.d] 40-config: exited 0.
2020-12-19 21:28:39 stdout Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please manually download/update the GeoIP2 db and save as /config/geoip2db/GeoLite2-City.mmdb
2020-12-19 21:28:39 stdout [cont-init.d] 40-config: executing...
2020-12-19 21:28:39 stdout [cont-init.d] 30-keygen: exited 0.
2020-12-19 21:28:39 stdout using keys found in /config/keys
2020-12-19 21:28:39 stdout [cont-init.d] 30-keygen: executing...
2020-12-19 21:28:39 stdout [cont-init.d] 20-config: exited 0.
2020-12-19 21:28:35 stdout [cont-init.d] 20-config: executing...
2020-12-19 21:28:35 stdout [cont-init.d] 10-adduser: exited 0.
2020-12-19 21:28:35 stdout  
2020-12-19 21:28:35 stdout -------------------------------------
2020-12-19 21:28:35 stdout User gid:    101
2020-12-19 21:28:35 stdout User uid:    1024
2020-12-19 21:28:35 stdout  
2020-12-19 21:28:35 stdout -------------------------------------
2020-12-19 21:28:35 stdout GID/UID
2020-12-19 21:28:35 stdout -------------------------------------
2020-12-19 21:28:35 stdout https://www.linuxserver.io/donate/
2020-12-19 21:28:35 stdout To support LSIO projects visit:
2020-12-19 21:28:35 stdout  
2020-12-19 21:28:35 stdout -------------------------------------
2020-12-19 21:28:35 stdout Brought to you by linuxserver.io
2020-12-19 21:28:35 stdout  
2020-12-19 21:28:35 stdout  
2020-12-19 21:28:35 stdout || |/ ||  _/
2020-12-19 21:28:35 stdout | | __ \ | | | () |
2020-12-19 21:28:35 stdout | | / __| | |  /  \
2020-12-19 21:28:35 stdout | |  ___   _    __
2020-12-19 21:28:35 stdout _         ()
2020-12-19 21:28:35 stdout -------------------------------------
2020-12-19 21:28:35 stdout  
2020-12-19 21:28:35 stdout usermod: no changes
2020-12-19 21:28:35 stdout [cont-init.d] 10-adduser: executing...
2020-12-19 21:28:35 stdout [cont-init.d] 01-envfile: exited 0.
2020-12-19 21:28:35 stdout [cont-init.d] 01-envfile: executing...
2020-12-19 21:28:35 stdout [cont-init.d] executing container initialization scripts...
2020-12-19 21:28:35 stdout [fix-attrs.d] done.
2020-12-19 21:28:35 stdout [fix-attrs.d] applying ownership & permissions fixes...
2020-12-19 21:28:35 stdout [s6-init] ensuring user provided files have correct perms...exited 0.
2020-12-19 21:28:35 stdout [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
2020-12-19 21:28:32 stdout [s6-finish] sending all processes the KILL signal and exiting.
2020-12-19 21:28:29 stdout [s6-finish] sending all processes the TERM signal.
2020-12-19 21:28:29 stdout [s6-finish] waiting for services.
2020-12-19 21:28:29 stdout [cont-finish.d] done.
2020-12-19 21:28:29 stdout [cont-finish.d] executing container finish scripts...
2020-12-19 21:28:29 stdout [cont-init.d] 50-speedtest: exited 1.
2020-12-19 21:28:29 stdout chmod: cannot access '/config/www/app/Bin/speedtest': No such file or directory
2020-12-19 21:28:28 stdout Clearing old jobs from queue
2020-12-19 21:28:28 stdout �[32mEnabling authentication�[39m
2020-12-19 21:28:27 stdout AUTH variable set. Enabling authentication
2020-12-19 21:28:27 stdout Base path is unset
2020-12-19 21:28:27 stdout Telegram chat id and bot token unset
2020-12-19 21:28:27 stdout Slack webhook is unset
2020-12-19 21:28:27 stdout JWT secret exists
2020-12-19 21:28:27 stdout App key exists
2020-12-19 21:28:27 stdout �[32mNothing to migrate.�[39m
2020-12-19 21:28:27 stdout Running database migrations
2020-12-19 21:28:27 stdout Env file exists
2020-12-19 21:28:27 stdout Database file exists
2020-12-19 21:28:19 stdout Copying latest site files to config
2020-12-19 21:28:19 stdout s6-applyuidgid: fatal: unable to exec /site/app/Bin/speedtest: No such file or directory
2020-12-19 21:28:19 stdout cp: cannot stat 'speedtest': No such file or directory
2020-12-19 21:28:19 stdout tar: can't open 'speedtest.tgz': No such file or directory
2020-12-19 21:28:19 stdout wget: error getting response: Connection reset by peer
2020-12-19 21:28:19 stdout Connecting to bintray.com (108.168.194.93:443)
2020-12-19 21:28:19 stdout Ookla GDPR and EULA accepted. Downloading Speedtest CLI.
2020-12-19 21:28:19 stdout [cont-init.d] 50-speedtest: executing...
2020-12-19 21:28:19 stdout [cont-init.d] 40-config: exited 0.
2020-12-19 21:28:19 stdout Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please manually download/update the GeoIP2 db and save as /config/geoip2db/GeoLite2-City.mmdb

@kis87988
Copy link
Author

I don't think that is a Synology problem. I use other devices and have the same result.
I believe some upstream package has been changed...

@kis87988
Copy link
Author

possible relate to #208

@henrywhitaker3
Copy link
Owner

I've just run this command in a new container and it downloads fine. This line seems to me like it's a network issue you are having:

12/19/20 20:17	stderr	wget: error getting response: Connection reset by peer

@kis87988
Copy link
Author

kis87988 commented Dec 19, 2020

Umm. I don’t think that is a network issue. I login to the docker container and run the wget and resulting in the same thing. However, I install the wget and ca-certificate the issue solved

@felho001
Copy link

ca-certificate

how can install wget? if i write terminal container speedtest say no url
Képernyőfotó 2020-12-20 - 0 26 04

@kis87988
Copy link
Author

@felho001, You need to attache your docker container via docker exec -it {docker_name} default docker_name is speedtest

kis87988 added a commit to kis87988/Speedtest-Tracker that referenced this issue Dec 20, 2020
@kis87988
Copy link
Author

@kis87988
Copy link
Author

@henrywhitaker3 ,
The reason why yours may work may due to your mounting folder under www/app/Bin/speedtest already exist the speedtest binary file. In this case, the speedtest won't re-download again.

@henrywhitaker3
Copy link
Owner

Yeah I'm aware it doesn't re-download, which is why I said "in a new container". No previous volume etc. so it would force a redownload. I also got a shell on the container and manually ran the wget command, also runs fine

@kis87988
Copy link
Author

ummmm interesting... It may due to images for linuxserver/nginx bad pull?

@felho001
Copy link

Képernyőfotó 2020-12-20 - 10 01 02

I atached docker exec -it {docker_name} but not work
Képernyőfotó 2020-12-20 - 10 02 47

and now what is next?
I istalled first in docker not work, second I delete all files image. and install Docker compose mode same not work.
some one write step by step work instructions? thx

@felho001
Copy link

felho001 commented Dec 20, 2020

I deleted all file speddtest and contanier. and after re install this Docker compose. but not work unable site/app/bin/speedtest and wget says connection reset by peer.

version: '3.3'
services:
speedtest:
container_name: speedtest
image: henrywhitaker3/speedtest-tracker
ports:
- 8765:80
volumes:
- /volume3/docker/speedtest/config:/config
environment:
- TZ=Europe/Budapest
- PGID=101
- PUID=1026
- OOKLA_EULA_GDPR=true
- DSM_HOSTNAME=felhonas
network_mode: bridge
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "200k"
restart: unless-stopped

@felho001
Copy link

I did! When I run this sah root app/Bin folder:. wget https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-x86_64-linux.tgz -O speedtest.tgz after download manual unpack tgz. and after tar file. work fine web and tast same! I think it is a smal problem synology nas but I did it after a lot of manual testing.

@felho001
Copy link

Hi I try set notification telegram but I make telegram bot and new chat. I add chat me and bot. I set speedtest notification bot api and chat id. But if I test notificatin nothing happend what is wrong, or how can set it.

@felho001
Copy link

Hi could you tell me if I reloade web page it was white. Why? And need stop docker and restart after good. It is normal? Merry Christmas

@felho001
Copy link

HI how can fix this and hat is this?: nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
stdout
19:30:01

@felho001
Copy link

And havi other bug or not? this

crond[416]: USER root pid 612 cmd php /config/www/artisan schedule:run >> /config/log/speedtest/cron.log

2020-12-26 22:15:00 | stdout | crond[416]: USER root pid 586 cmd php /config/www/artisan schedule:run >> /config/log/speedtest/cron.log
2020-12-26 22:15:00 | stdout | crond[416]: USER root pid 585 cmd run-parts /etc/periodic/15min
2020-12-26 22:14:00 | stdout | crond[416]: USER root pid 565 cmd php /config/www/artisan schedule:run >> /config/log/speedtest/cron.log
2020-12-26 22:13:00 | stdout | crond[416]: USER root pid 539 cmd php /config/www/artisan schedule:run >> /config/log/speedtest/cron.log
2020-12-26 22:12:00 | stdout | crond[416]: USER root pid 489 cmd php /config/www/artisan schedule:run >> /config/log/speedtest/cron.log
2020-12-26 22:11:00 | stdout | crond[416]: USER root pid 437 cmd php /config/www/artisan schedule:run >> /config/log/speedtest/cron.log

and why there will be so many of them? this is a problem

@kis87988
Copy link
Author

@felho001 for the Nginx error. I got this error as well. However, I think we should open another issue for this.
This may due to Synology mounting with docker issue, but I cannot confirm it yet

@felho001
Copy link

@felho001 for the Nginx error. I got this error as well. However, I think we should open another issue for this.
This may due to Synology mounting with docker issue, but I cannot confirm it yet

Ok. And it is bug or not #421 (comment)

@AleksCee
Copy link

Same here with the image on Synology Docker. Workaround was to run the WGET and unzip and move command manual outside the Docker and change the owner to the 911. now the container works fine.

@felho001
Copy link

Same here with the image on Synology Docker. Workaround was to run the WGET and unzip and move command manual outside the Docker and change the owner to the 911. now the container works fine.

Could you write eget node and where to move manual?

@AleksCee
Copy link

AleksCee commented Dec 31, 2020

The Docker has a external config folder. I found the command witch was execute:
/.github/workflows/laravel-stable.yml: run: wget https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-x86_64-linux.tgz -O speedtest.tgz && tar zxvf speedtest.tgz && mv speedtest app/Bin/

So on the Synology Go in my linked config folder and cd www (on my NAS: /volume1/docker/speedtest-tracker/www$ ) - and do:

sudo wget https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-x86_64-linux.tgz -O speedtest.tgz 
sudo tar zxvf speedtest.tgz
sudo chown 911 speedtest*
sudo mv speedtest app/Bin/

and start the Container again.

@AleksCee
Copy link

Another hint: WGET only fails if it use a https address. http requests works, so something with the busybox WGET and the Synology Docker seams to be the problem?
The Workaround: apk add ca-certificates wget
Works to. Now the WGET gets https urls too.

@felho001
Copy link

felho001 commented Jan 1, 2021

The nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)

is same it's not fix this.

@slotto
Copy link

slotto commented Jul 24, 2021

The Docker has a external config folder. I found the command witch was execute:
/.github/workflows/laravel-stable.yml: run: wget https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-x86_64-linux.tgz -O speedtest.tgz && tar zxvf speedtest.tgz && mv speedtest app/Bin/

So on the Synology Go in my linked config folder and cd www (on my NAS: /volume1/docker/speedtest-tracker/www$ ) - and do:

sudo wget https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-x86_64-linux.tgz -O speedtest.tgz 
sudo tar zxvf speedtest.tgz
sudo chown 911 speedtest*
sudo mv speedtest app/Bin/

and start the Container again.

Bintray was not working for me anymore.
Replaced the first command with:
sudo wget https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-x86_64-linux.tgz -O speedtest.tgz

@vletroye
Copy link

As Far As I Am Concerned, I tried several times to Install this image and I always had errors in the log (Preventing the container to run)

Here is the interesting part of the Log (same error as above):

Ookla GDPR And EULA Accepted. Downloading Speedtest CLI.
Connecting To Install.Speedtest.Net (151.101.38.219:443)
Wget: Error Getting Response: Connection Reset By Peer
Tar: Can’t Open ‘Speedtest.Tgz’: No Such File Or Directory
Cp: Cannot Stat ‘Speedtest’: No Such File Or Directory
S6-Applyuidgid: Fatal: Unable To Exec /Site/App/Bin/Speedtest: No Such File Or Directory

I was able to Fix it by connecting on my Synology via a SSH console and, after moving into the directory mounted as /config, by executing:

wget https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-x86_64-linux.tgz
tar zxvf speedtest.tgz
sudo chown 911 speedtest*
sudo mv speedtest* www/app/Bin/

Finally, I did restart the container via the docker UI and did wait for a while (Looking into the log until the step “Copying latest site files to config” and “Clearing old jobs from queue” were completed . The Web UI was then accessible.

@chriswiduta
Copy link

chriswiduta commented Dec 9, 2021

SSH into my synology

sudo docker exec -it henrywhitaker3-speedtest-tracker1 /bin/bash

wget http://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-x86_64-linux.tgz

tar zxvf ookla-speedtest-1.0.0-x86_64-linux.tgz

chown 911 speedtest*

mv speedtest* /config/www/app/Bin/

And restart the container. This worked for me.

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

7 participants