h4ki opened a new issue, #5415:
URL: https://github.com/apache/couchdb/issues/5415
#Problem:
Response on _nouveau index query:
{"error":"internal_server_error","reason":"There was an error processing
your request. It has been logged (ID eb5752b9a6daada8)."}
log says:
ERROR [2025-01-27 10:07:59,090]
io.dropwizard.jersey.errors.LoggingExceptionMapper: Error handling a request:
eb5752b9a6daada8
! java.io.FileNotFoundException:
./data/nouveau/[email protected]/shards/80000000-ffffffff/rd20-dev.1732139056/95778a55d3512ab28ece688402c72407960651ca47cd8639298008a1c4717efb/index_definition.json
(Permission denied)
## Steps to Reproduce
1. Create Lucene Query Parser Service under User couchdb instead of root:
[Unit]
Description=Lucene Query Parser for CouchDB
[Service]
User=couchdb
Group=couchdb
ExecStart=/usr/bin/nouveau_server_start.sh
[Install]
WantedBy=multi-user.target
2. Wait some time or reshard database, change data, etc. after some time,
query parser respond with the internal server error above
## Expected Behaviour
couchdb user under which the nouveau server runs has implicit access to all
shards and index_definition.json files
## Your Environment
[TIP]: # ( Include as many relevant details about your environment as
possible. )
[TIP]: # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here.
)
* CouchDB version used: 3.4.2
* Browser name and version: Chrome Engine/not relevant - has same respond
with curl
* Operating system and version: ubuntu 22.04
## Additional Context
When you start Nouveau service under root, index_definition.json files are
accessible and query is fully functional.
==> The problem in my special context is: The nouveau server is not allowed
to run with root privileges.
--
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]