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

Unable to get mcConfigDir. #12641

Closed
fhemberger opened this issue Jul 8, 2021 · 2 comments
Closed

Unable to get mcConfigDir. #12641

fhemberger opened this issue Jul 8, 2021 · 2 comments

Comments

@fhemberger
Copy link

@fhemberger fhemberger commented Jul 8, 2021

Using RELEASE.2021-07-08T01-15-01Z (linux-arm), I get the following startup error:

minio: <ERROR> Unable to get mcConfigDir. exec: "getent": executable file not found in $PATH.

So far I was only running minio on the host, but this message comes from the mc client, so I tried installing it as well (without any effect). But I'm not sure why the server component would pull that in at all.

RELEASE.2021-06-17T00-10-46Z works for me.

minio Version

RELEASE.2021-07-08T01-15-01Z

Host

Synology Diskstation 414 (NAS)

Linux DiskStation 3.2.40 #25556 SMP Thu Mar 4 17:57:56 CST 2021 armv7l GNU/Linux synology_armadaxp_ds414

Upstart Config

env PATH=/usr/local/bin:$PATH
env MINIO_ROOT_USER="********"
env MINIO_ROOT_PASSWORD="********"
env MINIO_PROMETHEUS_AUTH_TYPE="public"

exec /usr/local/bin/minio \
  --console-address ":9000" \
  --config-dir /minio/.minio \
  --certs-dir /minio/.minio/certs \
  server \
  /volume1/minio
@harshavardhana
Copy link
Member

@harshavardhana harshavardhana commented Jul 8, 2021

minio: <ERROR> Unable to get mcConfigDir. exec: "getent": executable file not found in $PATH.

as you can see clearly getent is missing from your PATH looks like a system with standard tools removed.

This is being called because you have $HOME missing in your environment variable, it is failing with mcConfigDir error because minio/console package uses minio/mc as library for few things.

Just set HOME and this error shall go away.

env HOME=/minio
env PATH=/usr/local/bin:$PATH
env MINIO_ROOT_USER="********"
env MINIO_ROOT_PASSWORD="********"
env MINIO_PROMETHEUS_AUTH_TYPE="public"

exec /usr/local/bin/minio \
  --console-address ":9000" \
  --config-dir /minio/.minio \
  --certs-dir /minio/.minio/certs \
  server \
  /volume1/minio

@fhemberger
Copy link
Author

@fhemberger fhemberger commented Jul 8, 2021

@harshavardhana Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants