7Sageer / sublink-worker

无需服务器,一键部署,快速使用自建节点分享URL进行订阅转换,提供灵活的自定义选项,支持SingBox/Clash/V2Ray/Xray
https://sublink-worker.sageer.me/
MIT License
976 stars 1.77k forks source link

部署出错 #48

Closed houzixiashanxiedaima closed 1 month ago

houzixiashanxiedaima commented 1 month ago
  1. 点击README中的一键部署;
  2. 配置好了ACCOUNT_IDAPI_TOKEN
  3. fork到自己的github,开启action;

部署时就遇到这个报错

Checking for KV namespace: SUBLINK_KV
2024-10-14T05:26:43.0820843Z ##[error]Process completed with exit code 1.
7Sageer commented 1 month ago

请提供脱敏后完整的日志信息,以便能定位你的错误

houzixiashanxiedaima commented 1 month ago

以下是完整的日志,看日志中,似乎是我的account_idapi_token没配置成功?输出的是***,但是项目的settings中已经有了对应的字段配置;

2024-10-14T05:26:04.6195359Z Current runner version: '2.320.0'
2024-10-14T05:26:04.6217906Z ##[group]Operating System
2024-10-14T05:26:04.6218517Z Ubuntu
2024-10-14T05:26:04.6219014Z 24.04.1
2024-10-14T05:26:04.6219366Z LTS
2024-10-14T05:26:04.6219714Z ##[endgroup]
2024-10-14T05:26:04.6220202Z ##[group]Runner Image
2024-10-14T05:26:04.6220626Z Image: ubuntu-24.04
2024-10-14T05:26:04.6221029Z Version: 20241006.1.0
2024-10-14T05:26:04.6222124Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20241006.1/images/ubuntu/Ubuntu2404-Readme.md
2024-10-14T05:26:04.6223557Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20241006.1
2024-10-14T05:26:04.6224605Z ##[endgroup]
2024-10-14T05:26:04.6225119Z ##[group]Runner Image Provisioner
2024-10-14T05:26:04.6225613Z 2.0.384.1
2024-10-14T05:26:04.6225958Z ##[endgroup]
2024-10-14T05:26:04.6242262Z ##[group]GITHUB_TOKEN Permissions
2024-10-14T05:26:04.6244352Z Actions: write
2024-10-14T05:26:04.6244941Z Attestations: write
2024-10-14T05:26:04.6245621Z Checks: write
2024-10-14T05:26:04.6245976Z Contents: write
2024-10-14T05:26:04.6246486Z Deployments: write
2024-10-14T05:26:04.6246909Z Discussions: write
2024-10-14T05:26:04.6247304Z Issues: write
2024-10-14T05:26:04.6247791Z Metadata: read
2024-10-14T05:26:04.6248189Z Packages: write
2024-10-14T05:26:04.6248546Z Pages: write
2024-10-14T05:26:04.6249042Z PullRequests: write
2024-10-14T05:26:04.6249479Z RepositoryProjects: write
2024-10-14T05:26:04.6249959Z SecurityEvents: write
2024-10-14T05:26:04.6250432Z Statuses: write
2024-10-14T05:26:04.6250823Z ##[endgroup]
2024-10-14T05:26:04.6253942Z Secret source: Actions
2024-10-14T05:26:04.6254689Z Prepare workflow directory
2024-10-14T05:26:04.6970007Z Prepare all required actions
2024-10-14T05:26:04.7127906Z Getting action download info
2024-10-14T05:26:04.8910261Z Download action repository 'actions/checkout@v4' (SHA:eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871)
2024-10-14T05:26:05.1806621Z Download action repository 'actions/setup-node@v4' (SHA:0a44ba7841725637a19e28fa30b79a866c81b0a6)
2024-10-14T05:26:05.2701423Z Download action repository 'cloudflare/wrangler-action@2.0.0' (SHA:4c10c1822abba527d820b29e6333e7f5dac2cabd)
2024-10-14T05:26:05.5332313Z Complete job name: deploy
2024-10-14T05:26:05.5952724Z ##[group]Build container for action use: '/home/runner/work/_actions/cloudflare/wrangler-action/2.0.0/Dockerfile'.
2024-10-14T05:26:05.6254668Z ##[command]/usr/bin/docker build -t a7fe2a:adf24625992145c69687f78e4882be31 -f "/home/runner/work/_actions/cloudflare/wrangler-action/2.0.0/Dockerfile" "/home/runner/work/_actions/cloudflare/wrangler-action/2.0.0"
2024-10-14T05:26:06.3322910Z #0 building with "default" instance using docker driver
2024-10-14T05:26:06.3323867Z 
2024-10-14T05:26:06.3324169Z #1 [internal] load build definition from Dockerfile
2024-10-14T05:26:06.3324887Z #1 transferring dockerfile: 192B done
2024-10-14T05:26:06.3325470Z #1 DONE 0.0s
2024-10-14T05:26:06.3325727Z 
2024-10-14T05:26:06.3326062Z #2 [auth] library/node:pull token for registry-1.docker.io
2024-10-14T05:26:06.3326829Z #2 DONE 0.0s
2024-10-14T05:26:06.3327076Z 
2024-10-14T05:26:06.3327412Z #3 [internal] load metadata for docker.io/library/node:16
2024-10-14T05:26:06.4797890Z #3 DONE 0.4s
2024-10-14T05:26:06.6064040Z 
2024-10-14T05:26:06.6064631Z #4 [internal] load .dockerignore
2024-10-14T05:26:06.6066484Z #4 transferring context: 2B done
2024-10-14T05:26:06.6066992Z #4 DONE 0.0s
2024-10-14T05:26:06.6067206Z 
2024-10-14T05:26:06.6067366Z #5 [internal] load build context
2024-10-14T05:26:06.6067978Z #5 transferring context: 3.98kB done
2024-10-14T05:26:06.6068453Z #5 DONE 0.0s
2024-10-14T05:26:06.6068663Z 
2024-10-14T05:26:06.6069285Z #6 [1/2] FROM docker.io/library/node:16@sha256:f77a1aef2da8d83e45ec990f45df50f1a286c5fe8bbfb8c6e4246c6389705c0b
2024-10-14T05:26:06.6070744Z #6 resolve docker.io/library/node:16@sha256:f77a1aef2da8d83e45ec990f45df50f1a286c5fe8bbfb8c6e4246c6389705c0b 0.0s done
2024-10-14T05:26:06.6071935Z #6 sha256:c94b82f9827cab6e421b350965a9ef11b25b13ffbd1030536203d541f55dcbe2 2.00kB / 2.00kB done
2024-10-14T05:26:06.6073155Z #6 sha256:311da6c465ea1576925360eba391bcd32dece9be95960a0bc9ffcb25fe712017 7.34MB / 50.50MB 0.1s
2024-10-14T05:26:06.6074520Z #6 sha256:7e9bf114588c05b2df612b083b96582f3b8dbf51647aa6138a50d09d42df2454 0B / 17.58MB 0.1s
2024-10-14T05:26:06.6075416Z #6 sha256:ffd9397e94b74abcb54e514f1430e00f604328d1f895eadbd482f08cc02444e5 0B / 51.89MB 0.1s
2024-10-14T05:26:06.6076430Z #6 sha256:f77a1aef2da8d83e45ec990f45df50f1a286c5fe8bbfb8c6e4246c6389705c0b 776B / 776B done
2024-10-14T05:26:06.6077336Z #6 sha256:1ddc7e4055fdb6f6bf31063b593befda814294f9f904b6ddfc21ab1513bafa8e 7.23kB / 7.23kB done
2024-10-14T05:26:06.7065890Z #6 sha256:311da6c465ea1576925360eba391bcd32dece9be95960a0bc9ffcb25fe712017 13.63MB / 50.50MB 0.2s
2024-10-14T05:26:06.7068010Z #6 sha256:7e9bf114588c05b2df612b083b96582f3b8dbf51647aa6138a50d09d42df2454 17.58MB / 17.58MB 0.2s
2024-10-14T05:26:06.7068934Z #6 sha256:ffd9397e94b74abcb54e514f1430e00f604328d1f895eadbd482f08cc02444e5 20.97MB / 51.89MB 0.2s
2024-10-14T05:26:06.8086092Z #6 sha256:311da6c465ea1576925360eba391bcd32dece9be95960a0bc9ffcb25fe712017 30.41MB / 50.50MB 0.3s
2024-10-14T05:26:06.8093480Z #6 sha256:7e9bf114588c05b2df612b083b96582f3b8dbf51647aa6138a50d09d42df2454 17.58MB / 17.58MB 0.2s done
2024-10-14T05:26:06.8095506Z #6 sha256:ffd9397e94b74abcb54e514f1430e00f604328d1f895eadbd482f08cc02444e5 46.32MB / 51.89MB 0.3s
2024-10-14T05:26:06.8099560Z #6 sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e 10.49MB / 191.90MB 0.3s
2024-10-14T05:26:07.0080438Z #6 sha256:311da6c465ea1576925360eba391bcd32dece9be95960a0bc9ffcb25fe712017 50.50MB / 50.50MB 0.5s done
2024-10-14T05:26:07.0082430Z #6 sha256:ffd9397e94b74abcb54e514f1430e00f604328d1f895eadbd482f08cc02444e5 51.89MB / 51.89MB 0.4s done
2024-10-14T05:26:07.0084162Z #6 sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e 42.99MB / 191.90MB 0.5s
2024-10-14T05:26:07.0085747Z #6 sha256:ae3b95bbaa61ce24cefdd89e7c74d6fbd7713b2bcae93af47063d06bd7e02172 4.20kB / 4.20kB 0.4s done
2024-10-14T05:26:07.0087484Z #6 sha256:ca266fd6192108b67fb57b74753a8c4ca5d8bd458baae3d4df7ce9f42dedcc1d 0B / 2.27MB 0.5s
2024-10-14T05:26:07.0089352Z #6 sha256:0e421f66aff42bb069dffc26af6d132194b22a1082b08c5ef7cd69c627783c04 3.15MB / 34.79MB 0.5s
2024-10-14T05:26:07.1249211Z #6 sha256:ca266fd6192108b67fb57b74753a8c4ca5d8bd458baae3d4df7ce9f42dedcc1d 2.27MB / 2.27MB 0.5s done
2024-10-14T05:26:07.1255047Z #6 sha256:0e421f66aff42bb069dffc26af6d132194b22a1082b08c5ef7cd69c627783c04 16.78MB / 34.79MB 0.6s
2024-10-14T05:26:07.1256797Z #6 extracting sha256:311da6c465ea1576925360eba391bcd32dece9be95960a0bc9ffcb25fe712017 0.1s
2024-10-14T05:26:07.1259304Z #6 sha256:ee7d78be1eb92caf6ae84fc3af736b23eca018d5dedc967ae5bdee6d7082403b 450B / 450B 0.6s done
2024-10-14T05:26:07.2263018Z #6 sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e 69.21MB / 191.90MB 0.7s
2024-10-14T05:26:07.2266973Z #6 sha256:0e421f66aff42bb069dffc26af6d132194b22a1082b08c5ef7cd69c627783c04 24.12MB / 34.79MB 0.7s
2024-10-14T05:26:07.3300645Z #6 sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e 89.73MB / 191.90MB 0.8s
2024-10-14T05:26:07.3302568Z #6 sha256:0e421f66aff42bb069dffc26af6d132194b22a1082b08c5ef7cd69c627783c04 32.51MB / 34.79MB 0.8s
2024-10-14T05:26:07.4362953Z #6 sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e 106.95MB / 191.90MB 0.9s
2024-10-14T05:26:07.4364908Z #6 sha256:0e421f66aff42bb069dffc26af6d132194b22a1082b08c5ef7cd69c627783c04 34.79MB / 34.79MB 0.8s done
2024-10-14T05:26:07.5420708Z #6 sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e 121.63MB / 191.90MB 1.0s
2024-10-14T05:26:07.7014908Z #6 sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e 135.27MB / 191.90MB 1.1s
2024-10-14T05:26:07.8063723Z #6 sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e 158.33MB / 191.90MB 1.3s
2024-10-14T05:26:08.0067004Z #6 sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e 179.55MB / 191.90MB 1.5s
2024-10-14T05:26:08.1256058Z #6 sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e 191.90MB / 191.90MB 1.6s
2024-10-14T05:26:08.3634084Z #6 sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e 191.90MB / 191.90MB 1.8s done
2024-10-14T05:26:08.8233129Z #6 extracting sha256:311da6c465ea1576925360eba391bcd32dece9be95960a0bc9ffcb25fe712017 1.8s done
2024-10-14T05:26:08.8235131Z #6 extracting sha256:7e9bf114588c05b2df612b083b96582f3b8dbf51647aa6138a50d09d42df2454
2024-10-14T05:26:09.3288446Z #6 extracting sha256:7e9bf114588c05b2df612b083b96582f3b8dbf51647aa6138a50d09d42df2454 0.4s done
2024-10-14T05:26:09.4109079Z #6 extracting sha256:ffd9397e94b74abcb54e514f1430e00f604328d1f895eadbd482f08cc02444e5
2024-10-14T05:26:11.2987663Z #6 extracting sha256:ffd9397e94b74abcb54e514f1430e00f604328d1f895eadbd482f08cc02444e5 1.7s done
2024-10-14T05:26:11.4107890Z #6 extracting sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e
2024-10-14T05:26:16.3575156Z #6 extracting sha256:513d779256048c961239af5f500589330546b072775217272e19ffae1635e98e 4.8s done
2024-10-14T05:26:17.3670944Z #6 extracting sha256:ae3b95bbaa61ce24cefdd89e7c74d6fbd7713b2bcae93af47063d06bd7e02172
2024-10-14T05:26:17.5052566Z #6 extracting sha256:ae3b95bbaa61ce24cefdd89e7c74d6fbd7713b2bcae93af47063d06bd7e02172 done
2024-10-14T05:26:17.5054478Z #6 extracting sha256:0e421f66aff42bb069dffc26af6d132194b22a1082b08c5ef7cd69c627783c04 0.1s
2024-10-14T05:26:18.3606521Z #6 extracting sha256:0e421f66aff42bb069dffc26af6d132194b22a1082b08c5ef7cd69c627783c04 1.0s done
2024-10-14T05:26:18.5429765Z #6 extracting sha256:ca266fd6192108b67fb57b74753a8c4ca5d8bd458baae3d4df7ce9f42dedcc1d
2024-10-14T05:26:18.7215496Z #6 extracting sha256:ca266fd6192108b67fb57b74753a8c4ca5d8bd458baae3d4df7ce9f42dedcc1d 0.0s done
2024-10-14T05:26:18.7217349Z #6 extracting sha256:ee7d78be1eb92caf6ae84fc3af736b23eca018d5dedc967ae5bdee6d7082403b done
2024-10-14T05:26:18.7218702Z #6 DONE 12.2s
2024-10-14T05:26:18.8854833Z 
2024-10-14T05:26:18.8855492Z #7 [2/2] COPY entrypoint.sh /entrypoint.sh
2024-10-14T05:26:18.8856406Z #7 DONE 0.0s
2024-10-14T05:26:18.8856673Z 
2024-10-14T05:26:18.8856807Z #8 exporting to image
2024-10-14T05:26:18.8857172Z #8 exporting layers
2024-10-14T05:26:19.9588491Z #8 exporting layers 1.2s done
2024-10-14T05:26:20.0162616Z #8 writing image sha256:08206f592a7bf09fbc4735e36ee5fa92a02e329f0c8fb503f1d792acbd36ed46 done
2024-10-14T05:26:20.0164346Z #8 naming to docker.io/library/a7fe2a:adf24625992145c69687f78e4882be31 done
2024-10-14T05:26:20.0165452Z #8 DONE 1.2s
2024-10-14T05:26:20.0208942Z ##[endgroup]
2024-10-14T05:26:20.0661124Z ##[group]Run actions/checkout@v4
2024-10-14T05:26:20.0661491Z with:
2024-10-14T05:26:20.0661794Z   repository: houzixiashanxiedaima/sublink-worker
2024-10-14T05:26:20.0662350Z   token: ***
2024-10-14T05:26:20.0662606Z   ssh-strict: true
2024-10-14T05:26:20.0662850Z   ssh-user: git
2024-10-14T05:26:20.0663107Z   persist-credentials: true
2024-10-14T05:26:20.0663396Z   clean: true
2024-10-14T05:26:20.0663824Z   sparse-checkout-cone-mode: true
2024-10-14T05:26:20.0664149Z   fetch-depth: 1
2024-10-14T05:26:20.0664391Z   fetch-tags: false
2024-10-14T05:26:20.0664646Z   show-progress: true
2024-10-14T05:26:20.0664893Z   lfs: false
2024-10-14T05:26:20.0665120Z   submodules: false
2024-10-14T05:26:20.0665378Z   set-safe-directory: true
2024-10-14T05:26:20.0665666Z ##[endgroup]
2024-10-14T05:26:20.3128375Z Syncing repository: houzixiashanxiedaima/sublink-worker
2024-10-14T05:26:20.3130265Z ##[group]Getting Git version info
2024-10-14T05:26:20.3131130Z Working directory is '/home/runner/work/sublink-worker/sublink-worker'
2024-10-14T05:26:20.3132093Z [command]/usr/bin/git version
2024-10-14T05:26:20.3132596Z git version 2.46.2
2024-10-14T05:26:20.3134190Z ##[endgroup]
2024-10-14T05:26:20.3155366Z Temporarily overriding HOME='/home/runner/work/_temp/bb3d9302-3adf-4cf6-bb26-918701eb8a2e' before making global git config changes
2024-10-14T05:26:20.3156379Z Adding repository directory to the temporary git global config as a safe directory
2024-10-14T05:26:20.3160524Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/sublink-worker/sublink-worker
2024-10-14T05:26:20.3196184Z Deleting the contents of '/home/runner/work/sublink-worker/sublink-worker'
2024-10-14T05:26:20.3199745Z ##[group]Initializing the repository
2024-10-14T05:26:20.3204100Z [command]/usr/bin/git init /home/runner/work/sublink-worker/sublink-worker
2024-10-14T05:26:20.3323247Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-10-14T05:26:20.3324955Z hint: is subject to change. To configure the initial branch name to use in all
2024-10-14T05:26:20.3326007Z hint: of your new repositories, which will suppress this warning, call:
2024-10-14T05:26:20.3326536Z hint:
2024-10-14T05:26:20.3326966Z hint:  git config --global init.defaultBranch <name>
2024-10-14T05:26:20.3327398Z hint:
2024-10-14T05:26:20.3328025Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-10-14T05:26:20.3329579Z hint: 'development'. The just-created branch can be renamed via this command:
2024-10-14T05:26:20.3330615Z hint:
2024-10-14T05:26:20.3331204Z hint:  git branch -m <name>
2024-10-14T05:26:20.3332587Z Initialized empty Git repository in /home/runner/work/sublink-worker/sublink-worker/.git/
2024-10-14T05:26:20.3343152Z [command]/usr/bin/git remote add origin https://github.com/houzixiashanxiedaima/sublink-worker
2024-10-14T05:26:20.3378503Z ##[endgroup]
2024-10-14T05:26:20.3379336Z ##[group]Disabling automatic garbage collection
2024-10-14T05:26:20.3383531Z [command]/usr/bin/git config --local gc.auto 0
2024-10-14T05:26:20.3411962Z ##[endgroup]
2024-10-14T05:26:20.3412830Z ##[group]Setting up auth
2024-10-14T05:26:20.3419661Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-10-14T05:26:20.3450202Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-10-14T05:26:20.3814871Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-10-14T05:26:20.3843154Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-10-14T05:26:20.4079777Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-10-14T05:26:20.4115388Z ##[endgroup]
2024-10-14T05:26:20.4116585Z ##[group]Fetching the repository
2024-10-14T05:26:20.4125272Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +d152fb197b284096c03d4ee0295efd8e1b2071b6:refs/remotes/origin/main
2024-10-14T05:26:20.6318679Z From https://github.com/houzixiashanxiedaima/sublink-worker
2024-10-14T05:26:20.6320263Z  * [new ref]         d152fb197b284096c03d4ee0295efd8e1b2071b6 -> origin/main
2024-10-14T05:26:20.6344630Z ##[endgroup]
2024-10-14T05:26:20.6345143Z ##[group]Determining the checkout info
2024-10-14T05:26:20.6347263Z ##[endgroup]
2024-10-14T05:26:20.6354537Z [command]/usr/bin/git sparse-checkout disable
2024-10-14T05:26:20.6399050Z [command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
2024-10-14T05:26:20.6425009Z ##[group]Checking out the ref
2024-10-14T05:26:20.6428808Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2024-10-14T05:26:20.6503882Z Switched to a new branch 'main'
2024-10-14T05:26:20.6507747Z branch 'main' set up to track 'origin/main'.
2024-10-14T05:26:20.6514251Z ##[endgroup]
2024-10-14T05:26:20.6548130Z [command]/usr/bin/git log -1 --format=%H
2024-10-14T05:26:20.6570520Z d152fb197b284096c03d4ee0295efd8e1b2071b6
2024-10-14T05:26:20.6882056Z ##[group]Run actions/setup-node@v4
2024-10-14T05:26:20.6882396Z with:
2024-10-14T05:26:20.6882620Z   node-version: 21
2024-10-14T05:26:20.6882887Z   always-auth: false
2024-10-14T05:26:20.6883346Z   check-latest: false
2024-10-14T05:26:20.6883927Z   token: ***
2024-10-14T05:26:20.6884166Z ##[endgroup]
2024-10-14T05:26:20.8494741Z Attempting to download 21...
2024-10-14T05:26:21.1768317Z Not found in manifest. Falling back to download directly from Node
2024-10-14T05:26:21.4271656Z Acquiring 21.7.3 - x64 from https://nodejs.org/dist/v21.7.3/node-v21.7.3-linux-x64.tar.gz
2024-10-14T05:26:21.7235795Z Extracting ...
2024-10-14T05:26:21.7340428Z [command]/usr/bin/tar xz --strip 1 --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/e5e1f79f-394d-47b3-aa45-595d6979844e -f /home/runner/work/_temp/7dbb57a7-9afc-4930-8576-29dbb6629a6f
2024-10-14T05:26:22.7600770Z Adding to the cache ...
2024-10-14T05:26:24.4192606Z Done
2024-10-14T05:26:24.4196950Z ##[group]Environment details
2024-10-14T05:26:24.6468895Z node: v21.7.3
2024-10-14T05:26:24.6469404Z npm: 10.5.0
2024-10-14T05:26:24.6469814Z yarn: 1.22.22
2024-10-14T05:26:24.6470531Z ##[endgroup]
2024-10-14T05:26:24.6627787Z ##[group]Run npm install
2024-10-14T05:26:24.6628181Z npm install
2024-10-14T05:26:24.6681884Z shell: /usr/bin/bash -e {0}
2024-10-14T05:26:24.6682225Z ##[endgroup]
2024-10-14T05:26:35.0229317Z npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
2024-10-14T05:26:35.0612024Z npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
2024-10-14T05:26:38.9046591Z 
2024-10-14T05:26:38.9047601Z added 164 packages, and audited 165 packages in 14s
2024-10-14T05:26:38.9048410Z 
2024-10-14T05:26:38.9048751Z 39 packages are looking for funding
2024-10-14T05:26:38.9049757Z   run `npm fund` for details
2024-10-14T05:26:38.9059705Z 
2024-10-14T05:26:38.9060060Z found 0 vulnerabilities
2024-10-14T05:26:38.9468731Z ##[group]Run npm install -g wrangler
2024-10-14T05:26:38.9469203Z npm install -g wrangler
2024-10-14T05:26:38.9528552Z shell: /usr/bin/bash -e {0}
2024-10-14T05:26:38.9529091Z ##[endgroup]
2024-10-14T05:26:40.8161002Z npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
2024-10-14T05:26:40.8310338Z npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
2024-10-14T05:26:41.5324774Z 
2024-10-14T05:26:41.5325715Z added 79 packages in 2s
2024-10-14T05:26:41.5326682Z 
2024-10-14T05:26:41.5327426Z 11 packages are looking for funding
2024-10-14T05:26:41.5328041Z   run `npm fund` for details
2024-10-14T05:26:41.5629715Z ##[group]Run KV_NAMESPACE="SUBLINK_KV"
2024-10-14T05:26:41.5630129Z KV_NAMESPACE="SUBLINK_KV"
2024-10-14T05:26:41.5630571Z echo "Checking for KV namespace: $KV_NAMESPACE"
2024-10-14T05:26:41.5631065Z LIST_OUTPUT=$(wrangler kv namespace list)
2024-10-14T05:26:41.5631529Z echo "KV namespace list output: $LIST_OUTPUT"
2024-10-14T05:26:41.5631912Z 
2024-10-14T05:26:41.5632400Z KV_ID=$(echo "$LIST_OUTPUT" | jq -r '.[] | select(.title == "sublink-worker-'$KV_NAMESPACE'") | .id')
2024-10-14T05:26:41.5632975Z 
2024-10-14T05:26:41.5633212Z if [ -z "$KV_ID" ]; then
2024-10-14T05:26:41.5637903Z     echo "KV namespace $KV_NAMESPACE does not exist. Creating..."
2024-10-14T05:26:41.5638548Z     CREATE_OUTPUT=$(wrangler kv namespace create "$KV_NAMESPACE")
2024-10-14T05:26:41.5639111Z     echo "Create KV namespace output: $CREATE_OUTPUT"
2024-10-14T05:26:41.5639671Z     KV_ID=$(echo "$CREATE_OUTPUT" | grep -oP 'id = "\K[^"]+')
2024-10-14T05:26:41.5640097Z     
2024-10-14T05:26:41.5640350Z     if [ -z "$KV_ID" ]; then
2024-10-14T05:26:41.5640815Z         echo "Failed to extract KV ID. Full output: $CREATE_OUTPUT"
2024-10-14T05:26:41.5641297Z         exit 1
2024-10-14T05:26:41.5641568Z     fi
2024-10-14T05:26:41.5641803Z     
2024-10-14T05:26:41.5642219Z     echo "KV namespace $KV_NAMESPACE created successfully with ID: $KV_ID"
2024-10-14T05:26:41.5642905Z else
2024-10-14T05:26:41.5643292Z   echo "KV namespace $KV_NAMESPACE already exists with ID: $KV_ID"
2024-10-14T05:26:41.5644112Z fi
2024-10-14T05:26:41.5644393Z echo "KV_ID=$KV_ID" >> $GITHUB_ENV
2024-10-14T05:26:41.5695340Z shell: /usr/bin/bash -e {0}
2024-10-14T05:26:41.5695665Z env:
2024-10-14T05:26:41.5696150Z   CLOUDFLARE_API_TOKEN: ***
2024-10-14T05:26:41.5696577Z   CLOUDFLARE_ACCOUNT_ID: ***
2024-10-14T05:26:41.5696870Z ##[endgroup]
2024-10-14T05:26:41.5766075Z Checking for KV namespace: SUBLINK_KV
2024-10-14T05:26:43.0820843Z ##[error]Process completed with exit code 1.
2024-10-14T05:26:43.0911025Z Post job cleanup.
2024-10-14T05:26:43.1854123Z [command]/usr/bin/git version
2024-10-14T05:26:43.1894390Z git version 2.46.2
2024-10-14T05:26:43.1939026Z Temporarily overriding HOME='/home/runner/work/_temp/55b920f7-b6dd-4c92-af72-eb01ac7da48b' before making global git config changes
2024-10-14T05:26:43.1941103Z Adding repository directory to the temporary git global config as a safe directory
2024-10-14T05:26:43.1953404Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/sublink-worker/sublink-worker
2024-10-14T05:26:43.1988706Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-10-14T05:26:43.2021749Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-10-14T05:26:43.2277576Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-10-14T05:26:43.2300605Z http.https://github.com/.extraheader
2024-10-14T05:26:43.2314242Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-10-14T05:26:43.2350483Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-10-14T05:26:43.2820222Z Cleaning up orphan processes
7Sageer commented 1 month ago

日志不输出account_id和api_token应该是预期行为。我推测你的问题是account_id和api_token没有正确配置,可以检查下面几个点:

houzixiashanxiedaima commented 1 month ago
  • api_token是否有权限读/写worker?

这个地方想确认一下,这里的读/写worker指的是workers脚本吗? 我是在API令牌-权限这里配置的权限,Worker相关的有好几个😂

7Sageer commented 1 month ago

image 我建议创建api时直接选择从模板创建。在这里选择第四项即可。

houzixiashanxiedaima commented 1 month ago

非常感谢您的耐心解答,我已经解决问题了。 得配置Worker_KV的 读取 和 编辑 权限;我之前只是单独的配置了 编辑 权限,我以为能 编辑 就能 读取,看来还是得分开配置。 再次感谢,感谢您的耐心,感谢您的项目,真诚地祝福您能开心!