-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Catch log: "Container Sandbox: Unsupported syscall setsockopt" from Google Cloud Run #1739
Comments
Also getting similar message on Google Cloud Run for a container running a Java program wrapped in Quarkus framework. Happy to provide additional info if I know which one is of interest for this case. Just let me know Some messages:
|
The lastest official Node version v12.17.0 triggers setsockopt warnings on Cloud Run, e.g.
Would it be possible to suppress these warning as cloud logging gets spammed? |
To whom are you asking this question: to gVisor team or to me? |
@didier-durand You probably got notified as you've subscribe to this issue. I guess it's a feature request to the gVisor team - It would be nice to be able to suppress warnings (e.g. for socket options that is / cannot be implemented i gVisor). |
I agree with you but then we have to be able to select this option from the Google Cloud UI if we need to remove this logging. |
Same for me, getting this syslog spamming my whole Logging Stack. Running Cloud Run. |
Also having this issue, but different code:
I am using nodejs 12.18. |
I use k6.io to run load tests on my service in Cloud Run. What I see it that roughly 2% of tcp connections fail. In Cloud Run logs I see lots of these (along with membarrier):
k6 warnings during the test run:
The service base image is node:14-alpine. |
This seems to be SOL_TCP, TCP_KEEPCNT which was fixed in 4b9652d. |
@iangudger is there something we can do after that fix? Having the same problem, it's quite hard to see something useful in logs when this line is duplicated so many times gVisor is referenced in the log https://gvisor.dev/c/linux/amd64/setsockopt |
@RtypeStudios Can you post the full log line? You cut off the important part. @AndreiIgna Your logs are about a different socket option (SOL_IP, IP_MTU_DISCOVER). That is tracked in #1643. @ytnobody Your logs are about a different syscall entirely (membarrier). Please see the compatibility note in the log line that you posted. membarrier is being tracked in #267. |
We get "warnings" logged for Cloud Run containers running a JVM app with ktor / netty and google libraries for accessing BQ and GCS. Is there an issue tracking: |
Similar thing here: spamming my logs, hard to see whatt is relevant. |
getting the same message in the logs. Java Spring Application....
|
Here's an error from my Java Spring Boot based gRPC server on Cloud Run:
Not sure, but that sounds like: SO_DEBUG, SO_DONTROUTE, SO_BROADCAST socket options, right? |
@iangudger So sorry, just saw your request for more information. I'm still getting thousands of them.
|
0xd and 0x31 have only first bit (SO_DEBUG) in common. |
seems the say in the errors I have posted, but different to the errors others have posted. I have no idea what they mean :) |
Sorry, the error I listed didn't influence the functionality of my gRPC server (the reason of the malfunction was something else), please ignore. |
I don't know if I should create a new issue:
The documentation page does not exist. FROM mcr.microsoft.com/playwright:focal dependencies google-cloud
google-cloud-firestore
google-cloud-storage
Flask[async]==2.0.2
gunicorn==20.1.0
beautifulsoup4
playwright
requests
fire
tqdm
pandas
openai
scraperapi-sdk
parsel
aiologger |
Did anyone ever figure out how to suppress these warning messages? |
@johnf1004 use the gen2 execution environment: https://cloud.google.com/run/docs/about-execution-environments |
Nice, thank you @petehannam ! Works nicely when deploying through the console - any idea if it's possible to specify the gen2 environment with gcloud? Looking through the flags for |
@johnf1004 The documentation has details on how to run it via the command line:
|
Note that I am avoiding |
This issue sort of straddles the line between gVisor and its downstream consumers. I believe that Cloud Run and others allow for logs to be filtered via terms such as From gVisor's perspective, the unsupported syscall logs are important. In the rare cases where unsupported syscalls do affect program behavior, the logs are an important debugging tool. We don't want to remove them, as when things do break they will be extra difficult to debug both for users and for us. Please do file specific issues if you're getting major logspam or application behavior is affected. For now, this issue seems to have become a catchall and I think we should have users file specific bugs for specific messages. |
For anyone coming across this in the future: if you're seeing the |
I don't know if this is the correct site to publish this kind of issues as it is related to gVisor but on top of GKE.
Description
I try to use nginx-unit image ( https://hub.docker.com/r/nginx/unit ) on Google Cloud Run.
But, when running container, failed to call
kill
command.In container process
This image run entrypoint.sh and has has four steps in shell.
kill
comand.Currently, when running application container based vendor official image,
kill
command is not accepted, service is not availaved.Cloud Run has output this log in running container:
Container Sandbox: Unsupported syscall setsockopt(0xb,0x6,0x9,0x3ee1608589cc,0x4,0x29910fc86500). It is very likely that you can safely ignore this message and that this is not the cause of any error you might be troubleshooting. Please, refer to https://gvisor.dev/c/linux/amd64/setsockopt for more information.
Reproduce steps
Build image from repository and run service from image.
https://gitlab.com/attakei-sandbox/gvisor-issue-setsockopt
I saw logs from service in Iowa region (GCP).
Please see exported csv-log from GCP.
Information from other environments
Local docker engine
Run normally.
Local docker engine with runsc
Run normally.
The text was updated successfully, but these errors were encountered: