Fresh install app installs failing
-
On a new install on ubuntu 18.04 any app install fails.
the hosting provider has told me that the connection is being reset by the aws server that is hosting the images.
log is below are there any ports tha I need to open?
would appreciate the support
==> /home/yellowtent/platformdata/logs/20f3965a-9599-4d27-b299-163d77664b8b/apptask.log <== 2019-03-13T18:29:55.562Z box:apptask ------------------------------------------------------------ 2019-03-13T18:29:55.564Z box:apptask Apptask for 20f3965a-9599-4d27-b299-163d77664b8b ERROR (node:4508) [DEP0095] DeprecationWarning: timers.enroll() is deprecated. Please use setTimeout instead. [ internal/process/warning.js:18:20 ] ERROR (node:4508) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead. [ internal/process/warning.js:18:20 ] 2019-03-13T18:29:55.649Z box:apptask startTask installationState: pending_install runState: null 2019-03-13T18:29:55.675Z box:apptask updating app with values: {"installationProgress":"10, Cleaning up old install"} 2019-03-13T18:29:55.694Z box:shell reload spawn: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/reloadnginx.sh 2019-03-13T18:29:55.719Z box:shell removeCollectdProfile spawn: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/configurecollectd.sh remove 20f3965a-9599-4d27-b299-163d77664b8b 2019-03-13T18:29:55.729Z box:shell removeCollectdProfile (stdout): Restarting collectd 2019-03-13T18:29:55.803Z box:shell removeCollectdProfile (stdout): Removing collectd stats of 20f3965a-9599-4d27-b299-163d77664b8b 2019-03-13T18:29:55.808Z box:shell removeLogrotateConfig spawn: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/configurelogrotate.sh remove 20f3965a-9599-4d27-b299-163d77664b8b 2019-03-13T18:29:55.821Z box:docker.js stopping containers of 20f3965a-9599-4d27-b299-163d77664b8b 2019-03-13T18:29:55.835Z box:apptask updating app with values: {"runState":"stopped","health":null} 2019-03-13T18:29:55.844Z box:apptask deleting app containers (app, scheduler) 2019-03-13T18:29:55.844Z box:docker.js deleting containers of 20f3965a-9599-4d27-b299-163d77664b8b 2019-03-13T18:29:55.846Z box:apptask updating app with values: {"containerId":null} 2019-03-13T18:29:55.848Z box:addons teardownAddons: Tearing down ["postgresql","sendmail","ldap","redis","localstorage","scheduler"] 2019-03-13T18:29:55.848Z box:addons Tearing down addon postgresql with options {} 2019-03-13T18:29:55.883Z box:addons Tearing down addon sendmail with options {} 2019-03-13T18:29:55.883Z box:addons Tearing down sendmail 2019-03-13T18:29:55.884Z box:addons Tearing down addon ldap with options {} 2019-03-13T18:29:55.884Z box:addons Tearing down LDAP 2019-03-13T18:29:55.884Z box:addons Tearing down addon redis with options {} 2019-03-13T18:29:55.886Z box:shell removeVolume spawn: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/rmaddondir.sh redis 20f3965a-9599-4d27-b299-163d77664b8b 2019-03-13T18:29:55.899Z box:addons Tearing down addon localstorage with options {} 2019-03-13T18:29:55.899Z box:addons teardownLocalStorage 2019-03-13T18:29:55.902Z box:addons Tearing down addon scheduler with options {"housekeeping":{"schedule":"*/5 * * * *","command":"/app/pkg/cron.sh"}} 2019-03-13T18:29:55.906Z box:apptask updating app with values: {"httpPort":40575} 2019-03-13T18:29:55.915Z box:apptask updating app with values: {"installationProgress":"20, Downloading icon"} 2019-03-13T18:29:55.924Z box:apptask Downloading icon of com.nextcloud.cloudronapp@4.0.3 2019-03-13T18:29:56.742Z box:apptask updating app with values: {"installationProgress":"30, Registering subdomain"} 2019-03-13T18:29:57.564Z box:apptask Registering subdomain location [] overwrite: false 2019-03-13T18:29:57.568Z box:domains upsertDNSRecord: on type A values [ '' ] 2019-03-13T18:29:57.570Z box:dns/manual upsert: for zone of type A with values [""] 2019-03-13T18:29:57.570Z box:apptask updating app with values: {"installationProgress":"35, Registering alternate domains"} 2019-03-13T18:30:03.397Z box:apptask updating app with values: {"installationProgress":"40, Downloading image"} 2019-03-13T18:30:03.401Z box:docker.js downloadImage com.nextcloud.cloudronapp cloudron/img-d45b65559ca80aa3183b07e391f7481d:5d2a8980-a192-4042-b49c-75e3d2ab1011 2019-03-13T18:30:03.401Z box:docker.js Downloading image com.nextcloud.cloudronapp cloudron/img-d45b65559ca80aa3183b07e391f7481d:5d2a8980-a192-4042-b49c-75e3d2ab1011. attempt: 1 2019-03-13T18:30:03.402Z box:shell pullImage spawn: /usr/bin/docker pull cloudron/img-d45b65559ca80aa3183b07e391f7481d:5d2a8980-a192-4042-b49c-75e3d2ab1011 2019-03-13T18:30:18.489Z box:shell pullImage (stdout): Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) 2019-03-13T18:30:18.491Z box:shell pullImage code: 1, signal: null 2019-03-13T18:30:18.491Z box:docker.js pullImage: Error pulling image cloudron/img-d45b65559ca80aa3183b07e391f7481d:5d2a8980-a192-4042-b49c-75e3d2ab1011 of com.nextcloud.cloudronapp: pullImage exited with error 1 signal null ERROR Failed to pull image [ /home/yellowtent/box/src/docker.js:164:32 ] stack: """ Error: Failed to pull image at /home/yellowtent/box/src/docker.js:135:29 at f (/home/yellowtent/box/node_modules/once/once.js:25:25) at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:66:9) at ChildProcess.emit (events.js:189:13) at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) """ message: Failed to pull image 2019-03-13T18:30:33.495Z box:docker.js Downloading image com.nextcloud.cloudronapp cloudron/img-d45b65559ca80aa3183b07e391f7481d:5d2a8980-a192-4042-b49c-75e3d2ab1011. attempt: 2 2019-03-13T18:30:33.495Z box:shell pullImage spawn: /usr/bin/docker pull cloudron/img-d45b65559ca80aa3183b07e391f7481d:5d2a8980-a192-4042-b49c-75e3d2ab1011
-
I get
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
-
Looks like a networking issue to me. Can you confirm networking is working properly?
-
Could it be that you are behind a proxy? https://github.com/docker/for-win/issues/611 has a similar error and suggests https://stackoverflow.com/questions/23111631/cannot-download-docker-images-behind-a-proxy as a solution.
https://github.com/moby/moby/issues/30876 has same issue. What's interesting is I assume you somehow managed to install Cloudron which also requires some outbound http access.
-
will check networking again and the links posted
thanks alot
-
Hi,
can you try to run
curl -v https://registry-1.docker.io/v2/
from that server? It should return a401 Unauthorized
status code if the connection as such succeeds.If this this works, can you try reinstalling the app, maybe there was a temporary issue with the connection. Otherwise is that server behind some firewall blocking connections to the docker registry?