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

Time out in the first docker-compose up #749

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

Time out in the first docker-compose up #749

shemayas opened this issue Apr 5, 2017 · 15 comments

Comments

@shemayas
Copy link

@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
Copy link
Contributor

@winfried-van-loon 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
Copy link
Author

@shemayas shemayas commented Apr 5, 2017

Still stuck :(

image

@cmpere
Copy link

@cmpere 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
Copy link
Author

@shemayas shemayas commented Apr 18, 2017

Thank you @cmpere ,
Worked out for me.

@winfried-van-loon
Copy link
Contributor

@winfried-van-loon 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
Copy link

@mykolaim mykolaim commented Jul 16, 2017

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

@gotrecillo
Copy link

@gotrecillo 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
Copy link

@kargnas kargnas commented Sep 15, 2017

+1
I gave up Laradock becuase of this issue

@deleugpn
Copy link
Contributor

@deleugpn deleugpn commented Sep 18, 2017

Stuck on this as well.

@rlewkowicz
Copy link

@rlewkowicz 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
Copy link

@matt-pinder matt-pinder commented Nov 22, 2017

I am running into this issue too

@huijian222
Copy link

@huijian222 huijian222 commented Jan 5, 2018

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

@netcraft-devops
Copy link

@netcraft-devops 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
Copy link

@manjurulcis manjurulcis commented Jan 19, 2018

@ganl
Copy link
Contributor

@ganl 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.