{"action":"created","issue":{"url":"https://api.github.com/repos/bitwalker/distillery/issues/142","repository_url":"https://api.github.com/repos/bitwalker/distillery","labels_url":"https://api.github.com/repos/bitwalker/distillery/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/bitwalker/distillery/issues/142/comments","events_url":"https://api.github.com/repos/bitwalker/distillery/issues/142/events","html_url":"https://github.com/bitwalker/distillery/issues/142","id":191890842,"number":142,"title":"Failed during create_start_clean: :eacces","user":{"login":"andreasguther","id":9425214,"avatar_url":"https://avatars.githubusercontent.com/u/9425214?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasguther","html_url":"https://github.com/andreasguther","followers_url":"https://api.github.com/users/andreasguther/followers","following_url":"https://api.github.com/users/andreasguther/following{/other_user}","gists_url":"https://api.github.com/users/andreasguther/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasguther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasguther/subscriptions","organizations_url":"https://api.github.com/users/andreasguther/orgs","repos_url":"https://api.github.com/users/andreasguther/repos","events_url":"https://api.github.com/users/andreasguther/events{/privacy}","received_events_url":"https://api.github.com/users/andreasguther/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-27T22:38:03Z","updated_at":"2016-11-29T06:52:08Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\n1. Create a new phoenix project following [Up and Running on the Phoenix project site](http://www.phoenixframework.org/docs/up-and-running): `mix phoenix.new hello_phoenix`\r\n1. change directory into the new project folder\r\n1. Add distillery to the dependencies in mix.exs: `{:distillery, \"~> 0.10\"}`\r\n1. Run `mix deps.get`\r\n1. Run `mix release init`\r\n1. Run `mix release` - You should see the following error\r\n\r\n```\r\n$ mix release\r\n==> Assembling release..\r\n==> Building release hello_phoenix:0.0.1 using environment dev\r\n==> Failed to build release:\r\n    Failed during create_start_clean: :eacces\r\n```\r\n\r\n### Verbose Logs\r\n\r\nPaste the output of the release command you ran with the `--verbose` flag.\r\n\r\n```\r\n$ mix release --verbose\r\n==> Loading configuration..\r\n==> Assembling release..\r\n==> Building release hello_phoenix:0.0.1 using environment dev\r\n==> Discovered applications:\r\n  connection-1.0.4\r\n    from: _build/dev/lib/connection\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n    includes: none\r\n\r\n  db_connection-1.1.0\r\n    from: _build/dev/lib/db_connection\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n      :logger\r\n      :connection\r\n    includes: none\r\n\r\n  postgrex-0.12.1\r\n    from: _build/dev/lib/postgrex\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n      :logger\r\n      :db_connection\r\n      :decimal\r\n    includes: none\r\n\r\n  poolboy-1.5.1\r\n    from: _build/dev/lib/poolboy\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n    includes: none\r\n\r\n  decimal-1.3.1\r\n    from: _build/dev/lib/decimal\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n    includes: none\r\n\r\n  ecto-2.0.6\r\n    from: _build/dev/lib/ecto\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n      :logger\r\n      :decimal\r\n      :poolboy\r\n    includes: none\r\n\r\n  phoenix_ecto-3.0.1\r\n    from: _build/dev/lib/phoenix_ecto\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n      :logger\r\n      :ecto\r\n      :plug\r\n    includes: none\r\n\r\n  gettext-0.12.1\r\n    from: _build/dev/lib/gettext\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n      :logger\r\n    includes: none\r\n\r\n  cowlib-1.0.2\r\n    from: _build/dev/lib/cowlib\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :crypto\r\n    includes: none\r\n\r\n  ranch-1.2.1\r\n    from: _build/dev/lib/ranch\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n    includes: none\r\n\r\n  cowboy-1.0.4\r\n    from: _build/dev/lib/cowboy\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :ranch\r\n      :cowlib\r\n      :crypto\r\n    includes: none\r\n\r\n  phoenix_html-2.8.0\r\n    from: _build/dev/lib/phoenix_html\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n      :logger\r\n      :plug\r\n    includes: none\r\n\r\n  phoenix_pubsub-1.0.1\r\n    from: _build/dev/lib/phoenix_pubsub\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n      :logger\r\n      :crypto\r\n    includes: none\r\n\r\n  eex-1.3.4\r\n    from: /usr/local/Cellar/elixir/1.3.4/bin/../lib/eex\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n    includes: none\r\n\r\n  poison-2.2.0\r\n    from: _build/dev/lib/poison\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n    includes: none\r\n\r\n  mime-1.0.1\r\n    from: _build/dev/lib/mime\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n    includes: none\r\n\r\n  logger-1.3.4\r\n    from: /usr/local/Cellar/elixir/1.3.4/bin/../lib/logger\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n    includes: none\r\n\r\n  crypto-3.7.1\r\n    from: /usr/local/Cellar/erlang/19.1/lib/erlang/lib/crypto-3.7.1\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n    includes: none\r\n\r\n  plug-1.3.0\r\n    from: _build/dev/lib/plug\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n      :crypto\r\n      :logger\r\n      :mime\r\n    includes: none\r\n\r\n  phoenix-1.2.1\r\n    from: _build/dev/lib/phoenix\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n      :plug\r\n      :poison\r\n      :logger\r\n      :eex\r\n    includes: none\r\n\r\n  compiler-7.0.2\r\n    from: /usr/local/Cellar/erlang/19.1/lib/erlang/lib/compiler-7.0.2\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n    includes: none\r\n\r\n  elixir-1.3.4\r\n    from: /usr/local/Cellar/elixir/1.3.4/bin/../lib/elixir\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :compiler\r\n    includes: none\r\n\r\n  stdlib-3.1\r\n    from: /usr/local/Cellar/erlang/19.1/lib/erlang/lib/stdlib-3.1\r\n    applications:\r\n      :kernel\r\n    includes: none\r\n\r\n  kernel-5.1\r\n    from: /usr/local/Cellar/erlang/19.1/lib/erlang/lib/kernel-5.1\r\n    applications: none\r\n    includes: none\r\n\r\n  hello_phoenix-0.0.1\r\n    from: _build/dev/lib/hello_phoenix\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n      :phoenix\r\n      :phoenix_pubsub\r\n      :phoenix_html\r\n      :cowboy\r\n      :logger\r\n      :gettext\r\n      :phoenix_ecto\r\n      :postgrex\r\n    includes: none\r\n\r\n  iex-1.3.4\r\n    from: /usr/local/Cellar/elixir/1.3.4/bin/../lib/iex\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n      :elixir\r\n    includes: none\r\n\r\n  sasl-3.0.1\r\n    from: /usr/local/Cellar/erlang/19.1/lib/erlang/lib/sasl-3.0.1\r\n    applications:\r\n      :kernel\r\n      :stdlib\r\n    includes: none\r\n\r\n==> Generated overlay vars:\r\n    release_name=:hello_phoenix\r\n    release_version=\"0.0.1\"\r\n    is_upgrade=false\r\n    upgrade_from=:latest\r\n    dev_mode=true\r\n    include_erts=false\r\n    include_src=false\r\n    include_system_libs=true\r\n    erl_opts=\"\"\r\n    erts_vsn=\"8.1\"\r\n    output_dir=\"rel/hello_phoenix\"\r\n==> Copying applications to rel/hello_phoenix\r\n==> Generating nodetool\r\n==> Generating start_erl.data\r\n==> Generating vm.args\r\n==> Generating sys.config from config/config.exs\r\n==> Generating boot script\r\n==> Generating RELEASES\r\n==> Generating start_clean.boot\r\n==> Failed to build release:\r\n    Failed during create_start_clean: :eacces\r\n```\r\n\r\n### Description of issue\r\n\r\n- What are the expected results?\r\nI would like to find a completed release build.\r\nI have seen the same error using **exrm** and that was the reason I moved to distillery. In case it might give a hint, here is the **stack trace when using exrm**:\r\n\r\n```\r\nGenerated hello_phoenix app\r\nBuilding release with MIX_ENV=prod.\r\n** (CaseClauseError) no case clause matching: :eacces\r\n    lib/exrm/utils/utils.ex:110: ReleaseManager.Utils.relx/5\r\n    lib/mix/tasks/release.ex:341: anonymous fn/4 in Mix.Tasks.Release.do_release/1\r\n    lib/ex_unit/capture_io.ex:146: ExUnit.CaptureIO.do_capture_io/2\r\n    lib/ex_unit/capture_io.ex:119: ExUnit.CaptureIO.do_capture_io/3\r\n    lib/mix/tasks/release.ex:340: Mix.Tasks.Release.do_release/1\r\n    lib/mix/tasks/release.ex:78: Mix.Tasks.Release.do_run/1\r\n    (mix) lib/mix/task.ex:296: Mix.Task.run_task/3\r\n    (mix) lib/mix/cli.ex:58: Mix.CLI.run_task/2\r\n``` \r\n- What OS, Erlang/Elixir versions are you seeing this issue on?\r\n```\r\n$ elixir -v\r\nErlang/OTP 19 [erts-8.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]\r\n\r\nElixir 1.3.4\r\n\r\n$ rebar3 -v\r\nrebar 3.3.2 on Erlang/OTP 19 Erts 8.1\r\n\r\n$ npm -v\r\n3.10.8\r\n```\r\n- Dependencies\r\n```\r\ndefp deps do\r\n    [{:phoenix, \"~> 1.2.1\"},\r\n     {:phoenix_pubsub, \"~> 1.0\"},\r\n     {:phoenix_ecto, \"~> 3.0\"},\r\n     {:postgrex, \">= 0.0.0\"},\r\n     {:phoenix_html, \"~> 2.6\"},\r\n     {:phoenix_live_reload, \"~> 1.0\", only: :dev},\r\n     {:gettext, \"~> 0.11\"},\r\n     {:cowboy, \"~> 1.0\"},\r\n     {:distillery, \"~> 0.10\"}\r\n    #  {:exrm, \"~> 0.19.9\"},\r\n    #  {:exrm, git: \"git://github.com/bitwalker/exrm.git\"}\r\n   ]\r\n  end\r\n```\r\n- If possible, also provide your `rel/config.exs`, as it is often\r\n  my first troubleshooting question, and you'll save us both time :)\r\n```\r\n$ cat rel/config.exs \r\nuse Mix.Releases.Config,\r\n    # This sets the default release built by `mix release`\r\n    default_release: :default,\r\n    # This sets the default environment used by `mix release`\r\n    default_environment: :dev\r\n\r\n# For a full list of config options for both releases\r\n# and environments, visit https://hexdocs.pm/distillery/configuration.html\r\n\r\n\r\n# You may define one or more environments in this file,\r\n# an environment's settings will override those of a release\r\n# when building in that environment, this combination of release\r\n# and environment configuration is called a profile\r\n\r\nenvironment :dev do\r\n  set dev_mode: true\r\n  set include_erts: false\r\n  set cookie: :\"!6[VQ%4jc5Q*Q&tHEDnujHTG~b[T`tFUo7JTTBV)RmXk$o-RB7}*8b+De?$f&Fhq\"\r\nend\r\n\r\nenvironment :prod do\r\n  set include_erts: true\r\n  set include_src: false\r\n  set cookie: :\"!6[VQ%4jc5Q*Q&tHEDnujHTG~b[T`tFUo7JTTBV)RmXk$o-RB7}*8b+De?$f&Fhq\"\r\nend\r\n\r\n# You may define one or more releases in this file.\r\n# If you have not set a default release, or selected one\r\n# when running `mix release`, the first release in the file\r\n# will be used by default\r\n\r\nrelease :hello_phoenix do\r\n  set version: current_version(:hello_phoenix)\r\nend\r\n\r\n```\r\n- Is there documentation that says one thing, but Distillery does\r\n  another? If so, please link the doc here so it can be updated if\r\n  it's a documentation issue, or so that the fix can be based around\r\n  what's documented.\r\n"},"comment":{"url":"https://api.github.com/repos/bitwalker/distillery/issues/comments/263491116","html_url":"https://github.com/bitwalker/distillery/issues/142#issuecomment-263491116","issue_url":"https://api.github.com/repos/bitwalker/distillery/issues/142","id":263491116,"user":{"login":"andreasguther","id":9425214,"avatar_url":"https://avatars.githubusercontent.com/u/9425214?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasguther","html_url":"https://github.com/andreasguther","followers_url":"https://api.github.com/users/andreasguther/followers","following_url":"https://api.github.com/users/andreasguther/following{/other_user}","gists_url":"https://api.github.com/users/andreasguther/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasguther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasguther/subscriptions","organizations_url":"https://api.github.com/users/andreasguther/orgs","repos_url":"https://api.github.com/users/andreasguther/repos","events_url":"https://api.github.com/users/andreasguther/events{/privacy}","received_events_url":"https://api.github.com/users/andreasguther/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T06:52:08Z","updated_at":"2016-11-29T06:52:08Z","body":"@melpon: \r\nI also use brew and I tried what you suggested with the permissions but that did not help."}}
{"actor":{"display_login":"andreasguther"}}