[PR #88] [MERGED] Fix nginx permission error for log directory access #217

Closed
opened 2026-03-01 18:33:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbootxyz/docker-netbootxyz/pull/88
Author: @antonym
Created: 6/12/2025
Status: Merged
Merged: 6/12/2025
Merged by: @antonym

Base: masterHead: nginx-permission-fix


📝 Commits (1)

  • 4c3c9cb Fix nginx permission error for log directory access

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 root/init.sh (+2 -0)

📄 Description

Summary

  • Fixed nginx service failing to start due to permission denied errors on /var/lib/nginx/logs/error.log
  • Added proper ownership setup for /var/log/nginx directory since /var/lib/nginx/logs is a symlink to it
  • Ensures nginx can write logs when running as the nbxyz user

Test plan

  • Built and tested Docker container locally
  • Verified nginx starts successfully without permission errors
  • Confirmed all services (nginx, dnsmasq, webapp) are running properly

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbootxyz/docker-netbootxyz/pull/88 **Author:** [@antonym](https://github.com/antonym) **Created:** 6/12/2025 **Status:** ✅ Merged **Merged:** 6/12/2025 **Merged by:** [@antonym](https://github.com/antonym) **Base:** `master` ← **Head:** `nginx-permission-fix` --- ### 📝 Commits (1) - [`4c3c9cb`](https://github.com/netbootxyz/docker-netbootxyz/commit/4c3c9cb54a7dac27c432b211eb20cca91b899f4f) Fix nginx permission error for log directory access ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `root/init.sh` (+2 -0) </details> ### 📄 Description ## Summary - Fixed nginx service failing to start due to permission denied errors on `/var/lib/nginx/logs/error.log` - Added proper ownership setup for `/var/log/nginx` directory since `/var/lib/nginx/logs` is a symlink to it - Ensures nginx can write logs when running as the `nbxyz` user ## Test plan - [x] Built and tested Docker container locally - [x] Verified nginx starts successfully without permission errors - [x] Confirmed all services (nginx, dnsmasq, webapp) are running properly --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 18:33:49 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-netbootxyz#217
No description provided.