Retool trial licensing issue on docker containers

When installing local instance, I am encountering an issue with activating the docker container due to licensing issues. It seems the container has an issue communicating with the license server? Could you please help me solving this so that I can test out the trial version on my local machine?

2024-07-15 12:55:39 {"level":"info","message":"Rechecking license status...","timestamp":"2024-07-15T10:55:39.135Z"}
2024-07-15 12:55:39 {"level":"error","message":{"stack":"FetchError: request to https://licensing.tryretool.com/v1/licensing/verify_key failed, reason: unable to get local issuer certificate\n at ClientRequest. (/retool_backend/bundle/main.js:107:307615)\n at ClientRequest.emit (node:events:517:28)\n at ClientRequest.emit (node:domain:489:12)\n at TLSSocket.socketErrorListener (node:_http_client:501:9)\n at TLSSocket.emit (node:events:517:28)\n at TLSSocket.emit (node:domain:489:12)\n at emitErrorNT (node:internal/streams/destroy:151:8)\n at emitErrorCloseNT (node:internal/streams/destroy:116:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","type":"LICENSE_FETCH_ERROR"},"timestamp":"2024-07-15T10:55:39.333Z"}
2024-07-15 12:55:39 Encountered error
2024-07-15 12:55:39 Error: Could not validate a license
2024-07-15 12:55:39 at bW0 (/retool_backend/bundle/main.js:213:2753)
2024-07-15 12:55:39 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-07-15 12:55:39 at async uHI (/retool_backend/bundle/main.js:10405:4006)
2024-07-15 12:55:39 at async aHI (/retool_backend/bundle/main.js:10405:3100)
2024-07-15 12:55:39 Exiting...

2024-07-15 12:29:26 Error: Could not validate a license
2024-07-15 12:29:26 at bW0 (/retool_backend/bundle/main.js:213:2753)
2024-07-15 12:29:26 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-07-15 12:29:26 at async Object.vZI (/retool_backend/bundle/main.js:10519:10525)




Hey @mgdxc

This is usually due to a non-standard hosting environment/network setup (infra/security on the network interfering/blocking network packets (e.g analysis tools or firewalls) or when running Retool locally with potentially a vpn on top or other network complications.

Are either of the above the case for you?
Are you using the default nginx setup in https-portal?

Can you try setting NODE_TLS_REJECT_UNAUTHORIZED=0 in your docker.env file?
remember to restart your docker containers to apply the changes.

1 Like

Thank you, this was the issue, I am on the corporate laptop so they must be blocking something. The NODE_TLS_REJECT_UNAUTHORIZED property has solved this issue.

1 Like