bitwalker / bitwalker/distillery

On Mac, I can remote_console, but not attach

Open
#719 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
3k
Forks
398
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce

1. Create a release of the attached minimal project: `mix distillery.release`
2. Run the app: `_build/dev/rel/testapp/bin/testapp console`
3. In another term `_build/dev/rel/testapp/bin/testapp attach` fails with error message ```Can't access pipe directory /Users/developer/testapp/_build/dev/rel/testapp/var/erl_pipes/testapp@127.0.0.1/: No such file or directory```

Note: `_build/dev/rel/testapp/bin/testapp remote_console` works fine.

Erlang/OTP 21 [erts-10.3.5.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
Elixir 1.9.0
MacOSX 10.14.6 on Intel i5

On an server with Ubuntu 18.04 LTS `attach` works fine, so it might be a Mac-specific issue.

Thanks!
[testapp.zip](https://github.com/bitwalker/distillery/files/3906613/testapp.zip)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with the attached minimal project using mix distillery.release, then compare testapp attach with testapp remote_console while the release console is running. The work is done when attach succeeds on macOS as it does on Ubuntu, without the missing erl_pipes error.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir, erlang, macos
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.