Asterisk exit with code 1

I tried installing certified asterisk 11 on CentOS 7.

asterisk is starting, but when i run the command : -

service asterisk status

it shows Asterisk exit with code 1, Asterisk is restarting.

Please advise.

Please provide the contents of /var/log/asterisk/messages

Please find the contents of /var/log/asterisk/messages : -

[Apr 21 00:50:38] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:50:42] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:50:46] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:50:51] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:50:55] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:50:59] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:51:03] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:51:08] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:51:12] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:51:16] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:51:20] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:51:24] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:51:29] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:51:33] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:51:37] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:51:41] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:51:45] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:51:50] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:52:35] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:52:35] NOTICE[9443] cdr.c: CDR simple logging enabled.
[Apr 21 00:52:35] NOTICE[9443] loader.c: 152 modules will be loaded.
[Apr 21 00:52:35] NOTICE[9443] res_smdi.c: No SMDI interfaces are available to l isten on, not starting SMDI listener.
[Apr 21 00:52:35] NOTICE[9443] config.c: Registered Config Engine sqlite3
[Apr 21 00:52:35] NOTICE[9443] confbridge/conf_config_parser.c: Adding default_u ser profile to app_confbridge
[Apr 21 00:52:35] NOTICE[9443] cel_custom.c: No mappings found in cel_custom.con f. Not logging CEL to custom CSVs.
[Apr 21 00:56:34] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 00:56:34] NOTICE[9982] cdr.c: CDR simple logging enabled.
[Apr 21 00:56:34] NOTICE[9982] loader.c: 152 modules will be loaded.
[Apr 21 00:56:34] NOTICE[9982] res_smdi.c: No SMDI interfaces are available to l isten on, not starting SMDI listener.
[Apr 21 00:56:34] NOTICE[9982] config.c: Registered Config Engine sqlite3
[Apr 21 00:56:34] NOTICE[9982] confbridge/conf_config_parser.c: Adding default_u ser profile to app_confbridge
[Apr 21 00:56:34] NOTICE[9982] cel_custom.c: No mappings found in cel_custom.con f. Not logging CEL to custom CSVs.
[Apr 21 01:08:17] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:08:21] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:08:25] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:08:29] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:09:57] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:10:02] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:10:06] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:10:10] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:10:14] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:10:18] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:10:22] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:10:27] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:14:58] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 01:14:58] NOTICE[14772] cdr.c: CDR simple logging enabled.
[Apr 21 01:14:58] NOTICE[14772] loader.c: 152 modules will be loaded.
[Apr 21 01:14:58] NOTICE[14772] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Apr 21 01:14:58] NOTICE[14772] config.c: Registered Config Engine sqlite3
[Apr 21 01:15:09] NOTICE[14772] confbridge/conf_config_parser.c: Adding default_ user profile to app_confbridge
[Apr 21 01:15:09] NOTICE[14772] cel_custom.c: No mappings found in cel_custom.co nf. Not logging CEL to custom CSVs.
[Apr 21 03:03:42] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 03:03:42] NOTICE[25340] cdr.c: CDR simple logging enabled.
[Apr 21 03:03:42] NOTICE[25340] loader.c: 152 modules will be loaded.
[Apr 21 03:03:42] NOTICE[25340] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Apr 21 03:03:42] NOTICE[25340] config.c: Registered Config Engine sqlite3
[Apr 21 03:03:42] NOTICE[25340] confbridge/conf_config_parser.c: Adding default_ user profile to app_confbridge
[Apr 21 03:03:42] NOTICE[25340] cel_custom.c: No mappings found in cel_custom.co nf. Not logging CEL to custom CSVs.
[Apr 21 03:05:11] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 03:05:15] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 03:05:19] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 03:05:23] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 03:05:28] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 03:05:32] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:30:38] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:30:39] NOTICE[2674] cdr.c: CDR simple logging enabled.
[Apr 21 12:30:39] NOTICE[2674] loader.c: 152 modules will be loaded.
[Apr 21 12:30:41] NOTICE[2674] res_smdi.c: No SMDI interfaces are available to l isten on, not starting SMDI listener.
[Apr 21 12:30:42] NOTICE[2674] config.c: Registered Config Engine sqlite3
[Apr 21 12:30:42] NOTICE[2674] confbridge/conf_config_parser.c: Adding default_u ser profile to app_confbridge
[Apr 21 12:30:42] NOTICE[2674] cel_custom.c: No mappings found in cel_custom.con f. Not logging CEL to custom CSVs.
[Apr 21 12:30:46] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:30:51] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:30:55] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:30:59] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:31:03] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:31:07] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:31:12] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:31:16] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:31:20] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:31:24] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:31:28] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:31:32] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:35:17] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:35:21] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:35:26] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:35:30] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:35:34] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:35:34] WARNING[7851] db.c: Unable to open Asterisk database ‘/var/lib /asterisk/astdb.sqlite3’: unable to open database file
[Apr 21 12:35:38] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:35:42] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:35:47] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:35:51] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:35:55] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:35:59] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:03] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:08] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:12] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:16] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:20] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:24] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:29] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:33] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:37] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:41] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:45] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:49] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:54] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:36:58] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:02] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:06] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:10] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:15] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:19] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:23] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:27] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:31] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:36] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:40] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:44] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:48] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:53] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:57] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:37:57] NOTICE[16325] cdr.c: CDR simple logging enabled.
[Apr 21 12:37:57] NOTICE[16325] loader.c: 152 modules will be loaded.
[Apr 21 12:37:57] NOTICE[16325] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Apr 21 12:37:57] NOTICE[16325] config.c: Registered Config Engine sqlite3
[Apr 21 12:37:57] NOTICE[16325] confbridge/conf_config_parser.c: Adding default_ user profile to app_confbridge
[Apr 21 12:37:57] NOTICE[16325] cel_custom.c: No mappings found in cel_custom.co nf. Not logging CEL to custom CSVs.
[Apr 21 12:39:58] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:40:02] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:40:06] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:43:43] Asterisk certified/11.6-cert16 built by root @ dhcppc2 on a x8 6_64 running Linux on 2017-04-20 19:03:55 UTC
[Apr 21 12:43:43] NOTICE[18311] cdr.c: CDR simple logging enabled.
[Apr 21 12:43:43] NOTICE[18311] loader.c: 152 modules will be loaded.
[Apr 21 12:43:43] NOTICE[18311] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Apr 21 12:43:43] NOTICE[18311] config.c: Registered Config Engine sqlite3
[Apr 21 12:43:43] NOTICE[18311] confbridge/conf_config_parser.c: Adding default_ user profile to app_confbridge
[Apr 21 12:43:43] NOTICE[18311] cel_custom.c: No mappings found in cel_custom.co nf. Not logging CEL to custom CSVs.

That looks like a crash, although I didn’t think you would get exit 1 for that.

In that case, you will need to get a backtrace, as per https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace

It was the problem with selinux, as it was enabled and asterisk was not able to write the /var/run/asterisk.ctl file.

Thanks for your support.