Skip to content

Instantly share code, notes, and snippets.

View seldo's full-sized avatar

Laurie Voss seldo

View GitHub Profile
[Fri, 14 Feb 2014 00:45:12 GMT] [info] [<0.19467.4>] recording a checkpoint for `https://skimdb.npmjs.com/registry/` -> `registry` at source update_seq 129052
[Fri, 14 Feb 2014 00:45:12 GMT] [error] [<0.19467.4>] Replication `16d34e6d5348a31958617fee92fc5e33+continuous` (`https://skimdb.npmjs.com/registry/` -> `registry`) failed: {checkpoint_commit_failure,<<"Error updating the source checkpoint document: conflict">>}
[Fri, 14 Feb 2014 00:45:12 GMT] [error] [<0.144.0>] Error in replication `16d34e6d5348a31958617fee92fc5e33+continuous` (triggered by document `registry`): {checkpoint_commit_failure,<<"Error updating the source checkpoint document: conflict">>}
Restarting replication in 5 seconds.
[Fri, 14 Feb 2014 00:45:12 GMT] [error] [<0.19467.4>] ** Generic server <0.19467.4> terminating
** Last message in was {'$gen_cast',checkpoint}
** When Server state == {rep_state,
{rep,
{"16d34e6d5348a31958617fee92fc5e33","+continuous"},
{http
http 409 https://registry.npmjs.org/ftp-deploy
error Error: conflict Document update conflict.: ftp-deploy
error at RegClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:275:14)
error at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:123:22)
error at Request.EventEmitter.emit (events.js:98:17)
error at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:893:14)
error at Request.EventEmitter.emit (events.js:117:20)
error at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:844:12)
error at IncomingMessage.EventEmitter.emit (events.js:117:20)
error at _stream_readable.js:920:16
// Validation for parameters
var downloadsSchema = {
// valid periods: 2014-02-01, 2014-01-02:2014-01-04, all-time, last-day, last-week
period: Joi.string().regex(/(\d{4}-\d{2}-\d{2}(:\d{4}-\d{2}-\d{2})?|[\w-]+)/).required(),
// valid package names: jquery, jquery-express, socket.io, socket.io-express
package: Joi.string().regex(/(^[a-zA-Z0-9]([^\/\(\)&\?#\|<>@:%\s\\\*'"!~`])*)*/).optional()
};
// Add the routes
server.route({
This comment is from "gflandre" on our blog post here: http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more (apologies for being unable to permalink directly to the comment)
-----
So I figured out a way to make it work on Elastic Beanstalk:
Put this in `.ebextensions`:
commands:
01_enable_rootaccess:
This fix is from torey_rocketreferrals in the comments on here:
http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more
(apologies for being unable to permalink directly to the comment)
----
For you AWS Opsworks people. Create a recipe with the following
and add it to the setup event on your layer. That will let you launch new servers.
execute 'npm config set ca ""' do
This fix is from Jico Baligod in the comments on here:
http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more
(apologies for being unable to permalink directly to the comment)
------
In CircleCI, you can add this to your circle.yml file for a fix:
machine:
pre:
This fix is from substack in the comments on here:
http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more
(apologies for being unable to permalink directly to the comment)
-----
In travis-ci you can work around this by setting:
before_install:
- npm config set ca ""
{gen_server,call,
[couch_query_servers,
{get_proc,{doc,<<"_design/_replicator">>,
{1,
[<<91,250,44,153,238,254,43,46,180,150,45,181,
10,163,207,212>>]},
{[{<<"language">>,<<"javascript">>},
{<<"validate_doc_update">>,
<<"\n function(newDoc, oldDoc, userCtx) {\n function reportError(error_msg) {\n log('Error writing document `' + newDoc._id +\n '\\' to the replicator database: ' + error_msg);\n throw({forbidden: error_msg});\n }\n\n function validateEndpoint(endpoint, fieldName) {\n if ((typeof endpoint !== 'string') &&\n ((typeof endpoint !== 'object') || (endpoint === null))) {\n\n reportError('The `' + fieldName + '\\' property must exist' +\n ' and be either a string or an object.');\n
curl -X PUT -H content-type:application/json -u XXXXXXXXX http://localhost:15984/_replicator/users -d @registry.replication | json reason
{gen_server,call,
[couch_query_servers,
{get_proc,{doc,<<"_design/_replicator">>,
{1,
[<<91,250,44,153,238,254,43,46,180,150,45,181,
10,163,207,212>>]},
{[{<<"language">>,<<"javascript">>},
{<<"validate_doc_update">>,
2014-03-16T00:03:45Z 78.97.64.65 "-" "GET /npm/public/registry/qs/_attachments/qs-0.6.6.tgz" 503 "node/v0.10.26 linux x64" "MISS" "shield__cache_fra1220_FRA__frankfurt_de"
2014-03-16T00:03:46Z 176.192.214.136 "-" "GET /npm/public/registry/mustache/_attachments/mustache-0.8.1.tgz" 503 "node/v0.10.26 darwin x64" "MISS" "shield__cache_fra1230_FRA__frankfurt_de"
2014-03-16T00:03:49Z 176.192.214.136 "-" "GET /npm/public/registry/cookie-jar/_attachments/cookie-jar-0.2.0.tgz" 503 "node/v0.10.26 darwin x64" "MISS" "shield__cache_fra1220_FRA__frankfurt_de"
2014-03-16T00:03:49Z 176.192.214.136 "-" "GET /npm/public/registry/match-stream/_attachments/match-stream-0.0.2.tgz" 503 "node/v0.10.26 darwin x64" "MISS" "shield__cache_fra1222_FRA__frankfurt_de"
2014-03-16T00:03:52Z 84.114.125.71 "-" "GET /npm/public/registry/strip-ansi/_attachments/strip-ansi-0.1.1.tgz" 503 "node/v0.10.26 darwin x64" "MISS" "shield__cache_fra1221_FRA__frankfurt_de"
2014-03-16T00:03:53Z 176.192.214.136 "-" "GET /npm/public/registry/domutils/_attac