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

sync is broken on local cluster #1734

Closed
dgageot opened this issue Mar 6, 2019 · 7 comments
Closed

sync is broken on local cluster #1734

dgageot opened this issue Mar 6, 2019 · 7 comments
Labels
area/sync kind/bug Something isn't working priority/p0 Highest priority. We are actively looking at delivering it.

Comments

@dgageot
Copy link
Contributor

dgageot commented Mar 6, 2019

Sync is broken when images have not been pushed.

The code now tries to retrieve the remote image to check the working dir.
Because the image was never pushed, this fails hard.

@dgageot dgageot added kind/bug Something isn't working priority/p0 Highest priority. We are actively looking at delivering it. area/sync labels Mar 6, 2019
dgageot added a commit to dgageot/skaffold that referenced this issue Mar 6, 2019
Otherwise, we might check an image that was only
built locally and never pushed

Fixes GoogleContainerTools#1734

Signed-off-by: David Gageot <david@gageot.net>
@antl3x
Copy link

antl3x commented Mar 6, 2019

same here!

FATA[0034] calling final callback: sync: retrieving working dir for hub-api:b5f8168bb1bc595174f01810d8e3cc47cf9bc22404b4253e2baf77baf63b83c1: retrieving remote config: UNAUTHORIZED: "authentication required"

@ayyazzafar
Copy link

same here!

FATA[0034] calling final callback: sync: retrieving working dir for hub-api:b5f8168bb1bc595174f01810d8e3cc47cf9bc22404b4253e2baf77baf63b83c1: retrieving remote config: UNAUTHORIZED: "authentication required"

@aasm-moura did you get any solution for this issue? I am also facing same problem.

@antl3x
Copy link

antl3x commented Mar 11, 2019

@ayyazzafar we have disabled the sync until the new skaffold release.

UPDATE: Have downloaded the latest release and it works!

Link: https://storage.googleapis.com/skaffold/builds/latest/skaffold-darwin-amd64

@paulohac
Copy link

Still facing the same issue with the latest release 0.24.0

@ghost
Copy link

ghost commented Mar 13, 2019

I'm encountering the same issue on 0.24.0.

@adrian-gl
Copy link

adrian-gl commented Mar 13, 2019

I'm encountering the same issue on 0.24.0.

same here :(

@jasonwc
Copy link

jasonwc commented Mar 21, 2019

Just ran into the same thing on edge:

> skaffold version
7152e30
apiVersion: skaffold/v1beta7
kind: Config
build:
  artifacts:
  - image: phoenix-no-db-no-docker
    docker:
      dockerfile: Dockerfile.local
    sync:
      'lib/**/*' : /app/lib/
  local:
    push: false
deploy:
  kubectl:
    manifests:
    - deployment.yml

Specifically, trying to use skaffold with microk8s docker registry without specifying it as the remote docker repository (e.g. image: localhost:32000/phoenix-no-db-no-docker)

Use case is that atm we've got devs on Mac using Docker for Mac and Devs on Linux using microk8s. Would like to be able to provide a universal skaffold.yml for both machines that just uses the appropriate docker sock. Instead I'm setting the DOCKER_HOST appropriately on each machine type.

Running on edge because syncing was broken for my use case until #1813 makes it into a release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sync kind/bug Something isn't working priority/p0 Highest priority. We are actively looking at delivering it.
Projects
None yet
Development

No branches or pull requests

6 participants