You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Edison Ch <ed...@scandiumsc.com> on 2014/08/02 14:57:22 UTC

freebsd 10 couchdb 1.6 wont start

Dear all,

I install couchdb 1.6 fresh from port of freebsd 10 and it won't start with the following errors:

-------
[couchdb@host1 ~]$ couchdb -i
Erlang/OTP 17 [erts-6.1] [source] [64-bit] [smp:8:8] [async-threads:4] [kernel-poll:true]

Eshell V6.1  (abort with ^G)
1> Apache CouchDB 1.6.0 (LogLevel=info) is starting.
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,couch_server,{function_clause,[{couch_passwords,hash_admin_password,["couchdb"],[{file,"couch_passwords.erl"},{line,30}]},{couch_server,'-hash_admin_passwords/1-fun-0-',2,[{file,"couch_server.erl"},{line,148}]},{lists,foreach,2,[{file,"lists.erl"},{line,1336}]},{couch_server,init,1,[{file,"couch_server.erl"},{line,172}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
-------

People told me that error cause by incorrect permissions. I have corrected all permissions in /usr/local/etc/couchdb, /usr/local/share/couchdb, /var/db/couchdb, /var/log/couchdb, /usr/local/lib/couchdb to couchdb:couchdb

I even ensure that couchdb user has home to /usr/local/lib/couchdb --

http://docs.couchdb.org/en/latest/install/freebsd.html#installation-from-ports

-- above document shows that couchdb should not have home directory /sbin/nologin - it is a bit mess up to compare against 

http://couchdb.readthedocs.org/en/latest/install/unix.html#security-considerations

---

I am at my wit ends. I am sure that there is bugs in installation script of couchdb 1.6 in freebsd 10! I have repeat the process multiple times.

Any help would be great.

Edison  

Re: do we need a 1.6.1 ?

Posted by Dave Cottlehuber <dc...@jsonified.com>.
As discussed in today’s IRC catchup, I will prepare a 1.6.1 branch
before sneaking off for a long weekend, bringing us up to the last 
commit, #ade9dae, before Bob’s Big(Couch) Merge commit to master.

This will be a bugfix release, I’m proposing a minimal change log:

- just 3 major commits, with smaller doc & fauxton updates:

d43f69d    hash admin passwords on startup when list
3bcf664    Add Experimental Content-Security-Policy support (CSP) for Fauxton
95600b7    Send a real EventSource event for heartbeat


tarball prepped with docs, now a new one at

http://people.apache.org/~dch/snapshots/couchdb/20140814/

I’ll kick off the proper release process tonight.

A+
Dave


Re: do we need a 1.6.1 ?

Posted by Dave Cottlehuber <dc...@jsonified.com>.
As discussed in today’s IRC catchup, I will prepare a 1.6.1 branch
before sneaking off for a long weekend, bringing us up to the last 
commit, #ade9dae, before Bob’s Big(Couch) Merge commit to master.

This will be a bugfix release, I’m proposing a minimal change log:

- just 3 major commits, with smaller doc & fauxton updates:

d43f69d    hash admin passwords on startup when list
3bcf664    Add Experimental Content-Security-Policy support (CSP) for Fauxton
95600b7    Send a real EventSource event for heartbeat

AFAICT I’ve done the git merge[1] correctly, and the tarball[2] passes
verify install, distcheck is still running at 2am. These aren’t
official tarballs!

I haven’t gotten the docs & changes file done yet, so this is just
for those who care to check I got the merge right.

Tomorrow I should get the doc fixes done, hope make distcheck is
passing while I sleep…

A+
Dave

[1]: https://github.com/apache/couchdb/tree/1.6.x
[2]: http://people.apache.org/~dch/snapshots/couchdb/20140813/


Re: do we need a 1.6.1 ?

Posted by Dave Cottlehuber <dc...@jsonified.com>.
> On Wed, Aug 6, 2014 at 7:52 AM, Dave Cottlehuber wrote: 
> > This is the `hash admin passwords on startup when list` fix again, which will  
> > catch more & more people as time goes on. I’m wondering if we should do a 1.6.1  
> > specifically due to this?  
>  
> Sounds sane.  
>  
> Do we not have tests or something to catch this?  
>  
> Cheers,  
>  
> Dirkjan  

My wording of this implies we broke something and then broke it again, that’s not
correct, however a number of users have tripped up on this (hence the again). 

AFAICT #ade9dae is the last commit before the merge to pull 1.6.x up to date from,
so I will see how well this rebases to the 1.6.x branch today. Please let me know
if there’s anything further to go into this release.

A+
Dave


Re: do we need a 1.6.1 ?

Posted by Dirkjan Ochtman <di...@ochtman.nl>.
On Wed, Aug 6, 2014 at 7:52 AM, Dave Cottlehuber <dc...@jsonified.com> wrote:
> This is the `hash admin passwords on startup when list` fix again, which will
> catch more & more people as time goes on. I’m wondering if we should do a 1.6.1
> specifically due to this?

Sounds sane.

Do we not have tests or something to catch this?

Cheers,

Dirkjan

Re: do we need a 1.6.1 ?

Posted by Robert Newson <rn...@apache.org>.
+1 

Sent from my iPhone

> On 6 Aug 2014, at 09:10, Andy Wenk <an...@apache.org> wrote:
> 
> as this is a bit of a security bug I would vote +1
> 
> Cheers
> 
> Andy
> 
> 
> On 6 August 2014 08:52, Dave Cottlehuber <dc...@jsonified.com> wrote:
> 
>>> That was accidental bug which was fixed after release:
>> https://github.com/apache/couchdb/commit/d43f69d90740d5a230b0054fa32b6843b33691bc
>>> TL;DR remove all the clear text passwords from ini file and set admins
>>> via HTTP API to workaround the issue. This should help.
>>> --
>>> ,,,^..^,,,
>> 
>> This is the `hash admin passwords on startup when list` fix again, which
>> will
>> catch more & more people as time goes on. I’m wondering if we should do a
>> 1.6.1
>> specifically due to this?
>> 
>> A+
>> Dave
> 
> 
> -- 
> Andy Wenk
> Hamburg - Germany
> RockIt!
> 
> GPG fingerprint: C044 8322 9E12 1483 4FEC 9452 B65D 6BE3 9ED3 9588
> 
> https://people.apache.org/keys/committer/andywenk.asc

Re: do we need a 1.6.1 ?

Posted by Andy Wenk <an...@apache.org>.
as this is a bit of a security bug I would vote +1

Cheers

Andy


On 6 August 2014 08:52, Dave Cottlehuber <dc...@jsonified.com> wrote:

> > That was accidental bug which was fixed after release:
> >
> https://github.com/apache/couchdb/commit/d43f69d90740d5a230b0054fa32b6843b33691bc
> > TL;DR remove all the clear text passwords from ini file and set admins
> > via HTTP API to workaround the issue. This should help.
> > --
> > ,,,^..^,,,
> >
>
> This is the `hash admin passwords on startup when list` fix again, which
> will
> catch more & more people as time goes on. I’m wondering if we should do a
> 1.6.1
> specifically due to this?
>
> A+
> Dave
>
>
>


-- 
Andy Wenk
Hamburg - Germany
RockIt!

GPG fingerprint: C044 8322 9E12 1483 4FEC 9452 B65D 6BE3 9ED3 9588

 https://people.apache.org/keys/committer/andywenk.asc

Re: do we need a 1.6.1 ?

Posted by Alexander Shorin <kx...@gmail.com>.
On Wed, Aug 6, 2014 at 10:52 AM, Dave Cottlehuber <dc...@jsonified.com> wrote:
>> That was accidental bug which was fixed after release:
>> https://github.com/apache/couchdb/commit/d43f69d90740d5a230b0054fa32b6843b33691bc
>> TL;DR remove all the clear text passwords from ini file and set admins
>> via HTTP API to workaround the issue. This should help.
>> --
>> ,,,^..^,,,
>>
>
> This is the `hash admin passwords on startup when list` fix again, which will
> catch more & more people as time goes on. I’m wondering if we should do a 1.6.1
> specifically due to this?

+1

--
,,,^..^,,,

do we need a 1.6.1 ?

Posted by Dave Cottlehuber <dc...@jsonified.com>.
> That was accidental bug which was fixed after release:
> https://github.com/apache/couchdb/commit/d43f69d90740d5a230b0054fa32b6843b33691bc
> TL;DR remove all the clear text passwords from ini file and set admins
> via HTTP API to workaround the issue. This should help.
> --
> ,,,^..^,,,
>  

This is the `hash admin passwords on startup when list` fix again, which will  
catch more & more people as time goes on. I’m wondering if we should do a 1.6.1
specifically due to this?

A+  
Dave



Re: freebsd 10 couchdb 1.6 wont start

Posted by Alexander Shorin <kx...@gmail.com>.
Hi,

That was accidental bug which was fixed after release:
https://github.com/apache/couchdb/commit/d43f69d90740d5a230b0054fa32b6843b33691bc
TL;DR remove all the clear text passwords from ini file and set admins
via HTTP API to workaround the issue. This should help.
--
,,,^..^,,,


On Sat, Aug 2, 2014 at 4:57 PM, Edison Ch <ed...@scandiumsc.com> wrote:
> Dear all,
>
> I install couchdb 1.6 fresh from port of freebsd 10 and it won't start with the following errors:
>
> -------
> [couchdb@host1 ~]$ couchdb -i
> Erlang/OTP 17 [erts-6.1] [source] [64-bit] [smp:8:8] [async-threads:4] [kernel-poll:true]
>
> Eshell V6.1  (abort with ^G)
> 1> Apache CouchDB 1.6.0 (LogLevel=info) is starting.
> {"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,couch_server,{function_clause,[{couch_passwords,hash_admin_password,["couchdb"],[{file,"couch_passwords.erl"},{line,30}]},{couch_server,'-hash_admin_passwords/1-fun-0-',2,[{file,"couch_server.erl"},{line,148}]},{lists,foreach,2,[{file,"lists.erl"},{line,1336}]},{couch_server,init,1,[{file,"couch_server.erl"},{line,172}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
>
> Crash dump was written to: erl_crash.dump
> init terminating in do_boot ()
> -------
>
> People told me that error cause by incorrect permissions. I have corrected all permissions in /usr/local/etc/couchdb, /usr/local/share/couchdb, /var/db/couchdb, /var/log/couchdb, /usr/local/lib/couchdb to couchdb:couchdb
>
> I even ensure that couchdb user has home to /usr/local/lib/couchdb --
>
> http://docs.couchdb.org/en/latest/install/freebsd.html#installation-from-ports
>
> -- above document shows that couchdb should not have home directory /sbin/nologin - it is a bit mess up to compare against
>
> http://couchdb.readthedocs.org/en/latest/install/unix.html#security-considerations
>
> ---
>
> I am at my wit ends. I am sure that there is bugs in installation script of couchdb 1.6 in freebsd 10! I have repeat the process multiple times.
>
> Any help would be great.
>
> Edison