[erlang-questions] erlexec permissions denied error on start after building release

Wes James comptekki@REDACTED
Sun Jul 1 00:49:24 CEST 2018


I downloaded relx and built it and put it in to my project and then built
my project.  The folders look like this:

$ ls -al /usr/local/lib/erlang/erts-10.0.1/bin
total 20204
drwxr-xr-x. 2 root root     4096 Jun 29 14:55 .
drwxr-xr-x. 8 root root       70 Jun 29 14:55 ..
-rwxr-xr-x. 1 root root 19177216 Jun 29 14:55 beam.smp
-rwxr-xr-x. 1 root root   126704 Jun 29 14:55 ct_run
-rwxr-xr-x. 1 root root   124296 Jun 29 14:55 dialyzer
-rwxr-xr-x. 1 root root    30008 Jun 29 14:55 dyn_erl
-rwxr-xr-x. 1 root root   214632 Jun 29 14:55 epmd
-rwxr-xr-x. 1 root root      857 Jun 29 14:55 erl
-rwxr-xr-x. 1 root root   124088 Jun 29 14:55 erlc
-rwxr-xr-x. 1 root root    60864 Jun 29 14:55 erl_child_setup
-rwxr-xr-x. 1 root root   203776 Jun 29 14:55 erlexec
-rwxr-xr-x. 1 root root      851 Jun 29 14:55 erl.src
-rwxr-xr-x. 1 root root   127648 Jun 29 14:55 escript
-rwxr-xr-x. 1 root root    31824 Jun 29 14:55 heart
-rwxr-xr-x. 1 root root   181304 Jun 29 14:55 inet_gethost
-rwxr-xr-x. 1 root root    78160 Jun 29 14:55 run_erl
-rwxr-xr-x. 1 root root     1154 Jun 29 14:55 start
-rwxr-xr-x. 1 root root     1244 Jun 29 14:55 start_erl.src
-rwxr-xr-x. 1 root root     1148 Jun 29 14:55 start.src
-rwxr-xr-x. 1 root root    37216 Jun 29 14:55 to_erl
-rwxr-xr-x. 1 root root   118232 Jun 29 14:55 typer

After building with relx:

ls -al _rel/project/erts-10.0.1/bin/
total 20228
drwxrwxr-x. 2 user user     4096 Jun 30 16:39 .
drwxrwxr-x. 8 user user       70 Jun 30 16:39 ..
-rw-rw-r--. 1 user user 19177216 Jun 30 16:39 beam.smp
-rw-rw-r--. 1 user user   126704 Jun 30 16:39 ct_run
-rw-rw-r--. 1 user user   124296 Jun 30 16:39 dialyzer
-rw-rw-r--. 1 user user    30008 Jun 30 16:39 dyn_erl
-rw-rw-r--. 1 user user   214632 Jun 30 16:39 epmd
-rwxr-xr-x. 1 user user      248 Jun 30 16:39 erl
-rw-rw-r--. 1 user user   124088 Jun 30 16:39 erlc
-rw-rw-r--. 1 user user    60864 Jun 30 16:39 erl_child_setup
-rw-rw-r--. 1 user user   203776 Jun 30 16:39 erlexec
-rw-rw-r--. 1 user user      851 Jun 30 16:39 erl.src
-rw-rw-r--. 1 user user   127648 Jun 30 16:39 escript
-rw-rw-r--. 1 user user    31824 Jun 30 16:39 heart
-rw-rw-r--. 1 user user   181304 Jun 30 16:39 inet_gethost
-rwxr-xr-x. 1 user user    14037 Jun 30 16:39 install_upgrade.escript
-rwxr-xr-x. 1 user user     6080 Jun 30 16:39 nodetool
-rw-rw-r--. 1 user user    78160 Jun 30 16:39 run_erl
-rw-rw-r--. 1 user user     1154 Jun 30 16:39 start
-rw-rw-r--. 1 user user     1244 Jun 30 16:39 start_erl.src
-rw-rw-r--. 1 user user     1148 Jun 30 16:39 start.src
-rw-rw-r--. 1 user user    37216 Jun 30 16:39 to_erl
-rw-rw-r--. 1 user user   118232 Jun 30 16:39 typer

Only three of the copied files have x attribute.

-wes

On Sat, Jun 30, 2018 at 4:31 PM, Tristan Sloughter <t@REDACTED> wrote:

> relx and rebar3 are separate tools, but rebar3 includes relx for building
> releases. rebar3 builds applications, runs tests and handles dependencies,
> relx only does release creation.
>
> So if you download rebar3 you are getting relx but not the other way
> around, so if you are using erlang.mk you are only using relx.
>
> Tristan
>
> On Sat, Jun 30, 2018, at 4:27 PM, Wes James wrote:
>
> I thought relx was just another name for rebar.  I'm using erlang.mk and
> it has relx in the script.
>
> I'm seeing these 2:
>
> https://github.com/erlang/rebar3
>
> https://github.com/erlware/relx
>
> On Sat, Jun 30, 2018 at 4:20 PM, Wes James <comptekki@REDACTED> wrote:
>
> I have 3.26.0.
>
> On Sat, Jun 30, 2018 at 4:16 PM, Wes James <comptekki@REDACTED> wrote:
>
> OK.  I thought I got the latest yesterday.  I'll check again.
>
> On Sat, Jun 30, 2018 at 4:14 PM, Tristan Sloughter <t@REDACTED>
> wrote:
>
>
> This is with rebar3 3.6.1? Why is it under `_rel`? Did you set a different
> output directory or are you using relx directly? In which case make sure
> you have version 3.26.0.
>
> Tristan
>
> On Sat, Jun 30, 2018, at 4:05 PM, Wes James wrote:
>
> I upgraded to erlang 21.0.1 and upgraded rebar3 to the latest and built my
> project, but when I ran it I got an erlexec permissions denied error.  I
> noticed that most of the files in _rel/project_name/erts-10.0.1/bin were
> set only rw not rwx.  Is this a bug or do I need to change a setting
> somewhere?
>
> This is when I run:  _rel/bin/project_name console
>
> Thanks,
>
> -wes
> *_______________________________________________*
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180630/ff65ca4a/attachment.htm>


More information about the erlang-questions mailing list