UC故事 2011/12/10 setup env

本文解决了一个服务器启动错误,详细说明了错误原因(地址无效和找不到试用许可证文件),并提供了修复步骤(修改IP地址和手动复制许可证文件),最终服务器成功启动。

1. setup env

* infoserver

$20111210 07:56:31.203 5096/4228 ERROR: CRtAcceptorTcp::StartListen, bind() failed! addr=192.168.1.100 port=1221 err=10049:在其上下文中,该请求的地址无效。
 this=0x17696f8

ip不正确。

 

* controller

没有找到triallicense.dll

copy, OK !

 

crash

???

 

(det) yangyifan@stresstest:~/code/rtdetr-mmdet-rtdetr-mmdet$ pip install -e . -v Using pip 25.3 from /user/yangyifan/miniconda3/envs/det/lib/python3.10/site-packages/pip (python 3.10) Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com Obtaining file:///user/yangyifan/code/rtdetr-mmdet-rtdetr-mmdet Running command installing build dependencies Using pip 25.3 from /user/yangyifan/miniconda3/envs/det/lib/python3.10/site-packages/pip (python 3.10) Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com, https://pypi.ngc.nvidia.com WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /setuptools/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /setuptools/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /setuptools/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /setuptools/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /setuptools/ Collecting setuptools>=40.8.0 Obtaining dependency information for setuptools>=40.8.0 from https://files.pythonhosted.org/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl.metadata Downloading setuptools-80.9.0-py3-none-any.whl.metadata (6.6 kB) Downloading setuptools-80.9.0-py3-none-any.whl (1.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 349.3 kB/s 0:00:04 Installing collected packages: setuptools Successfully installed setuptools-80.9.0 Installing build dependencies ... done Running command Checking if build backend supports build_editable Checking if build backend supports build_editable ... done Running command Getting requirements to build editable Traceback (most recent call last): File "/user/yangyifan/miniconda3/envs/det/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/user/yangyifan/miniconda3/envs/det/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) File "/user/yangyifan/miniconda3/envs/det/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable return hook(config_settings) File "/tmp/pip-build-env-e4vjmq_8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable return self.get_requires_for_build_wheel(config_settings) File "/tmp/pip-build-env-e4vjmq_8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) File "/tmp/pip-build-env-e4vjmq_8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-e4vjmq_8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 512, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-e4vjmq_8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 11, in <module> ModuleNotFoundError: No module named 'torch' error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> No available output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: /user/yangyifan/miniconda3/envs/det/bin/python3.10 /user/yangyifan/miniconda3/envs/det/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_editable /tmp/tmph9psy1uc cwd: /user/yangyifan/code/rtdetr-mmdet-rtdetr-mmdet Getting requirements to build editable ... error ERROR: Failed to build 'file:///user/yangyifan/code/rtdetr-mmdet-rtdetr-mmdet' when getting requirements to build editable
11-27
Started by user Yilun Wu Running as SYSTEM Building on the built-in node in workspace /var/jenkins_home/workspace/Tapo_test [Tapo_test] $ /bin/sh -xe /tmp/jenkins302587584376991642.sh + env JENKINS_HOME=/var/jenkins_home JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental CI=true RUN_CHANGES_DISPLAY_URL=http://10.0.138.175/job/Tapo_test/8/display/redirect?page=changes HOSTNAME=45104600b3f3 NODE_LABELS=built-in SHLVL=0 HUDSON_URL=http://10.0.138.175/ HOME=/var/jenkins_home BUILD_URL=http://10.0.138.175/job/Tapo_test/8/ JENKINS_SERVER_COOKIE=b6155e08db5e2646 HUDSON_COOKIE=4a5dd7f8-83f7-47f8-89c1-1b00629d1c8b JENKINS_UC=https://updates.jenkins.io REF=/usr/share/jenkins/ref WORKSPACE=/var/jenkins_home/workspace/Tapo_test NODE_NAME=built-in RUN_ARTIFACTS_DISPLAY_URL=http://10.0.138.175/job/Tapo_test/8/display/redirect?page=artifacts DOCKERFILE_LOCATION=dockerfile/ EXECUTOR_NUMBER=0 BUILD_DISPLAY_NAME=#8 JENKINS_INCREMENTALS_REPO_MIRROR=https://repo.jenkins-ci.org/incrementals JENKINS_VERSION=2.516.3 RUN_TESTS_DISPLAY_URL=http://10.0.138.175/job/Tapo_test/8/display/redirect?page=tests HUDSON_HOME=/var/jenkins_home JOB_BASE_NAME=Tapo_test PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin BUILD_ID=8 BUILD_TAG=jenkins-Tapo_test-8 LANG=C.UTF-8 JENKINS_URL=http://10.0.138.175/ JOB_URL=http://10.0.138.175/job/Tapo_test/ BUILD_NUMBER=8 JENKINS_SLAVE_AGENT_PORT=50000 RUN_DISPLAY_URL=http://10.0.138.175/job/Tapo_test/8/display/redirect HUDSON_SERVER_COOKIE=b6155e08db5e2646 JOB_DISPLAY_URL=http://10.0.138.175/job/Tapo_test/display/redirect JOB_NAME=Tapo_test COPY_REFERENCE_FILE_LOG=/var/jenkins_home/copy_reference_file.log JAVA_HOME=/opt/java/openjdk PWD=/var/jenkins_home/workspace/Tapo_test WORKSPACE_TMP=/var/jenkins_home/workspace/Tapo_test@tmp + BRANCH_NAME=Tapo/H500 + command -v repo + echo Installing repo tool from Google... Installing repo tool from Google... + mkdir -p /var/jenkins_home/.bin + export PATH=/var/jenkins_home/.bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + curl https://storage.googleapis.com/git-repo-downloads/repo % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 44952 100 44952 0 0 409k 0 --:--:-- --:--:-- --:--:-- 410k + chmod a+rx /var/jenkins_home/.bin/repo + echo Repo tool installed successfully Repo tool installed successfully + [ ! -d .repo/repo ] + [ ! -d .repo/manifests ] + echo Repo not initialized or incomplete, setting up... Repo not initialized or incomplete, setting up... + rm -rf .repo CAMEOS#Remove Any dirs related to source code + NEED_INIT=true + git config --global user.name Jenkins CI + git config --global user.email jenkins@tp-link.com + git config --global color.ui false + export REPO_NO_SELF_UPDATE=1 + export GIT_TERMINAL_PROMPT=0 + export GIT_SSH_COMMAND=ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null + [ true = true ] + echo Running repo init (first time)... Running repo init (first time)... + repo init -u ssh://gerrit/manifests/CEE -b Tapo/H500 -m manifest.xml /usr/bin/env: ‘python3’: No such file or directory Build step 'Execute shell' marked build as failure Archiving artifacts Stopping all containers Finished: FAILURE# REPO INITIALIZATION AND ENVIRONMENT SETUP # - Sets up repo tool environment and downloads source code # - Configures git settings for Jenkins CI user # - Initializes repository with product-specific branch and manifest # - Performs incremental repo sync to get latest changes env # Informational; Mostly for debugging BRANCH_NAME=Tapo/H500 # Install repo tool if not available if ! command -v repo >/dev/null 2>&1; then echo "Installing repo tool from Google..." mkdir -p ~/.bin export PATH="${HOME}/.bin:${PATH}" curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo chmod a+rx ~/.bin/repo echo "Repo tool installed successfully" else echo "Repo tool already available" fi # Only clean and initialize if .repo doesn't exist or is incomplete if [ ! -d ".repo/repo" ] || [ ! -d ".repo/manifests" ]; then echo "Repo not initialized or incomplete, setting up..." rm -rf .repo CAMEOS#Remove Any dirs related to source code mkdir -p .repo/repo tar -xzf /home/tplink/repo_tool_offline.tar.gz -C .repo NEED_INIT=true else echo "Repo already initialized, skipping setup..." NEED_INIT=false fi # Set git name and email (always safe to set) git config --global user.name "Jenkins CI" git config --global user.email "jenkins@tp-link.com" # Disable git UI color git config --global color.ui false # Set environment variables to prevent any network calls export REPO_NO_SELF_UPDATE=1 export GIT_TERMINAL_PROMPT=0 export GIT_SSH_COMMAND="ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" # Only run repo init if we just cleaned/extracted if [ "$NEED_INIT" = true ]; then echo "Running repo init (first time)..." # REPLACE THE BELOW INFORMATION WITH APPROPRIATE REPOSITORY AND BRANCH repo init -u ssh://gerrit/manifests/CEE -b $BRANCH_NAME -m manifest.xml echo "Running repo init (second time)..." # REPLACE THE BELOW INFORMATION WITH APPROPRIATE REPOSITORY AND BRANCH repo init -u ssh://gerrit/manifests/CEE -b $BRANCH_NAME -m manifest.xml fi # Run repo sync - first attempt (will be killed) echo "Starting repo sync (first attempt - will kill after 3 seconds)..." repo sync -c -j14 -vv & SYNC_PID=$! sleep 3 kill $SYNC_PID 2>/dev/null || true wait $SYNC_PID 2>/dev/null || true echo "Killed first sync attempt, waiting a moment..." sleep 1 # Always run the final sync (either fresh or incremental) echo "Running repo sync..." repo sync -c -j14 -vv echo "Repo sync completed successfully!" # REPLACE THE BELOW DIR APPROPRIATE DIR cd CAMEOS repo forall -c ' # Only run if HEAD is detached if [ -z "$(git symbolic-ref --short -q HEAD)" ]; then # Get the remote branch names from origin/gerrit for b in $(git branch -r | grep "gerrit/" | sed "s|gerrit/||"); do # Just pick the branch that exists remotely git checkout -B $b gerrit/$b break done fi ' cd ../#!/bin/bash IMAGE_NAME="h500_build_env:latest" # Function to ensure cleanup ensure_cleanup() { local container_id="$1" echo "--- ENSURING CLEANUP ---" # Stop and remove container if it exists if docker ps -q --filter "id=${container_id}" | grep -q .; then docker stop "${container_id}" fi if docker ps -aq --filter "id=${container_id}" | grep -q .; then docker rm "${container_id}" fi # Remove image if docker images -q "${IMAGE_NAME}" | grep -q .; then docker rmi "${IMAGE_NAME}" fi # Clean up dangling resources docker system prune -f } #echo "Using Dockerfile from: ${DOCKERFILE_LOCATION}" #repo forall CAMEOS -c ' #git fetch http://jenkins@internal-gerrittest-elb-437754605.us-west-1.elb.amazonaws.com/a/Tapo/base/public/CAMEOS refs/changes/24/24/2 && git cherry-pick FETCH_HEAD #git fetch http://jenkins@internal-gerrittest-elb-437754605.us-west-1.elb.amazonaws.com/a/Tapo/base/public/CAMEOS refs/changes/27/27/2 && git cherry-pick FETCH_HEAD ' #cd ${WORKSPACE}/CAMEOS #echo "-------------pull ams------------------" #./scripts/build_main.sh -p H500 -s all -n # echo "-------------pull matter-bridge--------" # CONFIG_MATTER_SOURCE_DIR=connectedhomeip # cd platform/iplatform/private/matter-bridge # ./clone_connectedhomeip.sh -b tplink/v1.0-branch-h200m -d $CONFIG_MATTER_SOURCE_DIR || true # git -C $CONFIG_MATTER_SOURCE_DIR checkout e331e76b6226dceb176238b2fcc60d9ef4994ae1 # cd - # echo "-------------pull matter-controller--------" # CONFIG_MATTER_SOURCE_DIR=controller-app/third_party/connectedhomeip # cd platform/iplatform/private/matter-controller # ./clone_connectedhomeip.sh -b tplink/v1.0-branch-h200m -d $CONFIG_MATTER_SOURCE_DIR || true # git -C $CONFIG_MATTER_SOURCE_DIR checkout e331e76b6226dceb176238b2fcc60d9ef4994ae1 # cd - #cd ${WORKSPACE} # Build image docker build -t "${IMAGE_NAME}" "${DOCKERFILE_LOCATION}" || { echo "❌ Docker image build failed." exit 1 } echo "--- Docker image built successfully ---" # Run container and capture ID CONTAINER_ID=$(docker run -d \ -v "${WORKSPACE}:/build" \ "${IMAGE_NAME}" tail -f /dev/null) # Ensure cleanup on any exit trap "ensure_cleanup ${CONTAINER_ID}" EXIT INT TERM # Execute build with proper error propagation echo "--- Executing build ---" if docker exec "${CONTAINER_ID}" /bin/bash -c " git config --global --add safe.directory /build/CAMEOS &&\ cd /build/CAMEOS && \ make PRODUCT_NAME=H500 V=s "; then echo "✅ Build completed successfully" else echo "❌ Build failed" exit 1 fi
最新发布
12-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值