Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Sync at sequence 13570 aborts with error #10

Open
sjanecki opened this issue Sep 3, 2014 · 3 comments
Open

Sync at sequence 13570 aborts with error #10

sjanecki opened this issue Sep 3, 2014 · 3 comments

Comments

@sjanecki
Copy link

sjanecki commented Sep 3, 2014

I'm syncing from SkimDB to my local couchdb.
Application at sequence 13570 quits.

After restarting at sequence 13570 I've got something like this:

START npm FullFat/1.1.4 node/v0.10.9 pid=20272
13571: derby-auth
-> derby-auth-0.0.6.tgz
<- derby-auth-0.0.6.tgz
ERROR { [Error: {"error":"unknown_error","reason":"function_clause"}
] statusCode: 500 }

Error: {"error":"unknown_error","reason":"function_clause"}

    at IncomingMessage.<anonymous> (/opt/scripts/node_modules/npm-fullfat-registry/node_modules/parse-json-response/parse.js:38:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:910:16
    at process._tickCallback (node.js:415:13)
@sjanecki
Copy link
Author

sjanecki commented Sep 3, 2014

Another One:

START npm FullFat/1.1.4 node/v0.10.9 pid=5402
19491: elastic
ERROR { [Error: {"error":"unknown_error","reason":"function_clause"}
] statusCode: 500 }

Error: {"error":"unknown_error","reason":"function_clause"}

    at IncomingMessage.<anonymous> (/opt/scripts/node_modules/npm-fullfat-registry/node_modules/parse-json-response/parse.js:38:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:910:16
    at process._tickCallback (node.js:415:13)

@sjanecki
Copy link
Author

sjanecki commented Sep 3, 2014

Tcpflow (npm-fullfat-registry syncing module empath:

127.000.000.001.54994-127.000.000.001.05984: GET /fullfatdb/empath?revs=true&att_encoding_info=true HTTP/1.1
user-agent: npm FullFat/1.1.4 node/v0.10.9
connection: close
Host: localhost:5984


127.000.000.001.05984-127.000.000.001.54994: HTTP/1.1 200 OK
Server: CouchDB/1.1.0 (Erlang OTP/R14B02)
Etag: "5-0c77c5a585fc01857fd8f0e2436684f0"
Date: Wed, 03 Sep 2014 13:05:44 GMT
Content-Type: text/plain;charset=utf-8
Content-Length: 5417
Cache-Control: must-revalidate


127.000.000.001.05984-127.000.000.001.54994: {"_id":"empath","_rev":"5-0c77c5a585fc01857fd8f0e2436684f0","name":"empath","description":"A cli tool that detects what module systems a particular Javascript library supports.","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.0":{"name":"empath","version":"0.0.0","description":"A cli tool that detects what module systems a particular Javascript library supports.","bin":{"empath":"bin/empath.js"},"dependencies":{"jsdom":"~0.6.5","deep-equal":"0.0.0","colors":"~0.6.0-1"},"devDependencies":{"chai":"~1.7.0"},"scripts":{"test":"mocha tests -u tdd -R tap"},"repository":{"type":"git","url":"git://github.com/airportyh/empath.git"},"keywords":["javascript modules tools cli"],"author":{"name":"Toby Ho"},"license":"MIT","gitHead":"9edb73772b185f0d9ac49c55eeb08bd8c18f2d44","bugs":{"url":"https://github.com/airportyh/empath/issues"},"_id":"[email protected]","dist":{"shasum":"b7c703d73751e06e6aa4a0ec24cd0c6d6ed65d63","tarball":"http://localhost:5984/fullfatdb/empath/empath-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"airportyh","email":"[email protected]"},"maintainers":[{"name":"airportyh","email":"[email protected]"}]},"0.0.1":{"name":"empath","version":"0.0.1","description":"A cli tool that detects what module systems a particular Javascript library supports.","bin":{"empath":"bin/empath.js"},"dependencies":{"jsdom":"~0.6.5","deep-equal":"0.0.0","colors":"~0.6.0-1"},"devDependencies":{"chai":"~1.7.0"},"scripts":{"test":"mocha tests -u tdd"},"repository":{"type":"git","url":"git://github.com/airportyh/empath.git"},"keywords":["javascript modules tools cli"],"author":{"name":"Toby Ho"},"license":"MIT","gitHead":"9edb73772b185f0d9ac49c55eeb08bd8c18f2d44","bugs":{"url":"https://github.com/airportyh/empath/issues"},"_id":"[email protected]","dist":{"shasum":"8b121bcccefcedf0bb1b881c1b2e683d36be8aa9","tarball":"http://localhost:5984/fullfatdb/empath/empath-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"airportyh","email":"[email protected]"},"maintainers":[{"name":"airportyh","email":"[email protected]"}]}},"readme":"Empath - Javascript Library Sniffer\n===================================\n\nCurrently in the Javascript community there is simply no concenses about modules. *This is a problem.* Empath scans a Javascript library and gives you information on how it expects to be consumed.\n\n## Install\n\n    npm install empath -g\n\n## Usage\n\nYou've got a Javascript library sitting there in a directory called backbone. Maybe you downloaded it using a package manager or cloned it using git or extracted it as a tarball from github. How do you use it?\n\n    $ empath backbone # give it the path of the directory\n    Searching for main in backbone\n    has backbone/bower.json? yes\n    No main found in backbone/bower.json\n    has backbone/component.json? no\n    has backbone/package.json? yes\n    Main found in backbone/package.json: backbone.js\n    Supports AMD?\n      no\n    Supports CommonJS?\n      yes\n      dependencies: underscore\n      exports a object\n    Globals variables exported\n      Backbone\n\nAh, okay. Empath tells you that the main file to include is: `backbone.js` at the root of the directory and that it does not support the AMD module format but does support the CommonJS format and depends on underscore. Or if you don't use a module system and just want to include it in a script tag, then it exports `Backbone` as a global variable.\n\n## Background Information\n\n### Module Format\n\nOn the issue of *module format*, there are generally three camps:\n\n1. (AMD(Require.js))[http://requirejs.org/docs/whyamd.html]\n2. CommonJS(Node)\n3. We don't need a module system, just add globals\n\n### Registry\n\nHere is a list of the most popular package registries for Javascript\n\n* [NPM](https://npmjs.org/) - the registry for Node modules, currently the most popular JS registry, but the modules are generally not intended for use in the browser. However, [Browserify](https://github.com/substack/node-browserify) has been a popular tool in re-targeting Node-style Javascript for browser use. Format: CommonJS.\n* [Jam](http://jamjs.org/) - A registry and package manager with a easy workflow. AMD-based.\n* [Bower](http://bower.io/) - a new registry by Twitter. Format agnostic but does nothing for workflow.\n* [Component](https://github.com/component/component) - the only front-end module registry using CommonJS. Requires a build step.\n* [Volo](http://volojs.org/) - Another AMD-based registry with workflow and project scaffolding.\n\nFor more information on module registries, take a look a this [article by wilmoore](https://github.com/wilmoore/frontend-packagers).\n\n\n\n\n\n","maintainers":[{"name":"airportyh","email":"[email protected]"}],"time":{"modified":"2013-06-25T15:36:00.078Z","created":"2013-06-24T18:01:25.322Z","0.0.0":"2013-06-24T18:03:45.973Z","0.0.1":"2013-06-25T15:36:00.078Z"},"author":{"name":"Toby Ho"},"repository":{"type":"git","url":"git://github.com/airportyh/empath.git"},"readmeFilename":"README.md","_revisions":{"start":5,"ids":["0c77c5a585fc01857fd8f0e2436684f0"]},"_attachments":{"empath-0.0.0.tgz":{"content_type":"application/octet-stream","revpos":0,"digest":"md5-w+0RsdbvtM0rsczpSCj60Q==","length":93461517,"stub":true},"empath-0.0.1.tgz":{"content_type":"application/octet-stream","revpos":0,"digest":"md5-odRX9VXpfa4BzGJJ6aNDaw==","length":93463510,"stub":true}}}

127.000.000.001.55001-127.000.000.001.05984: PUT /fullfatdb/empath?new_edits=false HTTP/1.1
user-agent: npm FullFat/1.1.4 node/v0.10.9
content-type: multipart/related;boundary="npmFullFat-P+/K2Fog"
connection: close
content-length: 2936
Host: localhost:5984

--npmFullFat-P+/K2Fog
content-type: application/json
content-length: 2832


127.000.000.001.55001-127.000.000.001.05984: {"_id":"empath","_rev":"5-0c77c5a585fc01857fd8f0e2436684f0","name":"empath","description":"A cli tool that detects what module systems a particular Javascript library supports.","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.0":{"name":"empath","version":"0.0.0","description":"A cli tool that detects what module systems a particular Javascript library supports.","bin":{"empath":"bin/empath.js"},"dependencies":{"jsdom":"~0.6.5","deep-equal":"0.0.0","colors":"~0.6.0-1"},"devDependencies":{"chai":"~1.7.0"},"scripts":{"test":"mocha tests -u tdd -R tap"},"repository":{"type":"git","url":"git://github.com/airportyh/empath.git"},"keywords":["javascript modules tools cli"],"author":{"name":"Toby Ho"},"license":"MIT","gitHead":"9edb73772b185f0d9ac49c55eeb08bd8c18f2d44","bugs":{"url":"https://github.com/airportyh/empath/issues"},"_id":"[email protected]","dist":{"shasum":"b7c703d73751e06e6aa4a0ec24cd0c6d6ed65d63","tarball":"http://localhost:5984/fullfatdb/empath/empath-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"airportyh","email":"[email protected]"},"maintainers":[{"name":"airportyh","email":"[email protected]"}]},"0.0.1":{"name":"empath","version":"0.0.1","description":"A cli tool that detects what module systems a particular Javascript library supports.","bin":{"empath":"bin/empath.js"},"dependencies":{"jsdom":"~0.6.5","deep-equal":"0.0.0","colors":"~0.6.0-1"},"devDependencies":{"chai":"~1.7.0"},"scripts":{"test":"mocha tests -u tdd"},"repository":{"type":"git","url":"git://github.com/airportyh/empath.git"},"keywords":["javascript modules tools cli"],"author":{"name":"Toby Ho"},"license":"MIT","gitHead":"9edb73772b185f0d9ac49c55eeb08bd8c18f2d44","bugs":{"url":"https://github.com/airportyh/empath/issues"},"_id":"[email protected]","dist":{"shasum":"8b121bcccefcedf0bb1b881c1b2e683d36be8aa9","tarball":"http://localhost:5984/fullfatdb/empath/empath-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"airportyh","email":"[email protected]"},"maintainers":[{"name":"airportyh","email":"[email protected]"}]}},"readme":"ERROR: No README data found!","maintainers":[{"name":"airportyh","email":"[email protected]"}],"time":{"modified":"2013-06-25T15:36:00.078Z","created":"2013-06-24T18:01:25.322Z","0.0.0":"2013-06-24T18:03:45.973Z","0.0.1":"2013-06-25T15:36:00.078Z"},"author":{"name":"Toby Ho"},"repository":{"type":"git","url":"git://github.com/airportyh/empath.git"},"readmeFilename":"README.md","_revisions":{"start":5,"ids":["0c77c5a585fc01857fd8f0e2436684f0"]},"_attachments":{"empath-0.0.0.tgz":{"content_type":"application/octet-stream","revpos":0,"digest":"md5-w+0RsdbvtM0rsczpSCj60Q==","length":93461517,"stub":true},"empath-0.0.1.tgz":{"content_type":"application/octet-stream","revpos":0,"digest":"md5-odRX9VXpfa4BzGJJ6aNDaw==","length":93463510,"stub":true}}}
127.000.000.001.55001-127.000.000.001.05984:
--npmFullFat-P+/K2Fog--
127.000.000.001.05984-127.000.000.001.55001: HTTP/1.1 500 Internal Server Error
Server: CouchDB/1.1.0 (Erlang OTP/R14B02)
Date: Wed, 03 Sep 2014 13:05:44 GMT
Content-Type: text/plain;charset=utf-8
Content-Length: 53
Cache-Control: must-revalidate


127.000.000.001.05984-127.000.000.001.55001: {"error":"unknown_error","reason":"function_clause"}

Couchdb Logs:

[Wed, 03 Sep 2014 13:04:44 GMT] [info] [<0.2544.61>] 127.0.0.1 - - 'GET' /fullfatdb/empath?revs=true&att_encoding_info=true 200
[Wed, 03 Sep 2014 13:04:44 GMT] [error] [<0.2545.61>] function_clause error in HTTP request
[Wed, 03 Sep 2014 13:04:44 GMT] [info] [<0.2545.61>] Stacktrace: [{couch_doc,merge_stubs,
                                   [{doc,<<"empath">>,
                                     {5,
                                      [<<12,119,197,165,133,252,1,133,127,
                                         216,240,226,67,102,132,240>>]},
                                     {[{<<"name">>,<<"empath">>},
                                       {<<"description">>,
                                        <<"A cli tool that detects what module systems a particular Javascript library supports.">>},
                                       {<<"dist-tags">>,
                                        {[{<<"latest">>,<<"0.0.1">>}]}},
                                       {<<"versions">>,
                                        {[{<<"0.0.0">>,
                                           {[{<<"name">>,<<"empath">>},
                                             {<<"version">>,<<"0.0.0">>},
                                             {<<"description">>,
                                              <<"A cli tool that detects what module systems a particular Javascript library supports.">>},
                                             {<<"bin">>,
                                              {[{<<"empath">>,
                                                 <<"bin/empath.js">>}]}},
                                             {<<"dependencies">>,
                                              {[{<<"jsdom">>,<<"~0.6.5">>},
                                                {<<"deep-equal">>,<<"0.0.0">>},
                                                {<<"colors">>,
                                                 <<"~0.6.0-1">>}]}},
                                             {<<"devDependencies">>,
                                              {[{<<"chai">>,<<"~1.7.0">>}]}},
                                             {<<"scripts">>,
                                              {[{<<"test">>,
                                                 <<"mocha tests -u tdd -R tap">>}]}},
                                             {<<"repository">>,
                                              {[{<<"type">>,<<"git">>},
                                                {<<"url">>,
                                                 <<"git://github.com/airportyh/empath.git">>}]}},
                                             {<<"keywords">>,
                                              [<<"javascript modules tools cli">>]},
                                             {<<"author">>,
                                              {[{<<"name">>,<<"Toby Ho">>}]}},
                                             {<<"license">>,<<"MIT">>},
                                             {<<"gitHead">>,
                                              <<"9edb73772b185f0d9ac49c55eeb08bd8c18f2d44">>},
                                             {<<"bugs">>,
                                              {[{<<"url">>,
                                                 <<"https://github.com/airportyh/empath/issues">>}]}},
                                             {<<"_id">>,<<"[email protected]">>},
                                             {<<"dist">>,
                                              {[{<<"shasum">>,
                                                 <<"b7c703d73751e06e6aa4a0ec24cd0c6d6ed65d63">>},
                                                {<<"tarball">>,
                                                 <<"http://localhost:5984/fullfatdb/empath/empath-0.0.0.tgz">>}]}},
                                             {<<"_from">>,<<".">>},
                                             {<<"_npmVersion">>,<<"1.2.32">>},
                                             {<<"_npmUser">>,
                                              {[{<<"name">>,<<"airportyh">>},
                                                {<<"email">>,
                                                 <<"[email protected]">>}]}},
                                             {<<"maintainers">>,
                                              [{[{<<"name">>,<<"airportyh">>},
                                                 {<<"email">>,
                                                  <<"[email protected]">>}]}]}]}},
                                          {<<"0.0.1">>,
                                           {[{<<"name">>,<<"empath">>},
                                             {<<"version">>,<<"0.0.1">>},
                                             {<<"description">>,
                                              <<"A cli tool that detects what module systems a particular Javascript library supports.">>},
                                             {<<"bin">>,
                                              {[{<<"empath">>,
                                                 <<"bin/empath.js">>}]}},
                                             {<<"dependencies">>,
                                              {[{<<"jsdom">>,<<"~0.6.5">>},
                                                {<<"deep-equal">>,<<"0.0.0">>},
                                                {<<"colors">>,
                                                 <<"~0.6.0-1">>}]}},
                                             {<<"devDependencies">>,
                                              {[{<<"chai">>,<<"~1.7.0">>}]}},
                                             {<<"scripts">>,
                                              {[{<<"test">>,
                                                 <<"mocha tests -u tdd">>}]}},
                                             {<<"repository">>,
                                              {[{<<"type">>,<<"git">>},
                                                {<<"url">>,
                                                 <<"git://github.com/airportyh/empath.git">>}]}},
                                             {<<"keywords">>,
                                              [<<"javascript modules tools cli">>]},
                                             {<<"author">>,
                                              {[{<<"name">>,<<"Toby Ho">>}]}},
                                             {<<"license">>,<<"MIT">>},
                                             {<<"gitHead">>,
                                              <<"9edb73772b185f0d9ac49c55eeb08bd8c18f2d44">>},
                                             {<<"bugs">>,
                                              {[{<<"url">>,
                                                 <<"https://github.com/airportyh/empath/issues">>}]}},
                                             {<<"_id">>,<<"[email protected]">>},
                                             {<<"dist">>,
                                              {[{<<"shasum">>,
                                                 <<"8b121bcccefcedf0bb1b881c1b2e683d36be8aa9">>},
                                                {<<"tarball">>,
                                                 <<"http://localhost:5984/fullfatdb/empath/empath-0.0.1.tgz">>}]}},
                                             {<<"_from">>,<<".">>},
                                             {<<"_npmVersion">>,<<"1.2.32">>},
                                             {<<"_npmUser">>,
                                              {[{<<"name">>,<<"airportyh">>},
                                                {<<"email">>,
                                                 <<"[email protected]">>}]}},
                                             {<<"maintainers">>,
                                              [{[{<<"name">>,<<"airportyh">>},
                                                 {<<"email">>,
                                                  <<"[email protected]">>}]}]}]}}]}},
                                       {<<"readme">>,
                                        <<"ERROR: No README data found!">>},
                                       {<<"maintainers">>,
                                        [{[{<<"name">>,<<"airportyh">>},
                                           {<<"email">>,
                                            <<"[email protected]">>}]}]},
                                       {<<"time">>,
                                        {[{<<"modified">>,
                                           <<"2013-06-25T15:36:00.078Z">>},
                                          {<<"created">>,
                                           <<"2013-06-24T18:01:25.322Z">>},
                                          {<<"0.0.0">>,
                                           <<"2013-06-24T18:03:45.973Z">>},
                                          {<<"0.0.1">>,
                                           <<"2013-06-25T15:36:00.078Z">>}]}},
                                       {<<"author">>,
                                        {[{<<"name">>,<<"Toby Ho">>}]}},
                                       {<<"repository">>,
                                        {[{<<"type">>,<<"git">>},
                                          {<<"url">>,
                                           <<"git://github.com/airportyh/empath.git">>}]}},
                                       {<<"readmeFilename">>,
                                        <<"README.md">>}]},
                                     [{att,<<"empath-0.0.0.tgz">>,
                                       <<"application/octet-stream">>,
                                       93461517,93461517,
                                       <<195,237,17,177,214,239,180,205,43,177,
                                         204,233,72,40,250,209>>,
                                       0,stub,identity},
                                      {att,<<"empath-0.0.1.tgz">>,
                                       <<"application/octet-stream">>,
                                       93463510,93463510,
                                       <<161,212,87,245,85,233,125,174,1,204,
                                         98,73,233,163,67,107>>,
                                       0,stub,identity}],
                                     false,[]},
                                    nil]},
                                  {couch_db,
                                   '-prep_and_validate_replicated_updates/5-fun-5-',
                                   4},
                                  {lists,foldl,3},
                                  {couch_db,
                                   prep_and_validate_replicated_updates,5},
                                  {couch_db,update_docs,4},
                                  {couch_db,update_doc,4},
                                  {couch_httpd_db,update_doc,6},
                                  {couch_httpd_db,db_doc_req,3}]
[Wed, 03 Sep 2014 13:04:44 GMT] [info] [<0.2545.61>] 127.0.0.1 - - 'PUT' /fullfatdb/empath?new_edits=false 500

@terinjokes
Copy link
Contributor

The npm couchapp requires CouchDB 1.4.0 or greater, though 1.5.0 is recommended. I run CouchDB 1.6.1 and have not had these problems.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants