nulib / avalon

Variations-on-Video Hydra app
Apache License 2.0
3 stars 0 forks source link

User Can't upload from Dropbox #286

Closed davidschober closed 6 years ago

davidschober commented 6 years ago

Description

User can't upload files from dropbox or via web interface.

To recreate:

OR

User Email

I’m having trouble uploading to Avalon.

Within Avalon I’m trying to upload from the dropbox. I can see the list of items in the dropbox, but after selecting what I need it doesn’t load properly and I’m hit with the “we’re sorry, but something went wrong” error message. I’m using Firefox if that matters.

davidschober commented 6 years ago

@mbklein and @carrickr this is reproducible can you jump on it?

davidschober commented 6 years ago
I, [2017-12-12T16:57:04.337878 #26106]  INFO -- : [Aws::S3::Client 200 0.074266 0 retries] head_object(bucket:"avalon-masterfiles-cfx3wj9",key:"uploads/0e580a2a-5522-4591-a34e-6c55ff289310/BigBuckBunny_320x180.mp4")  

I, [2017-12-12T16:57:04.381623 #26106]  INFO -- : [Aws::S3::Client 0 0.000765 0 retries] get_object(bucket:"avalon-masterfiles-cfx3wj9",key:"uploads/0e580a2a-5522-4591-a34e-6c55ff289310/BigBuckBunny_320x180.mp4")  

I, [2017-12-12T16:57:04.431130 #26106]  INFO -- : method=GET path=/is_it_alive format=*/* controller=ApplicationController action=alive status=200 duration=1.15 view=0.51 db=0.00 time=2017-12-12 16:57:04 +0000
I, [2017-12-12T16:57:04.535289 #26110]  INFO -- : method=GET path=/ format=*/* controller=CatalogController action=index status=200 duration=198.75 view=134.59 db=5.30 time=2017-12-12 16:57:04 +0000
I, [2017-12-12T16:57:04.882801 #26106]  INFO -- : method=GET path=/is_it_alive format=*/* controller=ApplicationController action=alive status=200 duration=1.15 view=0.53 db=0.00 time=2017-12-12 16:57:04 +0000
W, [2017-12-12T16:57:05.157042 #26106]  WARN -- : Could not find workflow for: #<MasterFile:0x000056254f871958>
I, [2017-12-12T16:57:05.159558 #26106]  INFO -- : method=POST path=/master_files format=html controller=MasterFilesController action=create status=500 error='NoMethodError: undefined method `master_files' for nil:NilClass' duration=1241.95 view=0.00 db=4.02 time=2017-12-12 16:57:03 +0000
F, [2017-12-12T16:57:05.160310 #26106] FATAL -- : 
NoMethodError (undefined method `master_files' for nil:NilClass):
  app/models/master_file.rb:702:in `update_parent!'
  app/services/master_file_builder.rb:33:in `block in from_specs'
  app/services/master_file_builder.rb:22:in `each'
  app/services/master_file_builder.rb:22:in `from_specs'
  app/services/master_file_builder.rb:16:in `build'
  app/controllers/master_files_controller.rb:167:in `create'

[10:58] so this is also failing when I try to upload a file, the whole create page is broken

davidschober commented 6 years ago

Media info got updated... Avalon needed to pin to a prior version @mbklein @carrickr can you confirm?

davidschober commented 6 years ago

Closing @Nic4Images let me me know if you need anything else