Explain why no files were synced #3921
Labels
area/logging
help wanted
We would love to have this done, but don't have the bandwidth, need help from contributors
kind/feature-request
priority/p3
agreed that this would be good to have, but no one is available at the moment.
I encountered a puzzling message when diagnosing an error on Stack Overflow involving syncing. My file sync was failing with the following error:
This error message comes from:
skaffold/pkg/skaffold/sync/sync.go
Lines 370 to 372 in ba4a58d
The message doesn't provide any real insight as to why nothing was synced.
Ultimately the root cause was that I had disabled the status checks while I was getting the setup to work as they prevent seeing useful logs. I only discovered the pod was failing due to a missing PVC there was a problem after poking around with
kubectl describe
. So there were no running containers to copy the file to.So:
sync.Perform()
could track and report some more information on exceptional conditions: no running pods found, no matching containers founddescribe
on the items that aren't healthy?(This is related to #1571 but that issue was closed a while back and references different part of the code.)
The text was updated successfully, but these errors were encountered: