The user-provided container failed to start and listen on the port defined provided by the PORT=6969 environment variable within the allocated timeout. This can happen when the container port is misconfigured or if the timeout is too short. The health check timeout can be extended. Logs for this revision might contain more information. Logs URL: ;resource=cloud_run_revision/service_name/krishak-machinelearning/revision_name/krishak-machinelearning-00004-mp5&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22krishak-machinelearning%22%0Aresource.labels.revision_name%3D%22krishak-machinelearning-00004-mp5%22 For more troubleshooting guidance, see
Dockerfile:
FROM python:3.9-slim
WORKDIR /app
ENV PORT 6969
ENV HOST 0.0.0.0
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 6969
CMD ["uvicorn", "crop_predictor:app", "--host", "0.0.0.0", "--port", "6969"]
This is the error I have been been when I deploy in cloud run.
logs:
{
"textPayload": "Memory limit of 512 MiB exceeded with 513 MiB used. Consider increasing the memory limit, see ;,
"insertId": "67dffdda0009cfa94042b07b",
"resource": {
"type": "cloud_run_revision",
"labels": {
"service_name": "krishak-machinelearning",
"project_id": "krishak-454611",
"location": "asia-south1",
"revision_name": "krishak-machinelearning-00002-tkp",
"configuration_name": "krishak-machinelearning"
}
},
"timestamp": "2025-03-23T12:26:02.642985Z",
"severity": "ERROR",
"labels": {
"commit-sha": "b827c2f4edb05de4645d613e55a28e3e75fd8f4f",
"gcb-trigger-id": "1ecfe62f-019f-45ec-8f31-58f90b22813a",
"managed-by": "gcp-cloud-build-deploy-cloud-run",
"gcb-trigger-region": "global",
"instanceId": "00afae8043a9c4be71cbf358430daf3d4076bb80751a4820f22622473578b8e5edd1e0f033bdc579790cc1bcde6d48faad39551a5a5152fa2c3d508cb81d038bba335273",
"gcb-build-id": "c583570d-4e60-4ef6-a23f-d80dcbd09c33"
},
"logName": "projects/krishak-454611/logs/run.googleapis%2Fvarlog%2Fsystem",
"receiveTimestamp": "2025-03-23T12:26:02.644734363Z",
"errorGroups": [
{
"id": "CKnV1_TJwMrDQw"
}
]
}