ETIMEDOUT Error

I updated Node to latest stable release, and am trying to force update Ghost, but I keep getting ETIMEDOUT. Does anyone have any suggestions? :)


Debug Information:
OS: Ubuntu, v20.04.5 LTS
Node Version: v18.19.0
Ghost Version: 5.66.1
Ghost-CLI Version: 1.25.0
Environment: production
Command: ‘ghost update 5.66.1 --force’
An error occurred.
Message: ‘connect ETIMEDOUT 2606:4700::6810:1e22:443’

Stack: RequestError: connect ETIMEDOUT 2606:4700::6810:1e22:443
at ClientRequest. (/usr/lib/node_modules/ghost-cli/node_modules/got/source/request-as-event-emitter.js:178:14)
at Object.onceWrapper (node:events:632:26)
at ClientRequest.emit (node:events:529:35)
at origin.emit (/usr/lib/node_modules/ghost-cli/node_modules/@szmarczak/http-timer/source/index.js:37:11)
at TLSSocket.socketErrorListener (node:_http_client:501:9)
at TLSSocket.emit (node:events:517:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Code: ETIMEDOUT
Path: /ghost-cli

It’s having a networking problem when attempting to connect to an IPv6 address.

You could just try again. Maybe it was transient. Otherwise, check that your network settings, particularly your IPv6 connections are enabled.

I disabled ipv6 and finally got it to work