ERROR: error executing step command 'package --all'
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- build-system, cloud, devops
Hướng nghiên cứu
Bắt đầu với luồng azd up và azd package --all, đồng thời kiểm tra prebuild hook gọi /tmp/azd-prebuild-1940153890.sh. So sánh nó với workaround đang hoạt động scripts/prebuild.sh, bao gồm cả cấu hình shell posix. Hoàn tất khi việc đóng gói web service thành công trong cả GitHub Codespaces và môi trường cục bộ mà không cần workaround.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I am having this issue during the azd up deployment. I have azd version 1.20.2
I tried deploying using Github Codespaces and locally with the same result.
Packaging services (azd package)
(x) Failed: Packaging service web
ERROR: error executing step command 'package --all': failed building service 'web': failed invoking event handlers for 'prebuild', 'prebuild' hook failed with exit code: '127', Path: '/tmp/azd-prebuild-1940153890.sh'. : exit code: 127, stdout: , stderr: /bin/sh: 1: /tmp/azd-prebuild-1940153890.sh: not found
I was able to deploy the template after create an script file with the commands in the prebuild hook
#!/bin/sh
set -e
cd "$(dirname "$0")/../src/frontend"
npm install
npm run build
Then I changed the hook
posix:
shell: sh
run: ../../scripts/prebuild.sh
interactive: false
continueOnError: false
It worked for both Github Codespaces and in my local.
- Ngôn ngữ chính
- Python
- Star
- 505
- Fork
- 1.1k
- Merge trung bình
- 3 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure-Samples/rag-postgres-openai-python
-
Azure-Samples/rag-postgres-openai-python#273 · 1 người được giao ·
-
Azure-Samples/rag-postgres-openai-python#269 · 1 reaction · 1 người được giao ·
-
Azure-Samples/rag-postgres-openai-python#261 · 1 reaction · 1 người được giao ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Question: Why are you installing `postgres-client` and `xdg-utils` in the backend docker image? Đang mở
Azure-Samples/rag-postgres-openai-python#250 · 4 bình luận · 1 reaction · 1 người được giao ·
Tất cả issue của Azure-Samples/rag-postgres-openai-python
Issue tương tự
-
essnmx good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
[Feature] 奇物选择添加优先级 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
syfoud/Simulated_Scepter#174 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Giskard-AI/giskard-oss#2840 · 1 bình luận ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Đang mởarea: repo bug perceived difficulty: 2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
yeti-platform/yeti#1380 ·