Skip to content

cloudflare部署出错,不兼容以前数据吗? #106

@wyy000111

Description

@wyy000111

Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +5
+++++
Progress: resolved 31, reused 1, downloaded 4, added 5, done
.../esbuild@0.27.4/node_modules/esbuild postinstall$ node install.js
.../esbuild@0.27.4/node_modules/esbuild postinstall: Done
🚀 Starting deployment process...
📄 Setting up environment file...
⚠️ .env file does not exist, creating from example...
✅ .env file created from example
🔧 Setting up Wrangler configuration files...
✅ Configuration /home/runner/work/moemail/moemail/wrangler.json setup successfully.
✅ Configuration /home/runner/work/moemail/moemail/wrangler.email.json setup successfully.
✅ Configuration /home/runner/work/moemail/moemail/wrangler.cleanup.json setup successfully.
🔍 Checking if database "" exists...
📝 Updating database ID (
) in configurations...
✅ Updated database ID in wrangler.json
✅ Updated database ID in wrangler.email.json
✅ Updated database ID in wrangler.cleanup.json
✅ Database "***" already exists (ID: ***)
📝 Migrating remote database...

moemail@0.1.0 db:migrate-remote /home/runner/work/moemail/moemail
tsx scripts/migrate.ts remote

Generating migrations...
Applying migrations to remote database: ***
Migration failed: Error: Command failed: wrangler d1 migrations apply *** --remote
✘ [ERROR] Processing wrangler.json configuration:

- Expected "name" to be of type string, alphanumeric and lowercase with dashes only but got "***".

🪵 Logs were written to "/home/runner/.config/.wrangler/logs/wrangler-2026-03-26_09-23-52_404.log"

at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at ChildProcess.exithandler (node:child_process:422:12)
at ChildProcess.emit (node:events:524:28)
at maybeClose (node:internal/child_process:1104:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5) {

code: 1,
killed: false,
signal: null,
cmd: 'wrangler d1 migrations apply *** --remote',
stdout: '\n' +
'\n' +
'Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md\n',
stderr: '\x1B[31m✘ \x1B[41;31m[\x1B[41;97mERROR\x1B[41;31m]\x1B[0m \x1B[1mProcessing wrangler.json configuration:\x1B[0m\n' +
'\n' +
' - Expected "name" to be of type string, alphanumeric and lowercase with dashes only but got "***".\n' +
'\n' +
'\n' +
'🪵 Logs were written to "/home/runner/.config/.wrangler/logs/wrangler-2026-03-26_09-23-52_404.log"\n'
}
 ELIFECYCLE  Command failed with exit code 1.
❌ Database migration failed: Error: Command failed: pnpm run db:migrate-remote
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at checkExecSyncError (node:child_process:891:11)
at execSync (node:child_process:963:15)
at migrateDatabase (/home/runner/work/moemail/moemail/scripts/deploy/index.ts:204:5)
at main (/home/runner/work/moemail/moemail/scripts/deploy/index.ts:483:5) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 2594,
stdout: null,
stderr: null
}
❌ Deployment failed: Error: Command failed: pnpm run db:migrate-remote
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at checkExecSyncError (node:child_process:891:11)
at execSync (node:child_process:963:15)
at migrateDatabase (/home/runner/work/moemail/moemail/scripts/deploy/index.ts:204:5)
at main (/home/runner/work/moemail/moemail/scripts/deploy/index.ts:483:5) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 2594,
stdout: null,
stderr: null
}
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions