Migrate old uploads to minio

still I get that message

DISCOURSE_S3_BUCKET="test" DISCOURSE_S3_REGION="minio" DISCOURSE_S3_ACCESS_KEY_ID="xxx" DISCOURSE_S3_SECRET_ACCESS_KEY="xxx" DISCOURSE_S3_ENDPOINT="https://myendpoint.com" DISCOURSE_S3_CDN_URL="test"  rake uploads:migrate_to_s3
Checking if default already migrated...
10 of 25 uploads are not migrated to S3. S3 migration failed for db 'default'.
2 posts are not remapped to new S3 upload URL. S3 migration failed for db 'default'.
Looking for missing uploads on: default

0 post uploads are missing.

No posts require rebaking
Migrating uploads to S3 for 'default'...
Please provide the 'DISCOURSE_S3_CDN_URL' environment variable