OpenShiftDemos / gogs-openshift-docker

A Docker setup for gogs.io with OpenShift in mind
55 stars 164 forks source link

Read-only file system after installation completed #26

Open sp1d3rino opened 5 years ago

sp1d3rino commented 5 years ago

I installed as described for persistent option, but when I try to do installation of gogs I see this error

...: open /etc/gogs/conf/app.ini.265302332.tmp: read-only file system infact if I try to login on docker process on the minishift machine I notice that /etc/gogs/conf is read only when I try to do for instance touch file1.

I don't understand where is the problem I can see in the storage that the gog-data is claimed on a persistentVolume in RWO and the /etc/gogs/conf is mounted on gog-data... so what is the problem here?

Javatar81 commented 5 years ago

Gogs tries to write the tmp ini file into /etc/gogs/conf but this folder is mounted in a read-only config map. To solve this problem remove the config map (and create a volume claim mount instead).

The drawback with this approach is that you cannot edit the app.ini file directly over config map. Instead you can edit it from a terminal.