thumbor-community / aws

Thumbor AWS extensions
MIT License
155 stars 70 forks source link

S3 key not found at #135

Closed altendorfme closed 5 years ago

altendorfme commented 5 years ago

Log Error:

2019-04-17 13:46:19 thumbor:WARNING [AwsStorage] s3 key not found at i/s/https%3A//xyz.com.br/wp-content/uploads/2019/04/anitta.jpg/webp.detectors.txt

The webp.detectors.txt file is correctly stored in DigitalOcean Spaces: Capture

Operating system

Ubuntu 16.04 LTS NGINX Supervisor Python 2.7 Thumbor 6.7.0

Your thumbor.conf

SECURITY_KEY = 'XYZ'

DETECTORS = [
'thumbor.detectors.face_detector',
'thumbor.detectors.feature_detector'
]

FILTERS = [
'thumbor.filters.brightness',
'thumbor.filters.colorize',
'thumbor.filters.contrast',
'thumbor.filters.rgb',
'thumbor.filters.round_corner',
'thumbor.filters.quality',
'thumbor.filters.noise',
'thumbor.filters.watermark',
'thumbor.filters.equalize',
'thumbor.filters.fill',
'thumbor.filters.sharpen',
'thumbor.filters.strip_exif',
'thumbor.filters.strip_icc',
'thumbor.filters.frame',
'thumbor.filters.grayscale',
'thumbor.filters.rotate',
'thumbor.filters.format',
'thumbor.filters.max_bytes',
'thumbor.filters.convolution',
'thumbor.filters.blur',
'thumbor.filters.extract_focal',
'thumbor.filters.focal',
'thumbor.filters.no_upscale',
'thumbor.filters.saturation',
'thumbor.filters.max_age',
'thumbor.filters.curve',
'thumbor.filters.background_color',
'thumbor.filters.upscale',
'thumbor.filters.proportion',
'thumbor.filters.stretch'
]

OPTIMIZERS = [
'thumbor_plugins.optimizers.pngquant',
'thumbor_plugins.optimizers.mozjpeg'
]

MAX_WIDTH = 0
MAX_HEIGHT = 0
MIN_WIDTH = 1
MIN_HEIGHT = 1
USE_GIFSICLE_ENGINE = True
PNGQUANT_PATH = '/usr/bin/pngquant'
GIFSICLE_PATH = '/usr/bin/gifsicle'
JPEGRECOMPRESS_PATH = '/usr/local/bin/jpeg-recompress'
MAX_AGE = 360 * 60 * 24 * 365
AUTO_WEBP = True
QUALITY = 60
WEBP_QUALITY = 80
ALLOW_UNSAFE_URL = False
ALLOW_OLD_URLS = False
STORAGE_EXPIRATION_SECONDS = 60 * 60 * 24 * 365
RESULT_STORAGE_EXPIRATION_SECONDS = 60 * 60 * 24 * 365
HEALTHCHECK_ROUTE = '/healthcheck'
AUTO_PNG_TO_JPG = False
RESPECT_ORIENTATION = True
ALLOW_ANIMATED_GIFS = True
ALLOW_UNSAFE_URL = False

TC_AWS_ENDPOINT = 'https://sfo2.digitaloceanspaces.com'

STORAGE = 'tc_aws.storages.s3_storage'
TC_AWS_STORAGE_BUCKET = 'XYZ'
TC_AWS_STORAGE_ROOT_PATH = '/i/s'
TC_AWS_STORAGE_SSE = False
TC_AWS_STORAGE_RRS = False

RESULT_STORAGE = 'tc_aws.result_storages.s3_storage'
TC_AWS_RESULT_STORAGE_BUCKET = 'XYZ'
TC_AWS_RESULT_STORAGE_ROOT_PATH = '/i/r'

TC_AWS_MAX_RETRY = 0
TC_AWS_STORE_METADATA = True
TC_AWS_RANDOMIZE_KEYS = True
TC_AWS_ROOT_IMAGE_NAME = 'root_image'
Canas commented 4 years ago

Hey did you manage to fix this? Bumping into the exact same error.

altendorfme commented 4 years ago

I don't remember exactly how I solved it, but I have public documentation that is in production on two servers at DigitalOcean and have processed almost 3 million files in 6 months.

Capture Capture1

https://hackmd.io/@altendorfme/ryY2PGI-I

;)