You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
when kn service create fails, there is no container error message #9326
I originally opened the issue in client repo, but they said the error message comes from serving. knative/client#998
Bug report
When a service create fails, sometimes the revision container error is empty, i.e. Container failed with: .. E.g.,
❱❱ kn service create example2 --image busybox
Creating service 'example2' in namespace '57aca2f5-aea8':
0.731s The Configuration is still working to reflect the latest desired specification.
1.100s The Route is still working to reflect the latest desired specification.
1.100s Configuration "example2" is waiting for a Revision to become ready.
19.764s Revision "example2-bpphv-1" failed with message: Container failed with: .
19.765s Configuration "example2" does not have any ready Revision.
Error: RevisionFailed: Revision "example2-bpphv-1" failed with message: Container failed with: .
Run 'kn --help' for usage
kn service describe example2 has the same problem.
Expected behavior
Some sort of error message, ideally a helpful one
Steps to reproduce the problem
Run kn service create example --image busybox
(And yes, I understand why this example fails. It is simply an easy way to reproduce the behavior.)
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.
@markusthoemmes In this example it fails because there's no port open. But that merely reproduces the problem. It occurs in other instances as well. The problem is the lack of a message.
I am observing a different behaviour with the HEAD.
$ kn service create example2 --image busybox
Creating service 'example2' in namespace 'default':
0.173s The Configuration is still working to reflect the latest desired specification.
0.312s The Route is still working to reflect the latest desired specification.
0.409s Configuration "example2" is waiting for a Revision to become ready.
Error: timeout: service 'example2' not ready after 600 seconds
Run 'kn --help' for usage
Can confirm that the error message is still empty on v1.3:
$ kn service create example --image busybox
Creating service 'example' in namespace 'default':
0.050s The Route is still working to reflect the latest desired specification.
0.059s Configuration "example" is waiting for a Revision to become ready.
120.645s Revision "example-00001" failed with message: Container failed with: .
120.670s Configuration "example" does not have any ready Revision.
Error: RevisionFailed: Revision "example-00001" failed with message: Container failed with: .
Run 'kn --help' for usage
Looking at the controller logs, the container is actually exiting with exit code 0:
And looking at what's happening in the containers themselves, queue-proxy is up but not ready then starts hitting aggressive probe errors (as the user-container isn't ready) before eventually going through its usual shutdown routine (term signal, sleep 30s, then shutdown) and exiting without error (hence the 0 exit code).
Activity
markusthoemmes commentedon Oct 8, 2020
Sorry for the late response. Why did the service fail in your case?
github-actions commentedon Jan 7, 2021
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with
/reopen. Mark the issue asfresh by adding the comment
/remove-lifecycle stale.ericmillin commentedon Jan 7, 2021
@markusthoemmes In this example it fails because there's no port open. But that merely reproduces the problem. It occurs in other instances as well. The problem is the lack of a message.
markusthoemmes commentedon Jan 13, 2021
We should improve this.
/remove-lifecycle-stale
senthilnathan commentedon Jan 26, 2021
I am observing a different behaviour with the HEAD.
@ericmillin, are you still seeing the issue?
ustiugov commentedon Mar 5, 2021
we still observe such issues with Knative Serving v0.19
vhive-serverless/vHive#158 (comment)
dprotaso commentedon Mar 5, 2021
I think this falls into the class of issues I'm going to look at next where we don't handle failure modes well
evankanderson commentedon Mar 22, 2021
/area API
/triage accepted
Not sure if you want to add enough text here to make this a
/good-first-issue, @dprotaso7 remaining items
psschwei commentedon Mar 9, 2022
Can confirm that the error message is still empty on v1.3:
Looking at the controller logs, the container is actually exiting with exit code
0:And looking at what's happening in the containers themselves, queue-proxy is up but not ready then starts hitting aggressive probe errors (as the user-container isn't ready) before eventually going through its usual shutdown routine (term signal, sleep 30s, then shutdown) and exiting without error (hence the
0exit code).psschwei commentedon Mar 9, 2022
@dprotaso is this still on your todo list?