After installing services-nginx-statics always reports as unhealthy:

b51083ec4ce8 rc_cluster_services-nginx-statics-1 nginx:1.25.3 Up 27 minutes (unhealthy) 80/tcp

The log file returns:

nginx-statics-1 | 2024/03/04 13:57:32 [error] 23#23: *2 open() “/var/opt/rhodecode_static_data/static/robots.txt” failed (2: No such file or directory), client:, server: localhost, request: “GET /_health_static HTTP/1.1”, host: “”

Entering the container and reviewing /etc/nginx/nginx.conf shows the file of interest is located at

docker exec -it rc_cluster_services-nginx-statics-1 bash
root@b51083ec4ce8:/# grep robot /etc/nginx/nginx.conf
alias /var/opt/rhodecode_static_data/static/robots.txt;

root@b51083ec4ce8:/# ls /var/opt/
rhodecode_data rhodecode_static_data

/var/opt/rhodecode_static_data/ is empty, it is bound to ~/.custom/static_files on the local server. The rhodecode_data directory does contain a static directory.

The entrypoint script suggests the contents of a static directory should be copied over:

cp -Rf /var/opt/rhodecode_static/static/ /var/opt/rhodecode_static_data
chmod -R 755 /var/opt/rhodecode_static_data

However, it references a different path, rhodecode_static – is this an error?

This is an artifact of 4.X support with rcstack, it’s indeed something we need to fix. This should be not an issue when using “beta” images which should work fine