Hi Compu Net,

Thanks for reaching out!

I couldn't find your particular mp3 file. But had created a random file
then was able to insert it with 2.3.0 (fresh not upgraded) with 2 nodes on
Mac OS built with Erlang 20.3.8.14.

I had started a 3 node dev cluster but used the --degrade-cluster 1 option
to stop one node.

$./dev/run --admin=adm:pass  --degrade-cluster 1
$ dd bs=1024 count=609 if=/dev/urandom of=funky-70s.mp3
$ curl -XPUT put http://adm:[email protected]:15984/my_database2
$ curl -vX PUT
http://adm:[email protected]:15984/my_database2/002/funky-70s.mp3
--data-binary @funky-70s.mp3 -H "ContentType:audio/mp3"
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 15984 (#0)
* Server auth using Basic with user 'adm'
> PUT /my_database2/002/funky-70s.mp3 HTTP/1.1
> Host: 127.0.0.1:15984
> Authorization: Basic YWRtOnBhc3M=
> User-Agent: curl/7.54.0
> Accept: */*
> ContentType:audio/mp3
> Content-Length: 623616
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< Connection: close
< Date: Tue, 05 Feb 2019 17:07:03 GMT
< Server: MochiWeb/1.0 (Any of you quaids got a smint?)
* We are completely uploaded and fine
< HTTP/1.1 201 Created
< Cache-Control: must-revalidate
< Content-Length: 66
< Content-Type: application/json
< Date: Tue, 05 Feb 2019 17:07:03 GMT
< Location: http://127.0.0.1:15984/my_database2/002/funky-70s.mp3
< Server: CouchDB/2.3.0 (Erlang OTP/20)
< X-Couch-Request-ID: 2cb6a1531e
< X-CouchDB-Body-Time: 0
<
{"ok":true,"id":"002","rev":"1-d0689030ac7c14c8dcd8069f686f32d4"}
* Closing connection 0

Does this happen only on upgraded clusters which went from 2.1.1 -> 2.3.0
or does it happen on a freshly built 2.3.0 one?

What if you run 2.3.0 with one 1 node just like 2.1.1 does it happen then.

Wonder if your 2 nodes in 2.3.0 got upgrade and connected together fine.
Could you relate how upgrade went and how you set up your cluster. What
does curl http://adm:[email protected]:15984/_membership response look like
from each of your nodes?

Also, let's try to create an issue for this as others suggested, transfer
some of the info from this thread there.

Regards,
-Nick



On Tue, Feb 5, 2019 at 11:13 AM Compu Net <[email protected]> wrote:

> 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