Open charlesverdad opened 6 years ago
This might have something to do with Problem 1:
Jan 19 07:00:27 my-datalab-charles docker[1278]: Unable to find image 'asia.gcr.io/<proj>/my-datalab:latest' locally
Jan 19 07:00:27 my-datalab-charles docker[1278]: /usr/bin/docker: Error response from daemon: repository asia.gcr.io/<proj>/my-datalab not found: does not exist or no pull access.
Jan 19 07:00:27 my-datalab-charles docker[1278]: See '/usr/bin/docker run --help'.
Jan 19 07:00:27 my-datalab-charles systemd[1]: datalab.service: Main process exited, code=exited, status=125/n/a
Jan 19 07:00:27 my-datalab-charles systemd[1]: datalab.service: Unit entered failed state.
Jan 19 07:00:27 my-datalab-charles systemd[1]: datalab.service: Failed with result 'exit-code'.
Jan 19 07:00:29 my-datalab-charles systemd[1]: datalab.service: Service hold-off time over, scheduling restart.
Jan 19 07:00:29 my-datalab-charles systemd[1]: Stopped datalab docker container.
Jan 19 07:00:29 my-datalab-charles systemd[1]: datalab.service: Start request repeated too quickly.
Jan 19 07:00:29 my-datalab-charles systemd[1]: Failed to start datalab docker container.
Jan 19 07:00:29 my-datalab-charles systemd[1]: datalab.service: Unit entered failed state.
Jan 19 07:00:29 my-datalab-charles systemd[1]: datalab.service: Failed with result 'exit-code'.
Jan 19 07:07:21 my-datalab-charles systemd[1]: [/etc/systemd/system/datalab.service:8] Executable path is not absolute, ignoring: docker-credential-gcr configure-docker
UPDATE: Problem 1 is solved by making the ExecStartPre command into an absolute path. will file an MR and update if this also solves the other 2 problems. UPDATE2: looks like [at least] problem 1 is a duplicate of https://github.com/googledatalab/datalab/pull/1911. But problems 2 and 3 still persists.
For #3: Can you check /datalab/.backup_log.txt That's where the backup script sends it's logs: https://github.com/googledatalab/datalab/blob/dcedb1ef801ef0be4571c2afa7c7ffcae7eb28c4/sources/web/datalab/backupUtility.ts#L52
The issue of pulling a private docker image correctly has been fixed by me and merged by the maintainers here (thanks guys!). We just need a new release of datalab CLI to build released:
@chmeyers Oh, thanks! I hadn't checked today :)
@chmeyers I didn't see a new tag in this repo, which I thought you used to publish new versions to gcloud cli, but maybe you guys have a different internal release process that isn't documented. Thanks for the update!
CLIs get a tracking issue labeled with "cli-release", in this case #1921. The actual release process is internal to Google as it has to get bundled with the rest of gcloud and go through a suite of tests.
Awesome, thanks!
I built my own datalab image using a Dockerfile of the form below and uploaded it to my project's gcr:
asia.gcr.io/<proj>/my-datalab:latest
. Note that I did not modify the source'sCMD
orENTRYPOINT
if they exist.I then ran the following command to create a datalab instance:
Problem 1 (SOLVED)
localhost:8081
wasn't starting up so I ssh'd into my instance and found thru journalctl that docker couldn't pull the image because it doesn't have repo access. I then checked the/etc/systemd/system/docker.service
file and found out about thedocker-credential-gcr
utility so I used it by running:I used the link it gave me and generated an authorization code. I entered it back and ran the docker pull manually - it worked. But shouldn't this happen automatically? I remember it happens automatically if I don't use the
--image-name
tag indatalab create
.Problem 2 Inside the datalab notebook, I can't run
%sql
or%bq
. It only says line magic function not found. I tried to runimport google.datalab
and got this:Problem 3 I think the backup scripts are failing. In the journalctl, I get these warnings: