nixos-unstable log file unwriteable
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- nginx
- Domain
- devops, infrastructure
Research direction
Inspect nginx-binary-cache-proxy.nix around line 57 and compare the configured log path with the read-only /nix/store path shown in the failure. Reproduce the nginx service start and trace the related NixOS or nixpkgs change. Done means nginx starts successfully and its access log uses a writable location.
Written by the indexing model from the issue text.
Description
Jun 15 01:25:52 dell-nixos systemd[1]: Starting Nginx Web Server...
-- Subject: Unit nginx.service has begun start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx.service has begun starting up.
Jun 15 01:25:52 dell-nixos nginx-pre-start[19878]: nginx: [warn] could not build optimal types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 64; ignoring types_hash_bucket_size
Jun 15 01:25:52 dell-nixos nginx-pre-start[19878]: nginx: the configuration file /nix/store/6flkwwcrd2smyxq9s88jncjqsik55z76-nginx.conf syntax is ok
Jun 15 01:25:52 dell-nixos nginx-pre-start[19878]: nginx: [emerg] open() "/nix/store/sg297sr4iji76br0511z17k4x35mpcbl-nginx-1.18.0/logs/access.log" failed (2: No such file or directory)
Jun 15 01:25:52 dell-nixos nginx-pre-start[19878]: nginx: configuration file /nix/store/6flkwwcrd2smyxq9s88jncjqsik55z76-nginx.conf test failed
Jun 15 01:25:52 dell-nixos systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Jun 15 01:25:52 dell-nixos systemd[1]: nginx.service: Failed with result 'exit-code'.
Jun 15 01:25:52 dell-nixos systemd[1]: Failed to start Nginx Web Server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx.service has failed.
--
-- The result is RESULT.
https://github.com/nh2/nix-binary-cache-proxy/blob/b144bad7e95fc78ab50b2230df4920938899dab0/nginx-binary-cache-proxy.nix#L57
it used to write to /var/spool/nginx/logs/access.log
but now tries to write to the read only store. /nix/store/sg297sr4iji76br0511z17k4x35mpcbl-nginx-1.18.0/logs/access.log
seems likely to be related to this https://github.com/NixOS/nixpkgs/pull/85862#issuecomment-619948672
- Dominant language
- Nix
- Stars
- 58
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nh2/nix-binary-cache-proxy
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
nh2/nix-binary-cache-proxy#1 · 1 comment ·
All issues in nh2/nix-binary-cache-proxy
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
danielmiessler/LifeOS#2215 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
repo:raw-data
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
hotosm/raw-data-api#316 · 1 comment ·
-
agentic-workflows cascade-suspected
Difficulty 2/5 1-3 hours Newbie friendliness 68/100