Skip to content

RustFS Startup Failed: TLS Certificate Directory Not Found #3053

@bin-ran

Description

@bin-ran

Describe the bug

TLS cannot be initialized when RUSTFS_TLS_PATH is configured.

Using the same TLS certificate directory and the same startup configuration:

  • 1.0.0-beta.2 works as expected
  • 1.0.0-beta.3 fails
  • 1.0.0-beta.4 fails

To Reproduce

  1. Prepare a TLS certificate directory.
  2. Set RUSTFS_TLS_PATH to that directory, for example /path/to/certs/.
  3. Start RustFS.
  4. Observe that TLS initialization fails on 1.0.0-beta.3 and 1.0.0-beta.4.

Sanitized log:

[FATAL] Server encountered an error and is shutting down:
TLS is explicitly configured via RUSTFS_TLS_PATH/tls_path='/path/to/certs/'
but TLS acceptor initialization failed:
TLS material I/O error: failed to discover TLS certificates under '/path/to/certs/':
The certificate directory does not exist or is not a directory: /path/to/certs/

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Image Image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

S-confirmingStatus: Awaiting confirmation for a resolved issuequestionFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions