benwbrum / fromthepage

FromThePage is a wiki-like application for crowdsourcing transcription of handwritten documents.
http://fromthepage.com
GNU Affero General Public License v3.0
171 stars 51 forks source link

Page save is lost #2171

Closed benwbrum closed 3 years ago

benwbrum commented 3 years ago

From the log file, it appears that the user starts transcribing a page, adds a note, adds a second note, then attempts to save the transcript.

I, [2020-11-23T15:08:55.337985 #29919]  INFO -- : TRANSCRIPTION 2020-11-23 15:08:55 +0000
TRANSCRIPTION   User    ID: 220061      Email: [redacted]     Display Name: ziggysmom
TRANSCRIPTION   Collection      ID: 858 Title:Sarah Green Davis (Diary of an overland journey to California)    Owner Email: todd.fell@yale.edu
TRANSCRIPTION   Work    ID: 37051       Title: Diary of an overland journey to California, 1849-1850 / by Sarah Green Davis
TRANSCRIPTION   Page    ID: 1248421     Position: 52    Title:51v-52r
TRANSCRIPTION   Source Text:
BEGIN_SOURCE_TEXT
[51v]
september 9 we traveled 
twenty five miles to 
day we coome to clarks 
river it is about foure 
feete wided and three fete 
deepe to day the dust 
was so bad that it was 
almost Imposible to 
travel we have past 
over one humbolt mountain 
and now come to another 
their is plenty 
of cedar her and sume 
white pine or pich 
pine it looks vary corse 
to me and their is a 
curious fence which the 
Indians made

[52r]
september 10 mr crouch had all 
of his team stolen buy the 
Indians and their in trley 
left helpless we lost one 
horse and mr porter one 
and mr Croomley one the 
Indian tracks are all ove  
here we think their was a 
bout thirty here we traveled 
about twenty five 
miles to git here an got 
in vary late it was dark 
the Indians had a good 
time we ware all tired 
and ware hungry and went 
to giten super they call 
this clarks river
END_SOURCE_TEXT

I, [2020-11-23T15:08:55.514513 #29919]  INFO -- : TRANSCRIPTION 2020-11-23 15:08:55 +0000       SUCCESS 

I, [2020-11-23T15:08:55.526709 #29919]  INFO -- :   Rendered deed/_deed.html.slim (Duration: 2.2ms | Allocations: 386)
I, [2020-11-23T15:08:55.531436 #29919]  INFO -- :   Rendered deed/_deed.html.slim (Duration: 2.8ms | Allocations: 731)
I, [2020-11-23T15:08:55.761220 #29919]  INFO -- : Redirected to https://fromthepage.com/transcribe/assign_categories?collection_id=sarah-green-davis-diary-of-an-overland-journey-to-california&page_id=1248421
I, [2020-11-23T15:08:55.770824 #29919]  INFO -- : Completed 302 Found in 475ms (ActiveRecord: 321.3ms | Allocations: 49906)
I, [2020-11-23T15:08:55.771427 #29919]  INFO -- : Oink Action: transcribe#save_transcription
I, [2020-11-23T15:08:55.771704 #29919]  INFO -- : Memory usage: 867892 | PID: 29919
I, [2020-11-23T15:08:55.772024 #29919]  INFO -- : Instantiation Breakdown: Total: 34 | PageVersion: 10 | Work: 7 | WorkStatistic: 5 | Page: 3 | User: 2 | Category: 2 | Collection: 1 | Deed: 1 | Visit: 1 | FriendlyId::Slug: 1 | Ahoy::Event: 1
I, [2020-11-23T15:08:55.772217 #29919]  INFO -- : Oink Log Entry Complete

[other processes]

I, [2020-11-23T15:08:55.871694 #29941]  INFO -- : Started GET "/transcribe/assign_categories?collection_id=sarah-green-davis-diary-of-an-overland-journey-to-california&page_id=1248421" for 130.132.173.161 at 2020-11-23 15:08:55 +0000
I, [2020-11-23T15:08:55.876004 #29941]  INFO -- : Processing by TranscribeController#assign_categories as HTML
I, [2020-11-23T15:08:55.876596 #29941]  INFO -- :   Parameters: {"collection_id"=>"sarah-green-davis-diary-of-an-overland-journey-to-california", "page_id"=>"1248421"}
I, [2020-11-23T15:08:55.879912 #29919]  INFO -- :   Rendered article/_graph.dot.erb (Duration: 3.7ms | Allocations: 1592)
I, [2020-11-23T15:08:55.902033 #29941]  INFO -- :   Rendering inline template
I, [2020-11-23T15:08:55.903579 #29941]  INFO -- :   Rendered inline template (Duration: 0.8ms | Allocations: 103)
I, [2020-11-23T15:08:55.916748 #29941]  INFO -- : Redirected to https://fromthepage.com/yale/sarah-green-davis-diary-of-an-overland-journey-to-california/diary-of-an-overland-journey-to-california-1849-1850-by-sarah-green-davis/transcribe/1248421
I, [2020-11-23T15:08:55.935461 #29941]  INFO -- : Completed 302 Found in 58ms (ActiveRecord: 9.2ms | Allocations: 12149)
I, [2020-11-23T15:08:55.936083 #29941]  INFO -- : Oink Action: transcribe#assign_categories
I, [2020-11-23T15:08:55.936383 #29941]  INFO -- : Memory usage: 934996 | PID: 29941
I, [2020-11-23T15:08:55.936726 #29941]  INFO -- : Instantiation Breakdown: Total: 10 | User: 2 | Collection: 2 | PageBlock: 2 | Page: 1 | Work: 1 | Visit: 1 | Ahoy::Event: 1
I, [2020-11-23T15:08:55.936968 #29941]  INFO -- : Oink Log Entry Complete
I, [2020-11-23T15:08:55.944290 #29919]  INFO -- :   Rendering article/show.html.slim within layouts/application
I, [2020-11-23T15:08:55.949398 #29919]  INFO -- :   Rendered shared/_article_tabs.html.slim (Duration: 4.0ms | Allocations: 1130)
I, [2020-11-23T15:08:55.981642 #29941]  INFO -- : Started GET "/yale/sarah-green-davis-diary-of-an-overland-journey-to-california/diary-of-an-overland-journey-to-california-1849-1850-by-sarah-green-davis/transcribe/1248421" for 130.132.173.161 at 2020-11-23 15:08:55 +0000
I, [2020-11-23T15:08:55.984881 #29941]  INFO -- : Processing by TranscribeController#display_page as HTML
I, [2020-11-23T15:08:55.985287 #29941]  INFO -- :   Parameters: {"user_slug"=>"yale", "collection_id"=>"sarah-green-davis-diary-of-an-overland-journey-to-california", "work_id"=>"diary-of-an-overland-journey-to-california-1849-1850-by-sarah-green-davis", "page_id"=>"1248421"}
I, [2020-11-23T15:08:56.016596 #29941]  INFO -- :   Rendering transcribe/display_page.html.slim
I, [2020-11-23T15:08:56.077964 #29941]  INFO -- :   Rendered shared/_markup_help.html.erb (Duration: 0.2ms | Allocations: 53)
I, [2020-11-23T15:08:56.092999 #29941]  INFO -- :   Rendered notes/_note.html.slim (Duration: 7.4ms | Allocations: 2051)
I, [2020-11-23T15:08:56.100748 #29941]  INFO -- :   Rendered notes/_note.html.slim (Duration: 6.4ms | Allocations: 2133)
I, [2020-11-23T15:08:56.107750 #29941]  INFO -- :   Rendered notes/_note.html.slim (Duration: 5.9ms | Allocations: 2138)
I, [2020-11-23T15:08:56.109528 #29941]  INFO -- :   Rendered notes/_notes.html.slim (Duration: 30.0ms | Allocations: 9665)
I, [2020-11-23T15:08:56.110460 #29941]  INFO -- :   Rendered shared/_collection_footer.html.slim (Duration: 0.2ms | Allocations: 55)
I, [2020-11-23T15:08:56.111319 #29941]  INFO -- :   Rendered transcribe/display_page.html.slim within layouts/application (Duration: 94.2ms | Allocations: 39455)
I, [2020-11-23T15:08:56.113109 #29941]  INFO -- :   Rendered layouts/_mixpanel.erb (Duration: 0.2ms | Allocations: 54)
I, [2020-11-23T15:08:56.113962 #29941]  INFO -- :   Rendered layouts/_fb_pixel.erb (Duration: 0.1ms | Allocations: 54)
I, [2020-11-23T15:08:56.119311 #29941]  INFO -- :   Rendered shared/_breadcrumbs.html.slim (Duration: 0.5ms | Allocations: 152)
I, [2020-11-23T15:08:56.121311 #29941]  INFO -- :   Rendered layouts/_ga.erb (Duration: 0.2ms | Allocations: 54)
I, [2020-11-23T15:08:56.132977 #29941]  INFO -- : Completed 200 OK in 147ms (Views: 95.5ms | ActiveRecord: 17.1ms | Allocations: 56517)
I, [2020-11-23T15:08:56.133696 #29941]  INFO -- : Oink Action: transcribe#display_page
I, [2020-11-23T15:08:56.134003 #29941]  INFO -- : Memory usage: 934996 | PID: 29941
I, [2020-11-23T15:08:56.134291 #29941]  INFO -- : Instantiation Breakdown: Total: 23 | User: 6 | Page: 4 | Collection: 3 | Note: 3 | Work: 2 | PageBlock: 2 | ScCanvas: 1 | Visit: 1 | Ahoy::Event: 1
I, [2020-11-23T15:08:56.134494 #29941]  INFO -- : Oink Log Entry Complete
I, [2020-11-23T15:08:56.302712 #29919]  INFO -- : Started GET "/ziggysmom/858/37051/still_editing/1248421" for 130.132.173.161 at 2020-11-23 15:08:56 +0000
I, [2020-11-23T15:08:56.305540 #29919]  INFO -- : Processing by TranscribeController#still_editing as */*
I, [2020-11-23T15:08:56.305857 #29919]  INFO -- :   Parameters: {"user_slug"=>"ziggysmom", "collection_id"=>"858", "work_id"=>"37051", "page_id"=>"1248421"}
I, [2020-11-23T15:08:56.314498 #29919]  INFO -- :   Rendering text template
I, [2020-11-23T15:08:56.315566 #29919]  INFO -- :   Rendered text template (Duration: 0.3ms | Allocations: 31)
I, [2020-11-23T15:08:56.317563 #29919]  INFO -- : Completed 200 OK in 11ms (Views: 2.3ms | ActiveRecord: 1.3ms | Allocations: 3810)
I, [2020-11-23T15:08:56.317921 #29919]  INFO -- : Oink Action: transcribe#still_editing
saracarl commented 3 years ago

2 successful versions saved: Nov 23, 2020 05:18 PM Nov 23, 2020 03:08 PM

saracarl commented 3 years ago

Initial comment was a transcription that was successfully saved, per version time stamps. Moving on...

benwbrum commented 3 years ago

This appears to be the error that occurred in the logs:

I, [2020-11-23T16:45:07.677729 #12642]  INFO -- : Started PATCH "/transcribe/save_transcription" for 130.132.173.161 at 2020-11-23 16:45:07 +0000
I, [2020-11-23T16:45:07.681266 #12642]  INFO -- : Processing by TranscribeController#save_transcription as HTML
I, [2020-11-23T16:45:07.681614 #12642]  INFO -- :   Parameters: {"authenticity_token"=>"VOG1udwbPSt8EkT43SrU3dbo+RyiFH0CE9F8jwcnwxPInORrFemBPYN4VQwSJKj9B68plYPaxc2DxlTCUuVQ0g==", "page_id"=>"1248421", "page"=>{"mark_blank"=>"0", "needs_review"=>"1", "source_text"=>"[51v]\r\nseptember 9 we traveled \r\ntwenty five miles to \r\nday we coome to clarks \r\nriver it is about foure \r\nfeete wided and three fete \r\ndeepe to day the dust \r\nwas so bad that it was \r\nalmost Imposible to \r\ntravel we have past \r\nover one humbolt mountain \r\nand now come to another \r\ntheir is plenty \r\nof cedar her and sume \r\nwhite pine or pich \r\npine it looks vary corse \r\nto me and their is a \r\ncurious fence which the \r\nIndians made\r\n\r\n[52r]\r\nseptember 10 mr crouch had all \r\nof his team stolen buy the \r\nIndians and their in trley \r\nleft helpless we lost one \r\nhorse and mr porter one \r\nand mr Croomley one the \r\nIndian tracks are all ove  \r\nhere we think their was a \r\nbout thirty here we travled \r\nabout twnty five \r\nmiles to git here an got \r\nin vary late it was dark \r\nthe Indians had a good \r\ntime we ware all tired \r\nand ware hungry and went \r\nto giten spper they call \r\nthis clarks river "}, "save"=>""}
I, [2020-11-23T16:45:09.407330 #12642]  INFO -- : Redirected to https://fromthepage.com/dashboard
I, [2020-11-23T16:45:09.407868 #12642]  INFO -- : Filter chain halted as :authorize_collection rendered or redirected
I, [2020-11-23T16:45:09.408034 #12562]  INFO -- :   Rendered text template (Duration: 0.3ms | Allocations: 30)
I, [2020-11-23T16:45:09.410156 #12642]  INFO -- : Completed 302 Found in 1728ms (ActiveRecord: 1703.7ms | Allocations: 7450)
I, [2020-11-23T16:45:09.410664 #12642]  INFO -- : Oink Action: transcribe#save_transcription
saracarl commented 3 years ago

New theory, based on activity log, is that she loses her session:

we see the last activity in one session at 15:08:56 (10:08 AM EST)

We see an attempted save that fails at 16:45:07 (11:45 AM EST)

and a new session & visit started at 16:45:09 (11:45 AM EST)

Could she have gone for lunch? How long are our session timeouts in Apache?

benwbrum commented 3 years ago

Customer is happy.