Fedora CoreOS 서버에 Discourse를 설치하려고 시도하고 있지만, 별다른 진전이 없습니다. CoreOS에서는 루트 파티션(/)이 불변(immutable)이므로, 먼저 /var/shared/ 디렉토리를 생성하고 템플릿을 이에 맞게 수정해야 했습니다. 이렇게 하니 데이터베이스는 정상적으로 시작되지만, pups가 심볼릭 링크를 생성하려고 할 때 다음과 같은 오류가 발생하여 실패합니다:
Pups::ExecError: cd /var/www/discourse && bash -c "ln -s /var/shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log /var/www/discourse/log" failed with return #<Process::Status: pid 241 exit 1>
도움을 받아볼까 하고 /var/www/ 디렉토리를 생성하고 가장 느슨한 권한을 설정해 보았지만, 여전히 문제가 있습니다. 사용자 계정이 잘못되었을 수도 있습니다. 'discourse’라는 사용자를 가진 chown 문구를 발견했는데, 이는 아마도 컨테이너 내부에서 실행되는 것일 것입니다. 표준 사용자를 소유자로 하여 /var/shared/와 /var/www를 생성해 보았지만, discourse-setup이 root 권한으로 실행되므로 이 또한 잘못된 시도일 것 같습니다.
저는 Docker보다는 Podman 사용에 더 익숙한 편이라, 다른 곳에서 실수를 하고 있을 수도 있습니다. 도움이 될지 모르겠지만 SELinux를 비활성화해 보기도 했습니다.
어떤 도움이라도 감사히 받겠습니다… ![]()
수정.
아래는 로그입니다.
cd /var/www/discourse && bash -c "ln -s /var/shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log /var/www/discourse/log"
ln: failed to create symbolic link '/var/www/discourse/log/production.log': File exists
ln: failed to create symbolic link '/var/www/discourse/log/production_errors.log': File exists
ln: failed to create symbolic link '/var/www/discourse/log/unicorn.stdout.log': File exists
ln: failed to create symbolic link '/var/www/discourse/log/unicorn.stderr.log': File exists
ln: failed to create symbolic link '/var/www/discourse/log/sidekiq.log': File exists
I, [2025-06-15T16:41:06.444013 #1] INFO -- :
I, [2025-06-15T16:41:06.445624 #1] INFO -- : Terminating async processes
I, [2025-06-15T16:41:06.445825 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/15/bin/postmaster -D /etc/postgresql/15/main pid: 42
I, [2025-06-15T16:41:06.446165 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 91
2025-06-15 16:41:06.446 UTC [42] LOG: received fast shutdown request
91:signal-handler (1750005666) Received SIGTERM scheduling shutdown...
91:M 15 Jun 2025 16:41:06.451 # User requested shutdown...