You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "manurajsingh (via GitHub)" <gi...@apache.org> on 2023/05/22 14:19:05 UTC

[GitHub] [couchdb] manurajsingh opened a new issue, #4611: Verification of View Creation Fails

manurajsingh opened a new issue, #4611:
URL: https://github.com/apache/couchdb/issues/4611

   I have a few couch databases hosted on a single node, where Apache Couch 3.3.1 is running as Windows 10 Service. I have noticed that Couch has started reporting Internal Server Error 500, when attempting to verify if I can create views.
   
   ## Description
   Having looked through logs, I can see the following error.
   
   `[error] 2023-05-22T13:46:27.782000Z couchdb@localhost <0.889.0> -------- rexi_server: from: couchdb@localhost(<0.883.0>) mfa: fabric_rpc:update_docs/3 exit:{timeout,{gen_server,call,[couch_proc_manager,{get_proc,<<"javascript">>},5000]}} [{gen_server,call,3,[{file,"gen_server.erl"},{line,247}]},{couch_query_servers,get_os_process,1,[{file,"src/couch_query_servers.erl"},{line,696}]},{couch_mrview,validate,2,[{file,"src/couch_mrview.erl"},{line,241}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{couch_db,validate_ddoc,2,[{file,"src/couch_db.erl"},{line,934}]},{couch_db,'-prep_and_validate_updates/6-fun-1-',3,[{file,"src/couch_db.erl"},{line,1075}]},{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},{couch_db,prep_and_validate_updates,6,[{file,"src/couch_db.erl"},{line,1064}]}]`
   
   ## Steps to Reproduce
   I am using Fauxton to login and create DBs and corresponding views, but the creation of views fails. Then attempting to verify if views can be created, but that fails too.
   
   ## Expected Behaviour
   Views should be created.
   
   ## Your Environment
   * CouchDB version used: 3.3.1
   * Browser name and version: Chrome Version 113.0.5672.127 (Official Build) (64-bit)
   * Operating system and version: Microsoft Windows 10
   
   ## Additional Context
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] nickva commented on issue #4611: Verification of View Creation Fails

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on issue #4611:
URL: https://github.com/apache/couchdb/issues/4611#issuecomment-1557329524

   The error indicates the JS engine request is timing out after 5 seconds during document updates. Your database probably has some design documents with [VDUs](https://docs.couchdb.org/en/stable/ddocs/ddocs.html#validate-document-update-functions). 
   
   If you have large documents you could try increasing that timeout:
    ```
   [couchdb] os_process_timeout = 5000
   ```
   Make it 15000 (15 sec), for instance.
   
   If you're doing a lot of  concurrent updates, you may want to increase your JS engine limit to something higher than the default 100:
   ```
   [query_server_config]
   os_process_limit = 100
   ```
   
   Make it 250 and see if it help. 
   
   There is also a good chance that your VDU JS code is crashing or has a loop that's running too long or something like that. Look in the log to see if you notice any stack traces or exceptions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] manurajsingh commented on issue #4611: Verification of View Creation Fails

Posted by "manurajsingh (via GitHub)" <gi...@apache.org>.
manurajsingh commented on issue #4611:
URL: https://github.com/apache/couchdb/issues/4611#issuecomment-1557356070

   [couchdb.zip](https://github.com/apache/couchdb/files/11532287/couchdb.zip)
   
   Attached Logs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] manurajsingh commented on issue #4611: Verification of View Creation Fails

Posted by "manurajsingh (via GitHub)" <gi...@apache.org>.
manurajsingh commented on issue #4611:
URL: https://github.com/apache/couchdb/issues/4611#issuecomment-1557398671

   Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] manurajsingh commented on issue #4611: Verification of View Creation Fails

Posted by "manurajsingh (via GitHub)" <gi...@apache.org>.
manurajsingh commented on issue #4611:
URL: https://github.com/apache/couchdb/issues/4611#issuecomment-1557354150

   Thanks for the quick response Nick
   
   I will apply your suggested changes. But note that my databases are currently empty.
   
   Context
   I was creating empty databases via REST Calls and then creating a view.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] manurajsingh closed issue #4611: Verification of View Creation Fails

Posted by "manurajsingh (via GitHub)" <gi...@apache.org>.
manurajsingh closed issue #4611: Verification of View Creation Fails
URL: https://github.com/apache/couchdb/issues/4611


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] manurajsingh commented on issue #4611: Verification of View Creation Fails

Posted by "manurajsingh (via GitHub)" <gi...@apache.org>.
manurajsingh commented on issue #4611:
URL: https://github.com/apache/couchdb/issues/4611#issuecomment-1557398269

   I am closing this Nick.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org