Error on avatar upload

Hi,

i’ve just upgraded our sentry to 8.15.0 and while i checked the config i noticed it still had /tmp/sentry-files configured as file storage.
as tmp get wiped on reboots this results in these errors:
IOError: [Errno 2] No such file or directory: u’/tmp/sentry-files/16997/42277/c38da9cac6e44e1fa318bc9928a991d3’

so i changed the storage to a permanent path and let the user reupload his avatar, which resulted in this error:
IntegrityError(‘duplicate key value violates unique constraint “sentry_fileblob_checksum_key”\nDETAIL: Key (checksum)=(4f94421ced6fb5ed2203dd78eb4607d6deb2f97b) already exists.\n’,) SQL: INSERT INTO “sentry_fileblob” (“path”, “size”, “checksum”, “timestamp”) VALUES (%s, %s, %s, %s) RETURNING “sentry_fileblob”.“id”

while this has no impact on working with sentry, i like to keep my error log clean :slight_smile:

any ideas how to fix this?

greetings

Christian

This will probably go away if you clear your sentry_fileblob and related tables in the database. Assuming this is postgres you can probably fix it with TRUNCATE sentry_fileblob CASCADE.

thanks, that was fast!
ill truncated and try again as soon as i can grab the user :slight_smile: