docker: error with soltecsis/fwcloud-api:latest | FWCloud Forum

docker: error with soltecsis/fwcloud-api:latest

subway

New member
(which is soltecsis/fwcloud-api:2.3.0 at the time of writing)

the docker log says:
Code:
fwcloud-api      | /opt/fwcloud/api/dist/src/sockets/messages/socket-message.js:41
fwcloud-api      | const uuid = __importStar(require("uuid"));
fwcloud-api      |                           ^
fwcloud-api      |
fwcloud-api      | Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/fwcloud/api/node_modules/uuid/dist-node/index.js from /opt/fwcloud/api/dist/src/sockets/messages/socket-message.js not supported.
fwcloud-api      | Instead change the require of index.js in /opt/fwcloud/api/dist/src/sockets/messages/socket-message.js to a dynamic import() which is available in all CommonJS modules.
fwcloud-api      |     at Object.<anonymous> (/opt/fwcloud/api/dist/src/sockets/messages/socket-message.js:41:27)
fwcloud-api      |     at Object.<anonymous> (/opt/fwcloud/api/dist/src/communications/ssh.communication.js:31:26)
fwcloud-api      |     at Object.<anonymous> (/opt/fwcloud/api/dist/src/models/firewall/Firewall.js:96:29)
fwcloud-api      |     at Object.<anonymous> (/opt/fwcloud/api/dist/src/models/firewall/Cluster.js:39:20)
fwcloud-api      |     at Object.<anonymous> (/opt/fwcloud/api/dist/src/database/database.service.js:70:19)
fwcloud-api      |     at Object.<anonymous> (/opt/fwcloud/api/dist/src/cli/commands/migration-reset-command.js:25:28)
fwcloud-api      |     at Object.<anonymous> (/opt/fwcloud/api/dist/src/cli/cli.js:24:35) {
fwcloud-api      |   code: 'ERR_REQUIRE_ESM'
fwcloud-api      | }
fwcloud-api      |
fwcloud-api      | Node.js v18.20.8

And the the container restarts forever.
2.2.0 is fine.
 

darkowl

New member
Hello. Please look at the previous thread:

 

Carles Munyoz

Administrator
Staff member
Yes, you are right.
There is a Node.js version problem in the Dockerfile used to build the Docker version of FWCloud.
We are going to solve it and generate a new patch version as soon as possible.
 
Top