Re: CBL on tvOS?

2018-03-08 Thread Todd Freese
Thanks. We are using 1.4x so I will give it a shot. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view

CBL on tvOS?

2018-03-07 Thread Todd Freese
Can anyone comment on using CBL on an AppleTV? (tvOS) We are using 1.4x of CBL. How well does it work? Any known issues? Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it

CBL Warning

2017-10-17 Thread Todd Freese
Sometimes I get the following warning from CBL: WARNING: CBLRestPusher[https://:443/hndb/] removePending: sequence 1 not in set, for rev {-_qznj5etCPgeAO--L0KxtG #1-2168395602e95b440b0ddc9885d161e9} {at -[CBLRestPusher removePending:]:184} What does this mean? I sometimes getting it after

Strange CBL IO console warning

2017-06-02 Thread Todd Freese
I just started getting the following console warning from CBL IOS: WARNING: SQLite error (code 1): no such table: cfurl_cache_response {at errorLogCallback:125} Does anyone know what this is? Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobil

SG & Nginx

2017-05-24 Thread Todd Freese
We are using nginx as a load balancer/reverse proxy for several SG nodes. Should nginx be configured for sticky sessions? The docs don't mention it, but it seems like it would be a good idea. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" gro

Updating a CBLModel vs doc update method.

2017-04-24 Thread Todd Freese
When changing a CBLModel property and saving the model, does it use the CBLDocument update method? Is there any advantage to instead do a: Event *event = ... // where event is a CBLModel. CBLDocument *doc = event.document; NSError* error; if (![doc update: ^BOOL(CBLUnsavedRevision *newRev) {

Re: Peer to Peer in 2.0

2017-04-19 Thread Todd Freese
Will SG 2.0 still support the REST API for data access as well as SG Views? We use them heavily to support a web client. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, se

Re: Storing large files especially zip in couchbase

2017-04-09 Thread Todd Freese
Do you think the SG limit will ever be raised? T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this

Re: Storing large files especially zip in couchbase

2017-04-07 Thread Todd Freese
Is there still a 20meg max limit on file attachments? T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To vi

Developer needed for IOS to Android port.

2017-03-07 Thread Todd Freese
I am in need of a developer to port a medium sized IOS app to Android. The existing IOS app is based on CBL. We are based in Chicago, but remote work is fine. Timeframe for the work is mid-March to mid-April. Please contact me directly at toddffilmworkers.com. Todd -- You received this messa

Re: How does 2.0 deal with CBLViews?

2017-02-07 Thread Todd Freese
I agree. I have a lot of existing work with map/reduce. I would much rather move to 2.0 and migrate them over time. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send

Re: Bulk operations and PouchDB

2017-01-12 Thread Todd Freese
Thanks Jens. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion on the web visit http

Bulk operations and PouchDB

2017-01-12 Thread Todd Freese
If I syncing with PouchDB and SG, are the bulk operations supported? Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googl

Re: ANN: Invitation to try LiteCore (the 2.0 client engine in development)

2017-01-07 Thread Todd Freese
This is really great news! Thanks Jens and the rest of the team on all your hard work. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+u

Re: SG crashing on launch

2016-11-29 Thread Todd Freese
I downgraded to SG 1.3 and it's connecting with no problems. So issue is only in 1.3.1. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+

Re: SG crashing on launch

2016-11-29 Thread Todd Freese
No errors in the CBS log via the admin. Here is my SG Config. { "interface":"45.33.39.219:4984", "adminInterface":"45.33.39.219:4985", "databases": { "kioshdb": { "server": "http://45.33.39.219:8091";, "bucket

SG crashing on launch

2016-11-29 Thread Todd Freese
I am having troubles getting SG 1.3.1 to connect to CBS 4.5.1 on Linode RedHat 7. When launch SG I get the following using a very basic config: /opt/couchbase-sync-gateway/bin/sync_gateway config.json 2016-11-29T09:20:33.337-06:00 Couchbase Sync Gateway/1.3.1(16;f18e833) 2016-11-2

Re: CBL 1.3.1 Mac: Is calling setMapBlock meant to be called just once per app launch?

2016-11-21 Thread Todd Freese
I'm not an expert, but I think you will still have a problem. The map block can only reference json values from the doc it is processing. Nothing external. This is because the map block could get called at anytime. I always ask myself, could this map block get called at anytime and still be cor

Re: CBL 1.3.1 Mac: Is calling setMapBlock meant to be called just once per app launch?

2016-11-21 Thread Todd Freese
Your map block can't rely on any external references because it must be completely deterministic. Note the following rules from the docs: - It must be a "pure " function: That means any time it's called with the same input, it must produce

Time series average view

2016-11-11 Thread Todd Freese
I have a CBL (IOS) database of log events over time. There are three different types of events that are time stamped. I need to chart the number of events, by type, over time. For example, the number of A type events, over 2 hours, in 5 minute intervals. How would I go about creating a view fo

Re: CBLUITableSource?

2016-11-03 Thread Todd Freese
Thanks Jens, that worked perfectly! T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion

CBLUITableSource?

2016-11-03 Thread Todd Freese
Is there a CBLNSTableSource equivalant to CBLUITableSource for use in a Mac App that is using CBL? Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mob

Re: SG View with Reduce

2016-10-26 Thread Todd Freese
Bingo! Thanks! Using the SG admin port solved the problem. Although it really sucks having to add the server side proxying/middleware to use the admin port. It just adds a lot of additional complexity. I commented on the existing GitHub issue as to how important this issue is to us. Thanks for

Re: SG View with Reduce

2016-10-26 Thread Todd Freese
Thanks Jens for the doc reference. I have this working CBL view: CBLView *view = [self.document.database viewNamed: @"jobs/uniqueDayNumbersForJob"]; if (!view.mapBlock) { NSString *const kSceneDocType = [Scene docType]; [view setMapBlock: MAPBLOCK({ if ([doc[@"type"] isEqualT

Re: SG View with Reduce

2016-10-25 Thread Todd Freese
Anyone have any thoughts on this? What is the syntax for adding a reduce function to the above map function? This is for a SG view called via the SG REST API. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this grou

SG View with Reduce

2016-10-11 Thread Todd Freese
What is the syntax for a map/reduce function for SG? (An SG view called from the SG REST API). I have this view which works: { "views":{ "tags_for_scene":{ "map":"function (doc, meta) { if (doc.type == \"tag\") { emit([doc.scene_id, doc.tagName], doc); } }" }

Conflict Resolution Method

2016-10-06 Thread Todd Freese
I'm posting my conflict resolution code to see if this is the correct way to handle this. In my app, I don't need to do any merging of properties in the case if a conflict. CBLs way of picking a winning revision works perfectly well for our needs. However, I do want to clean up the database in

Re: New version of Couchbase Lite Viewer?

2016-09-12 Thread Todd Freese
Yes. If the 1.3 CBL framework is included, it opens the datafile. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroup

Re: New version of Couchbase Lite Viewer?

2016-09-12 Thread Todd Freese
Just following up on this. I was able to build a working version from source if I use the CBL1.3 framework. I don't have to change any code. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop rec

Re: New version of Couchbase Lite Viewer?

2016-09-09 Thread Todd Freese
Anyone else having this problem? Any thoughts on how to fix it? T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.

Re: New version of Couchbase Lite Viewer?

2016-09-08 Thread Todd Freese
I get the error: "The document ".cblite2" could not be opened. This database is too new to be opened by this app. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send

New version of Couchbase Lite Viewer?

2016-09-08 Thread Todd Freese
Is there a new version of the Couchbase Lite Viewer app for Mac? Version 0.61 will not open my datafile which is CBL v1.3. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from i

Re: Anyone still need iOS 7 support?

2016-08-27 Thread Todd Freese
We only support iOS 8 and on. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion on

Re: ANN: Couchbase Mobile meetup, July 21st, Mountain View

2016-07-19 Thread Todd Freese
Will this be recorded by any chance? T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussio

Re: need to know basics of couchbase lite

2016-06-24 Thread Todd Freese
This video gives the basics. https://www.youtube.com/watch?v=RZw6ggbhtDQ -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@google

IPv6?

2016-05-05 Thread Todd Freese
I just saw that Apple is requiring that all iOS apps must use IPv6 starting June 1st. Is CBL for iOS and SG IPv6 ready? Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it,

Re: How to purge documents which are replicated to server?

2016-04-07 Thread Todd Freese
+1 on this improvement. That would be very helpful to me too. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.co

Re: View CouchBaselite

2016-03-21 Thread Todd Freese
Although this does not answer all of your questions, if you want to see the actual data inside your local devices couchbaselite datafile, there is an application for this: https://github.com/couchbaselabs/CouchbaseLiteViewer/releases I find it really useful when you want to manually look at the

Re: ANN: Couchbase Mobile 1.2 is released!

2016-02-15 Thread Todd Freese
Looking for how to use it. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion on the

ANN: Couchbase Mobile 1.2 is released!

2016-02-13 Thread Todd Freese
Is there any documentation on Sync Gateway Accelerator? T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To

Re: SG 1.2 seems to break Basic Auth SG View access

2016-02-05 Thread Todd Freese
OK, I needed to put the config in the databases section. I had it outside. So my requests are getting through. Are the previous pre-1.2 existing views compatible with sg 1.2? The github issues had a couple comments taking about pre-1.2 view compatibility but not an absolute answer. Todd --

Re: SG 1.2 seems to break Basic Auth SG View access

2016-02-05 Thread Todd Freese
So I put this in my SG config: "Unsupported": { "UserViews": { "Enabled":true } } Still gets rejected with a {"error":"Forbidden","reason":"forbidden"} Also tried: "unsupported": { "user_views": { "enabled":true }

Re: SG 1.2 seems to break Basic Auth SG View access

2016-02-05 Thread Todd Freese
Thanks. Is this documented anywhere? Are the docs on the web site updated for 1.2? Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+un

SG 1.2 seems to break Basic Auth SG View access

2016-02-05 Thread Todd Freese
Did this commit make it into SG 1.2 release? https://github.com/couchbase/sync_gateway/issues/862 Upgrading my SG to 1.2 has broken accessing an SG view with basic auth on port 4984 via a REST. I'm always getting an {"error":"Forbidden","reason":"forbidden"} If I revert my SG back to the prev

Re: Troubles installing SG 1.2 on EC2

2016-02-04 Thread Todd Freese
I'm not using a public AMI. Just Red Hat Enterprise Linux 7.0 (HVM). What's even weirder is that I have 2 EC2 nodes. The first one worked fine, and the second one had the perl issue. We are very careful to make sure both nodes are exactly the same. (Will most likely move to docker down the road

Re: Troubles installing SG 1.2 on EC2

2016-02-04 Thread Todd Freese
OK, so I did a sudo yum install perl and it worked. Is there a list of SG required dependencies? Also, I see there is a sync_gateway_service_upgrade.sh script now. Is there any documentation on this? How is this different that just re-running the sync_gateway_service_install.sh again? Todd -

Troubles installing SG 1.2 on EC2

2016-02-04 Thread Todd Freese
I'm trying to update my SG running on EC2 to the new 1.2 version. However, when I try to install the rpm I'm getting: perl(strict) is needed by couchbase-sync-gateway-1.2.0-79.x86_64 Is there a new dependency for SG 1.2? Todd -- You received this message because you are subscribed to the G

Re: How to reset replication

2016-02-01 Thread Todd Freese
I see in my SG log: GET /shotbotdb/_changes?feed=normal&heartbeat=3&style=all_docs&since=1399 Where is the since=1399 coming from? The client or the server? I would think the since value would be 0. T -- You received this message because you are subscribed to the Google Groups "Couchb

Re: How to reset replication

2016-02-01 Thread Todd Freese
Is there anything I need to do on the clients? If I try to sync with a new sg/cb server, one starting with a new empty database. all the docs from the clients are not getting sent to the server. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile"

How to reset replication

2016-01-30 Thread Todd Freese
Is there a way to reset replication? For example, I clear the server backing database and I want all clients to resync and push all client docs to the server from scratch. Searching past posts on this list, there are a couple posts talking about a checkpoint reference on the SG that keeps track

Re: SG behind Nginx proxy

2016-01-13 Thread Todd Freese
So after pulling out the little bit of hair I had left I finally solved why I could not get Nginx reverse proxy to work with sync gateway running on EC2. (Nginx was returning 502 errors) Nginx was getting a permission denied from the upstream server (SG). I'm posting this here to help anyone

Re: SG behind Nginx proxy

2015-12-23 Thread Todd Freese
; > developer > docs? > > Seems like you're using port 4985 instead of 4984? > > > On Tuesday, December 15, 2015 at 9:13:09 AM UTC-8, Todd Freese wrote: >> >> I have a EC2 node with SG running and want to use Nginx to act as a proxy >> for requests to

SG behind Nginx proxy

2015-12-15 Thread Todd Freese
I have a EC2 node with SG running and want to use Nginx to act as a proxy for requests to the admin port on the SG. Both are running off the same EC2 node. However, any requests to the proxy returns a 502 error. Here is my Nginx settings: upstream sync_gateway { server 127.0.0.1:4985; }

iOS UI Testing and CBL

2015-11-14 Thread Todd Freese
I'm starting to use the new Xcode UI Testing with CBL. I would like my UI Test start with an empty database at the start of the UI test. What is the recommended way to do this? Seems like you can't just create an empty db in the test class as it seems the test class is running in a different sc

Re: continuous replication limitation

2015-11-03 Thread Todd Freese
Jens might be able to provide more information. But the docs/wiki used to give the VERY approx number of 5000 clients per sync gateway node. But there are a ton of things that can affect that number a lot. So there is no real benchmark as every app will be different. T -- You received this me

Re: Download attachment

2015-10-30 Thread Todd Freese
Worked like a champ setting the Content-Disposition header. Thanks! T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegr

Download attachment

2015-10-29 Thread Todd Freese
We have a web client that get's it's data from sync gateway. Displaying jogs that are stored as attachments works great. However, I need to have a download button that actually downloads the attachment to disk. Are there any header that I can set to force a request for an attachment to download

Load Balancer in front of SG

2015-10-28 Thread Todd Freese
We have a load balancer in front of our SG nodes. I noticed that on a big sync from a single client, the load balancer is routing to multiple sg nodes. Is this a problem? Or is it recommended to have the load balancer route to the same node for a single client? Todd -- You received this mess

Re: ANN: Couchbase Mobile 1.1.1 (at last)

2015-10-26 Thread Todd Freese
In this 1.1.1 release, did CBLUITableSource get removed? I II I get the following build error after upgrading. 'Couchbaselite/CBLUITableSource.h' file not found Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this

Re: Setting up CORS on Sync Gateway

2015-10-21 Thread Todd Freese
I'll add this to the thread for the next person... I did not have to make any changes to my Nginx config to get CORS to work. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails fro

Re: Setting up CORS on Sync Gateway

2015-10-21 Thread Todd Freese
So I got this working. Turns out I had a typo in my config file. Yes a typo. Sorry for the noise! Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Setting up CORS on Sync Gateway

2015-10-21 Thread Todd Freese
I'll add that I see the OPTIONs request in the SG log. Is there a way to see this response? The Chrome debugger shows the request, but not the response. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group a

Re: Setting up CORS on Sync Gateway

2015-10-21 Thread Todd Freese
Tried that, still a no go. Seems like sync gateway needs to be inserting the Access-Control-Allow-Origin header, which I'm not sure is happening... T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop

Setting up CORS on Sync Gateway

2015-10-21 Thread Todd Freese
I am having troubles setting up CORs support on my sync gateway. I've swapped out my real domain name with xxx for posting purposes. On my SG server (https://db.xxx.com), I added the following to my config.json: "CORS": { "origin":["https://webclient.xxx.com";],

Re: SG Basic Auth Problem

2015-10-16 Thread Todd Freese
So they persist over restarts of SG? Thought it was strange that after updating SG build, that I needed to resend the views to SG. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails f

Re: SG Basic Auth Problem

2015-10-16 Thread Todd Freese
So the nightly build solved my problem accessing SG views. FYI, I had to re-submit my view design docs to the SGs for this to work. Do these views get stored in the backing db? In my case it is couchbase. Todd -- You received this message because you are subscribed to the Google Groups "Couc

Re: SG Basic Auth Problem

2015-10-16 Thread Todd Freese
Awesome! Thanks so much for all the help. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this d

Re: SG Basic Auth Problem

2015-10-16 Thread Todd Freese
So this is turning into a big project :-( I got the GOROOT and GOPATH vars setup so go version shows the correct info. But it is still failing. Basically, I am running Red Hat on EC2. So this is a very locked down env. build.sh is calling into go.sh which is calling bc and bc is not avail

Re: SG Basic Auth Problem

2015-10-15 Thread Todd Freese
Is there any docs on installing GCC for CGO on red hat? I have go 1.4 installed, but when I try to run build.sh, I get the following: ./go.sh: line 5: go: command not found ./go.sh: line 6: bc: command not found ./go.sh: line 7: go: command not found *** Go 1.3 or higher is required to build

Re: SG Basic Auth Problem

2015-10-15 Thread Todd Freese
I've built SG on Mac before with no problems. However, this server is EC2 Red hat. Is there any build instructions for building on Red Hat? I didn't see any in the repo's wiki. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsu

Re: SG Basic Auth Problem

2015-10-15 Thread Todd Freese
Version 1.1. I'm using the official release. NOT build from source. What's interesting is, if I send the exact same view query to the admin port, it works great. So I know my views are working correctly. Just not on the non-admin port of SG. Todd -- You received this message because you are s

Re: SG Basic Auth Problem

2015-10-15 Thread Todd Freese
Hey Jens, So my basic auth is working for normal things like GET docs. However, when I try to do a GET against a sync gateway design doc view, it does not allow it. My REST call to 4984: https://db.mydb.com/shotbotdb/_design/scenes_for_job/_view/scenes_for_job?startkey=[%22-9t43hswLaiNa3qymE7M

Re: SG Basic Auth Problem

2015-10-15 Thread Todd Freese
It was the new line character in my base64. Thanks! Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To

Re: SG Basic Auth Problem

2015-10-15 Thread Todd Freese
I have also tried this with creating a session ID on the SG: curl -X POST https://db.mydb.com:4985/mydb/_session -H "Content-Type:application/json" -d '{"name":"foo", "password":"bar"}' Which returns: {"session_id":"09ff83fd94f814d100dee291ac2f5f268a9d764e","expires":"2015-10-16T13:54:48.55341

SG Basic Auth Problem

2015-10-15 Thread Todd Freese
I need to make REST calls to Sync Gateway using Basic Auth and can not get it to work. Just trying to use curl for now. Here is my curl: curl -X GET -H "Authorization: Basic dG9kZGZyZWVzZTpjd2Zjd2Y=" -H "Content-Type: application/json" https://db.mydb.com:4984/mydb/7E28B6F9-0D49-4452-9E7F-8B8D

Re: Couchbase lite attachment URL

2015-08-17 Thread Todd Freese
Another option that works really well for me is to use PaintCode to layout your reports, then use CoreGraphics to make the PDF. Super simple and has a great workflow. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe fro

Sync Gateway Admin UI

2015-08-06 Thread Todd Freese
What is the status of the Sync Gateway Admin UI? Is there some form of it working in the repo? And any docs... Is this planned for the 1.2 release? Thanks, Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this gro

Re: SG View sorting

2015-08-04 Thread Todd Freese
Good to know. Thanks Jens! T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion on the w

Re: SG View sorting

2015-08-04 Thread Todd Freese
But I do have one more question My SG views are returning docs with ids like "id": "-xx5gw4hcsHB48F4eCCrWGn" in addition to docs with normal UUID id's. I'm assuming these are leaf revisions. The question is why are they getting returned by my view. Should the SG Views filter out this info o

Re: SG View sorting

2015-08-04 Thread Todd Freese
Actually, I solved my problem. Thanks for the tip on using {}. Turned out I had some bad data in the database. Once I resolved that, it started working as expected. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from

Re: SG View sorting

2015-08-04 Thread Todd Freese
sceneNumber is a string and they appear in the order the docs where created. Is it possible to have the results returned sorted by sceneNumber? Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop

SG View sorting

2015-08-03 Thread Todd Freese
I am having troubles getting sorted results from a sync gateway view. Here is my map function: { "views":{ "scenes_for_job":{ "map":"function (doc, meta) { if (doc.type == \"scene\") { emit([doc.job_id, doc.sceneNumber], doc); } }" } } } And here is my REST c

Re: Correct way to put deleted document in channels

2015-07-17 Thread Todd Freese
The SG has a web admin? How did I miss this... Are there any docs on this? Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...

Re: How to retrieve attachment via SG view query.

2015-06-30 Thread Todd Freese
Never mind, I found the answer. My file names needed to be percent encoded for the REST call. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-

How to retrieve attachment via SG view query.

2015-06-30 Thread Todd Freese
How can I retrieve an attachment, a jpg, using a SG view query? With couchDB, you can get a URL to the attached image which makes it easy to display on a web page. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from t

Re: SG View query not updating.

2015-06-30 Thread Todd Freese
Awesome. Thanks! Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion on the web visi

SG View query not updating.

2015-06-29 Thread Todd Freese
Been testing creating/querying views in the sync gateway and it seems the views are not automatically updating. If a new document is created via CBL IOS and pushed to the server, the first REST SG view query does not show the doc. But after a second query to the SG, the doc shows up. Seems like

Re: Attachment storage organization

2015-06-07 Thread Todd Freese
+1 on supporting files over 20 MB. I run into this limit all the time with video files in my app. T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-

Re: CBL and dynamically linked framework.

2015-03-05 Thread Todd Freese
Yes, that is the other framework. I must have some sort of build setting wrong somewhere. Can CBL be built as a dynamic framework? Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emai

CBL and dynamically linked framework.

2015-03-05 Thread Todd Freese
I need to add a dynamically linked framework to my CBL IOS8 app. However, I can't seem to get both CBL and this new framework working at the same time. I can get it to build, but when I run on a device, it crashes with the lovely message: dyld: Library not loaded: @rpath/TeradekSDK.framework/Te

Re: ANN: iOS CBLModel support for inverse to-many relations

2015-02-26 Thread Todd Freese
Very nice! Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion on the web visit htt

Re: Long Poll warnings

2015-01-30 Thread Todd Freese
I found a solution that seems to work in preventing ELB from dropping connections. I set the following on the CBLReplicator: _pull.customProperties = @{@"websocket": @NO, @"heartbeat": @3}; For ELB I set the Connection settings: Idle timeout to 600. I also turn on ELB Stickiness with Ena

Re: Long Poll warnings

2015-01-29 Thread Todd Freese
Looks like ELB stickiness want a cookie in the requests to bind requests to a session. Is there a way to add a cookie in the CBL requests? T -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving

Re: Long Poll warnings

2015-01-29 Thread Todd Freese
Hmmm. Even after setting the heartbeat value I still have the issue with ELB closing the connection. It got a lot better but it still happens. Here is how I set the heartbeat: _pull.customProperties = @{@"websocket": @NO, @"heartbeat": @1}; _push.customProperties = @{@"websocket": @NO, @"he

Re: Long Poll warnings

2015-01-29 Thread Todd Freese
Is shorting the heartbeat time done in CBL or you mean in ELB? Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroup

Re: Long Poll warnings

2015-01-29 Thread Todd Freese
That's what's weird. I have web sockets turned off via: _pull.customProperties = @{@"websocket": @NO}; _push.customProperties = @{@"websocket": @NO}; and I am still seeing the problem. Is this the correct way to turn off web sockets? T -- You received this message because you are subscrib

Long Poll warnings

2015-01-29 Thread Todd Freese
Since moving my couchbase & SG to EC2 servers using ELB I started getting these warnings: *12:35:38.206*‖* WARNING: Truncated changes feed* *12:35:38.206*‖* WARNING: CBLSocketChangeTracker[0x79ece620 shotbotdb]: Longpoll connection closed (by proxy?) after 59.3 sec* *I have web sockets turned

Re: Running SG as a service on EC2???

2015-01-28 Thread Todd Freese
Final follow up. The reason for why the couchbase user did not work was simple. That user did not have permissions to log directory which was in the home directory of another user. Todd -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To

Re: Running SG as a service on EC2???

2015-01-28 Thread Todd Freese
Figured it out. For some reason it did not like running as the couch base user. When I changed it to ec2-user, it started right up. Thanks for your help. One thing that would be nice would be the ability to pass in a config.json file when you run the service script. Otherwise the script overwri

Re: Running SG as a service on EC2???

2015-01-28 Thread Todd Freese
So it looks like it configed the service but when I run: sudo systemctl start sync_gateway.service I get: Job for sync_gateway.service failed. See 'systemctl status sync_gateway.service' and 'journalctl -xn' for details. If I run systemctl status sync_gateway.service I get: sync_gateway

  1   2   3   >