Revision 303736303737 () - Diff

Link to this snippet: https://friendpaste.com/7K7zNRMK0sEaITradrRXAt
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
Send the following request to http://localhost:44968/_replicate
{'source': 'bookmarks',
'target': {
'url': 'https://couchdb.one.ubuntu.com:443/u%2F3c5%2F9dc%2F21%2Fbookmarks',
'auth': {
'oauth': {
'consumer_secret': 'XXX',
'token': 'XXX',
'consumer_key': 'XXX',
'token_secret': 'XXX'
}
}
}
}

Couch says the following:

[Fri, 02 Oct 2009 13:35:43 GMT] [info] [<0.6028.0>] 127.0.0.1 - - 'POST' /_replicate 401



[Fri, 02 Oct 2009 13:35:44 GMT] [error] [<0.6032.0>] {error_report,<0.24.0>,

{<0.6032.0>,crash_report,

[[{initial_call,{couch_rep,init,['Argument__1']}},

{pid,<0.6032.0>},

{registered_name,[]},

{error_info,

{exit,

{db_not_found,

<<"https://couchdb.one.ubuntu.com:443/u%2F3c5%2F9dc%2F21%2Fbookmarks/">>},

[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},

{ancestors,

[couch_rep_sup,couch_primary_services,couch_server_sup,<0.1.0>]},

{messages,[]},

{links,[<0.49.0>]},

{dictionary,[]},

{trap_exit,true},

{status,running},

{heap_size,4181},

{stack_size,24},

{reductions,5265}],

[]]}}



but that database *does* exist:

$ ./utilities/web_api_tool.py --url https://couchdb.one.ubuntu.com:443/u%2F3c5%2F9dc%2F21%2Fbookmarks/
{'update_seq': 0, 'disk_size': 79, 'purge_seq': 0, 'doc_count': 0, 'compact_running': False, 'db_name': 'u/3c5/9dc/21/bookmarks', 'doc_del_count': 0, 'instance_start_time': '1254482932364785', 'disk_format_version': 4}


Debug log from localhost CouchDB:

[Fri, 02 Oct 2009 14:20:44 GMT] [debug] [<0.93.0>] DB at https://couchdb.one.ubuntu.com:443/u%2F3c5%2F9dc%2F21%2Fbookmarks/ could not be found because {ok,

"401",

[{"Date",

"Fri, 02 Oct 2009 14:20:44 GMT"},

{"Server",

"CouchDB/0.10.0a (Erlang OTP/R13B)"},

{"WWW-Authenticate",

"Basic realm=\"administrator\""},

{"Content-Type",

"application/json"},

{"Content-Length",

"61"},

{"Cache-Control",

"must-revalidate"},

{"Via",

"1.1 couchdb.one.ubuntu.com"}],

[]}



[Fri, 02 Oct 2009 14:20:44 GMT] [error] [<0.93.0>] {error_report,<0.24.0>,

{<0.93.0>,crash_report,

[[{initial_call,{couch_rep,init,['Argument__1']}},

{pid,<0.93.0>},

{registered_name,[]},

{error_info,

{exit,

{db_not_found,

<<"https://couchdb.one.ubuntu.com:443/u%2F3c5%2F9dc%2F21%2Fbookmarks/">>},

[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},

{ancestors,

[couch_rep_sup,couch_primary_services,couch_server_sup,<0.1.0>]},

{messages,[]},

{links,[<0.49.0>]},

{dictionary,[]},

{trap_exit,true},

{status,running},

{heap_size,6765},

{stack_size,24},

{reductions,5207}],

[]]}}



[Fri, 02 Oct 2009 14:20:44 GMT] [debug] [<0.91.0>] httpd 404 error response:

{"error":"db_not_found","reason":"could not open https://couchdb.one.ubuntu.com:443/u%2F3c5%2F9dc%2F21%2Fbookmarks/"}