Created
May 30, 2012 00:50
-
-
Save bsquared/2831840 to your computer and use it in GitHub Desktop.
TouchDb-Android Replication Errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## createTarget=true, target does not exist | |
## https://admin:[email protected]/_log | |
[Tue, 29 May 2012 22:24:02 GMT] [info] [<0.273.0>] 10.77.61.252 - - GET /notes_test/_changes?feed=longpoll&heartbeat=300000 404 | |
[Tue, 29 May 2012 22:24:02 GMT] [info] [<0.274.0>] 10.77.61.252 - - PUT /notes_test 401 | |
## logcat | |
V/TouchNote( 470): starting TouchDB | |
V/TDCollateJSON( 470): SQLite3 handle is 1140848 | |
V/TouchNote( 470): starting ektorp | |
I/ActivityManager( 64): Displayed bsquared.android.touchnotes/.TouchNotesActivity: +1s728ms | |
W/InputManagerService( 64): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@4065d750 (uid=10013 pid=132) | |
V/TDDatabase( 470): Re-indexing view notes-local/byDate ... | |
V/TDDatabase( 470): Begin transaction (level 1)... | |
V/TDDatabase( 470): Committing transaction (level 1)... | |
V/TDDatabase( 470): Query notes-local/byDate: SELECT key, value, docid FROM maps, revs, docs WHERE maps.view_id=? AND revs.sequence = maps.sequence AND docs.doc_id = revs.doc_id ORDER BY key DESC LIMIT ? OFFSET ? | |
D/dalvikvm( 470): GC_CONCURRENT freed 1138K, 56% free 3130K/7047K, external 2379K/2971K, paused 8ms+8ms | |
V/TDDatabase( 470): TDPuller [https://admin:[email protected]/notes_test] STARTING ... | |
W/TDDatabase( 470): TDPuller [https://admin:[email protected]/notes_test] starting ChangeTracker with since=null | |
V/TDDatabase( 470): Making request to https://admin:[email protected]/notes_test/_changes?feed=longpoll&heartbeat=300000 | |
V/TDDatabase( 470): TDPusher [https://admin:[email protected]/notes_test] STARTING ... | |
V/TDDatabase( 470): Remote db might not exist; creating it... | |
V/TDDatabase( 470): TDPusher [https://admin:[email protected]/notes_test]: PUT . | |
V/TDDatabase( 470): com.couchbase.touchdb.support.TDRemoteRequest@4067a388: PUT .https://admin:[email protected]/notes_test | |
D/dalvikvm( 470): GC_CONCURRENT freed 901K, 54% free 3273K/7047K, external 2002K/2514K, paused 10ms+11ms | |
D/dalvikvm( 470): GC_CONCURRENT freed 947K, 55% free 3196K/7047K, external 2002K/2514K, paused 9ms+9ms | |
D/dalvikvm( 470): GC_FOR_MALLOC freed 136K, 51% free 3463K/7047K, external 2002K/2514K, paused 63ms | |
I/dalvikvm-heap( 470): Grow heap (frag case) to 7.964MB for 87396-byte allocation | |
D/dalvikvm( 470): GC_FOR_MALLOC freed 2K, 51% free 3546K/7175K, external 2002K/2514K, paused 98ms | |
E/TDDatabase( 470): Change tracker got error 404 | |
D/TDDatabase( 470): in stopped | |
D/TDDatabase( 470): posting stopped | |
W/TDDatabase( 470): TDPuller [https://admin:[email protected]/notes_test]: ChangeTracker stopped | |
V/TDDatabase( 470): TDPuller [https://admin:[email protected]/notes_test] STOPPED | |
W/DefaultRequestDirector( 470): Authentication error: Unable to respond to any of these challenges: {} | |
E/TDDatabase( 470): Got error 401 | |
E/TDDatabase( 470): Request was for: org.apache.http.client.methods.HttpPut@40590510 | |
E/TDDatabase( 470): Status reason: Unauthorized | |
E/TDDatabase( 470): Failed to create remote db | |
E/TDDatabase( 470): org.apache.http.client.HttpResponseException: Unauthorized | |
E/TDDatabase( 470): at com.couchbase.touchdb.support.TDRemoteRequest.run(TDRemoteRequest.java:96) | |
E/TDDatabase( 470): at java.lang.Thread.run(Thread.java:1019) | |
V/TDDatabase( 470): TDPusher [https://admin:[email protected]/notes_test] STOPPING... | |
V/TDDatabase( 470): TDPusher [https://admin:[email protected]/notes_test] STOPPED | |
W/TDDatabase( 470): Change tracker calling stop | |
D/TDDatabase( 470): in stopped | |
V/TDDatabase( 470): Chagne tracker run loop exiting | |
## create database with curl | |
[Tue, 29 May 2012 22:39:44 GMT] [info] [<0.320.0>] 10.77.61.252 - - PUT /notes_test 201 | |
## createTarget=true, target exists | |
V/TouchNote( 470): starting TouchDB | |
V/TDCollateJSON( 470): SQLite3 handle is 2982024 | |
V/TouchNote( 470): starting ektorp | |
I/ActivityManager( 64): Displayed bsquared.android.touchnotes/.TouchNotesActivity: +1s314ms | |
V/TDDatabase( 470): Re-indexing view notes-local/byDate ... | |
V/TDDatabase( 470): Begin transaction (level 1)... | |
V/TDDatabase( 470): Committing transaction (level 1)... | |
V/TDDatabase( 470): Query notes-local/byDate: SELECT key, value, docid FROM maps, revs, docs WHERE maps.view_id=? AND revs.sequence = maps.sequence AND docs.doc_id = revs.doc_id ORDER BY key DESC LIMIT ? OFFSET ? | |
D/dalvikvm( 470): GC_CONCURRENT freed 724K, 56% free 3162K/7175K, external 2002K/2514K, paused 16ms+16ms | |
D/dalvikvm( 470): GC_CONCURRENT freed 719K, 56% free 3221K/7175K, external 2002K/2514K, paused 9ms+6ms | |
V/TDDatabase( 470): TDPusher [https://admin:[email protected]/notes_test] STARTING ... | |
V/TDDatabase( 470): Remote db might not exist; creating it... | |
V/TDDatabase( 470): TDPusher [https://admin:[email protected]/notes_test]: PUT . | |
V/TDDatabase( 470): com.couchbase.touchdb.support.TDRemoteRequest@405cd1b0: PUT .https://admin:[email protected]/notes_test | |
V/TDDatabase( 470): TDPuller [https://admin:[email protected]/notes_test] STARTING ... | |
W/TDDatabase( 470): TDPuller [https://admin:[email protected]/notes_test] starting ChangeTracker with since=null | |
V/TDDatabase( 470): Making request to https://admin:[email protected]/notes_test/_changes?feed=longpoll&heartbeat=300000 | |
D/dalvikvm( 470): GC_CONCURRENT freed 750K, 53% free 3388K/7175K, external 2002K/2514K, paused 9ms+8ms | |
D/dalvikvm( 132): GC_EXPLICIT freed 80K, 50% free 2950K/5831K, external 6046K/7498K, paused 134ms | |
W/DefaultRequestDirector( 470): Authentication error: Unable to respond to any of these challenges: {} | |
E/TDDatabase( 470): Got error 401 | |
E/TDDatabase( 470): Request was for: org.apache.http.client.methods.HttpPut@40542998 | |
E/TDDatabase( 470): Status reason: Unauthorized | |
E/TDDatabase( 470): Failed to create remote db | |
E/TDDatabase( 470): org.apache.http.client.HttpResponseException: Unauthorized | |
E/TDDatabase( 470): at com.couchbase.touchdb.support.TDRemoteRequest.run(TDRemoteRequest.java:96) | |
E/TDDatabase( 470): at java.lang.Thread.run(Thread.java:1019) | |
V/TDDatabase( 470): TDPusher [https://admin:[email protected]/notes_test] STOPPING... | |
V/TDDatabase( 470): TDPusher [https://admin:[email protected]/notes_test] STOPPED | |
D/dalvikvm( 470): GC_CONCURRENT freed 777K, 51% free 3559K/7175K, external 2002K/2514K, paused 9ms+17ms | |
D/dalvikvm( 470): GC_CONCURRENT freed 872K, 49% free 3661K/7175K, external 2002K/2514K, paused 14ms+8ms | |
W/KeyCharacterMap( 470): No keyboard for id 0 | |
W/KeyCharacterMap( 470): Using default keymap: /system/usr/keychars/qwerty.kcm.bin | |
W/InputManagerService( 64): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@40552910 (uid=10035 pid=470) | |
W/IInputConnectionWrapper( 470): showStatusIcon on inactive InputConnection | |
V/TouchNote( 470): onDestroy | |
V/TDDatabase( 470): Chagne tracker run loop exiting | |
D/TDDatabase( 470): in stopped | |
V/TDDatabase( 470): TDPuller [https://admin:[email protected]/notes_test] STOPPED | |
## createTarget=false, target exists | |
https://admin:[email protected]/_log | |
[Tue, 29 May 2012 22:47:09 GMT] [info] [<0.340.0>] 10.77.61.252 - - GET /notes_test/_changes?feed=longpoll&heartbeat=300000 200 | |
## logcat | |
V/TouchNote( 571): starting TouchDB | |
D/dalvikvm( 571): Trying to load lib /data/data/bsquared.android.touchnotes/lib/libcom_couchbase_touchdb_TDCollateJSON.so 0x405131f8 | |
D/dalvikvm( 571): Added shared lib /data/data/bsquared.android.touchnotes/lib/libcom_couchbase_touchdb_TDCollateJSON.so 0x405131f8 | |
V/TDCollateJSON( 571): SQLite3 handle is 2879752 | |
V/TouchNote( 571): starting ektorp | |
I/ActivityManager( 64): Displayed bsquared.android.touchnotes/.TouchNotesActivity: +3s186ms | |
V/TDDatabase( 571): Re-indexing view notes-local/byDate ... | |
V/TDDatabase( 571): Begin transaction (level 1)... | |
V/TDDatabase( 571): Committing transaction (level 1)... | |
V/TDDatabase( 571): Query notes-local/byDate: SELECT key, value, docid FROM maps, revs, docs WHERE maps.view_id=? AND revs.sequence = maps.sequence AND docs.doc_id = revs.doc_id ORDER BY key DESC LIMIT ? OFFSET ? | |
D/dalvikvm( 571): GC_CONCURRENT freed 1204K, 58% free 2876K/6727K, external 2002K/2137K, paused 16ms+7ms | |
D/dalvikvm( 571): GC_CONCURRENT freed 601K, 57% free 2941K/6727K, external 2002K/2137K, paused 7ms+13ms | |
V/TDDatabase( 571): TDPusher [https://admin:[email protected]/notes_test] STARTING ... | |
V/TDDatabase( 571): TDPuller [https://admin:[email protected]/notes_test] STARTING ... | |
W/TDDatabase( 571): TDPuller [https://admin:[email protected]/notes_test] starting ChangeTracker with since=null | |
V/TDDatabase( 571): Making request to https://admin:[email protected]/notes_test/_changes?feed=longpoll&heartbeat=300000 | |
D/dalvikvm( 571): GC_CONCURRENT freed 690K, 57% free 2955K/6727K, external 2002K/2137K, paused 8ms+6ms | |
D/dalvikvm( 321): GC_EXPLICIT freed 2K, 54% free 2539K/5511K, external 1625K/2137K, paused 328ms | |
D/dalvikvm( 571): GC_CONCURRENT freed 649K, 55% free 3077K/6727K, external 2002K/2137K, paused 9ms+9ms | |
D/dalvikvm( 571): GC_FOR_MALLOC freed 111K, 54% free 3150K/6727K, external 2002K/2137K, paused 57ms | |
I/dalvikvm-heap( 571): Grow heap (frag case) to 7.659MB for 87396-byte allocation | |
D/dalvikvm( 571): GC_FOR_MALLOC freed <1K, 53% free 3235K/6855K, external 2002K/2137K, paused 62ms | |
D/dalvikvm( 571): GC_CONCURRENT freed 771K, 53% free 3263K/6855K, external 2002K/2137K, paused 8ms+7ms | |
D/dalvikvm( 262): GC_EXPLICIT freed 8K, 55% free 2597K/5703K, external 1625K/2137K, paused 71ms | |
D/dalvikvm( 132): GC_EXPLICIT freed 97K, 49% free 2983K/5831K, external 6096K/7498K, paused 99ms | |
W/KeyCharacterMap( 571): No keyboard for id 0 | |
W/KeyCharacterMap( 571): Using default keymap: /system/usr/keychars/qwerty.kcm.bin | |
W/InputManagerService( 64): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@406404c8 (uid=10035 pid=571) | |
W/IInputConnectionWrapper( 571): showStatusIcon on inactive InputConnection | |
V/TouchNote( 571): onDestroy | |
V/TDDatabase( 571): TDPusher [https://admin:[email protected]/notes_test] STOPPED | |
V/TDDatabase( 571): Chagne tracker run loop exiting | |
D/TDDatabase( 571): in stopped | |
V/TDDatabase( 571): TDPuller [https://admin:[email protected]/notes_test] STOPPED | |
I/ContinuousChangesFeed( 571): Changes feed was interrupted | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment