I have tried multiple mp3's
The one below "funky-70s.mp3" is 609K, not sure if this will work but I 
attached it to this email.
If I ctrl-c before it times out I get partial file saved.  I thought it was 
hanging, but I see now that after about 5 minutes it times out.

curl :

# curl -vX PUT http://127.0.0.1:5984/my_database2/002/funky-70s.mp3 
--data-binary @funky-70s.mp3 -H "ContentType:audio/mp3"
* About to connect() to 127.0.0.1 port 5984 (#0)
*   Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0)
> PUT /my_database2/002/funky-70s.mp3 HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 127.0.0.1:5984
> Accept: */*
> ContentType:audio/mp3
> Content-Length: 623385
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
> 
< HTTP/1.1 100 Continue
< Connection: close
< Date: Tue, 05 Feb 2019 15:25:01 GMT
< Server: MochiWeb/1.0 (Any of you quaids got a smint?)
^C


CouchDB :


# grep 47ecba67d4 /var/log/couchdb/couchdb.log
[error] 2019-02-05T15:30:02.210608Z [email protected]
 <0.6574.0> 47ecba67d4 fabric_worker_timeout 
update_docs,'[email protected]',<<"shards/00000000-ffffffff/my_database2.1549290847">>
[error] 2019-02-05T15:30:02.210728Z [email protected] <0.6574.0> 
47ecba67d4 fabric_worker_timeout 
update_docs,'[email protected]',<<"shards/00000000-ffffffff/my_database2.1549290847">>
[notice] 2019-02-05T15:30:02.211187Z [email protected] <0.6574.0> 
47ecba67d4 127.0.0.1:5984 127.0.0.1 undefined PUT 
/my_database2/002/funky-70s.mp3 500 ok 300089
[error] 2019-02-05T15:35:02.210594Z [email protected] <0.6608.0> 
47ecba67d4 rexi_server: from: [email protected](<0.6574.0>) mfa: 
fabric_rpc:update_docs/3 exit:timeout 
[{fabric_doc_atts,'-receiver_callback/2-fun-1-',1,[{file,"src/fabric_doc_atts.erl"},{line,56}]},{couch_att,write_streamed_attachment,3,[{file,"src/couch_att.erl"},{line,611}]},{couch_db,with_stream,3,[{file,"src/couch_db.erl"},{line,1395}]},{couch_db,'-doc_flush_atts/2-lc$^0/1-0-',2,[{file,"src/couch_db.erl"},{line,1347}]},{couch_db,doc_flush_atts,2,[{file,"src/couch_db.erl"},{line,1347}]},{couch_db,'-update_docs/4-lc$^4/1-4-',2,[{file,"src/couch_db.erl"},{line,1166}]},{couch_db,'-update_docs/4-lc$^3/1-3-',2,[{file,"src/couch_db.erl"},{line,1165}]},{couch_db,update_docs,4,[{file,"src/couch_db.erl"},{line,1165}]}]



Here I uploaded again but waited for it to timeout :

# curl -vX PUT http://127.0.0.1:5984/my_database2/005/funky-70s.mp3 
--data-binary @funky-70s.mp3 -H "ContentType:audio/mp3"
* About to connect() to 127.0.0.1 port 5984 (#0)
*   Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0)
> PUT /my_database2/005/funky-70s.mp3 HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 127.0.0.1:5984
> Accept: */*
> ContentType:audio/mp3
> Content-Length: 623385
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
> 
< HTTP/1.1 100 Continue
< Connection: close
< Date: Tue, 05 Feb 2019 15:45:56 GMT
< Server: MochiWeb/1.0 (Any of you quaids got a smint?)
< HTTP/1.1 500 Internal Server Error
< Cache-Control: must-revalidate
< Connection: close
< Content-Length: 47
< Content-Type: application/json
< Date: Tue, 05 Feb 2019 15:50:56 GMT
< Server: CouchDB/2.3.0 (Erlang OTP/19)
< X-Couch-Request-ID: f758eaf765
< X-CouchDB-Body-Time: 0
< 
{"error":"unknown_error","reason":"undefined"}
* Closing connection 0



# grep f758eaf765 /var/log/couchdb/couchdb.log
[error] 2019-02-05T15:50:57.470514Z [email protected] <0.7351.1> 
f758eaf765 fabric_worker_timeout 
update_docs,'[email protected]',<<"shards/00000000-ffffffff/my_database2.1549290847">>
[error] 2019-02-05T15:50:57.470641Z [email protected] <0.7351.1> 
f758eaf765 fabric_worker_timeout 
update_docs,'[email protected]',<<"shards/00000000-ffffffff/my_database2.1549290847">>
[notice] 2019-02-05T15:50:57.471097Z [email protected] <0.7351.1> 
f758eaf765 127.0.0.1:5984 127.0.0.1 undefined PUT 
/my_database2/005/funky-70s.mp3 500 ok 300061

Bill

Reply via email to