{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/48881","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/48881/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/48881/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/48881/events","html_url":"https://github.com/NixOS/nixpkgs/issues/48881","id":373017069,"node_id":"MDU6SXNzdWUzNzMwMTcwNjk=","number":48881,"title":"nextcloud doesn't create the needed groups","user":{"login":"teto","id":886074,"node_id":"MDQ6VXNlcjg4NjA3NA==","avatar_url":"https://avatars0.githubusercontent.com/u/886074?v=4","gravatar_id":"","url":"https://api.github.com/users/teto","html_url":"https://github.com/teto","followers_url":"https://api.github.com/users/teto/followers","following_url":"https://api.github.com/users/teto/following{/other_user}","gists_url":"https://api.github.com/users/teto/gists{/gist_id}","starred_url":"https://api.github.com/users/teto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teto/subscriptions","organizations_url":"https://api.github.com/users/teto/orgs","repos_url":"https://api.github.com/users/teto/repos","events_url":"https://api.github.com/users/teto/events{/privacy}","received_events_url":"https://api.github.com/users/teto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-23T14:02:18Z","updated_at":"2018-11-12T06:01:36Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Issue description\r\n\r\nI 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\r\n\r\n```\r\n{ config, lib, pkgs,  ... }:\r\nlet\r\n  secrets = import ../secrets.nix;\r\nin\r\n{\r\n  services.nextcloud = {\r\n    enable = true;\r\n    # TODO update later\r\n    hostName = \"toto.com\";\r\n    # nginx.enable = true;\r\n    config = {\r\n      adminpass = secrets.nextcloud.password;\r\n    };\r\n    maxUploadSize = \"512M\";\r\n  };\r\n}\r\n\r\n```\r\ngenerates a deployment failure (deployed via nixops):\r\n```\r\nmptcp-server> Oct 23 22:10:40 mptcp systemd[1]: Starting PHP FastCGI Process Manager service for pool nextcloud...\r\nmptcp-server> Oct 23 22:10:40 mptcp php-fpm[8850]: [ERROR] [pool nextcloud] cannot get gid for group 'nginx'\r\nmptcp-server> Oct 23 22:10:40 mptcp php-fpm[8850]: [ERROR] [pool nextcloud] cannot get gid for group 'nginx'\r\nmptcp-server> Oct 23 22:10:40 mptcp php-fpm[8850]: [ERROR] FPM initialization failed\r\nmptcp-server> Oct 23 22:10:40 mptcp php-fpm[8850]: [ERROR] FPM initialization failed\r\n```\r\n\r\n## Technical details\r\n\r\n\r\n```\r\n - system: `\"x86_64-linux\"`\r\n - host os: `Linux 4.14.73, NixOS, 19.03.git.50dfcd2 (Koi)`\r\n - multi-user?: `yes`\r\n - sandbox: `yes`\r\n - version: `nix-env (Nix) 2.1.3`\r\n - channels(teto): `\"\"`\r\n - channels(root): `\"nixos-unstable-18.03pre130932.cc4677c36ee\"`\r\n - nixpkgs: `/home/teto/nixpkgs`\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/437766287","html_url":"https://github.com/NixOS/nixpkgs/issues/48881#issuecomment-437766287","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/48881","id":437766287,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzc2NjI4Nw==","user":{"login":"teto","id":886074,"node_id":"MDQ6VXNlcjg4NjA3NA==","avatar_url":"https://avatars0.githubusercontent.com/u/886074?v=4","gravatar_id":"","url":"https://api.github.com/users/teto","html_url":"https://github.com/teto","followers_url":"https://api.github.com/users/teto/followers","following_url":"https://api.github.com/users/teto/following{/other_user}","gists_url":"https://api.github.com/users/teto/gists{/gist_id}","starred_url":"https://api.github.com/users/teto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teto/subscriptions","organizations_url":"https://api.github.com/users/teto/orgs","repos_url":"https://api.github.com/users/teto/repos","events_url":"https://api.github.com/users/teto/events{/privacy}","received_events_url":"https://api.github.com/users/teto/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T06:01:36Z","updated_at":"2018-11-12T06:01:36Z","author_association":"CONTRIBUTOR","body":"@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: https://github.com/NixOS/nixpkgs/pull/50256.\r\nBtw I am so glad I switched to nixos. The ease of installation of programs as complex as nextcloud is spectacular (and I expect the maintenance a lot easier as well). This is the kind of selfhosted program I've always wanted to do but didn't want to commit the required time because of software complexity back on ubuntu."}}
{"actor":{"display_login":"teto"}}