You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Benoit Chesneau <bc...@gmail.com> on 2010/07/28 13:13:37 UTC

couchdb android unusable?

Hi,

So I installed this morning couchdb on my nexus one from the market
place . There are a lot of problem currently that I'm afraid make it
unusable :

- cache. The browser seem to agrressivly cache all data. So I couldn't
create a user at first without clearing cache and cookies. The same
when logged, futon don't recognize the cookie.

- problem with utf8. It seem I can't create any doc nor replicate.
Replication give in logs :

[Wed, 28 Jul 2010 11:08:39 GMT] [error] [<0.400.0>] attempted upload
of invalid JSON
{"source":"http://192.168.1.1/afgwar","target":"afgwar"}

This is ajust a quick report. Will try more later. Also are the build
instructions available somewhere ?

- benoit

Re: couchdb android unusable?

Posted by Jason Smith <jh...@couch.io>.
On Sun, Aug 1, 2010 at 15:55, Benoit Chesneau <bc...@gmail.com> wrote:

> Indeed I had an old mochiweb release. Removing it fixed the utf8
> issue, thanks! I still have a problem with the cache. But anyway I
> think we need a futon designed for such device :)
>

For what it's worth, my ISP caches in a nonstandard way and it damages
Futon, particularly the login system. (Well, technically not Futon.)

It's probably a long-term thing but one day CouchDB will have to accommodate
for the reality of nonstandard caching.

-- 
Jason Smith
Couchio Hosting

Re: couchdb android unusable?

Posted by Benoit Chesneau <bc...@gmail.com>.
On Thu, Jul 29, 2010 at 7:08 PM, Aaron Miller <ap...@ninjawhale.com> wrote:
> You may have an old mochiweb from a previous install. Check the SD Card, in the couch/lib/couchdb/erlang/lib folder. If there are two versions of mochiweb, delete the older one, and this should fix the UTF-8 issue.

Indeed I had an old mochiweb release. Removing it fixed the utf8
issue, thanks! I still have a problem with the cache. But anyway I
think we need a futon designed for such device :)

> For build, I have a dump of my notes in the wiki for the launcher project on github, but if you just want to update couchdb, you should be able to compile on anything replace the proper files on the phone. The native bits (couch-icu-driver, couchjs) shouldn't need to change.
>

Ok will check it

- benoit

Re: couchdb android unusable?

Posted by Aaron Miller <ap...@ninjawhale.com>.
You may have an old mochiweb from a previous install. Check the SD Card, in the couch/lib/couchdb/erlang/lib folder. If there are two versions of mochiweb, delete the older one, and this should fix the UTF-8 issue.
For build, I have a dump of my notes in the wiki for the launcher project on github, but if you just want to update couchdb, you should be able to compile on anything replace the proper files on the phone. The native bits (couch-icu-driver, couchjs) shouldn't need to change.

On Jul 28, 2010, at 4:13 AM, Benoit Chesneau wrote:

> Hi,
> 
> So I installed this morning couchdb on my nexus one from the market
> place . There are a lot of problem currently that I'm afraid make it
> unusable :
> 
> - cache. The browser seem to agrressivly cache all data. So I couldn't
> create a user at first without clearing cache and cookies. The same
> when logged, futon don't recognize the cookie.
> 
> - problem with utf8. It seem I can't create any doc nor replicate.
> Replication give in logs :
> 
> [Wed, 28 Jul 2010 11:08:39 GMT] [error] [<0.400.0>] attempted upload
> of invalid JSON
> {"source":"http://192.168.1.1/afgwar","target":"afgwar"}
> 
> This is ajust a quick report. Will try more later. Also are the build
> instructions available somewhere ?
> 
> - benoit