Skip to content

[BUG] 使用 nodejs 部署项目在下载 APP 时报错 #71

@Doraemonsan

Description

@Doraemonsan

NodeJS版本: v22.14.0
下载 APP 前端提示 Download failed,查看后端日志提示:

0|AssppWeb | 2026-03-03 14:24:09: Server listening on port 3000
0|AssppWeb | 2026-03-03 14:24:09: Data directory: /opt/AssppWeb-Run/data

0|AssppWeb  | 2026-03-03 14:24:51: [2026/03/03 - 06:24:51] info: new connection on /wisp/ from ::ffff:127.0.0.1 (origin: https://asspp.xxxxx.com)
0|AssppWeb  | 2026-03-03 14:24:51: [2026/03/03 - 06:24:51] info: setting up new wisp v1 connection with id cf2106dc
0|AssppWeb  | 2026-03-03 14:24:51: [2026/03/03 - 06:24:51] info: (cf2106dc) opening new TCP stream to p48-buy.itunes.apple.com:443
0|AssppWeb  | 2026-03-03 14:25:08: [2026/03/03 - 06:25:08] info: (cf2106dc) wisp connection closed
0|AssppWeb  | 2026-03-03 14:25:34: [2026/03/03 - 06:25:34] info: new connection on /wisp/ from ::ffff:127.0.0.1 (origin: https://asspp.xxxxx.com)
0|AssppWeb  | 2026-03-03 14:25:34: [2026/03/03 - 06:25:34] info: setting up new wisp v1 connection with id 199136bf
0|AssppWeb  | 2026-03-03 14:25:34: [2026/03/03 - 06:25:34] info: (199136bf) opening new TCP stream to p48-buy.itunes.apple.com:443
0|AssppWeb  | 2026-03-03 14:25:53: (node:31303) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [WriteStream]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
0|AssppWeb  | (Use `node --trace-warnings ...` to show where the warning was created)
0|AssppWeb  | 2026-03-03 14:25:53: (node:31303) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [WriteStream]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
0|AssppWeb  | 2026-03-03 14:25:54: Download ad45bfff-3ed0-4aea-bf87-c0184430f956 failed: spawn zip ENOENT
0|AssppWeb  | 2026-03-03 14:26:05: [2026/03/03 - 06:26:05] info: (199136bf) closing stream to p48-buy.itunes.apple.com for reason 2
0|AssppWeb  | 2026-03-03 14:26:28: [2026/03/03 - 06:26:28] info: (199136bf) wisp connection closed

使用 node --trace-warnings 运行后端再次尝试下载提示以下信息

Server listening on port 3000
Data directory: /opt/AssppWeb-Run/data
[2026/03/03 - 06:52:06] info: new connection on /wisp/ from ::ffff:127.0.0.1 (origin: https://asspp.xxxxx.com)
[2026/03/03 - 06:52:06] info: setting up new wisp v1 connection with id c4509576
[2026/03/03 - 06:52:06] info: (c4509576) opening new TCP stream to p48-buy.itunes.apple.com:443
(node:32053) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [WriteStream]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at _addListener (node:events:592:17)
    at WriteStream.addListener (node:events:610:10)
    at eos (node:internal/streams/end-of-stream:203:12)
    at pipe (node:internal/streams/pipeline:462:10)
    at pipelineImpl (node:internal/streams/pipeline:367:25)
    at node:stream/promises:31:5
    at new Promise (<anonymous>)
    at pipeline (node:stream/promises:20:10)
(node:32053) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [WriteStream]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at _addListener (node:events:592:17)
    at WriteStream.addListener (node:events:610:10)
    at eos (node:internal/streams/end-of-stream:205:10)
    at pipe (node:internal/streams/pipeline:462:10)
    at pipelineImpl (node:internal/streams/pipeline:367:25)
    at node:stream/promises:31:5
    at new Promise (<anonymous>)
    at pipeline (node:stream/promises:20:10)
Download 339b24b6-6032-48a5-a45d-a63022834126 failed: spawn zip ENOENT
[2026/03/03 - 06:52:37] info: (c4509576) closing stream to p48-buy.itunes.apple.com for reason 2
[2026/03/03 - 06:52:47] info: (c4509576) wisp connection closed

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