Skip to content

Embedded system start script fails #10341

@vances

Description

@vances

Describe the bug
The start script fails to start an embedded system.

To Reproduce

$ kubectl run -t -i erlang --image=erlang -- bash
root@erlang:/# /usr/local/lib/erlang/bin/start
root@erlang:/# run_erl[14]: errno=2 'No such file or directory'
Can't access log directory '/usr/local/lib/erlang/log'

Expected behavior
The provided start script should be a working example of starting an embedded system.

Affected versions
All? Tested with erlang:latest (28.1.0.0) and erlang:24.

Additional context
The first problem above is that an installation does not create the $ROOTDIR/log directory.
An additional problem is that even if that directory did exist it may not be writable and would not be an expected location for log files.
A solution may be to replace $ROOTDIR/log with /var/log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue is reported as a bugteam:VMAssigned to OTP team VM

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions