You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jan Lehnardt (JIRA)" <ji...@apache.org> on 2015/01/19 17:08:35 UTC

[jira] [Commented] (COUCHDB-2541) couchdbctl

    [ https://issues.apache.org/jira/browse/COUCHDB-2541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14282636#comment-14282636 ] 

Jan Lehnardt commented on COUCHDB-2541:
---------------------------------------

Are you proposing we should have such a tool? Or do you have one?

There is https://github.com/dscape/futoncli which aims to do something similar and afaik @dscape is up for donating it to the ASF.

Maybe we can roll it into the `couchdb` script (by way of clever wrapping, I don’t want to do all this in pure shell :), so it is all one thing. (maybe this is a bad idea, dunno :)

Either way though, I really like this :)

> couchdbctl
> ----------
>
>                 Key: COUCHDB-2541
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2541
>             Project: CouchDB
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>            Reporter: Alexander Shorin
>
> couchdbctl is CouchDB control service utility that aims to help users manage and inspect their CouchDB instance, keeping it well and health.
> Few ideas what it may do:
> - register users with easy:
> {code}
> $ couchdbctl users add Jan
> Password:
> {code}
> hides routines to create /_users/org.couchdb.users:Jan document with all required fields;
> - run service operations:
> {code}
> $ couchdbctl db compact
> {code}
> - connect to node and provide shell:
> {code}
> $ couchdbctl attach
> {code}
> - run security audit as like as [audit-couchdb|https://github.com/iriscouch/audit_couchdb] or [couchdb-auditor|https://github.com/kxepal/python-couchdb-auditor] does;
> {code}
> $ couchdbctl audit
> {code}
> - see erltop;
> {code}
> $ couchdbctl top
> {code}
> - monitor stats and active tasks in realtime;
> - run replications with single command without worry about JSON and required fields:
> {code}
> $ couchdbctl replicate foo http://example.com/bar --continuous --create-target
> {code}
> - check cluster health, add/remove nodes to it;
> - explain errors in logs:
> {code}
> $ couchdbctl errors
> [error] [<0.125.0>] {error_report,<0.30.0>,
>                      {<0.125.0>,crash_report,
>                       [[{initial_call,{couch_file,init,['Argument__1']}},
>                         {pid,<0.125.0>},
>                         {registered_name,[]},
>                         {error_info,
>                          {exit,
>                           {{badmatch,{error,eacces}},
>                            [{couch_file,init,1,
> ...
> eacess error - insufficient or invalid permissions, please verify that couchdb user has all r permissions to the following paths:
> /var/lib/couchdb - read+write
> /var/log/couchdb - read+write
> /etc/couchdb - read+write
> /usr/lib64/couchdb/erlang/lib/couch-2.0.0/priv/lib - read
> {code}
> And so on and so forth. It's easy to find how this utility may improve users experience with CouchDB by simplifying common maintaining routes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)