You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Frank Röhm <fr...@gmx.net> on 2020/05/03 09:41:50 UTC

Downgrading to CouchDB 1.6 on Ubuntu 18.04

Hallo

is it possible to downgrade on a Ubuntu 18.04 server to the old CouchDB 1.6?

I have since CouchDB 2.x problems while filling a db with Wikipedia
entries. I use therefore mwscrape from:
https://github.com/itkach/mwscrape
and after a while I always get a 500 error from CouchDB and my scrape
stops. This never happened with CouchDB 1.6 under Ubuntu 14.04.

So could it be possible to install CouchDB 1.x maybe by self-compilation
somehow or are there old and now unsatisfiable dependencies? Someone knows?

Thanks, frank


Re: Downgrading to CouchDB 1.6 on Ubuntu 18.04

Posted by Frank Röhm <fr...@gmx.net>.
OK, thanks for this hint! I set it now to:

log > level > debug


I run a single couchdb instance

Yes, this could be a timeout error, when Wikipedia maybe stops queries
from my servers ip, thinking it is too much. But this is only a guess.
When I re-run the scrape, it works immediately again.
The scrape with the 500 error can happen after some hours, or nearly a day.
Anyway I put the timeout of [couch_httpd_auth] now to

timeout = 3600

and will see, if it something changes.

Thanks!

frank


Am 03.05.2020 um 13:04 schrieb Ronny Berndt:
> You should increase your log level to debug to get more infos.
>
> Do you run a cluster or a single couchdb instance?
> You said that you are getting an error „after a while“. Is this time
> in the same time frame - e.g. a timeout error?
>
>
>
>
>> Am 03.05.2020 um 12:53 schrieb Frank Röhm <fr...@gmx.net>:
>>
>> Just this:
>>
>> couchdb.http.ServerError: (500, (u'unknown_error', u'undefined'))
>>
>>
>>> Am 03.05.2020 um 12:44 schrieb Ronny Berndt <ro...@kioskkinder.com.INVALID>:
>>>
>>> Are there any error details in the CouchDB log file?
>>>
>>> Ronny
>>>
>>>> Am 03.05.2020 um 11:42 schrieb Frank Röhm <fr...@gmx.net>:
>>>>
>>>> Hallo
>>>>
>>>> is it possible to downgrade on a Ubuntu 18.04 server to the old CouchDB 1.6?
>>>>
>>>> I have since CouchDB 2.x problems while filling a db with Wikipedia
>>>> entries. I use therefore mwscrape from:
>>>> https://github.com/itkach/mwscrape
>>>> and after a while I always get a 500 error from CouchDB and my scrape
>>>> stops. This never happened with CouchDB 1.6 under Ubuntu 14.04.
>>>>
>>>> So could it be possible to install CouchDB 1.x maybe by self-compilation
>>>> somehow or are there old and now unsatisfiable dependencies? Someone knows?
>>>>
>>>> Thanks, frank
>>>>
>>
>

Re: Downgrading to CouchDB 1.6 on Ubuntu 18.04

Posted by Frank Röhm <fr...@gmx.net>.
OK, after setting log to debug and timeout to 3600 (which didn't change
anything) I ran into this error in couchdb.log:

No DB shards could be opened.

In the log:

[notice] 2020-05-03T04:48:39.727523Z couchdb@127.0.0.1 <0.4672.0>
bb704eac8c 127.0.0.1:5984 127.0.0.1 admin PUT
/mwscrape/dewiki-1588440186-498 201 ok 50
[notice] 2020-05-03T04:48:40.488775Z couchdb@127.0.0.1 <0.4672.0>
692efe5883 127.0.0.1:5984 127.0.0.1 admin GET /dewiki/Nanwan-Affeninsel
404 ok 218
[error] 2020-05-03T04:52:27.059960Z couchdb@127.0.0.1 <0.4672.0>
1635fa01be fabric_worker_timeout
open_doc,'couchdb@127.0.0.1',<<"shards/00000000-7fffffff/_users.1588439734">>
[error] 2020-05-03T04:53:32.635767Z couchdb@127.0.0.1 <0.519.0> --------
fabric_worker_timeout
changes,'couchdb@127.0.0.1',<<"shards/00000000-7fffffff/_users.1588439734">>
[error] 2020-05-03T04:53:32.854813Z couchdb@127.0.0.1 <0.519.0> --------
fabric_worker_timeout
changes,'couchdb@127.0.0.1',<<"shards/80000000-ffffffff/_users.1588439734">>
[error] 2020-05-03T04:54:12.679477Z couchdb@127.0.0.1 emulator --------
Error in process <0.519.0> on node 'couchdb@127.0.0.1' with exit value:
{{nocatch,{error,timeout}},[{fabric_view_changes,send_changes,6,[{file,"src/fabric_view_changes.erl"},{line,198}]},{fabric_view_changes,keep_sending_changes,8,[{file,"src/fabric_view_changes.erl"},{line,82}]},{fabric_view_changes,go,5,[{file,"src/fabric_view_changes.erl"},{line,43}]}]}

[notice] 2020-05-03T04:54:12.984169Z couchdb@127.0.0.1 <0.338.0>
-------- chttpd_auth_cache changes listener died
{nocatch,{error,timeout}} at
fabric_view_changes:send_changes/6(line:198) <=
fabric_view_changes:keep_sending_changes/8(line:82) <=
fabric_view_changes:go/5(line:43)
[error] 2020-05-03T04:54:14.690000Z couchdb@127.0.0.1 <0.4672.0>
1635fa01be req_err(3763885668) internal_server_error : No DB shards
could be opened.
    [<<"fabric_util:get_shard/4 L111">>,<<"fabric_util:get_shard/4
L128">>,<<"fabric_util:get_shard/4 L128">>,<<"fabric:get_security/2
L183">>,<<"chttpd_auth_request:db_authorization_check/1
L110">>,<<"chttpd_auth_request:authorize_request/1
L19">>,<<"chttpd:handle_req_after_auth/2
L320">>,<<"chttpd:process_request/1 L305">>]
[notice] 2020-05-03T04:54:17.320731Z couchdb@127.0.0.1 <0.4672.0>
1635fa01be 127.0.0.1:5984 127.0.0.1 admin GET
/mwscrape/dewiki-1588440186-498 500 ok 277968
[notice] 2020-05-03T06:53:41.104261Z couchdb@127.0.0.1 <0.16500.163>
380cadc5fe localhost:5985 127.0.0.1 undefined GET / 200 ok 3
[notice] 2020-05-03T06:53:41.127154Z couchdb@127.0.0.1 <0.16536.163>
c18aad124f localhost:5985 127.0.0.1 undefined GET / 200 ok 1
[notice] 2020-05-03T06:53:41.292268Z couchdb@127.0.0.1 <0.16500.163>
ef228fe01c localhost:5985 127.0.0.1 undefined GET /_session 200 ok 0
[notice] 2020-05-03T06:53:42.085928Z couchdb@127.0.0.1 <0.16536.163>
e7accb7b3e localhost:5985 127.0.0.1 undefined GET /_session 200 ok 0
[notice] 2020-05-03T06:53:44.823828Z couchdb@127.0.0.1 <0.16500.163>
514a6ad8ca localhost:5985 127.0.0.1 undefined POST /_session 200 ok 2
[notice] 2020-05-03T06:53:45.127354Z couchdb@127.0.0.1 <0.16536.163>
19bd94e5d0 localhost:5985 127.0.0.1 admin GET /_session 200 ok 1
[notice] 2020-05-03T06:53:45.298206Z couchdb@127.0.0.1 <0.16500.163>
3c485d12f6 localhost:5985 127.0.0.1 admin GET /_all_dbs 304 ok 6
[notice] 2020-05-03T06:53:45.439060Z couchdb@127.0.0.1 <0.16500.163>
e6bdcfb3ba localhost:5985 127.0.0.1 admin GET /_users 200 ok 2
[notice] 2020-05-03T06:53:45.440774Z couchdb@127.0.0.1 <0.16536.163>
c6a19fa756 localhost:5985 127.0.0.1 admin GET /_replicator 200 ok 5


But I don't understand this error :(




Am 03.05.2020 um 13:04 schrieb Ronny Berndt:
> You should increase your log level to debug to get more infos.
>
> Do you run a cluster or a single couchdb instance?
> You said that you are getting an error „after a while“. Is this time
> in the same time frame - e.g. a timeout error?
>
>
>
>
>> Am 03.05.2020 um 12:53 schrieb Frank Röhm <fr...@gmx.net>:
>>
>> Just this:
>>
>> couchdb.http.ServerError: (500, (u'unknown_error', u'undefined'))
>>
>>
>>> Am 03.05.2020 um 12:44 schrieb Ronny Berndt <ro...@kioskkinder.com.INVALID>:
>>>
>>> Are there any error details in the CouchDB log file?
>>>
>>> Ronny
>>>
>>>> Am 03.05.2020 um 11:42 schrieb Frank Röhm <fr...@gmx.net>:
>>>>
>>>> Hallo
>>>>
>>>> is it possible to downgrade on a Ubuntu 18.04 server to the old CouchDB 1.6?
>>>>
>>>> I have since CouchDB 2.x problems while filling a db with Wikipedia
>>>> entries. I use therefore mwscrape from:
>>>> https://github.com/itkach/mwscrape
>>>> and after a while I always get a 500 error from CouchDB and my scrape
>>>> stops. This never happened with CouchDB 1.6 under Ubuntu 14.04.
>>>>
>>>> So could it be possible to install CouchDB 1.x maybe by self-compilation
>>>> somehow or are there old and now unsatisfiable dependencies? Someone knows?
>>>>
>>>> Thanks, frank
>>>>
>>
>

Re: Downgrading to CouchDB 1.6 on Ubuntu 18.04

Posted by Ronny Berndt <ro...@kioskkinder.com.INVALID>.
You should increase your log level to debug to get more infos.

Do you run a cluster or a single couchdb instance?
You said that you are getting an error „after a while“. Is this time
in the same time frame - e.g. a timeout error?




> Am 03.05.2020 um 12:53 schrieb Frank Röhm <fr...@gmx.net>:
> 
> Just this:
> 
> couchdb.http.ServerError: (500, (u'unknown_error', u'undefined'))
> 
> 
>> Am 03.05.2020 um 12:44 schrieb Ronny Berndt <ro...@kioskkinder.com.INVALID>:
>> 
>> Are there any error details in the CouchDB log file?
>> 
>> Ronny
>> 
>>> Am 03.05.2020 um 11:42 schrieb Frank Röhm <fr...@gmx.net>:
>>> 
>>> Hallo
>>> 
>>> is it possible to downgrade on a Ubuntu 18.04 server to the old CouchDB 1.6?
>>> 
>>> I have since CouchDB 2.x problems while filling a db with Wikipedia
>>> entries. I use therefore mwscrape from:
>>> https://github.com/itkach/mwscrape
>>> and after a while I always get a 500 error from CouchDB and my scrape
>>> stops. This never happened with CouchDB 1.6 under Ubuntu 14.04.
>>> 
>>> So could it be possible to install CouchDB 1.x maybe by self-compilation
>>> somehow or are there old and now unsatisfiable dependencies? Someone knows?
>>> 
>>> Thanks, frank
>>> 
> 


Re: Downgrading to CouchDB 1.6 on Ubuntu 18.04

Posted by Frank Röhm <fr...@gmx.net>.
Just this:

couchdb.http.ServerError: (500, (u'unknown_error', u'undefined'))


> Am 03.05.2020 um 12:44 schrieb Ronny Berndt <ro...@kioskkinder.com.INVALID>:
> 
> Are there any error details in the CouchDB log file?
> 
> Ronny
> 
>> Am 03.05.2020 um 11:42 schrieb Frank Röhm <fr...@gmx.net>:
>> 
>> Hallo
>> 
>> is it possible to downgrade on a Ubuntu 18.04 server to the old CouchDB 1.6?
>> 
>> I have since CouchDB 2.x problems while filling a db with Wikipedia
>> entries. I use therefore mwscrape from:
>> https://github.com/itkach/mwscrape
>> and after a while I always get a 500 error from CouchDB and my scrape
>> stops. This never happened with CouchDB 1.6 under Ubuntu 14.04.
>> 
>> So could it be possible to install CouchDB 1.x maybe by self-compilation
>> somehow or are there old and now unsatisfiable dependencies? Someone knows?
>> 
>> Thanks, frank
>> 


Re: Downgrading to CouchDB 1.6 on Ubuntu 18.04

Posted by Ronny Berndt <ro...@kioskkinder.com.INVALID>.
Are there any error details in the CouchDB log file?

Ronny

Vom iPhone gesendet

> Am 03.05.2020 um 11:42 schrieb Frank Röhm <fr...@gmx.net>:
> 
> Hallo
> 
> is it possible to downgrade on a Ubuntu 18.04 server to the old CouchDB 1.6?
> 
> I have since CouchDB 2.x problems while filling a db with Wikipedia
> entries. I use therefore mwscrape from:
> https://github.com/itkach/mwscrape
> and after a while I always get a 500 error from CouchDB and my scrape
> stops. This never happened with CouchDB 1.6 under Ubuntu 14.04.
> 
> So could it be possible to install CouchDB 1.x maybe by self-compilation
> somehow or are there old and now unsatisfiable dependencies? Someone knows?
> 
> Thanks, frank
> 

Re: Downgrading to CouchDB 1.6 on Ubuntu 18.04

Posted by ermouth <er...@gmail.com>.
> to downgrade on a Ubuntu 18.04 server to the old CouchDB 1.6?

There’s instructions for 1.7 https://cloudwall.me/setup_couch#h-15vwa7rs

ermouth