JetBrains / teamcity-docker-server

TeamCity server docker image sources
https://hub.docker.com/r/jetbrains/teamcity-server/
Apache License 2.0
72 stars 52 forks source link

Permission issue with /opt/teamcity/temp #38

Open adepretis opened 4 years ago

adepretis commented 4 years ago

When running TC within Kubernetes with securityContext and fsGroup: 1000 and runAsUser: 1000 (the UID/GID of the image's tcuser there is a problem with /opt/teamcity/temp:

It seems the directory (/opt/teamcity/temp) is not writable. TeamCity requires it to be writable.
/opt/teamcity/temp/testfile.txt (Permission denied)

This problem has been introduced with https://github.com/JetBrains/teamcity-docker-server/commit/c00ea88f17798eda3ce249f39b8ec5562b1a6df2 and should be fixed with a simple chown tcuser:tcuser on /opt/teamcity/temp.

AhmetEkmekci commented 4 years ago

Same issue on Windows image

It seems the directory (C:\TeamCity\bin\..\temp) is not writable. TeamCity requires it to be writable. C:\TeamCity\bin\..\temp\testfile.txt (Access is denied)

LBalsa commented 3 years ago

Same issue on Windows image

It seems the directory (C:\TeamCity\bin\..\temp) is not writable. TeamCity requires it to be writable. C:\TeamCity\bin\..\temp\testfile.txt (Access is denied)

Having the same problem, any updated on a fix?

AhmetEkmekci commented 3 years ago

Same issue on Windows image It seems the directory (C:\TeamCity\bin\..\temp) is not writable. TeamCity requires it to be writable. C:\TeamCity\bin\..\temp\testfile.txt (Access is denied)

Having the same problem, any updated on a fix?

Running the container with this fixed my problem; -v C:\TeamCity\temp:C:\TeamCity\temp

Documentation does not mention it, I think it should.