(1) When I run the app in the simulator and point it to a new
IrisCouch database, it seems like the initial setup goes well (a
design document appears on IrisCouch, and usually any items that
already exist in the app appear on IrisCouch), but then any subsequent
changes (like adding new items in the iOS app) fail to replicate
(2) I then tried running the app on the simulator and on my iPhone.
When I point my simulator to my phone, or my phone to the simulator,
for replication (with a URL like http://192.168.1.118:50971/grocery-sync,
with the correct IP and port), I just continuously get these timeout
messages, and no replication occurs:
I will have to do more reading on exactly how CouchDB supports authentication and user management. I do have this replicating with IrisCouch, though, which is great.
I assume this design document comes from "grocery-sync.couch" that's in the example app's Resources folder?
I've also gotten device-to-device replication working by changing the default_ios.ini in Frameworks/Couchbase.framework/CouchbaseResources. (I am aware of the security implications of this change.) However, since this is part of the framework, it won't be tracked by version control. Is there a preferred way to include a custom CouchDB .ini file that doesn't require modifying anything inside the Frameworks directory?
Thanks,
Chris
> Attachments:
> - smime.p7s
>
Thanks for the pointers, Jens.
I will have to do more reading on exactly how CouchDB supports authentication and user management. I do have this replicating with IrisCouch, though, which is great.
I assume this design document comes from "grocery-sync.couch" that's in the example app's Resources folder?
I've also gotten device-to-device replication working by changing the default_ios.ini in Frameworks/Couchbase.framework/CouchbaseResources. (I am aware of the security implications of this change.) However, since this is part of the framework, it won't be tracked by version control. Is there a preferred way to include a custom CouchDB .ini file that doesn't require modifying anything inside the Frameworks directory?
Do you have any pointers on how to set this up the demo to replicate
with IrisCouch? I have the exact same error but I cannot find any
information on how to get it to work besides this thread.
- (void) startContinuousSyncWith: (NSURL*)otherDbURL {
c. Create a custom .ini file which changes the bindings for
127.0.0.1 to 0.0.0.0 per J Chris Andersons post to allow UNIVERSAL
access your embedded server (be careful).
Hi Jens,
I can't get the UI driven replication to take place.
I added:
NSURLCredential* cred;
cred = [NSURLCredential credentialWithUser: @"username"
password: @"password"
persistence: NSURLCredentialPersistencePermanent];
NSURLProtectionSpace* space;
space = [[NSURLProtectionSpace alloc] initWithHost: @"domain.iriscouch.com"
port: 443
protocol: @"https"
realm: @"administrator"
authenticationMethod: NSURLAuthenticationMethodDefault];
[[NSURLCredentialStorage sharedCredentialStorage] setDefaultCredential: cred
forProtectionSpace: space];
Before:
CouchTouchDBServer* server = [CouchTouchDBServer sharedInstance];
In the TouchDB-iOS/Demo-iOS/DemoAppDelegate.m file but nothign happens after I run and go to the "Configure Sync" screen and press "Done" after pasting: https://fermyon.iriscouch.com/
Shouldn't it create a default DB named "grocery-sync" and replicate with it?
Please let me know what I may be doing wrong.
Thanks!
- Pulkit
On Saturday, February 25, 2012 5:57:34 PM UTC-6, Jens Alfke wrote:
Looking at the following logs, it seems like after failing to establish the first replication connection, it just goes into an idle state but I don't understand why it failed in the first place, how can I get more info?
Yup confirmed it by trial and error. Everytime I have enabled LogSync, LogSyncVerbose and LogRemoteRequest and connect to a DB, the replication happens otherwise it fails!