CycleTLS icon indicating copy to clipboard operation
CycleTLS copied to clipboard

Intermittent CycleTLS Initialization Failure on Ubuntu

Open NabiKAZ opened this issue 3 months ago • 3 comments

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


NabiKAZ avatar Sep 07 '25 03:09 NabiKAZ

Do you know what version of the package you are running?

Danny-Dasilva avatar Oct 02 '25 02:10 Danny-Dasilva

so it's something in the latest release? I just put 2.0.5 out a couple minutes ago

Danny-Dasilva avatar Oct 02 '25 02:10 Danny-Dasilva

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)

isaackogan avatar Oct 02 '25 03:10 isaackogan