Linux packages missing server-claude-linux.cjs
Environment
- OS: Ubuntu 25.10
- Package: yume_0.4.5_amd64.deb (also verified in RPM)
- Node: v20.19.4
- Claude CLI: 2.1.19
Problem
The Linux deb and rpm packages are missing server-claude-linux.cjs in /usr/lib/yume/resources/.
From the logs:
Production mode - looking for binary in resources
Could not determine server path
The UI shows "Requires Node.js 18+" but this is misleading - the actual issue is the missing server file.
Contents of /usr/lib/yume/resources/
yume-bin-linux-x64
yume-cli-linux-x64
yume-plugin/
yume-vscode/
Expected: server-claude-linux.cjs should be present.
Workaround
None found yet - the app cannot start sessions without the server component.
Additional finding: Linux support was only added in v0.4.4 (Jan 24). Both v0.4.4 and v0.4.5 have the same issue.
Also, the bundled binary yume-bin-linux-x64 has a port binding bug - it crashes with EADDRINUSE on ports that are NOT actually in use:
$ /usr/lib/yume/resources/yume-bin-linux-x64
💥 Uncaught exception: Error: listen EADDRINUSE: address already in use 127.0.0.1:60555
Verified port 60555 is not bound to anything. The binary picks random high ports and fails to bind even when free.
Root Cause Found & Workaround
Two bugs in the Linux packages:
Bug 1: IPv6 Dual-Stack Socket Conflict
The bundled Node.js server explicitly sets IPV6_V6ONLY=0, then tries to bind both IPv6 (::) and IPv4 (127.0.0.1) on the same port. On Linux, the IPv6 bind with dual-stack enabled already claims IPv4, so the second bind fails with EADDRINUSE.
setsockopt(fd, SOL_IPV6, IPV6_V6ONLY, [0]) // enables dual-stack
bind(fd, "::", port) // grabs IPv4 AND IPv6
bind(fd2, "127.0.0.1", port) // FAILS - already taken
Bug 2: Resource Path Resolution
The Tauri app looks for resources relative to the executable (/usr/bin/resources), but the deb package installs them to /usr/lib/yume/resources.
Workaround
Fix 1: LD_PRELOAD shim to force IPV6_V6ONLY=1
// /tmp/fix_v6only.c
#define _GNU_SOURCE
#include <dlfcn.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stddef.h>
int setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen) {
static int (*real_setsockopt)(int, int, int, const void *, socklen_t) = NULL;
if (!real_setsockopt) real_setsockopt = dlsym(RTLD_NEXT, "setsockopt");
if (level == IPPROTO_IPV6 && optname == IPV6_V6ONLY) {
int one = 1;
return real_setsockopt(sockfd, level, optname, &one, sizeof(one));
}
return real_setsockopt(sockfd, level, optname, optval, optlen);
}
Compile and install:
gcc -shared -fPIC -o /usr/lib/yume/fix_v6only.so /tmp/fix_v6only.c -ldl
Fix 2: Symlink resources
sudo ln -sf /usr/lib/yume/resources /usr/bin/resources
Fix 3: Wrapper script
# /usr/local/bin/yume-fixed
#!/bin/bash
export LD_PRELOAD=/usr/lib/yume/fix_v6only.so
exec /usr/bin/yume "$@"
Then run yume-fixed instead of yume, or update the .desktop file.
Suggested Proper Fixes
- Socket bug: Either set
IPV6_V6ONLY=1before the IPv6 bind, or don't bind IPv4 separately when using dual-stack - Path bug: Either install resources to
/usr/bin/resourcesor use the standard/usr/lib/yume/resourcespath in the code
Thank you for the report. This should no longer be an issue as of 0.6.3. If you run into the issue again, please let us know.