-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grocy: 4.0.3 -> 4.2.0, build from sources #296686
Conversation
@ofborg build grocy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done the same tests as before, things seems to (still) work fine.
I have, however, noticed that on nginx
logs, it is complaining about the data/viewcache
directory not existing.
machine # [ 89.918347] nginx[799]: 2024/04/17 07:59:30 [error] 799#799: *31 FastCGI sent in stderr: "PHP message: PHP Warning: Base directory /nix/store/50q0mswdxi6lg412rr2da5i19yvkrys5-grocy-4.2.0/public/../data/viewcache does not exist,
machine # [ 89.921235] nginx[799]: please create or change using %Cache.SerializerPath in /nix/store/50q0mswdxi6lg412rr2da5i19yvkrys5-grocy-4.2.0/packages/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 232; PHP message: PHP Warning: Base directory /nix/store/50q0mswdxi6lg412rr2da5i19yvkrys5-grocy-4.2.0/public/../data/viewcache does not exist,
I've tried to see if this was present in the version in master
, and it seems like the directory exists but (obviously) it is not writable:
machine # [ 3998.407026] nginx[800]: 2024/04/17 09:19:58 [error] 800#800: *7 FastCGI sent in stderr: "PHP message: PHP Warning: Directory /nix/store/mmdcj83if1qnhj4j6qj7vlag0mg7psgm-grocy-4.0.3/public/../data/viewcache not writable, please chmod to 777 in /nix/store/mmdcj83if1qnhj4j6qj7vlag0mg7psgm-grocy-4.0.3/packages/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 294; PHP message: PHP Warning: Directory /nix/store/mmdcj83if1qnhj4j6qj7vlag0mg7psgm-grocy-4.0.3/public/../data/viewcache not writable, please chmod to 777 in /nix/store/mmdcj83if1qnhj4j6qj7vlag0mg7psgm-grocy-4.0.3/packages/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 294; PHP message: PHP Warning: Directory /nix/store/mmdcj83if1qnhj4j6qj7vlag0mg7psgm-grocy-4.0.3/public/../data/viewcache not writable, please chmod to 777 in /nix/store/mmdcj83if1qnhj4j6qj7vlag0mg7psgm-grocy-4.0.3/packages/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 294" while reading response header from upstream, client: 10.0.2.2, server: localhost, request: "PUT /api/user/settings/datatables_state_stock-overview-table HTTP/1.1", upstream: "fastcgi://unix:/run/phpfpm/grocy.sock:", host: "localhost:8080", referrer: "http://localhost:8080/stockoverview"
I wouldn't call it a regression since it was not working before either, but it would be nice to fix it either way (I'm guessing it might require patching?)
Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for fixing all the issues :)
(Tested everything again, it's all working)
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1596 |
4 neutral checks, doesn't look good? |
Hm I missed that, sorry EDIT: still builds for me, no idea what's wrong. |
The adjusted patch have been taken from NixOS#288602. Changes: https://github.com/grocy/grocy/releases/tag/v4.1.0 https://github.com/grocy/grocy/releases/tag/v4.2.0
Done, I missed #281902 after my last rebase. |
@LeSuisse seems to still be failing on darwin, now sure if it's supposed to, but I have no way to test |
Does not seem to be directly related to this change, the error does not come from the grocy derivation which is the only touched here.
|
The checks seem to have passed in the latest version: https://github.com/NixOS/nixpkgs/runs/16724617034 Maybe it's related to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excluding the darwin builds (which I don't think are related to this PR), everything seems to build and work on my PC (tested stuff again).
Result of 1 package built:
|
Description of changes
The adjusted patch have been taken from #288602.
Changes:
https://github.com/grocy/grocy/releases/tag/v4.1.0
https://github.com/grocy/grocy/releases/tag/v4.2.0
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Result of
nixpkgs-review
run on x86_64-linux 11 package blacklisted:
1 package built:
Add a 👍 reaction to pull requests you find important.