systant/debug-nix-store.sh
ryan 54f8d23945 Remove COOKIE complexity - disable distributed Erlang
- Remove explicit cookie configuration from release
- Set RELEASE_DISTRIBUTION=none and RELEASE_NODE=nonode@nohost
- Simplify Nix derivation by removing postInstall hooks
- Single standalone daemon doesn't need Erlang node clustering

Fixes persistent COOKIE file issues in Nix builds.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-02 18:15:11 -07:00

39 lines
1007 B
Bash

#!/bin/bash
# Debug script to check what's in the Nix store
STORE_PATH="/nix/store/i3fa1p0y8mcyljzfsj6k65qfpmd4yyaf-systant-0.1.0"
echo "=== Checking Nix store contents ==="
echo "Store path: $STORE_PATH"
echo
echo "=== Top level contents ==="
ls -la "$STORE_PATH/"
echo
echo "=== Looking for COOKIE files ==="
find "$STORE_PATH" -name "*COOKIE*" -o -name "*cookie*" 2>/dev/null || echo "No COOKIE files found"
echo
echo "=== releases directory ==="
if [ -d "$STORE_PATH/releases" ]; then
ls -la "$STORE_PATH/releases/"
else
echo "No releases directory found"
fi
echo
echo "=== bin directory ==="
if [ -d "$STORE_PATH/bin" ]; then
ls -la "$STORE_PATH/bin/"
else
echo "No bin directory found"
fi
echo
echo "=== Checking startup script ==="
if [ -f "$STORE_PATH/bin/systant" ]; then
echo "Startup script exists, checking for COOKIE references:"
grep -n "COOKIE" "$STORE_PATH/bin/systant" || echo "No COOKIE references in startup script"
else
echo "No startup script found"
fi