You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/10/12 10:39:04 UTC
[GitHub] [couchdb-docker] adamko147 opened a new issue #192: touch: cannot touch '/opt/couchdb/etc/local.d/docker.ini': Read-only file system
adamko147 opened a new issue #192:
URL: https://github.com/apache/couchdb-docker/issues/192
When all ini files are mounted from ConfigMap into `/opt/couchdb/etc/local.d` couchdb won't start with error "touch: cannot touch '/opt/couchdb/etc/local.d/docker.ini': Read-only file system"
## Expected Behavior
Since all configuration is provided in ini files (no environment variables needed) couchdb should start without problems
## Current Behavior
currently `docker-entrypoint.sh` fails with "touch: cannot touch '/opt/couchdb/etc/local.d/docker.ini': Read-only file system"
## Possible Solution
Possible solution would to touch the config file only when needed, e.g if admins not found in mounted config
## Steps to Reproduce (for bugs)
Try to apply following manifest
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: couchdb
data:
couch.ini: |
[admins]
admin = -pbkdf2-c1f5f3ba577b63a07ccdb90929a1710d,d18f8ab420a27636470ae5205e082b27,10
[couchdb]
uuid = 792c574198077a896c234d9d99713b40
single_node=true
[couch_httpd_auth]
secret = d5addf639614a8364d5e7d4def000b48
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: couchdb
spec:
selector:
matchLabels:
app: couchdb
serviceName: couchdb
replicas: 1
template:
metadata:
labels:
app: couchdb
spec:
terminationGracePeriodSeconds: 5
containers:
- name: couchdb
image: couchdb:3.1.1
ports:
- name: couchdb
containerPort: 5984
volumeMounts:
- name: couchdb-config
mountPath: /opt/couchdb/etc/local.d
volumes:
- name: couchdb-config
configMap:
name: couchdb
```
## Context
Trying to deploy couchdb with pre-defined ini values mounted from kubernetes config maps
## Your Environment
* Version used:
- kubernetes 1.18
- couchdb 3.1.1
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb-docker] wohali closed issue #192: touch: cannot touch '/opt/couchdb/etc/local.d/docker.ini': Read-only file system
Posted by GitBox <gi...@apache.org>.
wohali closed issue #192:
URL: https://github.com/apache/couchdb-docker/issues/192
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb-docker] wohali commented on issue #192: touch: cannot touch '/opt/couchdb/etc/local.d/docker.ini': Read-only file system
Posted by GitBox <gi...@apache.org>.
wohali commented on issue #192:
URL: https://github.com/apache/couchdb-docker/issues/192#issuecomment-707177259
We've been here before, see #73 and #109 and #110 and #80 and #132
There is also the couchdb helm chart.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org