{"action":"created","issue":{"url":"https://api.github.com/repos/kraih/mojo/issues/733","labels_url":"https://api.github.com/repos/kraih/mojo/issues/733/labels{/name}","comments_url":"https://api.github.com/repos/kraih/mojo/issues/733/comments","events_url":"https://api.github.com/repos/kraih/mojo/issues/733/events","html_url":"https://github.com/kraih/mojo/issues/733","id":55371967,"number":733,"title":"Hypnotoad can't switch to the same group","user":{"login":"avkhozov","id":427039,"avatar_url":"https://avatars.githubusercontent.com/u/427039?v=3","gravatar_id":"","url":"https://api.github.com/users/avkhozov","html_url":"https://github.com/avkhozov","followers_url":"https://api.github.com/users/avkhozov/followers","following_url":"https://api.github.com/users/avkhozov/following{/other_user}","gists_url":"https://api.github.com/users/avkhozov/gists{/gist_id}","starred_url":"https://api.github.com/users/avkhozov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avkhozov/subscriptions","organizations_url":"https://api.github.com/users/avkhozov/orgs","repos_url":"https://api.github.com/users/avkhozov/repos","events_url":"https://api.github.com/users/avkhozov/events{/privacy}","received_events_url":"https://api.github.com/users/avkhozov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-01-24T14:09:41Z","updated_at":"2015-01-25T12:37:54Z","closed_at":"2015-01-24T15:49:00Z","body":"When specifying options group in the hypnotoad config and when it is run from a user with the same group in log displays the error \"Operation not permitted\".\r\n\r\n```bash\r\n$ cat app.pl \r\n#!/usr/bin/env perl\r\nuse Mojolicious::Lite;\r\n\r\napp->config(hypnotoad => {user => 'and', group => 'and', workers => 1});\r\napp->start;\r\n$ id\r\nuid=1000(and) gid=1000(and) groups=1000(and),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),112(lpadmin),124(sambashare)\r\n$ hypnotoad -f app.pl &\r\n[1] 12694\r\n$ [Sat Jan 24 19:03:55 2015] [info] Listening at \"http://*:8080\".\r\nServer available at http://127.0.0.1:8080.\r\n[Sat Jan 24 19:03:55 2015] [info] Manager 12694 started.\r\n[Sat Jan 24 19:03:55 2015] [info] Creating process id file \"/home/and/hypnotoad.pid\".\r\n[Sat Jan 24 19:03:55 2015] [error] Can't switch to group \"and\": Operation not permitted\r\n\r\n$ ps -eo pid,user,group,cmd | grep app.pl\r\n12694 and      and      /home/and/app.pl\r\n12698 and      and      /home/and/app.pl\r\n12709 and      and      grep --color=auto app.pl\r\n$ \r\n```"},"comment":{"url":"https://api.github.com/repos/kraih/mojo/issues/comments/71370784","html_url":"https://github.com/kraih/mojo/issues/733#issuecomment-71370784","issue_url":"https://api.github.com/repos/kraih/mojo/issues/733","id":71370784,"user":{"login":"kraih","id":30094,"avatar_url":"https://avatars.githubusercontent.com/u/30094?v=3","gravatar_id":"","url":"https://api.github.com/users/kraih","html_url":"https://github.com/kraih","followers_url":"https://api.github.com/users/kraih/followers","following_url":"https://api.github.com/users/kraih/following{/other_user}","gists_url":"https://api.github.com/users/kraih/gists{/gist_id}","starred_url":"https://api.github.com/users/kraih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraih/subscriptions","organizations_url":"https://api.github.com/users/kraih/orgs","repos_url":"https://api.github.com/users/kraih/repos","events_url":"https://api.github.com/users/kraih/events{/privacy}","received_events_url":"https://api.github.com/users/kraih/received_events","type":"User","site_admin":false},"created_at":"2015-01-25T12:37:54Z","updated_at":"2015-01-25T12:37:54Z","body":"@olegwtf Lets not do that. :stuck_out_tongue_winking_eye:\r\n\r\nA generic solution for the worker process stopping unexpectedly would make much more sense, and help with cases like this one too.\r\n```\r\n$ MOJO_LOG_LEVEL=debug perl -Ilib -Mojo -E 'Mojo::IOLoop->next_tick(sub { exit 1 }); app->start' prefork\r\n```"}}