Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Docker instance crashes trying to create directory in incorrect spot #435

@zipiju

Description

@zipiju

Trying to run Core in a container.
After the start, the :latest (20.2.1) instance stops with the following in the logs, where /bin/bash isn't a directory:

Usage: station.js [options]

Options:
  -j, --json          Output JSON                                      [boolean]
      --experimental  Also run experimental modules                    [boolean]
  -v, --version       Show version number                              [boolean]
  -h, --help          Show help                                        [boolean]

[Error: ENOTDIR: not a directory, mkdir '/bin/bash/.local/state/filecoin-station-core/secrets'] {
  errno: -20,
  code: 'ENOTDIR',
  syscall: 'mkdir',
  path: '/bin/bash/.local/state/filecoin-station-core/secrets'
}

When I pull 20.1.8 and cut Internet access, the instance runs.
As soon as access is enabled, it again stops with the following, most likely after pulling an update:

Usage: station.js [options]

Options:
  -j, --json          Output JSON                                      [boolean]
      --experimental  Also run experimental modules                    [boolean]
  -v, --version       Show version number                              [boolean]
  -h, --help          Show help                                        [boolean]

[Error: ENOTDIR: not a directory, mkdir '/bin/bash/.cache/filecoin-station-core/modules/zinnia'] {
  errno: -20,
  code: 'ENOTDIR',
  syscall: 'mkdir',
  path: '/bin/bash/.cache/filecoin-station-core/modules/zinnia'
}
root@frankfurt:/usr/src/app# ls -lah /bin/bash
-rwxr-xr-x 1 root root 1.3M Apr 23  2023 /bin/bash

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions