{"action":"created","issue":{"url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/724","labels_url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/724/labels{/name}","comments_url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/724/comments","events_url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/724/events","html_url":"https://github.com/ZoneMinder/ZoneMinder/issues/724","id":58505869,"number":724,"title":"Build with ZM_TARGET_DISTRO=el7 fails to start under systemd","user":{"login":"clipo1979","id":6186786,"avatar_url":"https://avatars.githubusercontent.com/u/6186786?v=3","gravatar_id":"","url":"https://api.github.com/users/clipo1979","html_url":"https://github.com/clipo1979","followers_url":"https://api.github.com/users/clipo1979/followers","following_url":"https://api.github.com/users/clipo1979/following{/other_user}","gists_url":"https://api.github.com/users/clipo1979/gists{/gist_id}","starred_url":"https://api.github.com/users/clipo1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clipo1979/subscriptions","organizations_url":"https://api.github.com/users/clipo1979/orgs","repos_url":"https://api.github.com/users/clipo1979/repos","events_url":"https://api.github.com/users/clipo1979/events{/privacy}","received_events_url":"https://api.github.com/users/clipo1979/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-02-22T15:19:27Z","updated_at":"2015-03-26T20:42:36Z","closed_at":"2015-03-26T20:39:11Z","body":"Fresh build from latest Git on CentOS 7, latest update.\r\n\r\ncmake -DZM_TARGET_DISTRO=el7 .\r\n\r\nall compiles and installs OK, update mysql (Mariadb) with the right info then upon starting systemd gives the following error:\r\n\r\nFeb 22 15:11:18 localhost.localdomain systemd[1]: Starting ZoneMinder CCTV recording and security system...\r\nFeb 22 15:11:18 localhost.localdomain zmpkg[2829]: INF [Command: start]\r\nFeb 22 15:11:18 localhost.localdomain zmdc[2845]: INF [Server starting at 15/02/22 15:11:18]\r\nFeb 22 15:11:20 localhost.localdomain zmdc[2845]: FAT [Can't bind: Address already in use]\r\nFeb 22 15:11:28 localhost.localdomain zmdc[2841]: FAT [Can't connect: Permission denied]\r\nFeb 22 15:11:28 localhost.localdomain zmpkg[2829]: ERR [Unable to run \"/usr/local/bin/zmdc.pl startup\", output is \"Starting server\"]\r\nFeb 22 15:11:28 localhost.localdomain systemd[1]: zoneminder.service: control process exited, code=exited status=255\r\nFeb 22 15:11:28 localhost.localdomain systemd[1]: Failed to start ZoneMinder CCTV recording and security system.\r\nFeb 22 15:11:28 localhost.localdomain systemd[1]: Unit zoneminder.service entered failed state.\r\n\r\nWhen building from the same source with no distro tag all starts ok and runs perfect.\r\n\r\nAny ideas whats missing."},"comment":{"url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/comments/86707358","html_url":"https://github.com/ZoneMinder/ZoneMinder/issues/724#issuecomment-86707358","issue_url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/724","id":86707358,"user":{"login":"clipo1979","id":6186786,"avatar_url":"https://avatars.githubusercontent.com/u/6186786?v=3","gravatar_id":"","url":"https://api.github.com/users/clipo1979","html_url":"https://github.com/clipo1979","followers_url":"https://api.github.com/users/clipo1979/followers","following_url":"https://api.github.com/users/clipo1979/following{/other_user}","gists_url":"https://api.github.com/users/clipo1979/gists{/gist_id}","starred_url":"https://api.github.com/users/clipo1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clipo1979/subscriptions","organizations_url":"https://api.github.com/users/clipo1979/orgs","repos_url":"https://api.github.com/users/clipo1979/repos","events_url":"https://api.github.com/users/clipo1979/events{/privacy}","received_events_url":"https://api.github.com/users/clipo1979/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T20:42:36Z","updated_at":"2015-03-26T20:42:36Z","body":"The issue is now resolved.\r\n\r\nThe sock and other /var/lib directories had the wrong owners so zoneminder could not were to the folders.\r\n\r\nPermissions should have been apache not root\r\n\r\nThe cause is because of the rpm build and could so sdolved with a script if needed."}}