-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
nextcloud doesn't create the needed groups #48881
Comments
This could be fixed by making these configurable: nixpkgs/nixos/modules/services/web-apps/nextcloud.nix Lines 361 to 364 in 7deafa3
|
Right, this should be configurable and default to nginx if enabled, complaining if nginx is disabled and it's still set to nginx. Could one of you prepare a PR for that, possibly also editing tests, adding a variant with another webserver? |
@flokli couldn't it default to another group than nginx and use nginx only if activated ? |
@teto it might work, but this would mean when enabling nginx, seafile's php would suddenly be executed as another user, yielding weird results due to wrong ownership of files in users data directories - I'd like to avoid that… Examples, like the VM tests, currently also enable Do you use apache as webserver, or why don't you use |
I've enabled nginx and deployed nextcloud on one of my machine. A quick run in journalctl shows no error (and nextcloud yet I can't access the webUI. Is there anything required to enable the webui ?
I've used a fake domainName "toto.com" since my server has no domain. Could that be it ? should I address it by its IP instead ? |
@teto if nextcloud is enabled, the nextcloud module creates a |
That might be a bit out of scope but I tried installing nextcloud on several machines and while it seems to work locally (as in wget http://localhost), it doesn't answer to remote connections. I ran wireshark and the server returns no answer. journalctl -b0 shows my connection attempts are blocked:
I looked for an nginx.firewall = enable option but that doesn't seem the case. There is a firewallfilter but I would rather enable it via a boolean than using scary iptables parameters. |
@teto about that issue, you need to open port 80/443 in the firewall, see https://nixos.org/nixos/manual/index.html#sec-firewall :
|
@flokli That solved it thanks. I've added a setting for it. Feel free to close it but I like the added coupling between the module and the firewall ports opening: #50256. |
@teto what's your opinion on the missing While looking at roundcube, we just went with enabling nginx as soon as the roundcube module is enabled, i think this can (and should) be done here too. |
@flokli no strong opinion there. Having it work by default is an improvement but what if you disable nginx (a cornercase I admit) ? you will end up with the same error. |
@teto you won't easily be able to disable nginx, as it'll be enabled by the nextcloud module automatically. |
cc @adisbladis |
That's not right AFAICS. You can declare So, as far as I understand, this issue is about the case where nextcloud is enabled, but nginx is disabled (and therefore phpfpm tries to use the non-existing In that case we could make nextcloud's group configurable (and set |
We still don't have a good answer to running |
The universal web service idea is tracked in #22067, I think we should move the discussion around that into this. As nextcloud currently doesn't really work without nginx, we should probably just flip the default of |
Issue description
I tried the new nextcloud service on nixos-unstable but seems like it lacks an assert or forgets to create group for nginx since this simple config
generates a deployment failure (deployed via nixops):
Technical details
The text was updated successfully, but these errors were encountered: