# River-couch DB

**URL:** <https://discuss.elastic.co/t/river-couch-db/3624>\
**Category:** Elasticsearch\
**Created:** [December 4, 2010, 4:28pm UTC](https://discuss.elastic.co/t/river-couch-db/3624 "2010-12-04T16:28:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![benhowes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benhowes/32/3303_2.png) [@benhowes](https://discuss.elastic.co/u/benhowes)\
**Post date:** [December 4, 2010, 4:28pm UTC](https://discuss.elastic.co/t/river-couch-db/3624/1 "2010-12-04T16:28:42Z")

</div>

Hi Everyone,

I am sure I am doing something a little bit wrong here. I have an  
elastic search (0.13.1) instance running on the same machine as a  
couchdb database. I am trying to use the couchdb river to import all  
the data, but I am getting this output in the log when I add my db  
river:

[2010-12-04 17:09:41,500][INFO][cluster.metadata] [Enforcer]  
[pages] update\_mapping [pages] (dynamic)  
[2010-12-04 17:09:58,537][INFO][cluster.metadata] [Enforcer]  
[\_river] update\_mapping [pages] (dynamic)  
[2010-12-04 17:09:58,549][INFO][river.couchdb] [Enforcer]  
[couchdb][pages] starting couchdb stream: host [localhost], port  
[5985], filter [null], db [pages], indexing to [pages]/[pages]  
[2010-12-04 17:09:58,554][WARN][river.couchdb] [Enforcer]  
[couchdb][pages] ignoring unknown change {"seq":1,"id":"1","changes":  
[{"rev":"1-11556c11c55bd679f2acc2adcdd54c0d"}]}

then there is an "ignoring unknown change" message for every object in  
my database. One of these messages also appears a few times in between  
the other WARN's for each of the docs I am attempting to import:

[2010-12-04 17:09:58,627][INFO][cluster.metadata] [Enforcer]  
[\_river] update\_mapping [pages] (dynamic)

But a status of that index shows that it is all healthy, but there are  
no docs. I have tried doing a few things, like posting some entries  
manually (using REST api, these docs are fine), then importing the  
rest as well as making changes to docs in the futon to see if the  
\_changes stream will work. It doesn't seem to matter what I do, I keep  
getting the described problem.

There does seem to be a case here of the same problem:  
[http://elasticsearch-users.115913.n3.nabble.com/couchdb-river-problem-td1665698.html](http://elasticsearch-users.115913.n3.nabble.com/couchdb-river-problem-td1665698.html).  
I have been searching over the last few days to try and find the  
problem, with no joy at all. I am using a 64bit ubuntu machine with  
OpenJDK.

Thanks,  
Ben

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 4, 2010, 8:19pm UTC](https://discuss.elastic.co/t/river-couch-db/3624/2 "2010-12-04T20:19:45Z")

</div>

This happens when there is no document provided as part of the changes stream the river listens to from couchdb. Which version of couchdb are you using? The option to add "include\_docs=true" to the \_changes API was not always there in couch.  
On Saturday, December 4, 2010 at 6:28 PM, benhowes wrote:

> Hi Everyone,
> 
> I am sure I am doing something a little bit wrong here. I have an  
> Elasticsearch (0.13.1) instance running on the same machine as a  
> couchdb database. I am trying to use the couchdb river to import all  
> the data, but I am getting this output in the log when I add my db  
> river:
> 
> [2010-12-04 17:09:41,500][INFO][cluster.metadata] [Enforcer]  
> [pages] update\_mapping [pages] (dynamic)  
> [2010-12-04 17:09:58,537][INFO][cluster.metadata] [Enforcer]  
> [\_river] update\_mapping [pages] (dynamic)  
> [2010-12-04 17:09:58,549][INFO][river.couchdb] [Enforcer]  
> [couchdb][pages] starting couchdb stream: host [localhost], port  
> [5985], filter [null], db [pages], indexing to [pages]/[pages]  
> [2010-12-04 17:09:58,554][WARN][river.couchdb] [Enforcer]  
> [couchdb][pages] ignoring unknown change {"seq":1,"id":"1","changes":  
> [{"rev":"1-11556c11c55bd679f2acc2adcdd54c0d"}]}
> 
> then there is an "ignoring unknown change" message for every object in  
> my database. One of these messages also appears a few times in between  
> the other WARN's for each of the docs I am attempting to import:
> 
> [2010-12-04 17:09:58,627][INFO][cluster.metadata] [Enforcer]  
> [\_river] update\_mapping [pages] (dynamic)
> 
> But a status of that index shows that it is all healthy, but there are  
> no docs. I have tried doing a few things, like posting some entries  
> manually (using REST api, these docs are fine), then importing the  
> rest as well as making changes to docs in the futon to see if the  
> \_changes stream will work. It doesn't seem to matter what I do, I keep  
> getting the described problem.
> 
> There does seem to be a case here of the same problem:  
> [http://elasticsearch-users.115913.n3.nabble.com/couchdb-river-problem-td1665698.html](http://elasticsearch-users.115913.n3.nabble.com/couchdb-river-problem-td1665698.html).  
> I have been searching over the last few days to try and find the  
> problem, with no joy at all. I am using a 64bit ubuntu machine with  
> OpenJDK.
> 
> Thanks,  
> Ben

---

<div class="post-metadata">

**Author:** ![benhowes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benhowes/32/3303_2.png) [@benhowes](https://discuss.elastic.co/u/benhowes)\
**Post date:** [December 4, 2010, 10:53pm UTC](https://discuss.elastic.co/t/river-couch-db/3624/3 "2010-12-04T22:53:15Z")

</div>

That was exactly my problem, thanks very much. Ununtu 10.04 uses  
couchdb 0.10, whereas all newer versions use 1.0.1. I have upgraded  
and its all working fine now.

After doing the upgrade I had to remove and re-add the river in order  
to get the docs imported, which makes sense.

Thanks very much for pointing me in the right direction 🙂

Ben

On Dec 4, 8:19 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> This happens when there is no document provided as part of the changes stream the river listens to from couchdb. Which version of couchdb are you using? The option to add "include\_docs=true" to the \_changes API was not always there in couch.
> 
> On Saturday, December 4, 2010 at 6:28 PM, benhowes wrote:
> 
> > Hi Everyone,
> 
> > I am sure I am doing something a little bit wrong here. I have an  
> > Elasticsearch (0.13.1) instance running on the same machine as a  
> > couchdb database. I am trying to use the couchdb river to import all  
> > the data, but I am getting this output in the log when I add my db  
> > river:
> 
> > [2010-12-04 17:09:41,500][INFO][cluster.metadata] [Enforcer]  
> > [pages] update\_mapping [pages] (dynamic)  
> > [2010-12-04 17:09:58,537][INFO][cluster.metadata] [Enforcer]  
> > [\_river] update\_mapping [pages] (dynamic)  
> > [2010-12-04 17:09:58,549][INFO][river.couchdb] [Enforcer]  
> > [couchdb][pages] starting couchdb stream: host [localhost], port  
> > [5985], filter [null], db [pages], indexing to [pages]/[pages]  
> > [2010-12-04 17:09:58,554][WARN][river.couchdb] [Enforcer]  
> > [couchdb][pages] ignoring unknown change {"seq":1,"id":"1","changes":  
> > [{"rev":"1-11556c11c55bd679f2acc2adcdd54c0d"}]}
> 
> > then there is an "ignoring unknown change" message for every object in  
> > my database. One of these messages also appears a few times in between  
> > the other WARN's for each of the docs I am attempting to import:
> 
> > [2010-12-04 17:09:58,627][INFO][cluster.metadata] [Enforcer]  
> > [\_river] update\_mapping [pages] (dynamic)
> 
> > But a status of that index shows that it is all healthy, but there are  
> > no docs. I have tried doing a few things, like posting some entries  
> > manually (using REST api, these docs are fine), then importing the  
> > rest as well as making changes to docs in the futon to see if the  
> > \_changes stream will work. It doesn't seem to matter what I do, I keep  
> > getting the described problem.
> 
> > There does seem to be a case here of the same problem:  
> > [http://elasticsearch-users.115913.n3.nabble.com/couchdb-river-problem](http://elasticsearch-users.115913.n3.nabble.com/couchdb-river-problem)....  
> > I have been searching over the last few days to try and find the  
> > problem, with no joy at all. I am using a 64bit ubuntu machine with  
> > OpenJDK.
> 
> > Thanks,  
> > Ben

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:15am UTC](https://discuss.elastic.co/t/river-couch-db/3624/4 "2017-07-06T04:15:42Z")

</div>


