Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application release runs using 'start', but not 'foreground', or 'console' commands #563

Closed
xpdf opened this issue Oct 5, 2018 · 10 comments
Labels
deployment:scripts Anything to do with the management scripts investigating:can't reproduce Need help building a reproduction case for this issue so that it can be fixed

Comments

@xpdf
Copy link

xpdf commented Oct 5, 2018

Steps to reproduce

Build on CentOS7

All of this build process was working under Distillery 1.5.5, just upgraded to 2.0.10 and worked through upgrade changes, but stuck on why it runs using start, but not foreground...

when I connect to the deployed app in the container and try to run using console option, or foreground options I get:
2018-10-04 10:44:18.135414 Error in process p with exit value:npn
transportapi-v2_usertest | <0.2347.0>
transportapi-v2_usertest |
{function_clause,
[{filename,join,[[]],[{file,"filename.erl"},{line,432}]},
{code_server,insert_dir,2,[{file,"code_server.erl"},{line,820}]},{code_server,init_namedb,2,[{file,"code_server.erl"},{line,797}]},{code_server,init_namedb,1,[{file,"code_server.erl"},{line,793}]},{code_server,init,3,[{file,"code_server.erl"},{line,96}]}]}

When I run using the 'start' option the app runs fine.

Verbose Logs

Paste the output of the release command you ran with the --verbose flag
below in the summary tags (this helps keep the issue easy to navigate):

# Put your logs here!
$ mix compose release usertest
"2018.910.9051529"
Compiling 430 files (.ex)
Compiling lib/transport_api_web/views/quote_view.ex (it's taking more than 15s)

...snip..

Compiling lib/transporttech/business_rules/menu_data_library.ex (it's taking more than 15s)
Generated transport_api app
"2018.910.9051529"
==> sentry
Compiling 13 files (.ex)
Generated sentry app
==> transport_api
Compiling 430 files (.ex)
Compiling lib/transport_api_web/views/quote_view.ex (it's taking more than 15s)

...snip..

Compiling lib/transporttech/business_rules/menu_data_library.ex (it's taking more than 15s)
Generated transport_api app
"2018.910.9051529"
==> Loading configuration..
warning: found quoted keyword "migrate" but the quotes are not required. Note that keywords are always atoms, even when quoted, and quotes should only be used to introduce keywords with foreign characters in them
  nofile:57

warning: found quoted keyword "echo" but the quotes are not required. Note that keywords are always atoms, even when quoted, and quotes should only be used to introduce keywords with foreign characters in them
  nofile:58

==> Assembling release..
==> Building release transport_api:2018.910.9051529 using environment usertest
==> Discovered applications:
  > poolboy-1.5.1
  |
  |  from: _build/usertest/lib/poolboy
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > decimal-1.5.0
  |
  |  from: _build/usertest/lib/decimal
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |  includes: none
  |_____

  > ecto-2.2.10
  |
  |  from: _build/usertest/lib/ecto
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :decimal
  |      :poolboy
  |      :crypto
  |  includes: none
  |_____

  > phoenix_ecto-3.4.0
  |
  |  from: _build/usertest/lib/phoenix_ecto
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :ecto
  |      :plug
  |  includes: none
  |_____

  > kernel-6.1
  |
  |  from: /usr/lib/erlang/lib/kernel-6.1
  |  applications: none
  |  includes: none
  |_____

  > artificery-0.2.6
  |
  |  from: _build/usertest/lib/artificery
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |  includes: none
  |_____

  > distillery-2.0.10
  |
  |  from: _build/usertest/lib/distillery
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :runtime_tools
  |      :artificery
  |  includes: none
  |_____

  > connection-1.0.4
  |
  |  from: _build/usertest/lib/connection
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |  includes: none
  |_____

  > db_connection-1.1.3
  |
  |  from: _build/usertest/lib/db_connection
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :connection
  |  includes: none
  |_____

  > postgrex-0.13.5
  |
  |  from: _build/usertest/lib/postgrex
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :db_connection
  |      :decimal
  |      :crypto
  |  includes: none
  |_____

  > phoenix_pubsub-1.1.0
  |
  |  from: _build/usertest/lib/phoenix_pubsub
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :crypto
  |  includes: none
  |_____

  > eex-1.7.3
  |
  |  from: /opt/elixir/bin/../lib/eex
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |  includes: none
  |_____

  > poison-3.1.0
  |
  |  from: _build/usertest/lib/poison
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |  includes: none
  |_____

  > mime-1.3.0
  |
  |  from: _build/usertest/lib/mime
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |  includes: none
  |_____

  > logger-1.7.3
  |
  |  from: /opt/elixir/bin/../lib/logger
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |  includes: none
  |_____

  > crypto-4.3.3
  |
  |  from: /usr/lib/erlang/lib/crypto-4.3.3
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > plug-1.6.3
  |
  |  from: _build/usertest/lib/plug
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :crypto
  |      :logger
  |      :mime
  |  includes: none
  |_____

  > phoenix-1.3.4
  |
  |  from: _build/usertest/lib/phoenix
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :plug
  |      :poison
  |      :logger
  |      :eex
  |      :phoenix_pubsub
  |      :crypto
  |  includes: none
  |_____

  > runtime_tools-1.13.1
  |
  |  from: /usr/lib/erlang/lib/runtime_tools-1.13.1
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > cowlib-1.0.2
  |
  |  from: _build/usertest/lib/cowlib
  |  applications:
  |      :kernel
  |      :stdlib
  |      :crypto
  |  includes: none
  |_____

  > stdlib-3.6
  |
  |  from: /usr/lib/erlang/lib/stdlib-3.6
  |  applications:
  |      :kernel
  |  includes: none
  |_____

  > porcelain-2.0.3
  |
  |  from: _build/usertest/lib/porcelain
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :crypto
  |  includes: none
  |_____

  > pdf_generator-0.4.0
  |
  |  from: _build/usertest/lib/pdf_generator
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :porcelain
  |  includes: none
  |_____

  > yamerl-0.7.0
  |
  |  from: _build/usertest/lib/yamerl
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > ua_parser-1.5.0
  |
  |  from: _build/usertest/lib/ua_parser
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :yamerl
  |  includes: none
  |_____

  > mnesia-4.15.5
  |
  |  from: /usr/lib/erlang/lib/mnesia-4.15.5
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > httpoison-1.3.1
  |
  |  from: _build/usertest/lib/httpoison
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :hackney
  |  includes: none
  |_____

  > xmerl-1.3.18
  |
  |  from: /usr/lib/erlang/lib/xmerl-1.3.18
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > sweet_xml-0.6.5
  |
  |  from: _build/usertest/lib/sweet_xml
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :xmerl
  |  includes: none
  |_____

  > phoenix_html-2.12.0
  |
  |  from: _build/usertest/lib/phoenix_html
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :plug
  |  includes: none
  |_____

  > certifi-2.4.2
  |
  |  from: _build/usertest/lib/certifi
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > metrics-1.0.1
  |
  |  from: _build/usertest/lib/metrics
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > ssl_verify_fun-1.1.4
  |
  |  from: _build/usertest/lib/ssl_verify_fun
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |  includes: none
  |_____

  > mimerl-1.0.2
  |
  |  from: _build/usertest/lib/mimerl
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > unicode_util_compat-0.4.1
  |
  |  from: _build/usertest/lib/unicode_util_compat
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > idna-6.0.0
  |
  |  from: _build/usertest/lib/idna
  |  applications:
  |      :kernel
  |      :stdlib
  |      :unicode_util_compat
  |  includes: none
  |_____

  > hackney-1.14.3
  |
  |  from: _build/usertest/lib/hackney
  |  applications:
  |      :kernel
  |      :stdlib
  |      :crypto
  |      :asn1
  |      :public_key
  |      :ssl
  |      :idna
  |      :mimerl
  |      :certifi
  |      :ssl_verify_fun
  |      :metrics
  |  includes: none
  |_____

  > asn1-5.0.7
  |
  |  from: /usr/lib/erlang/lib/asn1-5.0.7
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > public_key-1.6.2
  |
  |  from: /usr/lib/erlang/lib/public_key-1.6.2
  |  applications:
  |      :asn1
  |      :crypto
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > ssl-9.0.2
  |
  |  from: /usr/lib/erlang/lib/ssl-9.0.2
  |  applications:
  |      :crypto
  |      :public_key
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > ranch-1.3.2
  |
  |  from: _build/usertest/lib/ranch
  |  applications:
  |      :kernel
  |      :stdlib
  |      :ssl
  |  includes: none
  |_____

  > cowboy-1.1.2
  |
  |  from: _build/usertest/lib/cowboy
  |  applications:
  |      :kernel
  |      :stdlib
  |      :ranch
  |      :cowlib
  |      :crypto
  |  includes: none
  |_____

  > parallel_stream-1.0.6
  |
  |  from: _build/usertest/lib/parallel_stream
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |  includes: none
  |_____

  > csv-2.1.1
  |
  |  from: _build/usertest/lib/csv
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :parallel_stream
  |  includes: none
  |_____

  > combine-0.10.0
  |
  |  from: _build/usertest/lib/combine
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |  includes: none
  |_____

  > ex_aws-2.1.0
  |
  |  from: _build/usertest/lib/ex_aws
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :crypto
  |  includes: none
  |_____

  > compiler-7.2.5
  |
  |  from: /usr/lib/erlang/lib/compiler-7.2.5
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > tzdata-0.5.19
  |
  |  from: _build/usertest/lib/tzdata
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :hackney
  |      :logger
  |  includes: none
  |_____

  > gen_smtp-0.12.0
  |
  |  from: _build/usertest/lib/gen_smtp
  |  applications:
  |      :kernel
  |      :stdlib
  |      :crypto
  |      :asn1
  |      :public_key
  |      :ssl
  |  includes: none
  |_____

  > bamboo_smtp-1.6.0
  |
  |  from: _build/usertest/lib/bamboo_smtp
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :gen_smtp
  |      :logger
  |      :bamboo
  |  includes: none
  |_____

  > timex_ecto-3.3.0
  |
  |  from: _build/usertest/lib/timex_ecto
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :ecto
  |      :timex
  |  includes: none
  |_____

  > bamboo-1.1.0
  |
  |  from: _build/usertest/lib/bamboo
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :hackney
  |      :poison
  |  includes: none
  |_____

  > base64url-0.0.1
  |
  |  from: _build/usertest/lib/base64url
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > jose-1.8.4
  |
  |  from: _build/usertest/lib/jose
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :crypto
  |      :asn1
  |      :public_key
  |      :base64url
  |  includes: none
  |_____

  > guardian-1.1.0
  |
  |  from: _build/usertest/lib/guardian
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :crypto
  |      :logger
  |      :jose
  |      :poison
  |  includes: none
  |_____

  > comeonin-4.1.1
  |
  |  from: _build/usertest/lib/comeonin
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |  includes: none
  |_____

  > sasl-3.2.1
  |
  |  from: /usr/lib/erlang/lib/sasl-3.2.1
  |  applications:
  |      :kernel
  |      :stdlib
  |  includes: none
  |_____

  > sentry-7.0.1
  |
  |  from: _build/usertest/lib/sentry
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :hackney
  |      :logger
  |  includes: none
  |_____

  > cors_plug-1.5.2
  |
  |  from: _build/usertest/lib/cors_plug
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |  includes: none
  |_____

  > gettext-0.16.0
  |
  |  from: _build/usertest/lib/gettext
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |  includes: none
  |_____

  > eximap-0.1.1-dev
  |
  |  from: _build/usertest/lib/eximap
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |  includes: none
  |_____

  > ex_aws_s3-2.0.1
  |
  |  from: _build/usertest/lib/ex_aws_s3
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :ex_aws
  |  includes: none
  |_____

  > bcrypt_elixir-1.1.1
  |
  |  from: _build/usertest/lib/bcrypt_elixir
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :crypto
  |  includes: none
  |_____

  > timex-3.4.1
  |
  |  from: _build/usertest/lib/timex
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :logger
  |      :tzdata
  |      :gettext
  |      :combine
  |  includes: none
  |_____

  > transport_api-2018.910.9051529
  |
  |  from: _build/usertest/lib/transport_api
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |      :mnesia
  |      :phoenix
  |      :phoenix_pubsub
  |      :phoenix_html
  |      :cowboy
  |      :logger
  |      :gettext
  |      :phoenix_ecto
  |      :postgrex
  |      :timex
  |      :timex_ecto
  |      :comeonin
  |      :cors_plug
  |      :guardian
  |      :ssl
  |      :httpoison
  |      :bamboo
  |      :bamboo_smtp
  |      :bcrypt_elixir
  |      :ua_parser
  |      :csv
  |      :ex_aws
  |      :ex_aws_s3
  |      :sweet_xml
  |      :pdf_generator
  |      :sentry
  |      :eximap
  |  includes: none
  |_____

  > iex-1.7.3
  |
  |  from: /opt/elixir/bin/../lib/iex
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |  includes: none
  |_____

  > mix-1.7.3
  |
  |  from: /opt/elixir/bin/../lib/mix
  |  applications:
  |      :kernel
  |      :stdlib
  |      :elixir
  |  includes: none
  |_____

  > elixir-1.7.3
  |
  |  from: /opt/elixir/bin/../lib/elixir
  |  applications:
  |      :kernel
  |      :stdlib
  |      :compiler
  |  includes: none
  |_____

==> Running validation checks..
    > Mix.Releases.Checks.Erts * PASS
    > Mix.Releases.Checks.Cookie * PASS
    > Mix.Releases.Checks.LoadedOrphanedApps * PASS
==> Generated overlay vars:
    release_name=:transport_api
    release_version="2018.910.9051529"
    is_upgrade=false
    upgrade_from=:latest
    dev_mode=false
    include_erts=true
    include_src=false
    include_system_libs=true
    erl_opts=""
    run_erl_env=""
    erts_vsn="10.1"
    output_dir="_build/usertest/rel/transport_api"
==> Copying applications to _build/usertest/rel/transport_api
==> Generating start_erl.data
==> Generating vm.args
==> Generating sys.config from config/config.exs
==> Including ERTS 10.1 from /usr/lib/erlang/erts-10.1
==> Generating boot scripts
==> Generating RELEASES
==> Applying overlays
==> Applying mkdir overlay
    dst: releases/2018.910.9051529/hooks
==> Applying mkdir overlay
    dst: releases/2018.910.9051529/hooks/pre_configure.d
==> Applying mkdir overlay
    dst: releases/2018.910.9051529/hooks/post_configure.d
==> Applying mkdir overlay
    dst: releases/2018.910.9051529/hooks/pre_start.d
==> Applying mkdir overlay
    dst: releases/2018.910.9051529/hooks/post_start.d
==> Applying mkdir overlay
    dst: releases/2018.910.9051529/hooks/pre_stop.d
==> Applying mkdir overlay
    dst: releases/2018.910.9051529/hooks/post_stop.d
==> Applying mkdir overlay
    dst: releases/2018.910.9051529/hooks/pre_upgrade.d
==> Applying mkdir overlay
    dst: releases/2018.910.9051529/hooks/post_upgrade.d
==> Applying copy overlay
    src: _build/usertest/lib/distillery/priv/libexec
    dst: releases/2018.910.9051529/libexec
==> Applying mkdir overlay
    dst: releases/2018.910.9051529/commands
==> Applying copy overlay
    src: rel/commands/migrate.sh
    dst: releases/2018.910.9051529/commands/migrate.sh
==> Applying copy overlay
    src: rel/commands/echo.sh
    dst: releases/2018.910.9051529/commands/echo.sh
==> Packaging release..
==> Archiving transport_api-2018.910.9051529
==> Writing archive to /home/gitlab-runner/builds/1bd967fd/0/development/TransportApi-V2/_build/usertest/rel/transport_api/releases/2018.910.9051529/transport_api.tar.gz
==> Updating archive..
==> Including system libs from current Erlang installation
==> Saving archive..
==> Archive saved!
Release successfully built!
To start the release you have built, you can use one of the following tasks:

    # start a shell, like 'iex -S mix'
    > _build/usertest/rel/transport_api/bin/transport_api console

    # start in the foreground, like 'mix run --no-halt'
    > _build/usertest/rel/transport_api/bin/transport_api foreground

    # start in the background, must be stopped with the 'stop' command
    > _build/usertest/rel/transport_api/bin/transport_api start

If you started a release elsewhere, and wish to connect to it:

    # connects a local shell to the running node
    > _build/usertest/rel/transport_api/bin/transport_api remote_console

    # connects directly to the running node's console
    > _build/usertest/rel/transport_api/bin/transport_api attach

For a complete listing of commands and their use:

    > _build/usertest/rel/transport_api/bin/transport_api help
"2018.910.9051529"
Version: 2018.910.9051529
Building web
Step 1/27 : FROM scratch




In the container, rerunning  "DEBUG_BOOT=true ./transport_api.sh foreground"

I get:
+1538772371 unset CDPATH
+1538772371 REL_NAME=transport_api
+1538772371 REL_VSN=2018.910.9051529
+1538772371 ERL_OPTS=
+1538772371 RUN_ERL_ENV=
+1538772371 ERTS_VSN=10.1
+1538772371 DISTILLERY_VSN=2.0.10
+1538772371 export REL_NAME
+1538772371 export REL_VSN
+1538772371 export ERL_OPTS
+1538772371 export RUN_ERL_ENV
+1538772371 export ERTS_VSN
+1538772371 export DISTILLERY_VSN
+1538772371 uname
+1538772371 grep -q Darwin
++1538772371 readlink -f ./transport_api.sh
+1538772371 SCRIPT=/app/releases/2018.910.9051529/transport_api.sh
+1538772371 export ESCRIPT_NAME
+1538772371 ESCRIPT_NAME=/app/releases/2018.910.9051529/transport_api.sh
++1538772371 dirname /app/releases/2018.910.9051529/transport_api.sh
+1538772371 SCRIPT_DIR=/app/releases/2018.910.9051529
+++1538772371 dirname /app/releases/2018.910.9051529
++1538772371 dirname /app/releases
+1538772371 RELEASE_ROOT_DIR=/app
+1538772371 REL_DIR=/app/releases/2018.910.9051529
+1538772371 RELEASE_LIBEXEC_DIR=/app/releases/2018.910.9051529/libexec
+1538772371 . /app/releases/2018.910.9051529/libexec/readlink.sh
++1538772371 set -e
++1538772371 '[' '!' -z true ']'
++1538772371 set +x
+1538772371 . /app/releases/2018.910.9051529/libexec/logger.sh
++1538772371 set -e
++1538772371 '[' '!' -z true ']'
++1538772371 set +x
+1538772371 . /app/releases/2018.910.9051529/libexec/erts.sh
++1538772371 set -e
++1538772371 code_paths=()
+++1538772371 erl -noshell -eval 'io:format("~s~n~s~n", [code:root_dir(), erlang:system_info(version)]).' -s erlang halt
++++1538772371 whereis_erts_bin
++++1538772371 '[' -z 10.1 ']'
++++1538772371 '[' -z '' ']'
++++1538772371 __erts_dir=/app/erts-10.1
++++1538772371 '[' -d /app/erts-10.1 ']'
++++1538772371 echo /app/erts-10.1/bin
+++1538772371 __bin=/app/erts-10.1/bin
+++1538772371 '[' -z /app/erts-10.1/bin ']'
+++1538772371 __erl=/app/erts-10.1/bin/erl
+++1538772371 __boot_provided=0
+++1538772371 echo -noshell -eval 'io:format("~s~n~s~n", [code:root_dir(), erlang:system_info(version)]).' -s erlang halt
+++1538772371 grep '\-boot '
+++1538772371 __erts_included=0
+++1538772371 [[ /app/erts-10.1/bin/erl =~ ^/app ]]
+++1538772371 __erts_included=1
+++1538772371 '[' 1 -eq 1 ']'
+++1538772371 '[' 0 -eq 1 ']'
+++1538772371 '[' 1 -eq 1 ']'
+++1538772371 /app/erts-10.1/bin/erl -boot_var ERTS_LIB_DIR /app/lib -boot /app/bin/start_clean -noshell -eval 'io:format("~s~n~s~n", [code:root_dir(), erlang:system_info(version)]).' -s erlang halt
++1538772371 __info='/app
10.1'
++1538772371 export ROOTDIR
+++1538772371 echo '/app
10.1'
+++1538772371 head -n1
++1538772371 ROOTDIR=/app
++1538772371 export ERTS_VSN
++1538772371 '[' -z 10.1 ']'
+++1538772371 echo '/app
10.1'
+++1538772371 tail -n1
++1538772371 ERTS_VSN=10.1
++1538772371 export ERTS_DIR
++1538772371 ERTS_DIR=/app/erts-10.1
++1538772371 export BINDIR
++1538772371 BINDIR=/app/erts-10.1/bin
++1538772371 export ERTS_LIB_DIR
+++1538772371 readlink_f /app/erts-10.1/../lib
+++1538772371 uname
+++1538772371 grep -q Darwin
+++1538772371 readlink -f /app/erts-10.1/../lib
++1538772371 ERTS_LIB_DIR=/app/lib
++1538772371 export EMU=beam
++1538772371 EMU=beam
++1538772371 export PROGNAME=erl
++1538772371 PROGNAME=erl
++1538772371 __set_code_paths
++1538772371 '[' 0 -eq 0 ']'
++1538772371 code_paths=()
+++1538772371 __rel_apps
+++1538772371 __releases=/app/releases/RELEASES
+++1538772371 __vsn=2018.910.9051529
++++1538772371 sed -E -n '/\{release,[^,]*,"2018.910.9051529"/,/[^po]*(permanent|old)}/p' /app/releases/RELEASES
+++1538772371 __rel='[{release,"transport_api","2018.910.9051529","10.1",
          [{poolboy,"1.5.1","./lib/poolboy-1.5.1"},
           {decimal,"1.5.0","./lib/decimal-1.5.0"},
           {ecto,"2.2.10","./lib/ecto-2.2.10"},
           {phoenix_ecto,"3.4.0","./lib/phoenix_ecto-3.4.0"},
           {kernel,"6.1","./lib/kernel-6.1"},
           {artificery,"0.2.6","./lib/artificery-0.2.6"},
           {distillery,"2.0.10","./lib/distillery-2.0.10"},
           {connection,"1.0.4","./lib/connection-1.0.4"},
           {db_connection,"1.1.3","./lib/db_connection-1.1.3"},
           {postgrex,"0.13.5","./lib/postgrex-0.13.5"},
           {phoenix_pubsub,"1.1.0","./lib/phoenix_pubsub-1.1.0"},
           {eex,"1.7.3","./lib/eex-1.7.3"},
           {poison,"3.1.0","./lib/poison-3.1.0"},
           {mime,"1.3.0","./lib/mime-1.3.0"},
           {logger,"1.7.3","./lib/logger-1.7.3"},
           {crypto,"4.3.3","./lib/crypto-4.3.3"},
           {plug,"1.6.3","./lib/plug-1.6.3"},
           {phoenix,"1.3.4","./lib/phoenix-1.3.4"},
           {runtime_tools,"1.13.1","./lib/runtime_tools-1.13.1"},
           {cowlib,"1.0.2","./lib/cowlib-1.0.2"},
           {stdlib,"3.6","./lib/stdlib-3.6"},
           {porcelain,"2.0.3","./lib/porcelain-2.0.3"},
           {pdf_generator,"0.4.0","./lib/pdf_generator-0.4.0"},
           {yamerl,"0.7.0","./lib/yamerl-0.7.0"},
           {ua_parser,"1.5.0","./lib/ua_parser-1.5.0"},
           {mnesia,"4.15.5","./lib/mnesia-4.15.5"},
           {httpoison,"1.3.1","./lib/httpoison-1.3.1"},
           {xmerl,"1.3.18","./lib/xmerl-1.3.18"},
           {sweet_xml,"0.6.5","./lib/sweet_xml-0.6.5"},
           {phoenix_html,"2.12.0","./lib/phoenix_html-2.12.0"},
           {certifi,"2.4.2","./lib/certifi-2.4.2"},
           {metrics,"1.0.1","./lib/metrics-1.0.1"},
           {ssl_verify_fun,"1.1.4","./lib/ssl_verify_fun-1.1.4"},
           {mimerl,"1.0.2","./lib/mimerl-1.0.2"},
           {unicode_util_compat,"0.4.1","./lib/unicode_util_compat-0.4.1"},
           {idna,"6.0.0","./lib/idna-6.0.0"},
           {hackney,"1.14.3","./lib/hackney-1.14.3"},
           {asn1,"5.0.7","./lib/asn1-5.0.7"},
           {public_key,"1.6.2","./lib/public_key-1.6.2"},
           {ssl,"9.0.2","./lib/ssl-9.0.2"},
           {ranch,"1.3.2","./lib/ranch-1.3.2"},
           {cowboy,"1.1.2","./lib/cowboy-1.1.2"},
           {parallel_stream,"1.0.6","./lib/parallel_stream-1.0.6"},
           {csv,"2.1.1","./lib/csv-2.1.1"},
           {combine,"0.10.0","./lib/combine-0.10.0"},
           {ex_aws,"2.1.0","./lib/ex_aws-2.1.0"},
           {compiler,"7.2.5","./lib/compiler-7.2.5"},
           {tzdata,"0.5.19","./lib/tzdata-0.5.19"},
           {gen_smtp,"0.12.0","./lib/gen_smtp-0.12.0"},
           {bamboo_smtp,"1.6.0","./lib/bamboo_smtp-1.6.0"},
           {timex_ecto,"3.3.0","./lib/timex_ecto-3.3.0"},
           {bamboo,"1.1.0","./lib/bamboo-1.1.0"},
           {base64url,"0.0.1","./lib/base64url-0.0.1"},
           {jose,"1.8.4","./lib/jose-1.8.4"},
           {guardian,"1.1.0","./lib/guardian-1.1.0"},
           {comeonin,"4.1.1","./lib/comeonin-4.1.1"},
           {sasl,"3.2.1","./lib/sasl-3.2.1"},
           {sentry,"7.0.1","./lib/sentry-7.0.1"},
           {cors_plug,"1.5.2","./lib/cors_plug-1.5.2"},
           {gettext,"0.16.0","./lib/gettext-0.16.0"},
           {eximap,"0.1.1-dev","./lib/eximap-0.1.1-dev"},
           {ex_aws_s3,"2.0.1","./lib/ex_aws_s3-2.0.1"},
           {bcrypt_elixir,"1.1.1","./lib/bcrypt_elixir-1.1.1"},
           {timex,"3.4.1","./lib/timex-3.4.1"},
           {transport_api,"2018.910.9051529",
                          "./lib/transport_api-2018.910.9051529"},
           {iex,"1.7.3","./lib/iex-1.7.3"},
           {mix,"1.7.3","./lib/mix-1.7.3"},
           {elixir,"1.7.3","./lib/elixir-1.7.3"}],
          permanent}].'
+++1538772371 grep -E '[{][A-Za-z_0-9]*,\"[0-9.]*[A-Za-z0-9.\_\+\-]*\"'
+++1538772371 sed '-es/"[^"]*$//' '-es/^[^a-z]*//' -es/,/-/ '-es/"//' '-es/","[^"]*$//'
+++1538772371 echo '[{release,"transport_api","2018.910.9051529","10.1",
          [{poolboy,"1.5.1","./lib/poolboy-1.5.1"},
           {decimal,"1.5.0","./lib/decimal-1.5.0"},
           {ecto,"2.2.10","./lib/ecto-2.2.10"},
           {phoenix_ecto,"3.4.0","./lib/phoenix_ecto-3.4.0"},
           {kernel,"6.1","./lib/kernel-6.1"},
           {artificery,"0.2.6","./lib/artificery-0.2.6"},
           {distillery,"2.0.10","./lib/distillery-2.0.10"},
           {connection,"1.0.4","./lib/connection-1.0.4"},
           {db_connection,"1.1.3","./lib/db_connection-1.1.3"},
           {postgrex,"0.13.5","./lib/postgrex-0.13.5"},
           {phoenix_pubsub,"1.1.0","./lib/phoenix_pubsub-1.1.0"},
           {eex,"1.7.3","./lib/eex-1.7.3"},
           {poison,"3.1.0","./lib/poison-3.1.0"},
           {mime,"1.3.0","./lib/mime-1.3.0"},
           {logger,"1.7.3","./lib/logger-1.7.3"},
           {crypto,"4.3.3","./lib/crypto-4.3.3"},
           {plug,"1.6.3","./lib/plug-1.6.3"},
           {phoenix,"1.3.4","./lib/phoenix-1.3.4"},
           {runtime_tools,"1.13.1","./lib/runtime_tools-1.13.1"},
           {cowlib,"1.0.2","./lib/cowlib-1.0.2"},
           {stdlib,"3.6","./lib/stdlib-3.6"},
           {porcelain,"2.0.3","./lib/porcelain-2.0.3"},
           {pdf_generator,"0.4.0","./lib/pdf_generator-0.4.0"},
           {yamerl,"0.7.0","./lib/yamerl-0.7.0"},
           {ua_parser,"1.5.0","./lib/ua_parser-1.5.0"},
           {mnesia,"4.15.5","./lib/mnesia-4.15.5"},
           {httpoison,"1.3.1","./lib/httpoison-1.3.1"},
           {xmerl,"1.3.18","./lib/xmerl-1.3.18"},
           {sweet_xml,"0.6.5","./lib/sweet_xml-0.6.5"},
           {phoenix_html,"2.12.0","./lib/phoenix_html-2.12.0"},
           {certifi,"2.4.2","./lib/certifi-2.4.2"},
           {metrics,"1.0.1","./lib/metrics-1.0.1"},
           {ssl_verify_fun,"1.1.4","./lib/ssl_verify_fun-1.1.4"},
           {mimerl,"1.0.2","./lib/mimerl-1.0.2"},
           {unicode_util_compat,"0.4.1","./lib/unicode_util_compat-0.4.1"},
           {idna,"6.0.0","./lib/idna-6.0.0"},
           {hackney,"1.14.3","./lib/hackney-1.14.3"},
           {asn1,"5.0.7","./lib/asn1-5.0.7"},
           {public_key,"1.6.2","./lib/public_key-1.6.2"},
           {ssl,"9.0.2","./lib/ssl-9.0.2"},
           {ranch,"1.3.2","./lib/ranch-1.3.2"},
           {cowboy,"1.1.2","./lib/cowboy-1.1.2"},
           {parallel_stream,"1.0.6","./lib/parallel_stream-1.0.6"},
           {csv,"2.1.1","./lib/csv-2.1.1"},
           {combine,"0.10.0","./lib/combine-0.10.0"},
           {ex_aws,"2.1.0","./lib/ex_aws-2.1.0"},
           {compiler,"7.2.5","./lib/compiler-7.2.5"},
           {tzdata,"0.5.19","./lib/tzdata-0.5.19"},
           {gen_smtp,"0.12.0","./lib/gen_smtp-0.12.0"},
           {bamboo_smtp,"1.6.0","./lib/bamboo_smtp-1.6.0"},
           {timex_ecto,"3.3.0","./lib/timex_ecto-3.3.0"},
           {bamboo,"1.1.0","./lib/bamboo-1.1.0"},
           {base64url,"0.0.1","./lib/base64url-0.0.1"},
           {jose,"1.8.4","./lib/jose-1.8.4"},
           {guardian,"1.1.0","./lib/guardian-1.1.0"},
           {comeonin,"4.1.1","./lib/comeonin-4.1.1"},
           {sasl,"3.2.1","./lib/sasl-3.2.1"},
           {sentry,"7.0.1","./lib/sentry-7.0.1"},
           {cors_plug,"1.5.2","./lib/cors_plug-1.5.2"},
           {gettext,"0.16.0","./lib/gettext-0.16.0"},
           {eximap,"0.1.1-dev","./lib/eximap-0.1.1-dev"},
           {ex_aws_s3,"2.0.1","./lib/ex_aws_s3-2.0.1"},
           {bcrypt_elixir,"1.1.1","./lib/bcrypt_elixir-1.1.1"},
           {timex,"3.4.1","./lib/timex-3.4.1"},
           {transport_api,"2018.910.9051529",
                          "./lib/transport_api-2018.910.9051529"},
           {iex,"1.7.3","./lib/iex-1.7.3"},
           {mix,"1.7.3","./lib/mix-1.7.3"},
           {elixir,"1.7.3","./lib/elixir-1.7.3"}],
          permanent}].'
+++1538772371 tail -n +2
++1538772371 apps='poolboy-1.5.1
decimal-1.5.0
ecto-2.2.10
phoenix_ecto-3.4.0
kernel-6.1
artificery-0.2.6
distillery-2.0.10
connection-1.0.4
db_connection-1.1.3
postgrex-0.13.5
phoenix_pubsub-1.1.0
eex-1.7.3
poison-3.1.0
mime-1.3.0
logger-1.7.3
crypto-4.3.3
plug-1.6.3
phoenix-1.3.4
runtime_tools-1.13.1
cowlib-1.0.2
stdlib-3.6
porcelain-2.0.3
pdf_generator-0.4.0
yamerl-0.7.0
ua_parser-1.5.0
mnesia-4.15.5
httpoison-1.3.1
xmerl-1.3.18
sweet_xml-0.6.5
phoenix_html-2.12.0
certifi-2.4.2
metrics-1.0.1
ssl_verify_fun-1.1.4
mimerl-1.0.2
unicode_util_compat-0.4.1
idna-6.0.0
hackney-1.14.3
asn1-5.0.7
public_key-1.6.2
ssl-9.0.2
ranch-1.3.2
cowboy-1.1.2
parallel_stream-1.0.6
csv-2.1.1
combine-0.10.0
ex_aws-2.1.0
compiler-7.2.5
tzdata-0.5.19
gen_smtp-0.12.0
bamboo_smtp-1.6.0
timex_ecto-3.3.0
bamboo-1.1.0
base64url-0.0.1
jose-1.8.4
guardian-1.1.0
comeonin-4.1.1
sasl-3.2.1
sentry-7.0.1
cors_plug-1.5.2
gettext-0.16.0
eximap-0.1.1-dev
ex_aws_s3-2.0.1
bcrypt_elixir-1.1.1
timex-3.4.1
transport_api-2018.910.9051529
iex-1.7.3
mix-1.7.3
elixir-1.7.3'
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/poolboy-1.5.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/decimal-1.5.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/ecto-2.2.10 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/phoenix_ecto-3.4.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/kernel-6.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/artificery-0.2.6 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/distillery-2.0.10 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/connection-1.0.4 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/db_connection-1.1.3 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/postgrex-0.13.5 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/phoenix_pubsub-1.1.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/eex-1.7.3 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/poison-3.1.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/mime-1.3.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/logger-1.7.3 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/crypto-4.3.3 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/plug-1.6.3 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/phoenix-1.3.4 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/runtime_tools-1.13.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/cowlib-1.0.2 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/stdlib-3.6 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/porcelain-2.0.3 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/pdf_generator-0.4.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/yamerl-0.7.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/ua_parser-1.5.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/mnesia-4.15.5 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/httpoison-1.3.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/xmerl-1.3.18 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/sweet_xml-0.6.5 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/phoenix_html-2.12.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/certifi-2.4.2 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/metrics-1.0.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/ssl_verify_fun-1.1.4 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/mimerl-1.0.2 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/unicode_util_compat-0.4.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/idna-6.0.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/hackney-1.14.3 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/asn1-5.0.7 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/public_key-1.6.2 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/ssl-9.0.2 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/ranch-1.3.2 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/cowboy-1.1.2 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/parallel_stream-1.0.6 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/csv-2.1.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/combine-0.10.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/ex_aws-2.1.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/compiler-7.2.5 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/tzdata-0.5.19 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/gen_smtp-0.12.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/bamboo_smtp-1.6.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/timex_ecto-3.3.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/bamboo-1.1.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/base64url-0.0.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/jose-1.8.4 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/guardian-1.1.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/comeonin-4.1.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/sasl-3.2.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/sentry-7.0.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/cors_plug-1.5.2 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/gettext-0.16.0 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/eximap-0.1.1-dev ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/ex_aws_s3-2.0.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/bcrypt_elixir-1.1.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/timex-3.4.1 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/transport_api-2018.910.9051529 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/iex-1.7.3 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/mix-1.7.3 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538772371 for app in '$apps'
++1538772371 '[' -d /app/lib/elixir-1.7.3 ']'
++1538772371 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
+1538772371 . /app/releases/2018.910.9051529/libexec/helpers.sh
++1538772371 set -e
+1538772371 . /app/releases/2018.910.9051529/libexec/env.sh
++1538772371 set -e
++1538772371 RUN_ERL_DISABLE_FLOWCNTRL=true
++1538772371 CODE_LOADING_MODE=embedded
++1538772371 START_ERL_DATA=/app/releases/start_erl.data
++1538772371 export REL_DIR
++1538772371 REL_DIR=/app/releases/2018.910.9051529
++1538772371 REL_LIB_DIR=/app/lib
++1538772371 RELEASE_MUTABLE_DIR=/app/var
++1538772371 RUNNER_LOG_DIR=/app/var/log
++1538772371 EXTRA_OPTS=
++1538772371 PRE_CONFIGURE_HOOKS=/app/releases/2018.910.9051529/hooks/pre_configure.d
++1538772371 POST_CONFIGURE_HOOKS=/app/releases/2018.910.9051529/hooks/post_configure.d
++1538772371 PRE_START_HOOKS=/app/releases/2018.910.9051529/hooks/pre_start.d
++1538772371 POST_START_HOOKS=/app/releases/2018.910.9051529/hooks/post_start.d
++1538772371 PRE_STOP_HOOKS=/app/releases/2018.910.9051529/hooks/pre_stop.d
++1538772371 POST_STOP_HOOKS=/app/releases/2018.910.9051529/hooks/post_stop.d
++1538772371 PRE_UPGRADE_HOOKS=/app/releases/2018.910.9051529/hooks/pre_upgrade.d
++1538772371 POST_UPGRADE_HOOKS=/app/releases/2018.910.9051529/hooks/post_upgrade.d
++1538772371 export BINDIR=/app/erts-10.1/bin
++1538772371 BINDIR=/app/erts-10.1/bin
++1538772371 export LD_LIBRARY_PATH=/app/erts-10.1/lib:
++1538772371 LD_LIBRARY_PATH=/app/erts-10.1/lib:
++1538772371 export EMU=beam
++1538772371 EMU=beam
++1538772371 export PROGNAME=erl
++1538772371 PROGNAME=erl
++1538772371 export RELEASE_CONFIG_DIR=/app
++1538772371 RELEASE_CONFIG_DIR=/app
++1538772371 '[' -z '' ']'
++1538772371 '[' '!' -d /app/var ']'
++1538772371 '[' -z '' ']'
++1538772371 '[' '!' -d /app/var/log ']'
+1538772371 . /app/releases/2018.910.9051529/libexec/config.sh
++1538772371 set -e
+1538772371 cd /app
+1538772371 export DISTILLERY_TASK=foreground
+1538772371 DISTILLERY_TASK=foreground
+1538772371 COMMAND_DIR=/app/releases/2018.910.9051529/libexec/commands
+1538772371 COMMAND_NAME=foreground
+1538772371 COMMAND_PATH=/app/releases/2018.910.9051529/libexec/commands/foreground.sh
+1538772371 '[' 1 -ne 0 ']'
+1538772371 shift
+1538772371 case $COMMAND_NAME in
+1538772371 '[' -f /app/releases/2018.910.9051529/libexec/commands/foreground.sh ']'
+1538772371 configure_release
+1538772371 '[' '!' -z '' ']'
+1538772371 export DISTILLERY_PRECONFIGURE=true
+1538772371 DISTILLERY_PRECONFIGURE=true
+1538772371 run_hooks pre_configure
+1538772371 case $1 in
+1538772371 _run_hooks_from_dir /app/releases/2018.910.9051529/hooks/pre_configure.d
+1538772371 '[' -d /app/releases/2018.910.9051529/hooks/pre_configure.d ']'
+1538772371 for file in '$1/[0-9a-zA-Z._-]*'
+1538772371 '[' -f '/app/releases/2018.910.9051529/hooks/pre_configure.d/[0-9a-zA-Z._-]*' ']'
+1538772371 continue
+1538772371 unset DISTILLERY_PRECONFIGURE
+1538772371 '[' -z '' ']'
+1538772371 '[' -f /app/vm.args ']'
+1538772371 export SRC_VMARGS_PATH=/app/releases/2018.910.9051529/vm.args
+1538772371 SRC_VMARGS_PATH=/app/releases/2018.910.9051529/vm.args
+1538772371 '[' /app/releases/2018.910.9051529/vm.args '!=' /app/var/vm.args ']'
+1538772371 '[' -z '' ']'
+1538772371 echo '#### Generated - edit/create /app/vm.args instead.'
+1538772371 cat /app/releases/2018.910.9051529/vm.args
+1538772371 export DEST_VMARGS_PATH=/app/var/vm.args
+1538772371 DEST_VMARGS_PATH=/app/var/vm.args
+1538772371 '[' -z '' ']'
+1538772371 '[' '!' -z true ']'
+1538772371 '[' '!' -z /app/var/vm.args ']'
+1538772371 _replace_os_vars /app/var/vm.args
+1538772371 cp -a /app/var/vm.args /app/var/vm.args.bak
+1538772371 awk '
        function escape(s) {
            gsub(/&/, "\\\\&", s);
            return s;
        }
        {
            while(match($0,"[$]{[^}]*}")) {
                var=substr($0,RSTART+2,RLENGTH-3);
                gsub("[$]{"var"}", escape(ENVIRON[var]))
            }
        }1'
+1538772371 mv -- /app/var/vm.args.bak /app/var/vm.args
+1538772372 export VMARGS_PATH=/app/var/vm.args
+1538772372 VMARGS_PATH=/app/var/vm.args
+1538772372 '[' -z '' ']'
+1538772372 '[' -f /app/sys.config ']'
+1538772372 export SRC_SYS_CONFIG_PATH=/app/releases/2018.910.9051529/sys.config
+1538772372 SRC_SYS_CONFIG_PATH=/app/releases/2018.910.9051529/sys.config
+1538772372 '[' /app/releases/2018.910.9051529/sys.config '!=' /app/var/sys.config ']'
+1538772372 '[' -z '' ']'
+1538772372 echo '%% Generated - edit/create /app/sys.config instead.'
+1538772372 cat /app/releases/2018.910.9051529/sys.config
+1538772372 export DEST_SYS_CONFIG_PATH=/app/var/sys.config
+1538772372 DEST_SYS_CONFIG_PATH=/app/var/sys.config
+1538772372 '[' -z '' ']'
+1538772372 '[' '!' -z true ']'
+1538772372 '[' '!' -z /app/var/sys.config ']'
+1538772372 _replace_os_vars /app/var/sys.config
+1538772372 cp -a /app/var/sys.config /app/var/sys.config.bak
+1538772372 awk '
        function escape(s) {
            gsub(/&/, "\\\\&", s);
            return s;
        }
        {
            while(match($0,"[$]{[^}]*}")) {
                var=substr($0,RSTART+2,RLENGTH-3);
                gsub("[$]{"var"}", escape(ENVIRON[var]))
            }
        }1'
+1538772372 mv -- /app/var/sys.config.bak /app/var/sys.config
+1538772372 export SYS_CONFIG_PATH=/app/var/sys.config
+1538772372 SYS_CONFIG_PATH=/app/var/sys.config
+1538772372 '[' -z '' ']'
+1538772372 '[' -z true ']'
+1538772372 erl -noshell -config /app/var/sys.config -boot /app/releases/2018.910.9051529/config -s erlang halt
++1538772372 whereis_erts_bin
++1538772372 '[' -z 10.1 ']'
++1538772372 '[' -z '' ']'
++1538772372 __erts_dir=/app/erts-10.1
++1538772372 '[' -d /app/erts-10.1 ']'
++1538772372 echo /app/erts-10.1/bin
+1538772372 __bin=/app/erts-10.1/bin
+1538772372 '[' -z /app/erts-10.1/bin ']'
+1538772372 __erl=/app/erts-10.1/bin/erl
+1538772372 __boot_provided=0
+1538772372 echo -noshell -config /app/var/sys.config -boot /app/releases/2018.910.9051529/config -s erlang halt
+1538772372 grep '\-boot '
+1538772372 __boot_provided=1
+1538772372 __erts_included=0
+1538772372 [[ /app/erts-10.1/bin/erl =~ ^/app ]]
+1538772372 __erts_included=1
+1538772372 '[' 1 -eq 1 ']'
+1538772372 '[' 1 -eq 1 ']'
+1538772372 /app/erts-10.1/bin/erl -boot_var ERTS_LIB_DIR /app/lib -config /app/var/sys.config -pa '' -noshell -config /app/var/sys.config -boot /app/releases/2018.910.9051529/config -s erlang halt
+1538772372 export DISTILLERY_PRECONFIGURE=true
+1538772372 DISTILLERY_PRECONFIGURE=true
+1538772372 run_hooks post_configure
+1538772372 case $1 in
+1538772372 _run_hooks_from_dir /app/releases/2018.910.9051529/hooks/post_configure.d
+1538772372 '[' -d /app/releases/2018.910.9051529/hooks/post_configure.d ']'
+1538772372 for file in '$1/[0-9a-zA-Z._-]*'
+1538772372 '[' -f '/app/releases/2018.910.9051529/hooks/post_configure.d/[0-9a-zA-Z._-]*' ']'
+1538772372 continue
+1538772372 unset DISTILLERY_PRECONFIGURE
+1538772372 _configure_node
+1538772372 export NAME_ARG
++1538772372 grep '^\-\(sn\|n\)ame' /app/var/vm.args
+1538772372 NAME_ARG='-name transport_api@127.0.0.1'
+1538772372 '[' -z '-name transport_api@127.0.0.1' ']'
+1538772372 export NAME_TYPE
++1538772372 echo '-name transport_api@127.0.0.1'
++1538772372 tail -n 1
++1538772372 awk '{print $1}'
+1538772372 NAME_TYPE=-name
+1538772372 export NAME
++1538772372 echo '-name transport_api@127.0.0.1'
++1538772372 awk '{print $2}'
++1538772372 tail -n 1
+1538772372 NAME=transport_api@127.0.0.1
+1538772372 case $NAME in
+1538772372 '[' -name = -name ']'
+1538772372 [[ ! transport_api@127.0.0.1 =~ ^[^@]+@[^\.]+\..*$ ]]
+1538772372 return 0
+1538772372 . /app/releases/2018.910.9051529/libexec/commands/foreground.sh
++1538772372 set -e
++1538772372 set -m
++1538772372 require_cookie
++1538772372 _load_cookie
++1538772372 '[' '!' -z '' ']'
+++1538772372 grep '^-setcookie' /app/var/vm.args
++1538772372 COOKIE_ARG='-setcookie QDJdrfWwohUa1HGJchE2f6hiGcILnghtvE61pWlIbk+qty8bqXrVFRGgmcLiggtV'
++1538772372 DEFAULT_COOKIE_FILE=/root/.erlang.cookie
++1538772372 '[' '!' -z '-setcookie QDJdrfWwohUa1HGJchE2f6hiGcILnghtvE61pWlIbk+qty8bqXrVFRGgmcLiggtV' ']'
+++1538772372 echo '-setcookie QDJdrfWwohUa1HGJchE2f6hiGcILnghtvE61pWlIbk+qty8bqXrVFRGgmcLiggtV'
+++1538772372 awk '{ print $2 }'
++1538772372 COOKIE=QDJdrfWwohUa1HGJchE2f6hiGcILnghtvE61pWlIbk+qty8bqXrVFRGgmcLiggtV
++1538772372 '[' -z QDJdrfWwohUa1HGJchE2f6hiGcILnghtvE61pWlIbk+qty8bqXrVFRGgmcLiggtV ']'
++1538772372 '[' -f /app/releases/2018.910.9051529/transport_api.boot ']'
++1538772372 BOOTFILE=transport_api
++1538772372 FOREGROUNDOPTIONS='-noshell -noinput +Bd'
++1538772372 PROGNAME=transport_api.sh
++1538772372 export PROGNAME
++1538772372 ARGS=
++1538772372 run_hooks pre_start
++1538772372 case $1 in
++1538772372 _run_hooks_from_dir /app/releases/2018.910.9051529/hooks/pre_start.d
++1538772372 '[' -d /app/releases/2018.910.9051529/hooks/pre_start.d ']'
++1538772372 for file in '$1/[0-9a-zA-Z._-]*'
++1538772372 '[' -f '/app/releases/2018.910.9051529/hooks/pre_start.d/[0-9a-zA-Z._-]*' ']'
++1538772372 continue
++1538772372 set -- -noshell -noinput +Bd -boot /app/releases/2018.910.9051529/transport_api -args_file /app/var/vm.args -mode embedded -extra
++1538772372 '[' '!' -z '' ']'
++1538772372 erlexec -noshell -noinput +Bd -boot /app/releases/2018.910.9051529/transport_api -args_file /app/var/vm.args -mode embedded -extra -- ''
++1538772372 post_start_fg
++1538772372 sleep 2
+++1538772372 whereis_erts_bin
+++1538772372 '[' -z 10.1 ']'
+++1538772372 '[' -z '' ']'
+++1538772372 __erts_dir=/app/erts-10.1
+++1538772372 '[' -d /app/erts-10.1 ']'
+++1538772372 echo /app/erts-10.1/bin
++1538772372 __erl=/app/erts-10.1/bin/erl
++1538772372 '[' -z /app/erts-10.1/bin/erl ']'
++1538772372 [[ /app/erts-10.1/bin/erl =~ ^/app ]]
++1538772372 exec /app/erts-10.1/bin/erlexec -boot_var ERTS_LIB_DIR /app/lib -config /app/var/sys.config -pa '' -noshell -noinput +Bd -boot /app/releases/2018.910.9051529/transport_api -args_file /app/var/vm.args -mode embedded -extra -- ''
++1538772374 run_hooks post_start
++1538772374 case $1 in
++1538772374 _run_hooks_from_dir /app/releases/2018.910.9051529/hooks/post_start.d
++1538772374 '[' -d /app/releases/2018.910.9051529/hooks/post_start.d ']'
++1538772374 for file in '$1/[0-9a-zA-Z._-]*'
++1538772374 '[' -f '/app/releases/2018.910.9051529/hooks/post_start.d/[0-9a-zA-Z._-]*' ']'
++1538772374 continue
2018-10-05 15:46:15.167390 Error in process ~p with exit value:~n~p~n
	<0.2345.0>
	{function_clause,[{filename,join,[[]],[{file,"filename.erl"},{line,432}]},{code_server,insert_dir,2,[{file,"code_server.erl"},{line,820}]},{code_server,init_namedb,2,[{file,"code_server.erl"},{line,797}]},{code_server,init_namedb,1,[{file,"code_server.erl"},{line,793}]},{code_server,init,3,[{file,"code_server.erl"},{line,96}]}]}


running start with the debug on I get:
DEBUG_BOOT=true ./transport_api.sh start
+1538773501 unset CDPATH
+1538773501 REL_NAME=transport_api
+1538773501 REL_VSN=2018.910.9051529
+1538773501 ERL_OPTS=
+1538773501 RUN_ERL_ENV=
+1538773501 ERTS_VSN=10.1
+1538773501 DISTILLERY_VSN=2.0.10
+1538773501 export REL_NAME
+1538773501 export REL_VSN
+1538773501 export ERL_OPTS
+1538773501 export RUN_ERL_ENV
+1538773501 export ERTS_VSN
+1538773501 export DISTILLERY_VSN
+1538773501 grep -q Darwin
+1538773501 uname
++1538773501 readlink -f ./transport_api.sh
+1538773501 SCRIPT=/app/releases/2018.910.9051529/transport_api.sh
+1538773501 export ESCRIPT_NAME
+1538773501 ESCRIPT_NAME=/app/releases/2018.910.9051529/transport_api.sh
++1538773501 dirname /app/releases/2018.910.9051529/transport_api.sh
+1538773501 SCRIPT_DIR=/app/releases/2018.910.9051529
+++1538773501 dirname /app/releases/2018.910.9051529
++1538773501 dirname /app/releases
+1538773501 RELEASE_ROOT_DIR=/app
+1538773501 REL_DIR=/app/releases/2018.910.9051529
+1538773501 RELEASE_LIBEXEC_DIR=/app/releases/2018.910.9051529/libexec
+1538773501 . /app/releases/2018.910.9051529/libexec/readlink.sh
++1538773501 set -e
++1538773501 '[' '!' -z true ']'
++1538773501 set +x
+1538773501 . /app/releases/2018.910.9051529/libexec/logger.sh
++1538773501 set -e
++1538773501 '[' '!' -z true ']'
++1538773501 set +x
+1538773501 . /app/releases/2018.910.9051529/libexec/erts.sh
++1538773501 set -e
++1538773501 code_paths=()
+++1538773501 erl -noshell -eval 'io:format("~s~n~s~n", [code:root_dir(), erlang:system_info(version)]).' -s erlang halt
++++1538773501 whereis_erts_bin
++++1538773501 '[' -z 10.1 ']'
++++1538773501 '[' -z '' ']'
++++1538773501 __erts_dir=/app/erts-10.1
++++1538773501 '[' -d /app/erts-10.1 ']'
++++1538773501 echo /app/erts-10.1/bin
+++1538773501 __bin=/app/erts-10.1/bin
+++1538773501 '[' -z /app/erts-10.1/bin ']'
+++1538773501 __erl=/app/erts-10.1/bin/erl
+++1538773501 __boot_provided=0
+++1538773501 echo -noshell -eval 'io:format("~s~n~s~n", [code:root_dir(), erlang:system_info(version)]).' -s erlang halt
+++1538773501 grep '\-boot '
+++1538773501 __erts_included=0
+++1538773501 [[ /app/erts-10.1/bin/erl =~ ^/app ]]
+++1538773501 __erts_included=1
+++1538773501 '[' 1 -eq 1 ']'
+++1538773501 '[' 0 -eq 1 ']'
+++1538773501 '[' 1 -eq 1 ']'
+++1538773501 /app/erts-10.1/bin/erl -boot_var ERTS_LIB_DIR /app/lib -boot /app/bin/start_clean -noshell -eval 'io:format("~s~n~s~n", [code:root_dir(), erlang:system_info(version)]).' -s erlang halt
++1538773501 __info='/app
10.1'
++1538773501 export ROOTDIR
+++1538773501 echo '/app
+++1538773501 head -n1
10.1'
++1538773501 ROOTDIR=/app
++1538773501 export ERTS_VSN
++1538773501 '[' -z 10.1 ']'
+++1538773501 echo '/app
10.1'
+++1538773501 tail -n1
++1538773501 ERTS_VSN=10.1
++1538773501 export ERTS_DIR
++1538773501 ERTS_DIR=/app/erts-10.1
++1538773501 export BINDIR
++1538773501 BINDIR=/app/erts-10.1/bin
++1538773501 export ERTS_LIB_DIR
+++1538773501 readlink_f /app/erts-10.1/../lib
+++1538773501 grep -q Darwin
+++1538773501 uname
+++1538773501 readlink -f /app/erts-10.1/../lib
++1538773501 ERTS_LIB_DIR=/app/lib
++1538773501 export EMU=beam
++1538773501 EMU=beam
++1538773501 export PROGNAME=erl
++1538773501 PROGNAME=erl
++1538773501 __set_code_paths
++1538773501 '[' 0 -eq 0 ']'
++1538773501 code_paths=()
+++1538773501 __rel_apps
+++1538773501 __releases=/app/releases/RELEASES
+++1538773501 __vsn=2018.910.9051529
++++1538773501 sed -E -n '/\{release,[^,]*,"2018.910.9051529"/,/[^po]*(permanent|old)}/p' /app/releases/RELEASES
+++1538773501 __rel='[{release,"transport_api","2018.910.9051529","10.1",
          [{poolboy,"1.5.1","./lib/poolboy-1.5.1"},
           {decimal,"1.5.0","./lib/decimal-1.5.0"},
           {ecto,"2.2.10","./lib/ecto-2.2.10"},
           {phoenix_ecto,"3.4.0","./lib/phoenix_ecto-3.4.0"},
           {kernel,"6.1","./lib/kernel-6.1"},
           {artificery,"0.2.6","./lib/artificery-0.2.6"},
           {distillery,"2.0.10","./lib/distillery-2.0.10"},
           {connection,"1.0.4","./lib/connection-1.0.4"},
           {db_connection,"1.1.3","./lib/db_connection-1.1.3"},
           {postgrex,"0.13.5","./lib/postgrex-0.13.5"},
           {phoenix_pubsub,"1.1.0","./lib/phoenix_pubsub-1.1.0"},
           {eex,"1.7.3","./lib/eex-1.7.3"},
           {poison,"3.1.0","./lib/poison-3.1.0"},
           {mime,"1.3.0","./lib/mime-1.3.0"},
           {logger,"1.7.3","./lib/logger-1.7.3"},
           {crypto,"4.3.3","./lib/crypto-4.3.3"},
           {plug,"1.6.3","./lib/plug-1.6.3"},
           {phoenix,"1.3.4","./lib/phoenix-1.3.4"},
           {runtime_tools,"1.13.1","./lib/runtime_tools-1.13.1"},
           {cowlib,"1.0.2","./lib/cowlib-1.0.2"},
           {stdlib,"3.6","./lib/stdlib-3.6"},
           {porcelain,"2.0.3","./lib/porcelain-2.0.3"},
           {pdf_generator,"0.4.0","./lib/pdf_generator-0.4.0"},
           {yamerl,"0.7.0","./lib/yamerl-0.7.0"},
           {ua_parser,"1.5.0","./lib/ua_parser-1.5.0"},
           {mnesia,"4.15.5","./lib/mnesia-4.15.5"},
           {httpoison,"1.3.1","./lib/httpoison-1.3.1"},
           {xmerl,"1.3.18","./lib/xmerl-1.3.18"},
           {sweet_xml,"0.6.5","./lib/sweet_xml-0.6.5"},
           {phoenix_html,"2.12.0","./lib/phoenix_html-2.12.0"},
           {certifi,"2.4.2","./lib/certifi-2.4.2"},
           {metrics,"1.0.1","./lib/metrics-1.0.1"},
           {ssl_verify_fun,"1.1.4","./lib/ssl_verify_fun-1.1.4"},
           {mimerl,"1.0.2","./lib/mimerl-1.0.2"},
           {unicode_util_compat,"0.4.1","./lib/unicode_util_compat-0.4.1"},
           {idna,"6.0.0","./lib/idna-6.0.0"},
           {hackney,"1.14.3","./lib/hackney-1.14.3"},
           {asn1,"5.0.7","./lib/asn1-5.0.7"},
           {public_key,"1.6.2","./lib/public_key-1.6.2"},
           {ssl,"9.0.2","./lib/ssl-9.0.2"},
           {ranch,"1.3.2","./lib/ranch-1.3.2"},
           {cowboy,"1.1.2","./lib/cowboy-1.1.2"},
           {parallel_stream,"1.0.6","./lib/parallel_stream-1.0.6"},
           {csv,"2.1.1","./lib/csv-2.1.1"},
           {combine,"0.10.0","./lib/combine-0.10.0"},
           {ex_aws,"2.1.0","./lib/ex_aws-2.1.0"},
           {compiler,"7.2.5","./lib/compiler-7.2.5"},
           {tzdata,"0.5.19","./lib/tzdata-0.5.19"},
           {gen_smtp,"0.12.0","./lib/gen_smtp-0.12.0"},
           {bamboo_smtp,"1.6.0","./lib/bamboo_smtp-1.6.0"},
           {timex_ecto,"3.3.0","./lib/timex_ecto-3.3.0"},
           {bamboo,"1.1.0","./lib/bamboo-1.1.0"},
           {base64url,"0.0.1","./lib/base64url-0.0.1"},
           {jose,"1.8.4","./lib/jose-1.8.4"},
           {guardian,"1.1.0","./lib/guardian-1.1.0"},
           {comeonin,"4.1.1","./lib/comeonin-4.1.1"},
           {sasl,"3.2.1","./lib/sasl-3.2.1"},
           {sentry,"7.0.1","./lib/sentry-7.0.1"},
           {cors_plug,"1.5.2","./lib/cors_plug-1.5.2"},
           {gettext,"0.16.0","./lib/gettext-0.16.0"},
           {eximap,"0.1.1-dev","./lib/eximap-0.1.1-dev"},
           {ex_aws_s3,"2.0.1","./lib/ex_aws_s3-2.0.1"},
           {bcrypt_elixir,"1.1.1","./lib/bcrypt_elixir-1.1.1"},
           {timex,"3.4.1","./lib/timex-3.4.1"},
           {transport_api,"2018.910.9051529",
                          "./lib/transport_api-2018.910.9051529"},
           {iex,"1.7.3","./lib/iex-1.7.3"},
           {mix,"1.7.3","./lib/mix-1.7.3"},
           {elixir,"1.7.3","./lib/elixir-1.7.3"}],
          permanent}].'
+++1538773501 grep -E '[{][A-Za-z_0-9]*,\"[0-9.]*[A-Za-z0-9.\_\+\-]*\"'
+++1538773501 sed '-es/"[^"]*$//' '-es/^[^a-z]*//' -es/,/-/ '-es/"//' '-es/","[^"]*$//'
+++1538773501 tail -n +2
+++1538773501 echo '[{release,"transport_api","2018.910.9051529","10.1",
          [{poolboy,"1.5.1","./lib/poolboy-1.5.1"},
           {decimal,"1.5.0","./lib/decimal-1.5.0"},
           {ecto,"2.2.10","./lib/ecto-2.2.10"},
           {phoenix_ecto,"3.4.0","./lib/phoenix_ecto-3.4.0"},
           {kernel,"6.1","./lib/kernel-6.1"},
           {artificery,"0.2.6","./lib/artificery-0.2.6"},
           {distillery,"2.0.10","./lib/distillery-2.0.10"},
           {connection,"1.0.4","./lib/connection-1.0.4"},
           {db_connection,"1.1.3","./lib/db_connection-1.1.3"},
           {postgrex,"0.13.5","./lib/postgrex-0.13.5"},
           {phoenix_pubsub,"1.1.0","./lib/phoenix_pubsub-1.1.0"},
           {eex,"1.7.3","./lib/eex-1.7.3"},
           {poison,"3.1.0","./lib/poison-3.1.0"},
           {mime,"1.3.0","./lib/mime-1.3.0"},
           {logger,"1.7.3","./lib/logger-1.7.3"},
           {crypto,"4.3.3","./lib/crypto-4.3.3"},
           {plug,"1.6.3","./lib/plug-1.6.3"},
           {phoenix,"1.3.4","./lib/phoenix-1.3.4"},
           {runtime_tools,"1.13.1","./lib/runtime_tools-1.13.1"},
           {cowlib,"1.0.2","./lib/cowlib-1.0.2"},
           {stdlib,"3.6","./lib/stdlib-3.6"},
           {porcelain,"2.0.3","./lib/porcelain-2.0.3"},
           {pdf_generator,"0.4.0","./lib/pdf_generator-0.4.0"},
           {yamerl,"0.7.0","./lib/yamerl-0.7.0"},
           {ua_parser,"1.5.0","./lib/ua_parser-1.5.0"},
           {mnesia,"4.15.5","./lib/mnesia-4.15.5"},
           {httpoison,"1.3.1","./lib/httpoison-1.3.1"},
           {xmerl,"1.3.18","./lib/xmerl-1.3.18"},
           {sweet_xml,"0.6.5","./lib/sweet_xml-0.6.5"},
           {phoenix_html,"2.12.0","./lib/phoenix_html-2.12.0"},
           {certifi,"2.4.2","./lib/certifi-2.4.2"},
           {metrics,"1.0.1","./lib/metrics-1.0.1"},
           {ssl_verify_fun,"1.1.4","./lib/ssl_verify_fun-1.1.4"},
           {mimerl,"1.0.2","./lib/mimerl-1.0.2"},
           {unicode_util_compat,"0.4.1","./lib/unicode_util_compat-0.4.1"},
           {idna,"6.0.0","./lib/idna-6.0.0"},
           {hackney,"1.14.3","./lib/hackney-1.14.3"},
           {asn1,"5.0.7","./lib/asn1-5.0.7"},
           {public_key,"1.6.2","./lib/public_key-1.6.2"},
           {ssl,"9.0.2","./lib/ssl-9.0.2"},
           {ranch,"1.3.2","./lib/ranch-1.3.2"},
           {cowboy,"1.1.2","./lib/cowboy-1.1.2"},
           {parallel_stream,"1.0.6","./lib/parallel_stream-1.0.6"},
           {csv,"2.1.1","./lib/csv-2.1.1"},
           {combine,"0.10.0","./lib/combine-0.10.0"},
           {ex_aws,"2.1.0","./lib/ex_aws-2.1.0"},
           {compiler,"7.2.5","./lib/compiler-7.2.5"},
           {tzdata,"0.5.19","./lib/tzdata-0.5.19"},
           {gen_smtp,"0.12.0","./lib/gen_smtp-0.12.0"},
           {bamboo_smtp,"1.6.0","./lib/bamboo_smtp-1.6.0"},
           {timex_ecto,"3.3.0","./lib/timex_ecto-3.3.0"},
           {bamboo,"1.1.0","./lib/bamboo-1.1.0"},
           {base64url,"0.0.1","./lib/base64url-0.0.1"},
           {jose,"1.8.4","./lib/jose-1.8.4"},
           {guardian,"1.1.0","./lib/guardian-1.1.0"},
           {comeonin,"4.1.1","./lib/comeonin-4.1.1"},
           {sasl,"3.2.1","./lib/sasl-3.2.1"},
           {sentry,"7.0.1","./lib/sentry-7.0.1"},
           {cors_plug,"1.5.2","./lib/cors_plug-1.5.2"},
           {gettext,"0.16.0","./lib/gettext-0.16.0"},
           {eximap,"0.1.1-dev","./lib/eximap-0.1.1-dev"},
           {ex_aws_s3,"2.0.1","./lib/ex_aws_s3-2.0.1"},
           {bcrypt_elixir,"1.1.1","./lib/bcrypt_elixir-1.1.1"},
           {timex,"3.4.1","./lib/timex-3.4.1"},
           {transport_api,"2018.910.9051529",
                          "./lib/transport_api-2018.910.9051529"},
           {iex,"1.7.3","./lib/iex-1.7.3"},
           {mix,"1.7.3","./lib/mix-1.7.3"},
           {elixir,"1.7.3","./lib/elixir-1.7.3"}],
          permanent}].'
++1538773501 apps='poolboy-1.5.1
decimal-1.5.0
ecto-2.2.10
phoenix_ecto-3.4.0
kernel-6.1
artificery-0.2.6
distillery-2.0.10
connection-1.0.4
db_connection-1.1.3
postgrex-0.13.5
phoenix_pubsub-1.1.0
eex-1.7.3
poison-3.1.0
mime-1.3.0
logger-1.7.3
crypto-4.3.3
plug-1.6.3
phoenix-1.3.4
runtime_tools-1.13.1
cowlib-1.0.2
stdlib-3.6
porcelain-2.0.3
pdf_generator-0.4.0
yamerl-0.7.0
ua_parser-1.5.0
mnesia-4.15.5
httpoison-1.3.1
xmerl-1.3.18
sweet_xml-0.6.5
phoenix_html-2.12.0
certifi-2.4.2
metrics-1.0.1
ssl_verify_fun-1.1.4
mimerl-1.0.2
unicode_util_compat-0.4.1
idna-6.0.0
hackney-1.14.3
asn1-5.0.7
public_key-1.6.2
ssl-9.0.2
ranch-1.3.2
cowboy-1.1.2
parallel_stream-1.0.6
csv-2.1.1
combine-0.10.0
ex_aws-2.1.0
compiler-7.2.5
tzdata-0.5.19
gen_smtp-0.12.0
bamboo_smtp-1.6.0
timex_ecto-3.3.0
bamboo-1.1.0
base64url-0.0.1
jose-1.8.4
guardian-1.1.0
comeonin-4.1.1
sasl-3.2.1
sentry-7.0.1
cors_plug-1.5.2
gettext-0.16.0
eximap-0.1.1-dev
ex_aws_s3-2.0.1
bcrypt_elixir-1.1.1
timex-3.4.1
transport_api-2018.910.9051529
iex-1.7.3
mix-1.7.3
elixir-1.7.3'
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/poolboy-1.5.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/decimal-1.5.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/ecto-2.2.10 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/phoenix_ecto-3.4.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/kernel-6.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/artificery-0.2.6 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/distillery-2.0.10 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/connection-1.0.4 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/db_connection-1.1.3 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/postgrex-0.13.5 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/phoenix_pubsub-1.1.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/eex-1.7.3 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/poison-3.1.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/mime-1.3.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/logger-1.7.3 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/crypto-4.3.3 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/plug-1.6.3 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/phoenix-1.3.4 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/runtime_tools-1.13.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/cowlib-1.0.2 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/stdlib-3.6 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/porcelain-2.0.3 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/pdf_generator-0.4.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/yamerl-0.7.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/ua_parser-1.5.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/mnesia-4.15.5 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/httpoison-1.3.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/xmerl-1.3.18 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/sweet_xml-0.6.5 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/phoenix_html-2.12.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/certifi-2.4.2 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/metrics-1.0.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/ssl_verify_fun-1.1.4 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/mimerl-1.0.2 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/unicode_util_compat-0.4.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/idna-6.0.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/hackney-1.14.3 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/asn1-5.0.7 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/public_key-1.6.2 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/ssl-9.0.2 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/ranch-1.3.2 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/cowboy-1.1.2 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/parallel_stream-1.0.6 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/csv-2.1.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/combine-0.10.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/ex_aws-2.1.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/compiler-7.2.5 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/tzdata-0.5.19 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/gen_smtp-0.12.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/bamboo_smtp-1.6.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/timex_ecto-3.3.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/bamboo-1.1.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/base64url-0.0.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/jose-1.8.4 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/guardian-1.1.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/comeonin-4.1.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/sasl-3.2.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/sentry-7.0.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/cors_plug-1.5.2 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/gettext-0.16.0 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/eximap-0.1.1-dev ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/ex_aws_s3-2.0.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/bcrypt_elixir-1.1.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/timex-3.4.1 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/transport_api-2018.910.9051529 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/iex-1.7.3 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/mix-1.7.3 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
++1538773501 for app in '$apps'
++1538773501 '[' -d /app/lib/elixir-1.7.3 ']'
++1538773501 code_paths+=(-pa "${ERTS_LIB_DIR}/$app/ebin")
+1538773501 . /app/releases/2018.910.9051529/libexec/helpers.sh
++1538773501 set -e
+1538773501 . /app/releases/2018.910.9051529/libexec/env.sh
++1538773501 set -e
++1538773501 RUN_ERL_DISABLE_FLOWCNTRL=true
++1538773501 CODE_LOADING_MODE=embedded
++1538773501 START_ERL_DATA=/app/releases/start_erl.data
++1538773501 export REL_DIR
++1538773501 REL_DIR=/app/releases/2018.910.9051529
++1538773501 REL_LIB_DIR=/app/lib
++1538773501 RELEASE_MUTABLE_DIR=/app/var
++1538773501 RUNNER_LOG_DIR=/app/var/log
++1538773501 EXTRA_OPTS=
++1538773501 PRE_CONFIGURE_HOOKS=/app/releases/2018.910.9051529/hooks/pre_configure.d
++1538773501 POST_CONFIGURE_HOOKS=/app/releases/2018.910.9051529/hooks/post_configure.d
++1538773501 PRE_START_HOOKS=/app/releases/2018.910.9051529/hooks/pre_start.d
++1538773501 POST_START_HOOKS=/app/releases/2018.910.9051529/hooks/post_start.d
++1538773501 PRE_STOP_HOOKS=/app/releases/2018.910.9051529/hooks/pre_stop.d
++1538773501 POST_STOP_HOOKS=/app/releases/2018.910.9051529/hooks/post_stop.d
++1538773501 PRE_UPGRADE_HOOKS=/app/releases/2018.910.9051529/hooks/pre_upgrade.d
++1538773501 POST_UPGRADE_HOOKS=/app/releases/2018.910.9051529/hooks/post_upgrade.d
++1538773501 export BINDIR=/app/erts-10.1/bin
++1538773501 BINDIR=/app/erts-10.1/bin
++1538773501 export LD_LIBRARY_PATH=/app/erts-10.1/lib:
++1538773501 LD_LIBRARY_PATH=/app/erts-10.1/lib:
++1538773501 export EMU=beam
++1538773501 EMU=beam
++1538773501 export PROGNAME=erl
++1538773501 PROGNAME=erl
++1538773501 export RELEASE_CONFIG_DIR=/app
++1538773501 RELEASE_CONFIG_DIR=/app
++1538773501 '[' -z '' ']'
++1538773501 '[' '!' -d /app/var ']'
++1538773501 '[' -z '' ']'
++1538773501 '[' '!' -d /app/var/log ']'
+1538773501 . /app/releases/2018.910.9051529/libexec/config.sh
++1538773501 set -e
+1538773501 cd /app
+1538773501 export DISTILLERY_TASK=start
+1538773501 DISTILLERY_TASK=start
+1538773501 COMMAND_DIR=/app/releases/2018.910.9051529/libexec/commands
+1538773501 COMMAND_NAME=start
+1538773501 COMMAND_PATH=/app/releases/2018.910.9051529/libexec/commands/start.sh
+1538773501 '[' 1 -ne 0 ']'
+1538773501 shift
+1538773501 case $COMMAND_NAME in
+1538773501 configure_release
+1538773501 '[' '!' -z '' ']'
+1538773501 export DISTILLERY_PRECONFIGURE=true
+1538773501 DISTILLERY_PRECONFIGURE=true
+1538773501 run_hooks pre_configure
+1538773501 case $1 in
+1538773501 _run_hooks_from_dir /app/releases/2018.910.9051529/hooks/pre_configure.d
+1538773501 '[' -d /app/releases/2018.910.9051529/hooks/pre_configure.d ']'
+1538773501 for file in '$1/[0-9a-zA-Z._-]*'
+1538773501 '[' -f '/app/releases/2018.910.9051529/hooks/pre_configure.d/[0-9a-zA-Z._-]*' ']'
+1538773501 continue
+1538773501 unset DISTILLERY_PRECONFIGURE
+1538773501 '[' -z '' ']'
+1538773501 '[' -f /app/vm.args ']'
+1538773501 export SRC_VMARGS_PATH=/app/releases/2018.910.9051529/vm.args
+1538773501 SRC_VMARGS_PATH=/app/releases/2018.910.9051529/vm.args
+1538773501 '[' /app/releases/2018.910.9051529/vm.args '!=' /app/var/vm.args ']'
+1538773501 '[' -z '' ']'
+1538773501 echo '#### Generated - edit/create /app/vm.args instead.'
+1538773501 cat /app/releases/2018.910.9051529/vm.args
+1538773501 export DEST_VMARGS_PATH=/app/var/vm.args
+1538773501 DEST_VMARGS_PATH=/app/var/vm.args
+1538773501 '[' -z '' ']'
+1538773501 '[' '!' -z true ']'
+1538773501 '[' '!' -z /app/var/vm.args ']'
+1538773501 _replace_os_vars /app/var/vm.args
+1538773501 cp -a /app/var/vm.args /app/var/vm.args.bak
+1538773501 awk '
        function escape(s) {
            gsub(/&/, "\\\\&", s);
            return s;
        }
        {
            while(match($0,"[$]{[^}]*}")) {
                var=substr($0,RSTART+2,RLENGTH-3);
                gsub("[$]{"var"}", escape(ENVIRON[var]))
            }
        }1'
+1538773501 mv -- /app/var/vm.args.bak /app/var/vm.args
+1538773501 export VMARGS_PATH=/app/var/vm.args
+1538773501 VMARGS_PATH=/app/var/vm.args
+1538773501 '[' -z '' ']'
+1538773501 '[' -f /app/sys.config ']'
+1538773501 export SRC_SYS_CONFIG_PATH=/app/releases/2018.910.9051529/sys.config
+1538773501 SRC_SYS_CONFIG_PATH=/app/releases/2018.910.9051529/sys.config
+1538773501 '[' /app/releases/2018.910.9051529/sys.config '!=' /app/var/sys.config ']'
+1538773501 '[' -z '' ']'
+1538773501 echo '%% Generated - edit/create /app/sys.config instead.'
+1538773501 cat /app/releases/2018.910.9051529/sys.config
+1538773501 export DEST_SYS_CONFIG_PATH=/app/var/sys.config
+1538773501 DEST_SYS_CONFIG_PATH=/app/var/sys.config
+1538773501 '[' -z '' ']'
+1538773501 '[' '!' -z true ']'
+1538773501 '[' '!' -z /app/var/sys.config ']'
+1538773501 _replace_os_vars /app/var/sys.config
+1538773501 cp -a /app/var/sys.config /app/var/sys.config.bak
+1538773501 awk '
        function escape(s) {
            gsub(/&/, "\\\\&", s);
            return s;
        }
        {
            while(match($0,"[$]{[^}]*}")) {
                var=substr($0,RSTART+2,RLENGTH-3);
                gsub("[$]{"var"}", escape(ENVIRON[var]))
            }
        }1'
+1538773501 mv -- /app/var/sys.config.bak /app/var/sys.config
+1538773501 export SYS_CONFIG_PATH=/app/var/sys.config
+1538773501 SYS_CONFIG_PATH=/app/var/sys.config
+1538773501 '[' -z '' ']'
+1538773501 '[' -z true ']'
+1538773501 erl -noshell -config /app/var/sys.config -boot /app/releases/2018.910.9051529/config -s erlang halt
++1538773501 whereis_erts_bin
++1538773501 '[' -z 10.1 ']'
++1538773501 '[' -z '' ']'
++1538773501 __erts_dir=/app/erts-10.1
++1538773501 '[' -d /app/erts-10.1 ']'
++1538773501 echo /app/erts-10.1/bin
+1538773501 __bin=/app/erts-10.1/bin
+1538773501 '[' -z /app/erts-10.1/bin ']'
+1538773501 __erl=/app/erts-10.1/bin/erl
+1538773501 __boot_provided=0
+1538773501 grep '\-boot '
+1538773501 echo -noshell -config /app/var/sys.config -boot /app/releases/2018.910.9051529/config -s erlang halt
+1538773501 __boot_provided=1
+1538773501 __erts_included=0
+1538773501 [[ /app/erts-10.1/bin/erl =~ ^/app ]]
+1538773501 __erts_included=1
+1538773501 '[' 1 -eq 1 ']'
+1538773501 '[' 1 -eq 1 ']'
+1538773501 /app/erts-10.1/bin/erl -boot_var ERTS_LIB_DIR /app/lib -config /app/var/sys.config -pa '' -noshell -config /app/var/sys.config -boot /app/releases/2018.910.9051529/config -s erlang halt
+1538773501 export DISTILLERY_PRECONFIGURE=true
+1538773501 DISTILLERY_PRECONFIGURE=true
+1538773501 run_hooks post_configure
+1538773501 case $1 in
+1538773501 _run_hooks_from_dir /app/releases/2018.910.9051529/hooks/post_configure.d
+1538773501 '[' -d /app/releases/2018.910.9051529/hooks/post_configure.d ']'
+1538773501 for file in '$1/[0-9a-zA-Z._-]*'
+1538773501 '[' -f '/app/releases/2018.910.9051529/hooks/post_configure.d/[0-9a-zA-Z._-]*' ']'
+1538773501 continue
+1538773501 unset DISTILLERY_PRECONFIGURE
+1538773501 _configure_node
+1538773501 export NAME_ARG
++1538773501 grep '^\-\(sn\|n\)ame' /app/var/vm.args
+1538773501 NAME_ARG='-name transport_api@127.0.0.1'
+1538773501 '[' -z '-name transport_api@127.0.0.1' ']'
+1538773501 export NAME_TYPE
++1538773501 echo '-name transport_api@127.0.0.1'
++1538773501 awk '{print $1}'
++1538773501 tail -n 1
+1538773501 NAME_TYPE=-name
+1538773501 export NAME
++1538773501 echo '-name transport_api@127.0.0.1'
++1538773501 tail -n 1
++1538773501 awk '{print $2}'
+1538773501 NAME=transport_api@127.0.0.1
+1538773501 case $NAME in
+1538773501 '[' -name = -name ']'
+1538773501 [[ ! transport_api@127.0.0.1 =~ ^[^@]+@[^\.]+\..*$ ]]
+1538773501 return 0
+1538773501 . /app/releases/2018.910.9051529/libexec/commands/start.sh start
++1538773501 set -e
++1538773501 '[' '!' -z '' ']'
++1538773501 require_cookie
++1538773501 _load_cookie
++1538773501 '[' '!' -z '' ']'
+++1538773501 grep '^-setcookie' /app/var/vm.args
++1538773501 COOKIE_ARG='-setcookie QDJdrfWwohUa1HGJchE2f6hiGcILnghtvE61pWlIbk+qty8bqXrVFRGgmcLiggtV'
++1538773501 DEFAULT_COOKIE_FILE=/root/.erlang.cookie
++1538773501 '[' '!' -z '-setcookie QDJdrfWwohUa1HGJchE2f6hiGcILnghtvE61pWlIbk+qty8bqXrVFRGgmcLiggtV' ']'
+++1538773501 echo '-setcookie QDJdrfWwohUa1HGJchE2f6hiGcILnghtvE61pWlIbk+qty8bqXrVFRGgmcLiggtV'
+++1538773501 awk '{ print $2 }'
++1538773501 COOKIE=QDJdrfWwohUa1HGJchE2f6hiGcILnghtvE61pWlIbk+qty8bqXrVFRGgmcLiggtV
++1538773501 '[' -z QDJdrfWwohUa1HGJchE2f6hiGcILnghtvE61pWlIbk+qty8bqXrVFRGgmcLiggtV ']'
++1538773501 CMD=start
++1538773501 case "$1" in
++1538773501 shift
++1538773501 START_OPTION=console
++1538773501 HEART_OPTION=start
++1538773501 ARGS=
++1538773501 RUN_PARAM=
++1538773501 run_hooks pre_start
++1538773501 case $1 in
++1538773501 _run_hooks_from_dir /app/releases/2018.910.9051529/hooks/pre_start.d
++1538773501 '[' -d /app/releases/2018.910.9051529/hooks/pre_start.d ']'
++1538773501 for file in '$1/[0-9a-zA-Z._-]*'
++1538773501 '[' -f '/app/releases/2018.910.9051529/hooks/pre_start.d/[0-9a-zA-Z._-]*' ']'
++1538773501 continue
++1538773501 set -- /app/releases/2018.910.9051529/transport_api start
++1538773501 '[' '' ']'
++1538773501 HEART_COMMAND='/app/bin/transport_api start'
++1538773501 export HEART_COMMAND
++1538773501 PIPE_DIR=/app/var/erl_pipes/transport_api@127.0.0.1/
++1538773501 mkdir -p /app/var/erl_pipes/transport_api@127.0.0.1/
+++1538773501 _start_command
+++1538773501 printf 'exec "%s" "%s" -- %s %s' /app/bin/transport_api console '' ''
++1538773501 env /app/erts-10.1/bin/run_erl -daemon /app/var/erl_pipes/transport_api@127.0.0.1/ /app/var/log 'exec "/app/bin/transport_api" "console" --  '
++1538773501 run_hooks post_start
++1538773501 case $1 in
++1538773501 _run_hooks_from_dir /app/releases/2018.910.9051529/hooks/post_start.d
++1538773501 '[' -d /app/releases/2018.910.9051529/hooks/post_start.d ']'
++1538773501 for file in '$1/[0-9a-zA-Z._-]*'
++1538773501 '[' -f '/app/releases/2018.910.9051529/hooks/post_start.d/[0-9a-zA-Z._-]*' ']'
++1538773501 continue



release config:
use Mix.Releases.Config,
    # This sets the default release built by `mix release`
    default_release: :default,
    # This sets the default environment used by `mix release`
    default_environment: :dev

# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/configuration.html


# You may define one or more environments in this file,
# an environment's settings will override those of a release
# when building in that environment, this combination of release
# and environment configuration is called a profile

environment :dev do
  set dev_mode: true
  set include_erts: false
  set cookie: :"6@3K|{6}r..snip.. (2,vQdc9vY"
end

environment :test do
  set include_erts: true
  set include_src: false
  set cookie: :"S@<d}u,ykLa{Rv ..snip.. Jm4r@}06S5utntD5g"
end

environment :localtest do
  set include_erts: true
  set include_src: false
  set cookie: :"S@<d}u,ykLa{Rv4CvG{@+f>y:<UN3mtna7UXXep!RESuW]mJm4r@}06S5utntD5g"
end

environment :usertest do
  set include_erts: true
  # set include_system_libs: false
  set include_src: false
  set cookie: :"QDJdrfWw ..snip.. GgmcLiggtV"
end


environment :prod do
  set include_erts: true
  # set include_system_libs: false
  set include_src: false
  set cookie: :"064pnzV5sEypTpx3D  ..snip.. p/5SIY9Gfd4+43v "
end

# You may define one or more releases in this file.
# If you have not set a default release, or selected one
# when running `mix release`, the first release in the file
# will be used by default

release :transport_api do
  set version: current_version(:transport_api)
  set commands: [
    "migrate": "rel/commands/migrate.sh",
    "echo": "rel/commands/echo.sh"
  ]
end




cat sys.config
[{distillery,[{config_providers,[]}]},
 {sasl,[{errlog_type,error},{sasl_error_logger,false}]},
 {porcelain,[{driver,'Elixir.Porcelain.Driver.Basic'}]},
 {sentry,
     [{dsn,<<"https://a93f..snip..31a1@sentry.io/12..snip..8">>},
      {environment_name,usertest},
      {enable_source_code_context,true},
      {root_source_code_path,
          <<"/home/gitlab-runner/builds/..snip../TransportApi-V2">>},
      {json_library,'Elixir.Poison'},
      {included_environments,[prod,usertest]}]},
 {eximap,
     [{account,<<>>},
      {password,<<>>},
      {use_ssl,<<>>},
      {incoming_mail_server,<<>>},
      {incoming_port,<<>>}]},
 {logger,
     [{console,
          [{format,<<"$time $metadata[$level] $message\n">>},
           {metadata,[request_id]}]},
      {level,warn},
      {path,<<"log/error.log">>}]},
 {ex_aws,
     [{debug_requests,true},
      {access_key_id,[{system,<<"AWS_ACCESS_KEY_ID">>},instance_role]},
      {secret_access_key,[{system,<<"AWS_SECRET_ACCESS_KEY">>},instance_role]},
      {region,<<"${AWS_REGION}">>}]},
 {cors_plug,
     [{origin,
          [<<"http://localhost:4444">>,<<"http://localhost:8080">>,
           <<"https://xx.xx.ic:yyyy">>]}]},
 {transport_api,
     [{ecto_repos,['Elixir.TransportApi.Repo']},
      {env,usertest},
      {'Elixir.TransportApi.Mailer',
          [{adapter,'Elixir.Bamboo.SMTPAdapter'},
           {server,<<"xxxx">>},
           {hostname,<<"xxxx">>},
           {port,465},
           {tls,if_available},
           {allowed_tls_versions,[tlsv1,'tlsv1.1','tlsv1.2']},
           {ssl,true},
           {retries,1}]},
      {'Elixir.TransportApiWeb.Endpoint',
          [{render_errors,
               [{view,'Elixir.TransportApiWeb.ErrorView'},
                {accepts,[<<"html">>,<<"json">>]}]},
           {pubsub,
               [{name,'Elixir.TransportApi.PubSub'},
                {adapter,'Elixir.Phoenix.PubSub.PG2'}]},
           {secret_key_base,
               <<"tfy7SIvPszqeif19z..snip..LKQ7WPbN/LkAO">>},
           {url,[{host,<<"mack.transporttech.io">>}]},
           {http,[{port,4001}]},
           {server,true},
           {debug_errors,false},
           {https,
               [{port,443},
                {otp_app,transport_api},
                {keyfile,<<"priv/keys/usertest/private.key">>},
                {certfile,<<"priv/keys/usertest/certificate.crt">>},
                {cacertfile,<<"priv/keys/usertest/ca_bundle.crt">>}]}]},
      {'Elixir.TransportApi.Password',[{'TT',<<"${TT_PWD_USERTEST}">>}]},
      {'Elixir.TransportApi.Repo',
          [{adapter,'Elixir.Ecto.Adapters.Postgres'},
           {port,<<"5433">>},
           {username,<<"${DB_USER_USERTEST}">>},
           {password,<<"${DB_PASSWORD_USERTEST}">>},
           {database,<<"${DB_NAME_USERTEST}">>},
           {hostname,<<"${DB_HOST_USERTEST}">>},
           {pool_size,20},
           {timeout,600000},
           {pool_timeout,600000}]},
      {'Elixir.TransportApi.AppRoot',
          [{'URL',<<"https://xx.yy.com:4401/app">>}]},
      {'Elixir.TransportApi.Guardian',
          [{allowed_algos,[<<"HS512">>]},
           {verify_module,'Elixir.TransportApi.Guardian.JWT'},
           {issuer,<<"TransportApi">>},
           {verify_issuer,true},
           {permissions,
               #{default => [xx,yy],
                 profile => [f,m,s]}},
           {ttl,{12,hours}},
           {allowed_drift,2000},
           {secret_key,
               <<"py9hZDhemf..snip..FZautfvm1GJT">>}]},
      {'Elixir.TransportApi.abces',[{freq,60000}]},
      {'Elixir.TransportApi.defs',[{freq,60010}]},
      {'Elixir.TransportApi.ghives',[{freq,60020}]},
      {'Elixir.TransportApi.jkl',[{freq,60030}]},
      {'Elixir.TransportApi.mno',[{freq,60040}]},
      {'Elixir.TransportApi.pqr',[{freq,60050}]},
      {'Elixir.TransportApi.stu',[{freq,60060}]},
      {'Elixir.TransportApi.vwx',[{freq,1200070}]},
      {'Elixir.TransportApi.yza,[{freq,1200070}]},
      {'Elixir.TransportApi.bcd',[{freq,600700},{run,true}]},
      {'Elixir.TransportApi.efg',
          [{freq,600800},{run,true}]},
      {'Elixir.TransportApi.hij',
          [{freq,1800900},{run,true}]},
      {'Elixir.TransportApi.klm',[{freq,901000},{run,true}]}]}].


cat vm.args
## Name of the node
-name transport_api@127.0.0.1

## Cookie for distributed erlang
-setcookie asf..snip.. +qty8bqXrVFRGgmcLiggtV

## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
## (Disabled by default..use with caution!)
##-heart

## Enable kernel poll and a few async threads
##+K true
##+A 5

## Increase number of concurrent ports/sockets
##-env ERL_MAX_PORTS 4096

## Tweak GC to run more often
##-env ERL_FULLSWEEP_AFTER 10

# Enable SMP automatically based on availability
-smp auto


deploys in a container - running same rev of centOS7, built from scratch, starts in container using foreground option, but app does not come up, no errors in the log file.

can run app using 'start' option - and it runs fine, but can't do that in the container in a release function.

All of this build process was working under Distillery 1.5.5, just upgraded to 2.0.10 and worked through upgrade changes

Description of issue

  • What are the expected results?
    App runs using the foreground command.

  • What version of Distillery?
    2.0.10

  • What OS, Erlang/Elixir versions are you seeing this issue on?
    CentOS7, Elixir 1.7.3, Erlang 21 / 10.1

  • If possible, also provide your rel/config.exs, as it is often
    my first troubleshooting question, and you'll save us both time :)

see details in logs at bottom

  • Is there documentation that says one thing, but Distillery does
    another? If so, please link the doc here so it can be updated if
    it's a documentation issue, or so that the fix can be based around
    what's documented.
    Unknown.

  • If this is a runtime configuration issue, please also provide your config file
    (with any sensitive information stripped of course). This is almost
    always necessary to understand why some configuration may not be working.

see details in logs at bottom

If you do not provide the above information and I need it to help troubleshoot, it may delay things significantly,
as I will have to ask you for all of these things anyway. Help me help you!

@bitwalker
Copy link
Owner

Seems like the problem is that CONSOLIDATED_DIR is not set, I'll take a look, in the meantime as a workaround you can export that var manually, it should point into <deploy root>/lib/<relname>-<relvsn>/consolidated

@bitwalker bitwalker added bug:has-workaround A bug or issue which has a workaround until a proper fix can be applied deployment:scripts Anything to do with the management scripts labels Oct 5, 2018
@bitwalker
Copy link
Owner

I can't seem to determine why that wouldn't be set, it is in my environment, and should be according to how bash works. Can you tell me what version of bash you are running? I'll see if I can reproduce with CentOS7 in the meantime

@bitwalker bitwalker added investigating:can't reproduce Need help building a reproduction case for this issue so that it can be fixed and removed bug:has-workaround A bug or issue which has a workaround until a proper fix can be applied labels Oct 5, 2018
@bitwalker
Copy link
Owner

So I created a CentOS7 environment, and cloned my example project, but am not able to reproduce the missing CONSOLIDATED_DIR issue. Can you confirm the specific version of CentOS 7 and bash you are using? It's possible it is a specific version combination that is affected.

@xpdf
Copy link
Author

xpdf commented Oct 6, 2018

Thank you for the very prompt response on this matter.

Confirmed; setting the environment var CONSOLIDATED_DIR as described allows the foreground and console to run with no error.

further info was interesting as my build platform is <> the container versions:

[dh@mack ~]$ bash --version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

[dh@mack ~]$ rpm --query centos-release
centos-release-7-5.1804.4.el7.centos.x86_64

[dh@mack ~]$ docker exec -i -t a85eeec46371 /bin/bash
[root@a85eeec46371 2018.910.9051529]# rpm --query centos-release
centos-release-7-3.1611.el7.centos.x86_64

[root@a85eeec46371 2018.910.9051529]# bash --version
GNU bash, version 4.2.46(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Monday, I will bring the container up to the build version of Cent and bash and provide and update on the result of that.

Thanks again.

@raarts
Copy link

raarts commented Oct 8, 2018

Experiencing exactly the same problem when building a container from alpine 3.6. Setting the CONSOLIDATED_DIR variable fixes it. (bash 4.3.48-r1)

@xpdf
Copy link
Author

xpdf commented Oct 8, 2018

I have both build and release platforms on centos-release-7-5.1804.4.el7.centos.x86_64 / bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu); I still have the same problem; what centOS7 version was used in your test?

@raarts
Copy link

raarts commented Oct 8, 2018

It wasn’t CentOS, but Linux Alpine.

@bitwalker
Copy link
Owner

I've made a few changes to master, one of which probably will fix this issue, but I'd like you to confirm for me if you can. I've moved some exports out of the exec shim and into the main release script, so if CONSOLIDATED_DIR isn't set, nothing is.

@xpdf
Copy link
Author

xpdf commented Jan 21, 2019

On Friday I pulled from your master at ref: "5add0c92fa620e874be957acd6c7a31671e6da41", took out my added env setting for CONSOLIDATED_DIR in my build and built in my CI pipline. Odd things happened - my custom commands did not work - so migrations did not run, and my build would not deploy as a result, so I could not determine if your fix for the original issue is good.

Over the weekend I was able to recreate this by hand on my build server and when I run the custom command "echo" nothing happens, same as migrate. "help" works - and returns that usage info. I found that if i ran foreground, and then killed it, echo and migrations would now work. This makes absolutely no sense to me.

I can't get a valid release on OSX using this ref in master, when I try to start it with any option I get _build/dev/rel/transport_api/releases/0.0.1/libexec/erts.sh: line 306: : No such file or directory.

I am going to work backwards on commits to see where it broke for me after 2.0.12, and will send that info along as well.

@xpdf
Copy link
Author

xpdf commented Jan 21, 2019

This issue is resolved, I need to make changes in my CI to account for not being able to do migrations the way I was with a custom command after the change "Do not load configs for secondary commands"

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment:scripts Anything to do with the management scripts investigating:can't reproduce Need help building a reproduction case for this issue so that it can be fixed
Projects
None yet
Development

No branches or pull requests

3 participants