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

Time out in the first docker-compose up #749

Closed
shemayas opened this Issue Apr 5, 2017 · 15 comments

Comments

Projects
None yet
@shemayas

shemayas commented Apr 5, 2017

Hi,
For the first time after cloning the project with git submodule I ran the command docker-compose up -d nginx mysql I get a time out and some errors:

image

Step 6/8 : RUN apk update && apk upgrade && apk add --no-cache bash && adduser -D -H -u 1000 -s /bin/bash www-data && rm /etc/nginx/conf.d/default.conf && echo "upstream php-upstream { server ${PHP_UPSTREAM}:9000; }" > /etc/nginx/conf.d/upstream.conf
---> Running in 02eafdf2fe66
fetch http://mirrors.aliyun.com/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
ERROR: http://mirrors.aliyun.com/alpine/v3.4/main: operation timed out
WARNING: Ignoring APKINDEX.47c31cae.tar.gz: No such file or directory
fetch http://mirrors.aliyun.com/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
ERROR: http://mirrors.aliyun.com/alpine/v3.4/community: operation timed out
WARNING: Ignoring APKINDEX.9b8a951e.tar.gz: No such file or directory
2 errors; 24 distinct packages available
ERROR: Service 'nginx' failed to build: The command '/bin/sh -c apk update && apk upgrade && apk add --no-cache bash && adduser -D -H -u 1000 -s /bin/bash www-data && rm /etc/nginx/conf.d/default.conf && echo "upstream php-upstream { server ${PHP_UPSTREAM}:9000; }" > /etc/nginx/conf.d/upstream.conf' returned a non-zero code: 2

How can this be solved?

@winfried-van-loon

This comment has been minimized.

Show comment
Hide comment
@winfried-van-loon

winfried-van-loon Apr 5, 2017

Contributor

It looks like the mirror was down for you at the time of posting. It seems to be up from my location right now. Could you try again?

Contributor

winfried-van-loon commented Apr 5, 2017

It looks like the mirror was down for you at the time of posting. It seems to be up from my location right now. Could you try again?

@shemayas

This comment has been minimized.

Show comment
Hide comment
@shemayas

shemayas Apr 5, 2017

Still stuck :(

image

shemayas commented Apr 5, 2017

Still stuck :(

image

@cmpere

This comment has been minimized.

Show comment
Hide comment
@cmpere

cmpere Apr 11, 2017

Hey, ammm
just comment the line on nginx Dockerfile:

fix a problem--#397, change application source from dl-cdn.alpinelinux.org to aliyun source.

#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories

the mirror seems still broken... so. good luck

cmpere commented Apr 11, 2017

Hey, ammm
just comment the line on nginx Dockerfile:

fix a problem--#397, change application source from dl-cdn.alpinelinux.org to aliyun source.

#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories

the mirror seems still broken... so. good luck

@shemayas

This comment has been minimized.

Show comment
Hide comment
@shemayas

shemayas Apr 18, 2017

Thank you @cmpere ,
Worked out for me.

shemayas commented Apr 18, 2017

Thank you @cmpere ,
Worked out for me.

@winfried-van-loon

This comment has been minimized.

Show comment
Hide comment
@winfried-van-loon

winfried-van-loon May 14, 2017

Contributor

Great news! As it does not happen for everyone, I don't think it's necessary to pick this up in a pull request, unless it happens more. Thank you for reporting the issue!

Contributor

winfried-van-loon commented May 14, 2017

Great news! As it does not happen for everyone, I don't think it's necessary to pick this up in a pull request, unless it happens more. Thank you for reporting the issue!

@mykolaim

This comment has been minimized.

Show comment
Hide comment
@mykolaim

mykolaim Jul 16, 2017

@winfried-van-loon I have got same error, so I think will be good to fix it.

mykolaim commented Jul 16, 2017

@winfried-van-loon I have got same error, so I think will be good to fix it.

@gotrecillo

This comment has been minimized.

Show comment
Hide comment
@gotrecillo

gotrecillo Sep 12, 2017

+1
Have the same error.
Mirror server sometimes is too slow, and original one is working fine, they hade some problems when renewing domain name but it is solved.

gotrecillo commented Sep 12, 2017

+1
Have the same error.
Mirror server sometimes is too slow, and original one is working fine, they hade some problems when renewing domain name but it is solved.

@kargnas

This comment has been minimized.

Show comment
Hide comment
@kargnas

kargnas Sep 15, 2017

+1
I gave up Laradock becuase of this issue

kargnas commented Sep 15, 2017

+1
I gave up Laradock becuase of this issue

@deleugpn

This comment has been minimized.

Show comment
Hide comment
@deleugpn

deleugpn Sep 18, 2017

Contributor

Stuck on this as well.

Contributor

deleugpn commented Sep 18, 2017

Stuck on this as well.

@rlewkowicz

This comment has been minimized.

Show comment
Hide comment
@rlewkowicz

rlewkowicz Sep 27, 2017

This is still broke. Is this repo hard coded somewhere? Or it's just default? Like is this on alpine, or laradock?

edit: Too, you can use this in the laradock folder:

for i in `grep -Ro mirrors.aliyun.com | awk -F':' '{print $1}'`; do sed -i s/mirrors.aliyun.com/dl-cdn.alpinelinux.org/g "$i";done

Since whatever they added to the Dockerfile didn't work

rlewkowicz commented Sep 27, 2017

This is still broke. Is this repo hard coded somewhere? Or it's just default? Like is this on alpine, or laradock?

edit: Too, you can use this in the laradock folder:

for i in `grep -Ro mirrors.aliyun.com | awk -F':' '{print $1}'`; do sed -i s/mirrors.aliyun.com/dl-cdn.alpinelinux.org/g "$i";done

Since whatever they added to the Dockerfile didn't work

@matt-pinder

This comment has been minimized.

Show comment
Hide comment
@matt-pinder

matt-pinder Nov 22, 2017

I am running into this issue too

matt-pinder commented Nov 22, 2017

I am running into this issue too

@huijian222

This comment has been minimized.

Show comment
Hide comment
@huijian222

huijian222 Jan 5, 2018

I am stuck here too.It's not the problem of network.

huijian222 commented Jan 5, 2018

I am stuck here too.It's not the problem of network.

@netcraft-devops

This comment has been minimized.

Show comment
Hide comment
@netcraft-devops

netcraft-devops Jan 19, 2018

This has been a head scratching issue for me, but I have discovered that removing containers that I don't need solves this issue for me.

netcraft-devops commented Jan 19, 2018

This has been a head scratching issue for me, but I have discovered that removing containers that I don't need solves this issue for me.

@manjurulcis

This comment has been minimized.

Show comment
Hide comment
@manjurulcis

manjurulcis Jan 19, 2018

manjurulcis commented Jan 19, 2018

@ganl

This comment has been minimized.

Show comment
Hide comment
@ganl

ganl Sep 8, 2018

Contributor

After commit a99281c ,set CHANGE_SOURCE=false in .env

Contributor

ganl commented Sep 8, 2018

After commit a99281c ,set CHANGE_SOURCE=false in .env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment