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

Attempting to fix file uploads without upgrading to 6.1 #1010

Closed
wants to merge 4 commits into from

Conversation

drusepth
Copy link
Member

@drusepth drusepth commented Aug 27, 2021

Grabbing what I can from rails app:update while still on 6.0.3.4 to try to fix file uploads until we can close #893.

ActiveRecord::NotNullViolation: PG::NotNullViolation: ERROR: null value in column "service_name" violates not-null constraintDETAIL: Failing row contains (30984, qlf91kjkir1lihmhmdqlf4ck5cfl, image.gif, image/gif, {"identified":true}, 9302, n+77QWYvQ/JeXG5rrUyN1w==, 2021-08-27 07:31:44.978173, null).

Probably need to double-check this diff (rough merge), but it doesn't seem to even solve the problem so it's mostly just a push-for-the-progress WIP to work from.

FWIW, this seems to only affect user avatar uploads (which use ActiveStorage's has_one_attached) and not image uploads to notebook pages (which use paperclip's has_attached_file).

@drusepth drusepth self-assigned this Aug 27, 2021
@drusepth drusepth temporarily deployed to papercut-server August 27, 2021 08:11 Inactive
@drusepth
Copy link
Member Author

These migrations have both been run in prod; didn't seem to have an effect on ActiveStorage's errors though.

@drusepth
Copy link
Member Author

drusepth commented Sep 15, 2021

This was fixed with #1016 and a dupe of many of the changes in #893. Closing without merge.

@drusepth drusepth closed this Sep 15, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant