Skip to content

[BUG] Failed to compile for failing download artifacts #1840

@Howard-Zhou-77

Description

@Howard-Zhou-77

Code of conduct

Self-training on how to write a bug report

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

~/session-desktop[1]►LANG=en_US.UTF-8 pnpm install
Lockfile is up to date, resolution step is skipped
Already up to date

> session-desktop@1.17.6 postinstall /home/howard/session-desktop
> yarn patch-package && yarn electron-builder install-app-deps

yarn run v1.22.22
$ /home/howard/session-desktop/node_modules/.bin/patch-package
patch-package 7.0.2
Applying patches...
bytebuffer@5.0.1 ✔
os-locale@5.0.0 ✔
Done in 0.16s.
yarn run v1.22.22
$ /home/howard/session-desktop/node_modules/.bin/electron-builder install-app-deps
  • electron-builder  version=26.0.12
  • loaded configuration  file=package.json ("build" field)
  • executing @electron/rebuild  electronVersion=34.2.0 arch=x64 buildFromSource=false appDir=./
  • installing native dependencies  arch=x64
  • preparing       moduleName=@signalapp/better-sqlite3 arch=x64
  ⨯ gyp verb clean removing "build" directory

……

local build artifact is absent
downloading https://build-artifacts.signal.org/desktop/sqlcipher-v2-4.6.1-signal-patch2--0.2.1-asm2-6253f886c40e49bf892d5cdc92b2eb200b12cd8d80c48ce5b05967cfd01ee8c7.tar.gz
node:events:496
      throw er; // Unhandled 'error' event
      ^

AggregateError [ETIMEDOUT]:
    at internalConnectMultiple (node:net:1122:18)
    at afterConnectMultiple (node:net:1689:7)
Emitted 'error' event on ClientRequest instance at:
    at emitErrorEvent (node:_http_client:101:11)
    at TLSSocket.socketErrorListener (node:_http_client:504:5)
    at TLSSocket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'ETIMEDOUT',
  [errors]: [
    Error: connect ETIMEDOUT 2a03:2880:f129:83:face:b00c:0:25de:443
        at createConnectionError (node:net:1652:14)
        at Timeout.internalConnectMultipleTimeout (node:net:1711:38)
        at listOnTimeout (node:internal/timers:583:11)
        at process.processTimers (node:internal/timers:519:7) {
      errno: -110,
      code: 'ETIMEDOUT',
      syscall: 'connect',
      address: '2a03:2880:f129:83:face:b00c:0:25de',
      port: 443
    },
    Error: connect ETIMEDOUT 31.13.76.99:443
        at createConnectionError (node:net:1652:14)
        at afterConnectMultiple (node:net:1682:16) {
      errno: -110,
      code: 'ETIMEDOUT',
      syscall: 'connect',
      address: '31.13.76.99',
      port: 443
    }
  ]
}

Node.js v20.18.2
make: *** [deps/download_sqlite3.target.mk:13: Release/obj/gen/sqlcipher.tar.gz] Error 1
make: Leaving directory '/home/howard/session-desktop/node_modules/.pnpm/@signalapp+better-sqlite3@9.0.13/node_modules/@signalapp/better-sqlite3/build'
Error: `make` failed with exit code: 2
    at ChildProcess.<anonymous> (/home/howard/session-desktop/node_modules/.pnpm/@electron+node-gyp@https+++codeload.github.com+electron+node-gyp+tar.gz+06b29aafb7708acef8b3669835c8a7857ebc92d2/node_modules/@electron/node-gyp/lib/build.js:215:23)


  ⨯ node-gyp failed to rebuild '/home/howard/session-desktop/node_modules/.pnpm/@signalapp+better-sqlite3@9.0.13/node_modules/@signalapp/better-sqlite3'  failedTask=installAppDeps stackTrace=Error: node-gyp failed to rebuild '/home/howard/session-desktop/node_modules/.pnpm/@signalapp+better-sqlite3@9.0.13/node_modules/@signalapp/better-sqlite3'
    at ChildProcess.<anonymous> (/home/howard/session-desktop/node_modules/.pnpm/@electron+rebuild@3.7.0/node_modules/@electron/rebuild/lib/module-type/node-gyp/node-gyp.js:121:24)
    at ChildProcess.emit (node:events:518:28)
    at ChildProcess._handle.onexit (node:internal/child_process:293:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
 ELIFECYCLE  Command failed with exit code 1.

Follow these I realised that the program try to download a gzip file in https://build-artifacts.signal.org/desktop/sqlcipher-v2-4.6.1-signal-patch2--0.2.1-asm2-6253f886c40e49bf892d5cdc92b2eb200b12cd8d80c48ce5b05967cfd01ee8c7.tar.gz

I can't ping build-artifacts.signal.org successfully.

~/session-desktop[1]►LANG=en_US.UTF-8 ping build-artifacts.signal.org
PING build-artifacts.signal.org (2a03:2880:f130:83:face:b00c:0:25de) 56 data bytes
^C
--- build-artifacts.signal.org ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4083ms

So I suggest that there must be something wrong there.

Expected Behavior

No response

Steps To Reproduce

No response

Desktop Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions