Should output the content URL during deployment failure

未關閉
#678 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
38/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
cli

研究方向

從 rsconnect deploy manifest manifest.json 部署流程以及圍繞所顯示的 Content GUID、Content ID 和建置失敗的記錄開始。追蹤部署成功和失敗訊息的輸出位置,然後確認內容 URL(包括失敗工作的 content-log URL(如果可用))是否在每種情境中都會出現。

由索引模型根據 Issue 內容生成。

描述

When deploying to Connect the content URL should be output in all scenarios, including failure. This would allow the user to easily jump to Connect to review the relevant logs.

It could also output the URL to the content log of the failed job.

In the logs below you see an error An error occurred while building the content (build-failed-error) but no URL. The workaround is to manually find the GUID in the existing logging and then manually compose the relevant URL using the GUID.

❯ rsconnect version
1.26.0
❯ rsconnect deploy manifest manifest.json

Validating server...    [OK]
Validating app mode...  [OK]
Making bundle ...       [OK]
Deploying bundle ...    [OK]
Saving deployed information...  [OK]
Building Quarto document...
Bundle created with Python version 3.11.7 (~=3.11) and Quarto version 1.4.557 (~=1.4) is compatible with environment Local with Python version 3.13.3 from /opt/python/3.13.3/bin/python3.13 and Quarto version 1.6.43 from /opt/quarto/1.6.43/bin/quarto 
Bundle requested Python version 3.11.7 (~=3.11); using /opt/python/3.13.3/bin/python3.13 from Local which has version 3.13.3
2025/06/04 18:46:27.930629202 [rsc-session] Content GUID: 359fd2ac-97a1-441d-946f-f0a5a13395d9
2025/06/04 18:46:27.930666117 [rsc-session] Content ID: 82311
2025/06/04 18:46:27.930671531 [rsc-session] Bundle ID: 276890
2025/06/04 18:46:27.930675175 [rsc-session] Job Key: sCMqbXlIXRJhRjjn
Determining session server location ...
Connecting to session server http://127.0.0.1:44225 ...
Connected to session server http://127.0.0.1:44225
2025/06/04 18:46:28.029019135 Running on host: ip-10-0-145-34
2025/06/04 18:46:28.029055285 Process ID: 1752511
2025/06/04 18:46:28.040178685 Linux distribution: Ubuntu 22.04.5 LTS (jammy)
2025/06/04 18:46:28.041894376 Running as user: uid=998(rstudio-connect) gid=999(rstudio-connect) groups=999(rstudio-connect)
2025/06/04 18:46:28.041929811 Connect version: 2025.06.0-dev+35-g7225834aeb
2025/06/04 18:46:28.041959968 LANG: C.UTF-8
2025/06/04 18:46:28.041963511 Working directory: /opt/rstudio-connect/mnt/app
2025/06/04 18:46:28.041982320 Building environment using Python 3.13.3 (main, Apr 22 2025, 14:51:02) [GCC 11.4.0] at /opt/python/3.13.3/bin/python3.13
2025/06/04 18:46:28.047088566 Requested packages: ipython==8.12.3, great_tables, pandas==2.2.3, requests==2.31.0, css-inline==9.14.6
2025/06/04 18:46:28.064632830 Creating environment: Z_S5_UnJ_21Pj8Pmwa01CA
2025/06/04 18:46:28.206058223 Work in progress: /opt/rstudio-connect/mnt/python-environments/uv/3.13.3/Z_S5_UnJ_21Pj8Pmwa01CA_20250604184628_393abbe2417411f0abc5cbf2e309271c
2025/06/04 18:46:28.819142597 Looking in links: /opt/rstudio-connect/mnt/python-environments/_packages_cache/uv/3.13.3/pypiuv
2025/06/04 18:46:28.833937071 Processing /opt/rstudio-connect/mnt/python-environments/_packages_cache/uv/3.13.3/pypiuv/uv-0.7.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
2025/06/04 18:46:28.896895320 Requirement already satisfied: setuptools in /opt/python/3.13.3/lib/python3.13/site-packages (79.0.0)
2025/06/04 18:46:28.897569830 Requirement already satisfied: wheel in /opt/python/3.13.3/lib/python3.13/site-packages (0.45.1)
2025/06/04 18:46:28.923876831 Installing collected packages: uv
2025/06/04 18:46:29.782308192 Successfully installed uv-0.7.10
2025/06/04 18:46:30.745683275 Using Python 3.13.3 environment at: /opt/rstudio-connect/mnt/python-environments/uv/3.13.3/Z_S5_UnJ_21Pj8Pmwa01CA_20250604184628_393abbe2417411f0abc5cbf2e309271c
2025/06/04 18:46:31.448652507   × No solution found when resolving dependencies:
2025/06/04 18:46:31.448719848   ╰─▶ Because there is no version of css-inline==9.14.6 and you require
2025/06/04 18:46:31.448769452       css-inline==9.14.6, we can conclude that your requirements are
2025/06/04 18:46:31.448782841       unsatisfiable.
2025/06/04 18:46:31.465031958 Environment Z_S5_UnJ_21Pj8Pmwa01CA_20250604184628_393abbe2417411f0abc5cbf2e309271c failed with pip install failed with exit code 1, removing it
2025/06/04 18:46:31.640431376 pip install failed with exit code 1
Stopped session pings to http://127.0.0.1:44225
Build error: exit status 1
An error occurred while building the content (build-failed-error)
Error from Connect server: exit status 1
Error: Task exited with status 1.
主要語言
Python
星號
38
分支
28
平均合併
1 天 4 小時
30 天內合併 PR
59

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

posit-dev/rsconnect-python 的其他 Issue

查看 posit-dev/rsconnect-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。