[BUG] claude cli silently fails in HPC environment

Resolved 💬 3 comments Opened Nov 24, 2025 by bcjonescbt Closed Nov 28, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I am unable to run claude code as CLI in my HPC environment.

This seems to be when it is scanning files, but I'm not entirely certain. I can move to a clean dir and start claude, but after saying i trust the files, the banner shows, and a short (1-2 sec) time later it silently drops to the shell. Exit code 0.

I have tried clearing my .claude and .claude.json and everything I can think of.

I can run the print mode (echo "hello" | claude -p) and it seems fine.

This is version 2.0.50, and I don't have node installed, appears to be using bundled version v24.3.0.
(This has also failed on several earlier versions)

Debug logs are unhelpful. They just end without any indication of failure.
Trying to track this down using the claude web interface, we thought it was getting too many files in ripgrep, but this happens even in brand new dir.

Looking at strace with claude web, it suggested that the terminal is exiting gracefully - unclear why.

Tried this in gnu screen, same issue.

I am in ssh session to HPC environment (RHEL/CentOS based, WekaFS filesystem) (but also fails in /tmp/claude-test)

This happens in my own instances, not login head node.

Note that this HPC uses symlinks for /home, which means the physical and logical directories don't match.

I am able to run the vs code extension using an ssh session, but I had to make a symlink inside of ~/.claude/projects to get claude to see my project history.

$ ll
total 17
lrwxrwxrwx 1 kqt4tu users    52 Nov 23 21:20 -home-kqt4tu-src-mydir -> -sfs-gpfs-tardis-home-kqt4tu-src-mydir
drwx--S--- 2 kqt4tu users 16384 Nov 23 21:53 -sfs-gpfs-tardis-home-kqt4tu-src-mydir

This /home symlink seems to be the source of endless fun, and it wouldn't be surprising if that's related.

What Should Happen?

claude cli should not silently drop to shell.

Error Messages/Logs

2025-11-24T16:00:15.066Z [DEBUG] [LSP MANAGER] initializeLspServerManager() called
2025-11-24T16:00:15.068Z [DEBUG] [LSP MANAGER] Created manager instance, state=pending
2025-11-24T16:00:15.068Z [DEBUG] [LSP MANAGER] Starting async initialization (generation 1)
2025-11-24T16:00:15.069Z [DEBUG] [LSP SERVER MANAGER] initialize() called
2025-11-24T16:00:15.069Z [DEBUG] [LSP SERVER MANAGER] Calling getAllLspServers()
2025-11-24T16:00:15.082Z [DEBUG] Found 0 plugins (0 enabled, 0 disabled)
2025-11-24T16:00:15.084Z [DEBUG] Total LSP servers loaded: 0
2025-11-24T16:00:15.087Z [DEBUG] [LSP SERVER MANAGER] getAllLspServers returned 0 server(s)
2025-11-24T16:00:15.087Z [DEBUG] LSP manager initialized with 0 servers
2025-11-24T16:00:15.088Z [DEBUG] LSP server manager initialized successfully
2025-11-24T16:00:15.088Z [DEBUG] LSP notification handlers registered successfully for all 0 server(s)
2025-11-24T16:00:15.131Z [DEBUG] Loading skills from directories: managed=/etc/claude-code/.claude/skills, user=/home/kqt4tu/.claude/skills, project=/tmp/claude-test/.claude/skills
2025-11-24T16:00:15.131Z [DEBUG] >>>>> getPluginSkills CALLED <<<<<
2025-11-24T16:00:15.132Z [DEBUG] Passes: Using fresh cached eligibility data
2025-11-24T16:00:15.178Z [DEBUG] getPluginSkills: Processing 0 enabled plugins
2025-11-24T16:00:15.178Z [DEBUG] Total plugin skills loaded: 0
2025-11-24T16:00:15.178Z [DEBUG] Total plugin commands loaded: 0
2025-11-24T16:00:15.178Z [DEBUG] Loaded 0 unique skills (managed: 0, user: 0, project: 0, duplicates removed: 0)
2025-11-24T16:00:15.180Z [DEBUG] getSkills returning: 0 skill dir commands, 0 plugin skills
2025-11-24T16:00:15.201Z [DEBUG] Registered 0 hooks from 0 plugins
2025-11-24T16:00:15.210Z [DEBUG] Creating shell snapshot for bash (/bin/bash)
2025-11-24T16:00:15.211Z [DEBUG] Looking for shell config file: /home/kqt4tu/.bashrc
2025-11-24T16:00:15.211Z [DEBUG] Snapshots directory: /home/kqt4tu/.claude/shell-snapshots
2025-11-24T16:00:15.212Z [DEBUG] Creating snapshot at: /home/kqt4tu/.claude/shell-snapshots/snapshot-bash-1764000015211-6vjxvw.sh
2025-11-24T16:00:15.212Z [DEBUG] Shell binary exists: true
2025-11-24T16:00:15.212Z [DEBUG] Execution timeout: 10000ms
2025-11-24T16:00:15.215Z [DEBUG] Writing to temp file: /home/kqt4tu/.claude/todos/78549891-757d-4fa4-8609-7313adc5e33b-agent-78549891-757d-4fa4-8609-7313adc5e33b.json.tmp.16161.1764000015215
2025-11-24T16:00:15.217Z [DEBUG] Temp file written successfully, size: 2 bytes
2025-11-24T16:00:15.217Z [DEBUG] Renaming /home/kqt4tu/.claude/todos/78549891-757d-4fa4-8609-7313adc5e33b-agent-78549891-757d-4fa4-8609-7313adc5e33b.json.tmp.16161.1764000015215 to /home/kqt4tu/.claude/todos/78549891-757d-4fa4-8609-7313adc5e33b-agent-78549891-757d-4fa4-8609-7313adc5e33b.json
2025-11-24T16:00:15.217Z [DEBUG] File /home/kqt4tu/.claude/todos/78549891-757d-4fa4-8609-7313adc5e33b-agent-78549891-757d-4fa4-8609-7313adc5e33b.json written atomically
2025-11-24T16:00:15.225Z [DEBUG] Total plugin agents loaded: 0
2025-11-24T16:00:15.252Z [DEBUG] Writing to temp file: /home/kqt4tu/.claude.json.tmp.16161.1764000015252
2025-11-24T16:00:15.252Z [DEBUG] Preserving file permissions: 100600
2025-11-24T16:00:15.255Z [DEBUG] Temp file written successfully, size: 44689 bytes
2025-11-24T16:00:15.255Z [DEBUG] Applied original permissions to temp file
2025-11-24T16:00:15.255Z [DEBUG] Renaming /home/kqt4tu/.claude.json.tmp.16161.1764000015252 to /home/kqt4tu/.claude.json
2025-11-24T16:00:15.255Z [DEBUG] File /home/kqt4tu/.claude.json written atomically
2025-11-24T16:00:15.259Z [DEBUG] Writing to temp file: /home/kqt4tu/.claude.json.tmp.16161.1764000015259
2025-11-24T16:00:15.259Z [DEBUG] Preserving file permissions: 100600
2025-11-24T16:00:15.261Z [DEBUG] Temp file written successfully, size: 44689 bytes
2025-11-24T16:00:15.261Z [DEBUG] Applied original permissions to temp file
2025-11-24T16:00:15.261Z [DEBUG] Renaming /home/kqt4tu/.claude.json.tmp.16161.1764000015259 to /home/kqt4tu/.claude.json
2025-11-24T16:00:15.262Z [DEBUG] File /home/kqt4tu/.claude.json written atomically
2025-11-24T16:00:15.356Z [DEBUG] Git remote URL: null
2025-11-24T16:00:15.356Z [DEBUG] No git remote URL found
2025-11-24T16:00:15.356Z [DEBUG] Not in a GitHub repository, skipping path mapping update
2025-11-24T16:00:15.359Z [DEBUG] Acquired lock on running version: /sfs/gpfs/tardis/home/kqt4tu/.local/share/claude/versions/2.0.50
2025-11-24T16:00:15.430Z [DEBUG] Metrics opt-out API response: enabled=true, vcsLinking=false
2025-11-24T16:00:15.661Z [DEBUG] Ripgrep first use test: PASSED (mode=builtin, path=/sfs/gpfs/tardis/home/kqt4tu/.local/share/claude/versions/2.0.50)
2025-11-24T16:00:15.848Z [DEBUG] Shell snapshot created successfully (7129 bytes)
2025-11-24T16:00:16.424Z [DEBUG] Writing to temp file: /home/kqt4tu/.claude.json.tmp.16161.1764000016424
2025-11-24T16:00:16.425Z [DEBUG] Preserving file permissions: 100600
2025-11-24T16:00:16.428Z [DEBUG] Temp file written successfully, size: 45081 bytes
2025-11-24T16:00:16.429Z [DEBUG] Applied original permissions to temp file
2025-11-24T16:00:16.429Z [DEBUG] Renaming /home/kqt4tu/.claude.json.tmp.16161.1764000016424 to /home/kqt4tu/.claude.json
2025-11-24T16:00:16.429Z [DEBUG] File /home/kqt4tu/.claude.json written atomically
2025-11-24T16:00:16.685Z [DEBUG] Passes: Using fresh cached eligibility data
2025-11-24T16:00:16.695Z [DEBUG] Writing to temp file: /home/kqt4tu/.claude.json.tmp.16161.1764000016695
2025-11-24T16:00:16.695Z [DEBUG] Preserving file permissions: 100600
2025-11-24T16:00:16.697Z [DEBUG] Temp file written successfully, size: 45081 bytes
2025-11-24T16:00:16.697Z [DEBUG] Applied original permissions to temp file
2025-11-24T16:00:16.697Z [DEBUG] Renaming /home/kqt4tu/.claude.json.tmp.16161.1764000016695 to /home/kqt4tu/.claude.json
2025-11-24T16:00:16.697Z [DEBUG] File /home/kqt4tu/.claude.json written atomically
2025-11-24T16:00:16.708Z [DEBUG] Getting matching hook commands for SessionStart with query: startup
2025-11-24T16:00:16.708Z [DEBUG] Found 0 hook matchers in settings
2025-11-24T16:00:16.708Z [DEBUG] Matched 0 unique hooks for query "startup" (0 before deduplication)
2025-11-24T16:00:16.767Z [DEBUG] Writing to temp file: /home/kqt4tu/.claude.json.tmp.16161.1764000016767
2025-11-24T16:00:16.767Z [DEBUG] Preserving file permissions: 100600
2025-11-24T16:00:16.769Z [DEBUG] Temp file written successfully, size: 44976 bytes
2025-11-24T16:00:16.770Z [DEBUG] Applied original permissions to temp file
2025-11-24T16:00:16.770Z [DEBUG] Renaming /home/kqt4tu/.claude.json.tmp.16161.1764000016767 to /home/kqt4tu/.claude.json
2025-11-24T16:00:16.770Z [DEBUG] File /home/kqt4tu/.claude.json written atomically
2025-11-24T16:00:16.774Z [DEBUG] performStartupChecks called
2025-11-24T16:00:16.775Z [DEBUG] Starting background plugin installations
2025-11-24T16:00:16.775Z [DEBUG] performBackgroundPluginInstallations called
2025-11-24T16:00:16.782Z [DEBUG] AutoUpdaterWrapper: Installation type: native
2025-11-24T16:00:16.788Z [DEBUG] Writing to temp file: /home/kqt4tu/.claude.json.tmp.16161.1764000016788
2025-11-24T16:00:16.788Z [DEBUG] Preserving file permissions: 100600
2025-11-24T16:00:16.790Z [DEBUG] Temp file written successfully, size: 45081 bytes
2025-11-24T16:00:16.790Z [DEBUG] Applied original permissions to temp file
2025-11-24T16:00:16.790Z [DEBUG] Renaming /home/kqt4tu/.claude.json.tmp.16161.1764000016788 to /home/kqt4tu/.claude.json
2025-11-24T16:00:16.790Z [DEBUG] File /home/kqt4tu/.claude.json written atomically
2025-11-24T16:00:16.797Z [DEBUG] Setting installation status: 0 marketplaces, 0 installable plugins, 0 uninstallable plugins
2025-11-24T16:00:16.804Z [DEBUG] Loaded plugins - Enabled: 0, Disabled: 0, Commands: 0, Agents: 0, Errors: 0
2025-11-24T16:00:16.821Z [DEBUG] Skills and commands included in Skill tool:
2025-11-24T16:00:16.822Z [DEBUG] Slash commands included in SlashCommand tool:
2025-11-24T16:00:16.899Z [DEBUG] Writing to temp file: /home/kqt4tu/.claude.json.tmp.16161.1764000016899
2025-11-24T16:00:16.899Z [DEBUG] Preserving file permissions: 100600
2025-11-24T16:00:16.902Z [DEBUG] Temp file written successfully, size: 45500 bytes
2025-11-24T16:00:16.903Z [DEBUG] Applied original permissions to temp file
2025-11-24T16:00:16.904Z [DEBUG] Renaming /home/kqt4tu/.claude.json.tmp.16161.1764000016899 to /home/kqt4tu/.claude.json
2025-11-24T16:00:16.905Z [DEBUG] File /home/kqt4tu/.claude.json written atomically

Steps to Reproduce

start claude from command line. even in brand new dir.

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.0.50 (Claude Code)

Platform

Other

Operating System

Other Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

╭─── Claude Code v2.0.50 ────────────────────────────────────────────────────────────╮
│ │ Tips for getting started │
│ Welcome back Brett! │ Ask Claude to create a new app or clone a repository │
│ │ ──────────────────────────────────────────────────── │
│ ▐▛███▜▌ │ Recent activity │
│ ▝▜█████▛▘ │ No recent activity │
│ ▘▘ ▝▝ │ │
│ │ │
│ Sonnet 4.5 · Claude Max │ │
│ /tmp/claude-test │ │
╰────────────────────────────────────────────────────────────────────────────────────╯

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Try "edit <filepath> to..."

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
? for shortcuts Thinking on (tab to toggle)

kqt4tu@udc-aw32-10c1 /tmp/claude-test
$

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗