Skip to content

Instantly share code, notes, and snippets.

@pulkitsinghal
Created June 21, 2012 15:28
Show Gist options
  • Select an option

  • Save pulkitsinghal/2966381 to your computer and use it in GitHub Desktop.

Select an option

Save pulkitsinghal/2966381 to your computer and use it in GitHub Desktop.
TouchDB failed authentication when DB has reader role
[Thu, 21 Jun 2012 15:19:23 GMT] [debug] [<0.6665.0>] Accounted method: 'GET'
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6660.0>] 'GET' /mydb/_local/3eb1c1e3df111486a307de430e1acda7a60ffa68 {1,1} from "10.10.43.114"
Headers: [{'Accept',"application/json"},
{'Accept-Encoding',"gzip, deflate"},
{'Accept-Language',"en-us"},
{'Connection',"keep-alive"},
{'Host',"mydomain.iriscouch.com"},
{'User-Agent',"TouchDB/0.76"}]
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6660.0>] OAuth Params: []
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6660.0>] Not a reader: UserCtx {user_ctx,null,[],undefined} vs Names [] Roles [<<"_admin">>,<<"mydb_reader">>]
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6660.0>] Minor error in HTTP request: {unauthorized,
<<"You are not authorized to access this db.">>}
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6660.0>] Stacktrace: [{couch_db,open,2,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_db.erl"},
{line,86}]},
{couch_httpd_db,do_db_req,2,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_httpd_db.erl"},
{line,227}]},
{couch_httpd,handle_request_int,5,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_httpd.erl"},
{line,355}]},
{couch_httpd,handle_request,5,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_httpd.erl"},
{line,233}]},
{mochiweb_http,headers,5,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/mochiweb/mochiweb_http.erl"},
{line,226}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]
[Thu, 21 Jun 2012 15:19:31 GMT] [info] [<0.6660.0>] 10.10.43.114 - - GET /mydb/_local/3eb1c1e3df111486a307de430e1acda7a60ffa68 401
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6660.0>] httpd 401 error response:
{"error":"unauthorized","reason":"You are not authorized to access this db."}
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6660.0>] Accounted method: 'GET'
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6666.0>] 'GET' /mydb/_local/433b721ef57cc8f85556566ec76cbc296fea2df9 {1,
1} from "10.10.43.114"
Headers: [{'Accept',"application/json"},
{'Accept-Encoding',"gzip, deflate"},
{'Accept-Language',"en-us"},
{'Connection',"keep-alive"},
{'Host',"mydomain.iriscouch.com"},
{'User-Agent',"TouchDB/0.76"}]
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6666.0>] OAuth Params: []
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6666.0>] Not a reader: UserCtx {user_ctx,null,[],undefined} vs Names [] Roles [<<"_admin">>,
<<"mydb_reader">>]
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6666.0>] Minor error in HTTP request: {unauthorized,
<<"You are not authorized to access this db.">>}
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6666.0>] Stacktrace: [{couch_db,open,2,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_db.erl"},
{line,86}]},
{couch_httpd_db,do_db_req,2,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_httpd_db.erl"},
{line,227}]},
{couch_httpd,handle_request_int,5,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_httpd.erl"},
{line,355}]},
{couch_httpd,handle_request,5,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_httpd.erl"},
{line,233}]},
{mochiweb_http,headers,5,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/mochiweb/mochiweb_http.erl"},
{line,226}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]
[Thu, 21 Jun 2012 15:19:31 GMT] [info] [<0.6666.0>] 10.10.43.114 - - GET /mydb/_local/433b721ef57cc8f85556566ec76cbc296fea2df9 401
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6666.0>] httpd 401 error response:
{"error":"unauthorized","reason":"You are not authorized to access this db."}
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6666.0>] Accounted method: 'GET'
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6334.0>] 'GET' /mydb/_local/3eb1c1e3df111486a307de430e1acda7a60ffa68 {1,
1} from "10.10.43.114"
Headers: [{'Accept',"application/json"},
{'Accept-Encoding',"gzip, deflate"},
{'Accept-Language',"en-us"},
{'Authorization',"Basic cHVsa2l0c2luZ2hhbDozXjVJNCFxXkVo"},
{'Connection',"keep-alive"},
{'Host',"mydomain.iriscouch.com"},
{'User-Agent',"TouchDB/0.76"}]
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6334.0>] OAuth Params: []
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6166.0>] 'GET' /mydb/_local/433b721ef57cc8f85556566ec76cbc296fea2df9 {1,
1} from "10.10.43.114"
Headers: [{'Accept',"application/json"},
{'Accept-Encoding',"gzip, deflate"},
{'Accept-Language',"en-us"},
{'Authorization',"Basic cHVsa2l0c2luZ2hhbDozXjVJNCFxXkVo"},
{'Connection',"keep-alive"},
{'Host',"mydomain.iriscouch.com"},
{'User-Agent',"TouchDB/0.76"}]
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6166.0>] OAuth Params: []
[Thu, 21 Jun 2012 15:19:31 GMT] [info] [<0.6334.0>] 10.10.43.114 - - GET /mydb/_local/3eb1c1e3df111486a307de430e1acda7a60ffa68 200
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6334.0>] Accounted method: 'GET'
[Thu, 21 Jun 2012 15:19:31 GMT] [info] [<0.6166.0>] 10.10.43.114 - - GET /mydb/_local/433b721ef57cc8f85556566ec76cbc296fea2df9 200
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6166.0>] Accounted method: 'GET'
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6334.0>] 'GET' /mydb/ {1,1} from "10.10.43.114"
Headers: [{'Accept',"application/json"},
{'Accept-Encoding',"gzip, deflate"},
{'Accept-Language',"en-us"},
{'Connection',"keep-alive"},
{'Host',"mydomain.iriscouch.com"},
{'User-Agent',"TouchDB/0.76"}]
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6334.0>] OAuth Params: []
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6334.0>] Not a reader: UserCtx {user_ctx,null,[],undefined} vs Names [] Roles [<<"_admin">>,<<"mydb_reader">>]
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6334.0>] Minor error in HTTP request: {unauthorized,
<<"You are not authorized to access this db.">>}
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6334.0>] Stacktrace: [{couch_db,open,2,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_db.erl"},
{line,86}]},
{couch_httpd_db,do_db_req,2,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_httpd_db.erl"},
{line,227}]},
{couch_httpd,handle_request_int,5,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_httpd.erl"},
{line,355}]},
{couch_httpd,handle_request,5,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_httpd.erl"},
{line,233}]},
{mochiweb_http,headers,5,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/mochiweb/mochiweb_http.erl"},
{line,226}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]
[Thu, 21 Jun 2012 15:19:31 GMT] [info] [<0.6334.0>] 10.10.43.114 - - GET /mydb/ 401
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6334.0>] httpd 401 error response:
{"error":"unauthorized","reason":"You are not authorized to access this db."}
[Thu, 21 Jun 2012 15:19:31 GMT] [debug] [<0.6334.0>] Accounted method: 'GET'
[Thu, 21 Jun 2012 15:19:32 GMT] [debug] [<0.6663.0>] 'GET' /mydb/_changes?feed=continuous&heartbeat=300000&style=all_docs&since=355 {1,
1} from "10.10.43.114"
Headers: [{'Host',"mydomain.iriscouch.com"}]
[Thu, 21 Jun 2012 15:19:32 GMT] [debug] [<0.6663.0>] OAuth Params: [{"feed","continuous"},
{"heartbeat","300000"},
{"style","all_docs"},
{"since","355"}]
[Thu, 21 Jun 2012 15:19:32 GMT] [debug] [<0.6663.0>] Not a reader: UserCtx {user_ctx,null,[],undefined} vs Names [] Roles [<<"_admin">>,
<<"mydb_reader">>]
[Thu, 21 Jun 2012 15:19:32 GMT] [debug] [<0.6663.0>] Minor error in HTTP request: {unauthorized,
<<"You are not authorized to access this db.">>}
[Thu, 21 Jun 2012 15:19:32 GMT] [debug] [<0.6663.0>] Stacktrace: [{couch_db,open,2,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_db.erl"},
{line,86}]},
{couch_httpd_db,do_db_req,2,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_httpd_db.erl"},
{line,227}]},
{couch_httpd,handle_request_int,5,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_httpd.erl"},
{line,355}]},
{couch_httpd,handle_request,5,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/couchdb/couch_httpd.erl"},
{line,233}]},
{mochiweb_http,headers,5,
[{file,
"/home/ubuntu/hosting/build-couchdb/git-build/[email protected]%3Airiscouch%2Fcouchdb%3Ahosting_v1.2.0r7/src/mochiweb/mochiweb_http.erl"},
{line,226}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]
[Thu, 21 Jun 2012 15:19:32 GMT] [info] [<0.6663.0>] 10.10.43.114 - - GET /mydb/_changes?feed=continuous&heartbeat=300000&style=all_docs&since=355 401
[Thu, 21 Jun 2012 15:19:32 GMT] [debug] [<0.6663.0>] httpd 401 error response:
{"error":"unauthorized","reason":"You are not authorized to access this db."}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment