incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pete Vander Giessen (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1357) Authentication failure after updating password in user document
Date Thu, 08 Dec 2011 23:43:40 GMT

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

Pete Vander Giessen commented on COUCHDB-1357:
----------------------------------------------

I managed to reproduce the bug :-)

I started couch w/ the following in the invocation:
-env ERL_MAX_PORTS 256 +P 256

(I tried setting the ports lower, but couch wouldn't start at all if I set it too low.)

Then I visited futon on a linux server with about 100 databases. This opened enough files/ports
to trigger the system limit. 

Here's what I saw:
1) Couch continued to run, and my admin user could log in, but I couldn't log in with any
users in the _users database. 
2) The log got ... noisy. Here's the first error:
]\
[Thu, 08 Dec 2011 23:36:00 GMT] [error] [<0.84.0>] Unexpected message, restarting couch_server:
{'EXIT',
                                                                 <0.734.0>,
                                                                 {system_limit,
                                                                  [{erlang,
                                                                    spawn_opt,
                                                                    [proc_lib,
                                                                     init_p,
                                                                     [<0.734.0>,
                                                                      [],gen,
                                                                      init_it,
                                                                      [gen_server,
                                                                       <0.734.0>,
                                                                       <0.734.0>,
                                                                       couch_file,
                                                                       {"/opt/Cloudpic/var/lib/couchdb/p-8911029bacfc48c9809a97ef00da45b6.couch",
                                                                        [{user_ctx,
                                                                          {user_ctx,
                                                                           null,
                                                                           [],
                                                                           undefined}}],
                                                                        <0.734.0>,
                                                                        #Ref<0.0.0.1816>},
                                                                       []]],
                                                                     [link]]},
                                                                   {proc_lib,
                                                                    start_link,
                                                                    5},
                                                                   {couch_file,
                                                                    open,2},
                                                                   {couch_db,
                                                                    open_db_file,
                                                                    2},
                                                                   {couch_db,
                                                                    start_link,
                                                                    3},
                                                                   {couch_server,
                                                                    '-open_async/5-fun-0-',
                                                                    4}]}}





                
> Authentication failure after updating password in user document
> ---------------------------------------------------------------
>
>                 Key: COUCHDB-1357
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1357
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>            Reporter: Filipe Manana
>         Attachments: 0001-Let-the-credentials-cache-daemon-crash-if-_users-db-.patch
>
>
> From the report at the users mailing list:
> http://s.apache.org/9OG
> Seems like after updating the password in a user doc, the user is not able to login with
the new password unless Couch is restarted. Sounds like a caching issue.
> The only case of getting the cache consistent with the _users database content is if
the _users database processes crash and after the crash user documents are updated. The cache
daemon is ignoring the database crash.
> The following patch updates the daemon to monitor the _users database and crash (letting
the supervisor restart it) if the database process crashes.
> Etap test included.
> This might be related to COUCHDB-1212.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message