Guytou opened a new issue, #4716:
URL: https://github.com/apache/couchdb/issues/4716
[NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^
)
## Description
A process error is encountered when creating or updating a design document
with a view having JS inside.
`[info] 2023-08-03T11:06:57.467270Z nonode@nohost <0.262.0> --------
couch_proc_manager <0.2429.0> died normal
[error] 2023-08-03T11:06:57.467446Z nonode@nohost <0.2421.0> -------- OS
Process Error <0.2429.0> :: {os_process_error,{exit_status,139}}
[info] 2023-08-03T11:06:57.663023Z nonode@nohost <0.262.0> --------
couch_proc_manager <0.2438.0> died normal
[error] 2023-08-03T11:06:57.663199Z nonode@nohost <0.2421.0> -------- OS
Process Error <0.2438.0> :: {os_process_error,{exit_status,139}}
[info] 2023-08-03T11:06:57.854925Z nonode@nohost <0.262.0> --------
couch_proc_manager <0.2441.0> died normal
[error] 2023-08-03T11:06:57.855068Z nonode@nohost <0.2421.0> -------- OS
Process Error <0.2441.0> :: {os_process_error,{exit_status,139}}
[info] 2023-08-03T11:06:58.066615Z nonode@nohost <0.262.0> --------
couch_proc_manager <0.2446.0> died normal
[error] 2023-08-03T11:06:58.066770Z nonode@nohost <0.2421.0> -------- OS
Process Error <0.2446.0> :: {os_process_error,{exit_status,139}}l`
This kind of design document is completly fine:
`{
"_id": "_design/a",
"language": "query",
"views": {
"b": {
"map": {
"fields": {
"c": "asc"
},
"partial_filter_selector": {}
},
"reduce": "_count",
"options": {
"def": {
"fields": [
"c"
]
}
}
}
}
}`
This kind generates the error above:
`{
"_id": "_design/a",
"views": {
"b": {
"map": "function (doc) {\n emit(doc);\n}"
}
}
}`
## Steps to Reproduce
Run a docker container from any of the listed images below pulled from
[DockerHUB ](https://hub.docker.com/_/couchdb) with the default configuration
(single node, 1 custom admin user).
The database is **completly empty**.
Run the _Verify CouchDB Installation_ from Fauxton or create/update a design
document with a failing view.
## Your Environment
Docker:
- Version: 24.0.5
- API version: 1.43
Docker Images tested:
- 3.3.2
- 3.2.2
- 3.2.0
Operating System:
- CentOS Stream 8 - x86
Folders local.d containing the configuration files and data containing the
.couch files are mounted with docker volume.
## Additional Context
I've tested some answers given in the previous opened issues:
- Creating the databases _users and _replicator
- Increasing process_timeout and max_process_number
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]