Skip to content

Cannot Upload (Text) Files for Annotation Using MinIO #1294

Closed
@opallch

Description

@opallch

Hi all,

I have set up diffgram with docker and I could not upload files for annotation (basically everything with importing/exporting does not work, it kept on loading but with no error messages popping up). Everything worked quite well as I played around on diffgram.com and I guess the issue was originated from the fact that two of the containers stopped running. My machine is on Ubuntu 22.04.1 LTS and everything in the requirement.txt was successfully installed.

Here are the parameters used for setting up the docker (almost all are default settings):

First We need to know what static storage provider you will use: 
1. Minio Local Storage [Default]
2. Amazon Web Services S3 (AWS S3)
3. Microsoft Azure Storage (Azure)
4. Google Cloud Storage (GCP)
Enter 1, 2, 3 or 4. Or write exit to quit the installation: 1
Would you like to provide a custom MinIO host? Default will use docker Y/N?
Please provide the Minio S3 Bucket Name [Default is diffgram-storage]: 
Enter diffgram version: [Or Press Enter to Get The Latest Version]: 
Do you want to use the local database? Y/N [Press Enter to use Local DB]: 
Do Add Z Flag to Postgres Mount? (Use only when using SELinux distros or similar) Y/N [Press Enter to Skip]: 
Do you want to add Mailgun to Diffgram?[Y/n] n
Do you want to set RabbitMQ Config? 
 (default config: localhost:5672 => user - password will be "admin" - "admin"? [Y/n] 

The log for the first stopped container diffgram-db_migration-1:

2023-01-23 17:57:37 INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
2023-01-23 17:57:37 INFO  [alembic.runtime.migration] Will assume transactional DDL.
2023-01-23 17:57:39 Postgres is up - executing command
2023-01-23 17:58:56 INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
2023-01-23 17:58:56 INFO  [alembic.runtime.migration] Will assume transactional DDL.
2023-01-23 17:58:57 Postgres is up - executing command
2023-01-23 17:59:52 INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
2023-01-23 17:59:52 INFO  [alembic.runtime.migration] Will assume transactional DDL.
2023-01-23 17:57:38 Error loading secrets: 
2023-01-23 17:57:38 No module named 'shared.settings.secrets'
2023-01-23 17:57:38 DIFFGRAM_ERROR_SEND_TRACES_IN_RESPONSE True
2023-01-23 17:57:38 PROCESS_MEDIA_TRY_BLOCK_ON True
2023-01-23 17:57:38 PROCESS_MEDIA_REMOTE_QUEUE_ON True
2023-01-23 17:57:38 PROCESS_MEDIA_ENQUEUE_LOCALLY_IMMEDIATELY False
2023-01-23 17:57:38 DIFFGRAM_MINIO_DISABLED_SSL_VERIFY False
2023-01-23 17:57:38 DIFFGRAM_SYSTEM_MODE DIFFGRAM_SYSTEM_MODE  sandbox
2023-01-23 17:57:38 DATABASE_URL DATABASE_URL  True
2023-01-23 17:57:38 SIGNED_URL_CACHE_MINIMUM_SECONDS_VALID 18000
2023-01-23 17:58:57 Error loading secrets: 
2023-01-23 17:58:57 No module named 'shared.settings.secrets'
2023-01-23 17:58:57 DIFFGRAM_ERROR_SEND_TRACES_IN_RESPONSE True
2023-01-23 17:58:57 PROCESS_MEDIA_TRY_BLOCK_ON True
2023-01-23 17:58:57 PROCESS_MEDIA_REMOTE_QUEUE_ON True
2023-01-23 17:58:57 PROCESS_MEDIA_ENQUEUE_LOCALLY_IMMEDIATELY False
2023-01-23 17:58:57 DIFFGRAM_MINIO_DISABLED_SSL_VERIFY False
2023-01-23 17:58:57 DIFFGRAM_SYSTEM_MODE DIFFGRAM_SYSTEM_MODE  sandbox
2023-01-23 17:58:57 DATABASE_URL DATABASE_URL  True
2023-01-23 17:58:57 SIGNED_URL_CACHE_MINIMUM_SECONDS_VALID 18000
2023-01-23 17:59:53 Error loading secrets: 
2023-01-23 17:59:53 No module named 'shared.settings.secrets'
2023-01-23 17:59:53 DIFFGRAM_ERROR_SEND_TRACES_IN_RESPONSE True
2023-01-23 17:59:53 PROCESS_MEDIA_TRY_BLOCK_ON True
2023-01-23 17:59:53 PROCESS_MEDIA_REMOTE_QUEUE_ON True
2023-01-23 17:59:53 PROCESS_MEDIA_ENQUEUE_LOCALLY_IMMEDIATELY False
2023-01-23 17:59:53 DIFFGRAM_MINIO_DISABLED_SSL_VERIFY False
2023-01-23 17:59:53 DIFFGRAM_SYSTEM_MODE DIFFGRAM_SYSTEM_MODE  sandbox
2023-01-23 17:59:53 DATABASE_URL DATABASE_URL  True
2023-01-23 17:59:53 SIGNED_URL_CACHE_MINIMUM_SECONDS_VALID 18000
2023-01-23 17:59:53 Postgres is up - executing command

And the second stopped container diffgram-createbuckets-1:

2023-01-23 17:57:06 Added `myminio` successfully.
2023-01-23 17:57:07 mc: Please use 'mc anonymous'
2023-01-23 17:59:42 Added `myminio` successfully.
2023-01-23 17:59:42 mc: Please use 'mc anonymous'
2023-01-23 17:57:06 mc: <ERROR> Unable to make bucket `myminio/diffgram-storage`. Your previous request to create the named bucket succeeded and you already own it.
2023-01-23 17:59:42 mc: <ERROR> Unable to make bucket `myminio/diffgram-storage`. Your previous request to create the named bucket succeeded and you already own it.

Please let me know if some important information is missing, thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    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