terinjokes / docker-npmjs

Docker image for a private npmjs repository
154 stars 26 forks source link

public_users.couch: no such file or directory #16

Closed tj closed 10 years ago

tj commented 10 years ago

still get this at seemingly random times, it was working fine for a few hours and then destroyed itself somehow haha

terinjokes commented 10 years ago

Are you starting and stopping the Docker container when you see this?

tj commented 10 years ago

nope, just went to start using it this morning and even then it worked for a little while then failed. It will probably happen again I'll see if I can get something reproducible

tj commented 10 years ago

haha yup there we go again.. wtf.., just on a simple npm-adduser

[Tue, 03 Dec 2013 18:11:55 GMT] [info] [<0.405.0>] 127.0.0.1 - - PUT /_users/org.couchdb.user%3Asegment?user=org.couchdb.user%3Asegment 409
2013-12-03T18:11:55.889Z INFO,REQUEST 172.17.42.1 PUT /-/user/org.couchdb.user:segment 409
[Tue, 03 Dec 2013 18:12:01 GMT] [error] [<0.819.0>] Could not open file /usr/local/var/lib/couchdb/public_users.couch: no such file or directory
[Tue, 03 Dec 2013 18:12:01 GMT] [info] [<0.781.0>] 127.0.0.1 - - GET /public_users/org.couchdb.user%3Asegment?user=org.couchdb.user%3Asegment 404
$ ls /usr/local/var/lib/couchdb/
_replicator.couch  _users.couch  registry.couch
terinjokes commented 10 years ago

Once public_user goes, CouchDB is probably in a very unhappy state.

That said, files just don't delete themselves for no reason. Can you look at the logs and try to see if anything happened?

We've ran this container for several months without running into this.

tj commented 10 years ago

rebuilding with --no-cache and i'll try again

tj commented 10 years ago

damn.. rebuilt the entire instance because docker was using all the disk, first build and I get this again just doing adduser. here's the entire log, the only thing that seems odd is Log :: function raised exception (new TypeError("doc['dist-tags'] is undefined", "undefined", 2)) with doc._id error: forbidden which happens on boot, the first adducer appears to work fine and then everything else fails... digging some more

root@d1c51a8ab01a:/# cat /usr/local/var/log/couchdb/couch.log
[Tue, 03 Dec 2013 19:37:04 GMT] [info] [<0.32.0>] Apache CouchDB has started on http://0.0.0.0:5984/
[Tue, 03 Dec 2013 19:37:04 GMT] [info] [<0.32.0>] Apache CouchDB has started on https://0.0.0.0:6984/
[Tue, 03 Dec 2013 19:37:14 GMT] [info] [<0.109.0>] 127.0.0.1 - - PUT /registry 201
[Tue, 03 Dec 2013 19:37:33 GMT] [info] [<0.32.0>] Apache CouchDB has started on http://0.0.0.0:5984/
[Tue, 03 Dec 2013 19:37:33 GMT] [info] [<0.32.0>] Apache CouchDB has started on https://0.0.0.0:6984/
[Tue, 03 Dec 2013 19:37:42 GMT] [info] [<0.108.0>] 127.0.0.1 - - GET /registry/_design/ghost 404
[Tue, 03 Dec 2013 19:37:43 GMT] [info] [<0.109.0>] 127.0.0.1 - - PUT /registry/_design/ghost 201
[Tue, 03 Dec 2013 19:37:43 GMT] [info] [<0.110.0>] 127.0.0.1 - - GET /registry/_design/ghost 200
[Tue, 03 Dec 2013 19:37:53 GMT] [info] [<0.173.0>] 127.0.0.1 - - GET /registry/_design/scratch 404
[Tue, 03 Dec 2013 19:37:53 GMT] [info] [<0.184.0>] 127.0.0.1 - - PUT /registry/_design/scratch 201
[Tue, 03 Dec 2013 19:37:53 GMT] [info] [<0.185.0>] 127.0.0.1 - - GET /registry/_design/scratch 200
[Tue, 03 Dec 2013 19:38:20 GMT] [info] [<0.32.0>] Apache CouchDB has started on http://0.0.0.0:5984/
[Tue, 03 Dec 2013 19:38:20 GMT] [info] [<0.32.0>] Apache CouchDB has started on https://0.0.0.0:6984/
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.185.0>] Opening index for db: registry idx: _design/scratch sig: "7db6113debe1fb929a7fcc171feff835"
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.190.0>] Starting index update for db: registry idx: _design/scratch
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.117.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/noCDN 200
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.190.0>] Index update finished for db: registry idx: _design/scratch
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.173.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/updated 200
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.116.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/listAll 200
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.115.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/allVersions 200
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.114.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/modified 200
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.113.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/modifiedPackage 200
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.112.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/noShasum 200
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.111.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/byEngine 200
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.110.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/countVersions 200
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.109.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/byKeyword 200
[Tue, 03 Dec 2013 19:38:30 GMT] [info] [<0.108.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/byField 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.123.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/needBuild 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.122.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/scripts 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.121.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/nodeWafInstall 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.120.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/badBins 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.119.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/orphanAttachments 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.118.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/starredByUser 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.200.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/starredByPackage 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.201.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/byUser 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.202.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/browseAuthorsRecent 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.203.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/npmTop 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.204.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/browseAuthors 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.205.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/browseUpdated 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.206.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/browseAll 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.207.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/analytics 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.208.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/dependedUpon 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.209.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/dependentVersions 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.210.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/browseStarUser 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.211.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/browseStarPackage 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.212.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/fieldsInUse 200
[Tue, 03 Dec 2013 19:38:31 GMT] [info] [<0.213.0>] 127.0.0.1 - - HEAD /registry/_design/scratch/_view/howBigIsYourPackage 200
[Tue, 03 Dec 2013 19:38:41 GMT] [info] [<0.214.0>] 127.0.0.1 - - COPY /registry/_design/scratch 201
[Tue, 03 Dec 2013 19:39:00 GMT] [info] [<0.32.0>] Apache CouchDB has started on http://0.0.0.0:5984/
[Tue, 03 Dec 2013 19:39:00 GMT] [info] [<0.32.0>] Apache CouchDB has started on https://0.0.0.0:6984/
[Tue, 03 Dec 2013 19:39:10 GMT] [info] [<0.108.0>] 127.0.0.1 - - PUT /registry/error%3A%20forbidden?new_edits=false 201
[Tue, 03 Dec 2013 19:50:28 GMT] [info] [<0.32.0>] Apache CouchDB has started on http://0.0.0.0:5984/
[Tue, 03 Dec 2013 19:50:28 GMT] [info] [<0.32.0>] Apache CouchDB has started on https://0.0.0.0:6984/
[Tue, 03 Dec 2013 19:53:44 GMT] [info] [<0.374.0>] Opening index for db: registry idx: _design/app sig: "7db6113debe1fb929a7fcc171feff835"
[Tue, 03 Dec 2013 19:53:44 GMT] [info] [<0.378.0>] Starting index update for db: registry idx: _design/app
[Tue, 03 Dec 2013 19:53:44 GMT] [info] [<0.385.0>] OS Process #Port<0.3207> Log :: function raised exception (new TypeError("doc['dist-tags'] is undefined", "undefined", 2)) with doc._id error: forbidden
[Tue, 03 Dec 2013 19:53:44 GMT] [info] [<0.378.0>] Index update finished for db: registry idx: _design/app
[Tue, 03 Dec 2013 19:53:44 GMT] [info] [<0.123.0>] 127.0.0.1 - - GET /registry/_design/app/_list/index/listAll 200
[Tue, 03 Dec 2013 19:53:56 GMT] [info] [<0.359.0>] 127.0.0.1 - - PUT /_users/org.couchdb.user%3Asegment?user=org.couchdb.user%3Asegment 201
[Tue, 03 Dec 2013 20:01:50 GMT] [info] [<0.399.0>] 127.0.0.1 - - GET /registry 200
[Tue, 03 Dec 2013 20:03:33 GMT] [info] [<0.108.0>] 127.0.0.1 - - PUT /_users/org.couchdb.user%3Asegment?user=org.couchdb.user%3Asegment 409
[Tue, 03 Dec 2013 20:05:05 GMT] [info] [<0.113.0>] 127.0.0.1 - - PUT /_users/org.couchdb.user%3Asegment?user=org.couchdb.user%3Asegment 409
[Tue, 03 Dec 2013 20:05:05 GMT] [error] [<0.1073.0>] Could not open file /usr/local/var/lib/couchdb/public_users.couch: no such file or directory
[Tue, 03 Dec 2013 20:05:05 GMT] [info] [<0.114.0>] 127.0.0.1 - - GET /public_users/org.couchdb.user%3Asegment?user=org.couchdb.user%3Asegment 404
tj commented 10 years ago

onto other npm related issues now, for some reason a rebuild worked this time