构建最新manifest 26.03.00.01报错:KeyError: 'pwd'

问题描述

使用最新的manifest 26.03.00.01在 ubuntu:24.04.2_26.03镜像的docker环境下,编译构建qemu报错,temp/log/task.log报错信息如下:

security_aop/25.3.0@openubmc/stable: Already installed! (53 of 116)
opentelemetry/1.13.0.020@openubmc/stable: Already installed! (54 of 116)
file_transfer/1.70.23@openubmc/stable: Already installed! (55 of 116)
libmcpp/1.2.59@openubmc/stable: Already installed! (56 of 116)
libsoc_adapter/1.100.25@openubmc/stable: WARN: Trying to remove corrupted source folder
libsoc_adapter/1.100.25@openubmc/stable: WARN: This can take a while for big packages
libsoc_adapter/1.100.25@openubmc/stable: Calling source() in /root/.conan2/p/libso87dcbedf6a2e4/s
ERROR:
KeyError: ‘pwd’
^[[31mERROR: 执行命令 conan create . -pr=profile.luajit.ini -pr:b profile.dt.ini  -s:h build_type=Debug  -o :module_symvers=3db48e6e6944d2aa4ab9b5fcab7d11423b6cc38e24732863017a60578a004fa5 -o fructrl/:qemu=True -o general_hardware/:qemu=True -o nsm/:qemu=True -o bmc_network/:qemu=True -o firmware_mgmt/:community_enable=True -o vpd/:board_name=openUBMC -o webui/:energy_enabled=False -o webui/:webvnc_enabled=True -o help/:board_name=openUBMC -o remote_console/:webvnc_supported=True -o bmc_time/:manufacture=True -o /:enable_luajit=True -o chassis/*:manufacture=True  --user=openubmc --channel=stable --build=missing 错误, 日志: /home/workspace/manifest/temp/log/task.log^[[0m“task.log” 2708L, 172878B

在论坛中找到了相同的报错,解决方式是使用最新配套的bmc_sdk,但是我目前使用的manifest、docker镜像和bmc_sdk都是26.03版本的?这个版本是否还不稳定?我应该使用那个版本比较合适?25.12 LTS 还是 25.12 LTS SP1?

环境信息

  • 操作系统:ubuntu:24.04.2_26.03

  • 软件版本:26.03

conan remote 需要配置为26.03

可执行conan remote list查看

root@cacb8ec29103:/home/workspace/manifest# conan remote list
openubmc_sdk: https://conan.openubmc.cn/bmc_sdk_latest [Verify SSL: False, Enabled: True]
openubmc_opensource: https://conan.openubmc.cn/openubmc_opensource [Verify SSL: False, Enabled: True]

conan remote update openubmc_sdk --url https://conan.openubmc.cn/bmc_sdk_26.03

执行之后有新的报错:

root@cacb8ec29103:/home/workspace/manifest# conan remote list
openubmc_sdk: https://conan.openubmc.cn/bmc_sdk_26.03 [Verify SSL: False, Enabled: True]
openubmc_opensource: https://conan.openubmc.cn/openubmc_opensource [Verify SSL: False, Enabled: True]

task.log信息

>> conan download security_aop/25.3.0@openubmc/stable -r openubmc_sdk --only-recipe
/root/.conan2/p/netwod2702a46f45ad/e
Connecting to remote 'openubmc_opensource' with user 'mahuihui'
/root/.conan2/p/chassbce1e7a5eb575/e
Connecting to remote 'openubmc_sdk' with user 'mahuihui'
>> conan cache path power_mgmt/1.70.175@openubmc/stable
>> conan cache path storage/1.90.64@openubmc/stable
/root/.conan2/p/stora499785df28338/e
/root/.conan2/p/power83fd1d77e4f1d/e
>> conan cache path pcie_device/1.90.17@openubmc/stable
>> conan cache path thermal_mgmt/1.80.17@openubmc/stable
/root/.conan2/p/therm8304352ded91c/e
/root/.conan2/p/pcie_0d066c86c8ca8/e
>> conan cache path manufacture/1.80.2@openubmc/stable
>> conan cache path bios/1.100.19@openubmc/stable
/root/.conan2/p/manuff9622aba421cc/e
/root/.conan2/p/bios9849e35e5c051/e
>> conan cache path profile_schema/1.80.2@openubmc/stable
ERROR: 404: Not found. [Remote: openubmc_opensource]
Recipe not fount in openubmc_opensource: mctpd/1.100.9@openubmc/stable
/root/.conan2/p/profi2a0e4275ca44c/e
ERROR: 404: Not found. [Remote: openubmc_opensource]
ERROR: 404: Not found. [Remote: openubmc_sdk]
Recipe not fount in openubmc_opensource: vpp/v300r025c20spc002b200_001@openubmc/stable
Recipe not fount in openubmc_sdk: security_aop/25.3.0@openubmc/stable
>> conan download security_aop/25.3.0@openubmc/stable -r openubmc_opensource --only-recipe
Connecting to remote 'openubmc_opensource' with user 'mahuihui'
ERROR: 404: Not found. [Remote: openubmc_opensource]
Recipe not fount in openubmc_opensource: security_aop/25.3.0@openubmc/stable
>> conan download security_aop/25.3.0@openubmc/stable -r openubmc_opensource --only-recipe
Connecting to remote 'openubmc_opensource' with user 'mahuihui'
ERROR: 404: Not found. [Remote: openubmc_opensource]
Recipe not fount in openubmc_opensource: security_aop/25.3.0@openubmc/stable

构建过程打印

>> conan download vpp/v300r025c20spc002b200_001@openubmc/stable -r openubmc_opensource --only-recipe
Recipe not fount in openubmc_opensource: secbox/25.1.3+b001_00002@openubmc/stable
Process DownloadComponentRecipe-6:91:
Traceback (most recent call last):
  File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/component/component_helper.py", line 52, in run
    self.tools.download_conan_recipes(self.comp, self.remote_list)
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py", line 556, in download_conan_recipes
    raise BmcGoException(f"Download {conan_version} failed")
bmcgo.errors.BmcGoException: Download secbox/25.1.3+b001_00002@openubmc/stable failed
Recipe not fount in openubmc_opensource: mctpd/1.100.9@openubmc/stable
>> conan download mctpd/1.100.9@openubmc/stable -r openubmc_opensource --only-recipe
WARN: 下载组件 (secbox/25.1.3+b001_00002@openubmc/stable) 的构建配方(recipe)失败, 退出码: 1
WARN: 下载组件 (ums/1.100.5@openubmc/stable) 的构建配方(recipe)失败, 退出码: 1
>> conan cache path hisec_tls/25.1.2.b001@openubmc/stable
>> conan cache path security_aop/25.3.0@openubmc/stable
>> conan download security_aop/25.3.0@openubmc/stable -r openubmc_sdk --only-recipe
>> conan cache path mdb_interface/1.100.33@openubmc/stable
>> conan cache path sensor/1.70.114@openubmc/stable
>> conan cache path frudata/1.70.59@openubmc/stable
>> conan cache path rackmount/1.100.137@openubmc/stable
>> conan cache path rootfs_user/1.90.0@openubmc/stable
>> conan cache path lsw/1.70.15@openubmc/stable
>> conan cache path network_adapter/1.90.46@openubmc/stable
Recipe not fount in openubmc_opensource: libjpeg/9f.b001@openubmc/stable
Process DownloadComponentRecipe-6:95:
Traceback (most recent call last):
  File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/component/component_helper.py", line 52, in run
    self.tools.download_conan_recipes(self.comp, self.remote_list)
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py", line 556, in download_conan_recipes
    raise BmcGoException(f"Download {conan_version} failed")
bmcgo.errors.BmcGoException: Download libjpeg/9f.b001@openubmc/stable failed
WARN: 下载组件 (libjpeg/9f.b001@openubmc/stable) 的构建配方(recipe)失败, 退出码: 1
>> conan cache path chassis/1.80.37@openubmc/stable
Recipe not fount in openubmc_opensource: vpp/v300r025c20spc002b200_001@openubmc/stable
>> conan download vpp/v300r025c20spc002b200_001@openubmc/stable -r openubmc_opensource --only-recipe
Recipe not fount in openubmc_sdk: security_aop/25.3.0@openubmc/stable
>> conan download security_aop/25.3.0@openubmc/stable -r openubmc_sdk --only-recipe
>> conan cache path power_mgmt/1.70.175@openubmc/stable
>> conan cache path storage/1.90.64@openubmc/stable
>> conan cache path pcie_device/1.90.17@openubmc/stable
>> conan cache path thermal_mgmt/1.80.17@openubmc/stable
>> conan cache path manufacture/1.80.2@openubmc/stable
>> conan cache path bios/1.100.19@openubmc/stable
>> conan cache path profile_schema/1.80.2@openubmc/stable
Recipe not fount in openubmc_opensource: mctpd/1.100.9@openubmc/stable
Process DownloadComponentRecipe-6:96:
Traceback (most recent call last):
  File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/component/component_helper.py", line 52, in run
    self.tools.download_conan_recipes(self.comp, self.remote_list)
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py", line 556, in download_conan_recipes
    raise BmcGoException(f"Download {conan_version} failed")
bmcgo.errors.BmcGoException: Download mctpd/1.100.9@openubmc/stable failed
ERROR: 任务 work.build.conan 执行失败, 下载组件 (mctpd/1.100.9@openubmc/stable) 的构建配方(recipe)失败, 退出码: 1
ERROR: 任务 work.build.conan 执行失败
Recipe not fount in openubmc_opensource: vpp/v300r025c20spc002b200_001@openubmc/stable
Process DownloadComponentRecipe-6:97:
Traceback (most recent call last):
  File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/component/component_helper.py", line 52, in run
    self.tools.download_conan_recipes(self.comp, self.remote_list)
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py", line 556, in download_conan_recipes
    raise BmcGoException(f"Download {conan_version} failed")
bmcgo.errors.BmcGoException: Download vpp/v300r025c20spc002b200_001@openubmc/stable failed
Recipe not fount in openubmc_sdk: security_aop/25.3.0@openubmc/stable
>> conan download security_aop/25.3.0@openubmc/stable -r openubmc_opensource --only-recipe
ERROR: 任务 personal 执行失败
ERROR: 请查看日志信息
>> conan install --requires='bingo_cases/[>=1.0.0]@openubmc/stable' -u --deployer-folder=/tmp/tmp0ebbkg78 -of /tmp/tmp0ebbkg78 -d direct_deploy
Recipe not fount in openubmc_opensource: security_aop/25.3.0@openubmc/stable
>> conan download security_aop/25.3.0@openubmc/stable -r openubmc_opensource --only-recipe
Recipe not fount in openubmc_opensource: security_aop/25.3.0@openubmc/stable
Process DownloadComponentRecipe-6:99:
Traceback (most recent call last):
  File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/component/component_helper.py", line 52, in run
    self.tools.download_conan_recipes(self.comp, self.remote_list)
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py", line 556, in download_conan_recipes
    raise BmcGoException(f"Download {conan_version} failed")
bmcgo.errors.BmcGoException: Download security_aop/25.3.0@openubmc/stable failed
[INFO unified_error_analyzer.py:186 analyze_errors] 
============================================================
[INFO unified_error_analyzer.py:187 analyze_errors] 🔍 开始统一错误分析
[INFO unified_error_analyzer.py:188 analyze_errors] ============================================================
[WARNING unified_error_analyzer.py:326 _output_unified_analysis] 
✅ 没有发现匹配的错误案例

这里是不是描述有点问题,你是基于社区主干构建?社区main分支当前对应的conan sdk是25.12

因为我看main分支是26.03,所以就使用的ubuntu:24.04.2_26.03的docker镜像和bmc_sdk_26.03,哪里可以看不同版本之间的对应关系吗?

可以关注manifest.yml文件里对platform的描述,ibmc_sdk/xxx@openubmc/stable即是sdk对应的分支

如上图对应的则是25.12 conan仓

5.13则应对应26.03,依次类推

多谢指点,更换25.12 sdk正常了