Intermittent CycleTLS Initialization Failure on Ubuntu
Description
Sometimes (but not always), on my Ubuntu 24.04.1 server, I encounter the following error when running these simple commands:
import initCycleTLS from 'cycletls';
const cycleTLS = await initCycleTLS();
console.log('cycleTLS', cycleTLS);
cycleTLS.exit();
The error output is:
# node test_cycletls3.mjs
.../node_modules/cycletls/dist/index.js:848
throw new Error(`Failed to initialize CycleTLS: ${error.message}`);
^
Error: Failed to initialize CycleTLS: undefined
at initCycleTLS (.../node_modules/cycletls/dist/index.js:848:15)
at async file:///.../test_cycletls3.mjs:2:18
Node.js v22.19.0
System Information:
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
CycleTLS 2.0.4
Ubuntu 24.04.1
Node.js 22.x
My server has 2GB RAM and 2 CPU cores. However, I don't think this is a server resource issue because the exact same code works correctly on another server with identical specs.
Issue Type
Bug
Operating System
Linux
Node Version
Node 22.x
Golang Version
No response
Relevant Log Output
Do you know what version of the package you are running?
so it's something in the latest release? I just put 2.0.5 out a couple minutes ago
Honestly might not be related,
Error Processing Request (please open an issue https://github.com/Danny-Dasilva/CycleTLS/issues/new/choose) -> /home/sign-server/node_modules/.pnpm/[email protected]/node_modules/cycletls/dist/index: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/sign-server/node_modules/.pnpm/[email protected]/node_modules/cycletls/dist/index) /home/sign-server/node_modules/.pnpm/[email protected]/node_modules/cycletls/dist/index: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/sign-server/node_modules/.pnpm/[email protected]/node_modules/cycletls/dist/index)