-
Notifications
You must be signed in to change notification settings - Fork 548
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 initialize new alias from the provided credentials. #3421
Comments
Works perfectly fine for me
Looks like some setup issue on your end. |
version: '3'
services:
storage:
image: minio/minio
ports:
- 9000:9000
volumes:
- ./storage/:/storage
environment:
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
command: server /storage
createbuckets:
image: minio/mc
depends_on:
- storage
entrypoint: >
/bin/sh -c "
until (/usr/bin/mc config host add myminio http://storage:9000 minioadmin minioadmin) do echo '...waiting...' && sleep 1; done;
/usr/bin/mc mb myminio/test;
/usr/bin/mc policy set download myminio/test;
exit 0;
" |
I'm seeing a similar issue in our (somewhat clunky) GitHub action: # This should be a service, but GitHub Actions doesn't support calling a custom command and the minio/minio
# dockerfile requires that a custom `minio server /data` command is used to start the server.
# Could be worked around by creating/publishing our own docker instance.
# See: https://github.community/t/job-service-command/16477
- name: Set up object storage
run: |
wget -q https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
./minio server ./minio-data &
wget -q https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
./mc config host add minio http://localhost:9000 minioadmin minioadmin
./mc mb --region=eu-west-1 minio/app-test
rm config/amazon_s3.yml
cp config/amazon_s3.yml.github-actions config/amazon_s3.yml With test:
bucket: app-test
region: "eu-west-1"
access_key_id: minioadmin
secret_access_key: minioadmin
permissions: authenticated-read
protocol: http
options:
server: localhost
port: 9000 Resulting in:
We'd not made any changes to any of this infrastructure recently. It stopped working for us on 5th Oct. Any guidance on what has changed or what we're doing wrong would be much appreciated. |
Well you are not really waiting for MinIO server to come online, this worked by chance in the past. You need to wait for the service to be online the technique I posted should be used |
Ah yes of course, that makes sense, many thanks @harshavardhana! |
You are my life saver @harshavardhana, many thanks! |
Where can i edit this. I am using mac and i wanted to know the location of this file. |
For anyone that could face the same problem as I did: BE CAREFUL WITH QUOTES!! Just remove those from the |
Hi, I'm working with the latest Docker Image.
Since this morning my command mc config host add not working.
It's a Docker client problem because the browser GUI working with same credentials.
This problem is with same #2496.
Expected behavior
Finished to make buckets.
Actual behavior
this error log occured.
Steps to reproduce the behavior
In docker-compose.yml, writing below the sencece.
mc --version
mc --version
)RELEASE.2020-09-23T20-02-13Z
System information
MacOS Catalina 10.15.6
Docker version 19.03.12, build 48a66213fe
The text was updated successfully, but these errors were encountered: