Azure-Samples / Azure-Samples/msdocs-django-postgresql-sample-app

Codespace consistently fails to create devcontainer with UnifiedContainersErrorFatalCreatingContainer (1302) on starter-no-infra branch

Đang mở
#107 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Bicep
Star
72
Fork
859
Merge trung bình
2 ngày 9 giờ
Pull request đã merge (30 ngày)
6

Mô tả

Creating a new GitHub Codespace for the Django PostgreSQL sample application consistently fails during devcontainer startup.

The Docker image builds successfully, but one container fails to start with an OCI runtime error. The Codespace then enters recovery mode.

The issue is reproducible every time.

Repository

Azure-Samples/msdocs-django-postgresql-sample-app

Branch:

starter-no-infra

Steps to Reproduce
Open the repository:
[https://github.com/Azure-Samples/msdocs-django-postgresql-sample-app](https://github.com/Azure-Samples/msdocs-django-postgresql-sample-app?utm_source=chatgpt.com)
Select the starter-no-infra branch.
Create a new GitHub Codespace.
Wait for the devcontainer to finish building.

Steps to Reproduce
Open the repository:
[https://github.com/Azure-Samples/msdocs-django-postgresql-sample-app](https://github.com/Azure-Samples/msdocs-django-postgresql-sample-app?utm_source=chatgpt.com)
Select the starter-no-infra branch.
Create a new GitHub Codespace.
Wait for the devcontainer to finish building.
Expected behavior

The Codespace should finish creating successfully and open VS Code with the development environment ready.

Actual behavior

The build completes successfully, but Docker Compose fails while starting the containers.

The Codespace then fails with:

UnifiedContainersErrorFatalCreatingContainer
Error code: 1302

Recovery container is created instead of the intended development container.

Relevant log
Error response from daemon:
failed to create task for container:
failed to create shim task:
OCI runtime create failed:
runc create failed:
unable to start container process:
can't get final child's PID from pipe: EOF

runc init error(s):
nsexec-1: failed to open /proc/.../ns/net: No such file or directory
nsexec-0: failed to sync with stage-1

What I've tried
Deleted and recreated the Codespace multiple times.
Deleted and recreated the fork.
Tried both:
the original repository
my fork
Did not modify any files before the failure occurred.
The issue happens immediately after Codespace creation.
A different test repository creates a Codespace successfully, suggesting the issue is specific to this repository/devcontainer.
Environment
GitHub Codespaces
Repository: Azure-Samples/msdocs-django-postgresql-sample-app
Branch: starter-no-infra
Browser: Google Chrome
Operating System: Windows 11
Additional information

The Docker image itself appears to build successfully. The failure occurs during docker compose up, after the Redis and PostgreSQL images have been pulled and the network and volumes have been [created.

[Pasted text(6).txt](https://github.com/user-attachments/files/29376326/Pasted.text.6.txt)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Sử dụng nhánh starter-no-infra và trước tiên kiểm tra cấu hình devcontainer và Docker Compose của repository. Tái hiện lỗi bằng docker compose up, tập trung vào việc khởi động container sau khi các image Redis và PostgreSQL được pull; hoàn tất khi một GitHub Codespace mới khởi động thành công mà không vào chế độ khôi phục hoặc gặp OCI runtime error đã được báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
django, docker, docker-compose, postgresql, python, redis
Lĩnh vực
backend, databases, devops, infrastructure
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.