Skip to content

LaunchAgent fails with code 127 - missing .env file #43

Closed

Description

@Nachx639

Bug Description

The LaunchAgent com.clawdis.relay fails to start with exit code 127.

Cause

The plist references a non-existent file:

source ~/.clawdis/.env

But ~/.clawdis/.env doesn't exist. The directory contains:

  • clawdis.json
  • credentials/
  • cron/
  • ipc/
  • media/
  • nodes/

No .env file was ever created.

Error Log (/tmp/clawdis-relay.err)

zsh:source:1: no such file or directory: /Users/ignaciogonzalezbautista/.clawdis/.env

Expected Behavior

LaunchAgent should either:

  1. Create the .env file during setup
  2. Not require it if it's optional
  3. Handle missing file gracefully

Environment

  • macOS
  • Clawdis app version: 2.0.0-beta2

Workaround

Running relay manually via tmux works fine.

Activity

  1. added a commit that references this issue on Feb 16, 2026
  2. added a commit that references this issue on Feb 27, 2026
    26a0c38
  3. locked as resolved and limited conversation to collaborators on Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions