[GH-ISSUE #3] 问题请教 #1

Closed
opened 2026-03-01 14:53:37 +03:00 by kerem · 1 comment
Owner

Originally created by @wang4386 on GitHub (Feb 28, 2025).
Original GitHub issue: https://github.com/beilunyang/moepush/issues/3

通过github action构建一直失败下面是日志

Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +5
+++++
Progress: resolved 30, reused 2, downloaded 3, added 5, done
.../esbuild@0.25.0/node_modules/esbuild postinstall$ node install.js
.../esbuild@0.25.0/node_modules/esbuild postinstall: Done
Project *** already exists.
Creating new D1 database: ***
❌ Deployment failed: Error: Command failed: wrangler d1 create "***"
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:[14](https://github.com/wang4386/moepush/actions/runs/13581109069/job/37967204736#step:7:15))
    at checkExecSyncError (node:child_process:891:11)
    at execSync (node:child_process:963:[15](https://github.com/wang4386/moepush/actions/runs/13581109069/job/37967204736#step:7:16))
    at checkAndCreateDatabase (/home/runner/work/***/***/scripts/deploy.ts:38:9)
    at main (/home/runner/work/***/***/scripts/deploy.ts:154:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  status: 1,
  signal: null,
  output: [
    null,
    <Buffer 0a 20 e2 9b 85 ef b8 8f 20 77 72 61 6e 67 6c 65 72 20 33 2e 31 31 31 2e 30 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 0a 1b ... 1532 more bytes>,
    <Buffer >
  ],
  pid: 2[19](https://github.com/wang4386/moepush/actions/runs/13581109069/job/37967204736#step:7:20)4,
  stdout: <Buffer 0a 20 e2 9b 85 ef b8 8f [20](https://github.com/wang4386/moepush/actions/runs/13581109069/job/37967204736#step:7:21) 77 72 61 6e 67 6c 65 72 20 33 2e 31 31 31 2e 30 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 0a 1b ... 1532 more bytes>,
  stderr: <Buffer >
}
Error: Process completed with exit code 1.
Originally created by @wang4386 on GitHub (Feb 28, 2025). Original GitHub issue: https://github.com/beilunyang/moepush/issues/3 通过github action构建一直失败下面是日志 ``` Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +5 +++++ Progress: resolved 30, reused 2, downloaded 3, added 5, done .../esbuild@0.25.0/node_modules/esbuild postinstall$ node install.js .../esbuild@0.25.0/node_modules/esbuild postinstall: Done Project *** already exists. Creating new D1 database: *** ❌ Deployment failed: Error: Command failed: wrangler d1 create "***" at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:[14](https://github.com/wang4386/moepush/actions/runs/13581109069/job/37967204736#step:7:15)) at checkExecSyncError (node:child_process:891:11) at execSync (node:child_process:963:[15](https://github.com/wang4386/moepush/actions/runs/13581109069/job/37967204736#step:7:16)) at checkAndCreateDatabase (/home/runner/work/***/***/scripts/deploy.ts:38:9) at main (/home/runner/work/***/***/scripts/deploy.ts:154:9) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 1, signal: null, output: [ null, <Buffer 0a 20 e2 9b 85 ef b8 8f 20 77 72 61 6e 67 6c 65 72 20 33 2e 31 31 31 2e 30 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 0a 1b ... 1532 more bytes>, <Buffer > ], pid: 2[19](https://github.com/wang4386/moepush/actions/runs/13581109069/job/37967204736#step:7:20)4, stdout: <Buffer 0a 20 e2 9b 85 ef b8 8f [20](https://github.com/wang4386/moepush/actions/runs/13581109069/job/37967204736#step:7:21) 77 72 61 6e 67 6c 65 72 20 33 2e 31 31 31 2e 30 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 0a 1b ... 1532 more bytes>, stderr: <Buffer > } Error: Process completed with exit code 1. ```
kerem closed this issue 2026-03-01 14:53:37 +03:00
Author
Owner

@beilunyang commented on GitHub (Feb 28, 2025):

api token 需要d1编辑权限

<!-- gh-comment-id:2689684845 --> @beilunyang commented on GitHub (Feb 28, 2025): api token 需要d1编辑权限
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/moepush#1
No description provided.