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

Error creating new connection from Diffgram to local Minio #951

Closed
Tachimura opened this issue Jun 29, 2022 · 9 comments
Closed

Error creating new connection from Diffgram to local Minio #951

Tachimura opened this issue Jun 29, 2022 · 9 comments

Comments

@Tachimura
Copy link

Context

I've tried to use Minio (as a local storage provider) with Diffgram but i've encurred in an issue when trying to create a new connection from Diffgram to Minio.

Setup:

1- Install Minio (I've also tried with the docker version, but got the same error)
wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
MINIO_ROOT_USER=admin MINIO_ROOT_PASSWORD=password ./minio server /home/ubuntu/minio_test_data --console-address ":9001"

I have then created a bucket called 'images' and uploaded some data in it.

2- Install Diffgram 1.1.11
git clone https://github.com/diffgram/diffgram.git
cd diffgram
pip install -r requirements.txt
python3 install.py

Selected Minio Web Server Services Storage (which is running in the same machine), inserted the required parameters and the tests: Connection, Write permission and Read permission are OK.

Error

I logged into Diffgram (from the webpage), tried to create a new connection to Minio, so:
project -> connections -> new connection
I used the same parameters as i've inserted in the install.py but i got this error:

error

@vitalii-bulyzhyn
Copy link
Contributor

vitalii-bulyzhyn commented Jun 29, 2022

Hey @Tachimura!

From the error, it seems you are trying to connect to S3 instead of Minio, did you set the right env variable for storage provider?

@vitalii-bulyzhyn
Copy link
Contributor

vitalii-bulyzhyn commented Jun 30, 2022

@Tachimura I've just tested it out and everything works for me. The important thing is that you use http://192.168.20.54:9000 (in your case it may be different) instead of http://127.0.0.1:9000

With http://127.0.0.1:9000 install test will pass, however connection and import won't work

Let me know if that helps

@Tachimura
Copy link
Author

@vitalii-bulyzhyn I'm pretty sure the env variables are correctly set (here's a snippet of it)
I've added a comment in the image below saying that we tried using both the public ip of our machine and the private one.
Unluckly, the end result is always the same error.
immagine

@PJEstrada
Copy link
Contributor

Also make sure that the folder you want to write into has write permissions for MinIO.

@vitalii-bulyzhyn
Copy link
Contributor

@Tachimura to scope the problem, is the problem only with connection, or file import also doesn't work?

@Tachimura
Copy link
Author

@PJEstrada Yes, the data directory we are using has write permissions for all users.

@vitalii-bulyzhyn Exactly, we only have problems with the connection to minio. We could import some data into the bucket via the webpage and the python sdk.

@vitalii-bulyzhyn
Copy link
Contributor

Okay, in this case the problem may be SSL certificate, can you try to add one as minio docs suggest?

@Tachimura
Copy link
Author

@vitalii-bulyzhyn my team had the machine recreated by zero and after performing all the previous steps it is now working.
We can now connect to minio, download the bucket and work on it. Probably the problem was caused by some variables not correctly set.

@vitalii-bulyzhyn
Copy link
Contributor

Happy everything works now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants