{"action":"created","issue":{"url":"https://api.github.com/repos/apache/couchdb/issues/1133","repository_url":"https://api.github.com/repos/apache/couchdb","labels_url":"https://api.github.com/repos/apache/couchdb/issues/1133/labels{/name}","comments_url":"https://api.github.com/repos/apache/couchdb/issues/1133/comments","events_url":"https://api.github.com/repos/apache/couchdb/issues/1133/events","html_url":"https://github.com/apache/couchdb/issues/1133","id":292642063,"number":1133,"title":"CouchDb 2.1.1 can NOT create a View document","user":{"login":"ToanP","id":17540332,"avatar_url":"https://avatars3.githubusercontent.com/u/17540332?v=4","gravatar_id":"","url":"https://api.github.com/users/ToanP","html_url":"https://github.com/ToanP","followers_url":"https://api.github.com/users/ToanP/followers","following_url":"https://api.github.com/users/ToanP/following{/other_user}","gists_url":"https://api.github.com/users/ToanP/gists{/gist_id}","starred_url":"https://api.github.com/users/ToanP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToanP/subscriptions","organizations_url":"https://api.github.com/users/ToanP/orgs","repos_url":"https://api.github.com/users/ToanP/repos","events_url":"https://api.github.com/users/ToanP/events{/privacy}","received_events_url":"https://api.github.com/users/ToanP/received_events","type":"User","site_admin":false},"labels":[{"id":594291716,"url":"https://api.github.com/repos/apache/couchdb/labels/waiting%20on%20user","name":"waiting on user","color":"FBCA04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-01-30T03:34:00Z","updated_at":"2018-02-04T18:16:06Z","closed_at":"2018-02-04T18:16:06Z","author_association":"NONE","body":"<!--- Provide a general summary of the issue in the Title above -->\r\n The latest  COuchDB 2.1.1 for MACOS can not create a simple view. \r\n\r\n## Expected Behavior\r\n<!--- If you're describing a bug, tell us what should happen -->\r\nView Document worked well on CouchDB 2.1.0 but CouchDB 2.1.1. \r\nHere is log:\r\n\r\ncouchdb@localhost <0.882.0> -------- OS Process Error <0.25075.1> :: {os_process_error,{exit_status,134}}\r\n\r\n<!--- If you're suggesting a change/improvement, tell us how it should work -->\r\n\r\n## Current Behavior\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\n\r\n## Possible Solution\r\n<!--- Not obligatory, but suggest a fix/reason for the bug, -->\r\n<!--- or ideas how to implement the addition or change -->\r\n\r\n## Steps to Reproduce (for bugs)\r\n<!--- Provide a link to a live example, or an unambiguous set of steps to -->\r\n<!--- reproduce this bug. Include code to reproduce, if relevant -->\r\n1. Create a Fruit dabase\r\n2. Add some documents\r\n{\r\n    \"_id\" : \"bc2a41170621c326ec68382f846d5764\",\r\n     \"item\" : \"apple\",\r\n    \"prices\" : {\r\n        \"Fresh Mart\" : 1.59,\r\n        \"Price Max\" : 5.99,\r\n        \"Apples Express\" : 0.79\r\n    }\r\n}\r\n{\r\n    \"_id\" : \"bc2a41170621c326ec68382f846d5764\",\r\n     \"item\" : \"orange\",\r\n    \"prices\" : {\r\n        \"Fresh Mart\" : 1.99,\r\n        \"Price Max\" : 3.19,\r\n        \"Citrus Circus\" : 1.09\r\n    }\r\n}\r\n{\r\n    \"_id\" : \"bc2a41170621c326ec68382f846d5764\",\r\n     \"item\" : \"banana\",\r\n    \"prices\" : {\r\n        \"Fresh Mart\" : 1.99,\r\n        \"Price Max\" : 0.79,\r\n        \"Banana Montana\" : 4.22\r\n    }\r\n}\r\n3. Create a View from design document\r\nfunction (doc) {\r\n   var store, price, value;\r\n    if (doc.item && doc.prices) {\r\n        for (store in doc.prices) {\r\n            price = doc.prices[store];\r\n            value = [doc.item, store];\r\n            emit(price, value);\r\n        }\r\n    }\r\n}\r\n\r\n4. Save Document and Build index\r\n\r\n## Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Version used: CouchDB 2.1.1\r\n* Browser Name and version: Chrome\r\n* Operating System and version (desktop or mobile): MACOS High Sierra\r\n* Link to your project: NA\r\n"},"comment":{"url":"https://api.github.com/repos/apache/couchdb/issues/comments/362927191","html_url":"https://github.com/apache/couchdb/issues/1133#issuecomment-362927191","issue_url":"https://api.github.com/repos/apache/couchdb/issues/1133","id":362927191,"user":{"login":"wohali","id":112292,"avatar_url":"https://avatars2.githubusercontent.com/u/112292?v=4","gravatar_id":"","url":"https://api.github.com/users/wohali","html_url":"https://github.com/wohali","followers_url":"https://api.github.com/users/wohali/followers","following_url":"https://api.github.com/users/wohali/following{/other_user}","gists_url":"https://api.github.com/users/wohali/gists{/gist_id}","starred_url":"https://api.github.com/users/wohali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wohali/subscriptions","organizations_url":"https://api.github.com/users/wohali/orgs","repos_url":"https://api.github.com/users/wohali/repos","events_url":"https://api.github.com/users/wohali/events{/privacy}","received_events_url":"https://api.github.com/users/wohali/received_events","type":"User","site_admin":false},"created_at":"2018-02-04T18:16:06Z","updated_at":"2018-02-04T18:16:06Z","author_association":"MEMBER","body":"@Crispy1975 It's not.\r\n\r\nThe macOS bug is specifically related to a missing shared library, which was added in the 2.1.1.1 download. People were able to work around it successfully by installing the shared library using the `brew` tool on their own.\r\n\r\nYour issue is that the view is taking too long to calculate. The default amount of time to wait for the external process is 5 seconds. That error, `{os_process_error,\"OS process timed out.\"}` doesn't say the process couldn't run at all.\r\n\r\nTry increasing the `[couchdb] os_process_timeout` value in your `local.ini` file to `10000` or higher. The value is in milliseconds."}}
{"actor":{"display_login":"wohali"}}