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

[ctl-commands] Call reindex escript with absolute path #1272

Merged
merged 1 commit into from
May 15, 2017

Conversation

stevendanna
Copy link
Contributor

In 636b10d the configuration for the
various erlang applications were changed to use {include_erts, false} as a release build option. It appears that a side effect of
that change is that the start_clean.boot file in

/opt/opscode/embedded/service/opscode-erchef/bin

no longer points at the correct ERTS installation. Since that boot
file is used automatically by erl when starting the command from that
directory, the reindex command was failing to launch.

This change avoid the problem by calling the reindex script with an
absolute path. Alternatives would include reverting the include_erts
change or determining how to configure rebar/relx such that the
produced start_clean.boot file is correct.

Signed-off-by: Steven Danna steve@chef.io

In 636b10d the configuration for the
various erlang applications were changed to use `{include_erts,
false}` as a release build option. It appears that a side effect of
that change is that the start_clean.boot file in

/opt/opscode/embedded/service/opscode-erchef/bin

no longer points at the correct ERTS installation.  Since that boot
file is used automatically by erl when starting the command from that
directory, the reindex command was failing to launch.

This change avoid the problem by calling the reindex script with an
absolute path. Alternatives would include reverting the include_erts
change or determining how to configure rebar/relx such that the
produced start_clean.boot file is correct.

Signed-off-by: Steven Danna <steve@chef.io>
@stevendanna stevendanna merged commit e71f0f6 into master May 15, 2017
@stevendanna stevendanna deleted the ssd/reindex-command-regress branch May 15, 2017 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants