fig
fig copied to clipboard
Daemon socket does not exist
Checks
- [X] I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
- [X] I have run
fig doctorin the affected terminal session - [X] I have run
fig restartand replicated the issue again
Operating system
macOS 12.6.3 (21G419)
Expected behaviour
The daemon is running and able to create the socket file at the specified path.
Actual behaviour
"Daemon socket does not exist," it usually indicates that the daemon you're trying to interact with is expecting a specific Unix socket to be available, but it cannot find it. A Unix socket is a special file that processes use for interprocess communication on Unix-like systems.
Steps to reproduce
No response
Environment
fig-details:
- 2.16.0
hardware-info:
- model:
- model-id:
- chip-id: Apple M1
- cores: 8
- mem: 8.00 GB
os-info:
- macOS 12.6.3 (21G419)
environment:
- shell: /bin/zsh
- terminal: terminal
- cwd: /Users/tiagonavarro
- exe-path: /opt/homebrew/bin/fig
- install-method: brew
- env-vars:
- __CFBundleIdentifier: com.apple.Terminal
- TERM: xterm-256color
- SHELL: /bin/zsh
- PATH: /Users/tiagonavarro/google-cloud-sdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki:/Users/tiagonavarro/.fig/bin:/Users/tiagonavarro/.local/bin:/usr/local/bin
- FIG_SET_PARENT_CHECK: 1
- FIG_EXECUTION_STRING:
- FIG_START_TEXT:
- FIG_SHELL: /bin/zsh
- FIG_IS_LOGIN_SHELL: 1
- FIGTERM_SESSION_ID: e8ddf4c6-66a5-4209-b5d0-e321b27fa1de
- FIG_TERM: 2.16.0
- FIG_PID: 48941
- FIG_SET_PARENT: e8ddf4c6-66a5-4209-b5d0-e321b27fa1de
Could you try running fig daemon and share the output
➜ ~ fig daemon
2023-07-22T12:36:05.946619Z ERROR fig_ipc::unix_socket: 21: Failed to connect err=No such file or directory (os error 2) socket="/var/tmp/fig/tiagonavarro/daemon.socket"
2023-07-22T12:36:05.946621Z ERROR fig_cli::daemon::system_handler: 317: Failed to set permissions on sockets directory err=Operation not permitted (os error 1)
2023-07-22T12:36:05.946891Z ERROR fig_telemetry::daemon_dispatch: 64: Failed to dispatch telemetry event to daemon: No such file or directory (os error 2)
2023-07-22T12:36:05.947272Z ERROR fig_cli::daemon: 119: Error spawning system handler:
0: Could not connect to daemon socket
1: Permission denied (os error 13)
Location:
fig_cli/src/daemon/system_handler.rs:324
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2023-07-22T12:36:06.170389Z ERROR fig_cli::daemon::system_handler: 317: Failed to set permissions on sockets directory err=Operation not permitted (os error 1)
2023-07-22T12:36:06.170499Z ERROR fig_cli::daemon: 119: Error spawning system handler:
0: Could not connect to daemon socket
1: Permission denied (os error 13)
Location:
fig_cli/src/daemon/system_handler.rs:324
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2023-07-22T12:36:06.631566Z ERROR fig_cli::daemon::system_handler: 317: Failed to set permissions on sockets directory err=Operation not permitted (os error 1)
2023-07-22T12:36:06.631723Z ERROR fig_cli::daemon: 119: Error spawning system handler:
0: Could not connect to daemon socket
1: Permission denied (os error 13)
Location:
fig_cli/src/daemon/system_handler.rs:324
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2023-07-22T12:36:07.570895Z ERROR fig_cli::daemon::system_handler: 317: Failed to set permissions on sockets directory err=Operation not permitted (os error 1)
2023-07-22T12:36:07.571170Z ERROR fig_cli::daemon: 119: Error spawning system handler:
0: Could not connect to daemon socket
1: Permission denied (os error 13)
Location:
fig_cli/src/daemon/system_handler.rs:324
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2023-07-22T12:36:09.032392Z ERROR fig_cli::daemon::system_handler: 317: Failed to set permissions on sockets directory err=Operation not permitted (os error 1)
2023-07-22T12:36:09.032836Z ERROR fig_cli::daemon: 119: Error spawning system handler:
0: Could not connect to daemon socket
1: Permission denied (os error 13)
Location:
fig_cli/src/daemon/system_handler.rs:324
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2023-07-22T12:36:12.102607Z ERROR fig_cli::daemon::system_handler: 317: Failed to set permissions on sockets directory err=Operation not permitted (os error 1)
2023-07-22T12:36:12.103140Z ERROR fig_cli::daemon: 119: Error spawning system handler:
0: Could not connect to daemon socket
1: Permission denied (os error 13)
Location:
fig_cli/src/daemon/system_handler.rs:324
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2023-07-22T12:36:16.579761Z ERROR fig_cli::daemon::system_handler: 317: Failed to set permissions on sockets directory err=Operation not permitted (os error 1)
2023-07-22T12:36:16.580286Z ERROR fig_cli::daemon: 119: Error spawning system handler:
0: Could not connect to daemon socket
1: Permission denied (os error 13)
Location:
fig_cli/src/daemon/system_handler.rs:324
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2023-07-22T12:36:24.978082Z ERROR fig_cli::daemon::system_handler: 317: Failed to set permissions on sockets directory err=Operation not permitted (os error 1)
2023-07-22T12:36:24.978509Z ERROR fig_cli::daemon: 119: Error spawning system handler:
0: Could not connect to daemon socket
1: Permission denied (os error 13)
Location:
fig_cli/src/daemon/system_handler.rs:324
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
➜ ~ fig doctor
✘ Daemon: Daemon is not running
Attempting to fix automatically...
Re-running check...
✔ Daemon
✘ Daemon diagnostics: Daemon socket does not exist
Attempting to fix automatically...
Re-running check...
✘ Daemon diagnostics: Daemon socket does not exist
✘ Doctor found errors. Please fix them and try again.
If you are not sure how to fix it, please open an issue with fig issue to let us know!
Or, email us at [email protected]!