Asterisk / FreePBX - Online Module Upgrade

Tried to online-upgrade some Modules and run into this Bug:

@Stll0 do you know what this is all about yet?

Hi,
no permission to write to /etc/asterisk…i guess…
You may try chmod 777 (Security warning!) /etc/asterisk/http_custom.conf and see if module install works, but don’t forget to revert to original rights…

I was able to run the upgrade after I changed the permission from root:root to asterisk:asterisk …

There are many files owned by root, is that right ?

Please take a look on my /etc/asterisk/ folder:

1077480248 -rw-rw-r--    1 asterisk asterisk 2.8K Aug 31 16:18 acl.conf
1074559890 -rw-rw-r--    1 asterisk asterisk  365 Sep  5 20:36 asterisk.conf
1074559894 -rw-rw-r--    1 asterisk asterisk   91 Sep  5 20:31 cdr_adaptive_odbc.conf
1077601048 -rw-r--r--    1 root     root        0 Sep  5 20:36 cdr.conf
1077599636 lrwxrwxrwx    1 root     root       52 Sep  5 20:36 cel.conf -> /var/www/html/freepbx/admin/modules/cel/etc/cel.conf
1077600945 -rw-r--r--    1 root     root        0 Sep  5 20:36 cel_custom_post.conf
1077600933 -rw-r--r--    1 asterisk asterisk  783 Sep  5 21:29 cel_general_additional.conf
1077600944 -rw-r--r--    1 root     root        0 Sep  5 20:36 cel_general_custom.conf
1077599637 lrwxrwxrwx    1 root     root       57 Sep  5 20:36 cel_odbc.conf -> /var/www/html/freepbx/admin/modules/cel/etc/cel_odbc.conf
1077600946 -rw-r--r--    1 root     root        0 Sep  5 20:36 cel_odbc_custom.conf
1077600932 -rw-r--r--    1 asterisk asterisk  664 Sep  5 21:29 chan_dahdi_additional.conf
1077600917 -rw-r--r--    1 asterisk asterisk 1.4K Sep  5 21:29 confbridge_additional.conf
1077599638 lrwxrwxrwx    1 root     root       67 Sep  5 20:36 confbridge.conf -> /var/www/html/freepbx/admin/modules/conferences/etc/confbr      idge.conf
1077600947 -rw-r--r--    1 root     root        0 Sep  5 20:36 confbridge_custom.conf
1074559895 -rw-rw-r--    1 asterisk asterisk   41 Sep  5 20:30 dnsmgr.conf
1074559896 -rw-rw-r--    1 asterisk asterisk   50 Sep  5 20:30 enum.conf
1077600916 -rw-r--r--    1 asterisk asterisk  80K Sep  5 21:29 extensions_additional.conf
1077599640 lrwxrwxrwx    1 root     root       60 Sep  5 20:36 extensions.conf -> /var/www/html/freepbx/admin/modules/core/etc/extensions.co      nf
1077600950 -rw-r--r--    1 root     root        0 Sep  5 20:36 extensions_custom.conf
1077600949 -rw-r--r--    1 root     root        0 Sep  5 20:36 extensions_override_freepbx.conf
1077600927 -rw-r--r--    1 asterisk asterisk  708 Sep  5 21:29 features_applicationmap_additional.conf
1077600952 -rw-r--r--    1 root     root        0 Sep  5 20:36 features_applicationmap_custom.conf
1077599641 lrwxrwxrwx    1 root     root       58 Sep  5 20:36 features.conf -> /var/www/html/freepbx/admin/modules/core/etc/features.conf
1077600928 -rw-r--r--    1 asterisk asterisk  712 Sep  5 21:29 features_featuremap_additional.conf
1077600953 -rw-r--r--    1 root     root        0 Sep  5 20:36 features_featuremap_custom.conf
1077600926 -rw-r--r--    1 asterisk asterisk  679 Sep  5 21:29 features_general_additional.conf
1077600951 -rw-r--r--    1 root     root        0 Sep  5 20:36 features_general_custom.conf
1074559882 -rw-r--r--    1 root     root      576 Sep  5 20:30 freepbx_chown.conf
1077599635 -rw-rw-r--    1 asterisk asterisk    0 Sep  5 20:36 freepbx-id
1074559897 -rw-rw-r--    1 asterisk asterisk  730 Sep  5 20:30 freepbx_module_admin.conf
1077600948 -rw-r--r--    1 root     root        0 Sep  5 20:36 globals_custom.conf
1077599634 -rw-r--r--    1 asterisk asterisk  956 Sep  5 21:29 http_additional.conf
1077599642 lrwxrwxrwx    1 root     root       54 Sep  5 20:36 http.conf -> /var/www/html/freepbx/admin/modules/core/etc/http.conf
1077600954 -rw-r--r--    1 asterisk asterisk    0 Sep  5 20:36 http_custom.conf
1077600922 -rw-r--r--    1 asterisk asterisk  664 Sep  5 21:29 iax_additional.conf
1077599643 lrwxrwxrwx    1 root     root       53 Sep  5 20:36 iax.conf -> /var/www/html/freepbx/admin/modules/core/etc/iax.conf
1077600957 -rw-r--r--    1 root     root        0 Sep  5 20:36 iax_custom.conf
1077600958 -rw-r--r--    1 root     root        0 Sep  5 20:36 iax_custom_post.conf
1077600925 -rw-r--r--    1 asterisk asterisk  746 Sep  5 21:29 iax_general_additional.conf
1077600955 -rw-r--r--    1 root     root        0 Sep  5 20:36 iax_general_custom.conf
1077600923 -rw-r--r--    1 asterisk asterisk  664 Sep  5 21:29 iax_registrations.conf
1077600956 -rw-r--r--    1 root     root        0 Sep  5 20:36 iax_registrations_custom.conf
1074559898 -rw-rw-r--    1 asterisk asterisk  618 Sep  5 21:29 indications.conf
3223963778 drwxr-xr-x    3 asterisk asterisk  155 Sep  5 20:36 keys
1077600929 -rw-r--r--    1 asterisk asterisk  664 Sep  5 21:29 localprefixes.conf
1077599639 lrwxrwxrwx    1 root     root       60 Sep  5 20:36 logger.conf -> /var/www/html/freepbx/admin/modules/logfiles/etc/logger.conf
1077600918 -rw-r--r--    1 asterisk asterisk  735 Sep  5 21:29 logger_general_additional.conf
1077600959 -rw-r--r--    1 root     root        0 Sep  5 20:36 logger_general_custom.conf
1077600919 -rw-r--r--    1 asterisk asterisk  753 Sep  5 21:29 logger_logfiles_additional.conf
1077601024 -rw-r--r--    1 root     root        0 Sep  5 20:36 logger_logfiles_custom.conf
1077174372 -rw-rw-r--    1 asterisk asterisk    0 Sep  5 20:31 manager_additional.conf
1077601071 -rw-rw-r--    1 asterisk asterisk  971 Sep  5 20:50 manager.conf
1077601056 -rw-rw-r--    1 asterisk asterisk  971 Sep  5 20:50 manager.conf.bak
1077174373 -rw-rw-r--    1 asterisk asterisk    0 Sep  5 20:31 manager_custom.conf
1077174376 -rw-rw-r--    1 asterisk asterisk  664 Sep  5 21:29 meetme_additional.conf
1074559900 -rw-rw-r--    1 asterisk asterisk  126 Sep  5 20:30 meetme.conf
1077174374 -rw-rw-r--    1 asterisk asterisk    0 Sep  5 20:31 meetme_general_additional.conf
1077174375 -rw-rw-r--    1 asterisk asterisk    0 Sep  5 20:31 meetme_general_custom.conf
1074559901 -rw-rw-r--    1 asterisk asterisk 1.6K Sep  5 21:29 modules.conf
1077174378 -rw-rw-r--    1 asterisk asterisk  840 Sep  5 21:29 musiconhold_additional.conf
1074559902 -rw-rw-r--    1 asterisk asterisk  208 Sep  5 20:30 musiconhold.conf
1077174377 -rw-rw-r--    1 asterisk asterisk    0 Sep  5 20:31 musiconhold_custom.conf
1074559903 -rw-rw-r--    1 asterisk asterisk   90 Sep  5 20:30 phpagi.conf
1077355937 -rw-rw-r--    1 asterisk asterisk 2.3K Aug 31 16:18 pjproject.conf
1077600936 -rw-r--r--    1 asterisk asterisk  696 Sep  5 21:29 pjsip.aor.conf
1077601025 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip.aor_custom.conf
1077601030 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip.aor_custom_post.conf
1077600935 -rw-r--r--    1 asterisk asterisk  697 Sep  5 21:29 pjsip.auth.conf
1077601026 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip.auth_custom.conf
1077601031 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip.auth_custom_post.conf
1077600940 -rw-r--r--    1 asterisk asterisk 1.2K Sep  5 21:29 pjsip.conf
1077601027 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip_custom.conf
1077601034 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip_custom_post.conf
1077600937 -rw-r--r--    1 asterisk asterisk  701 Sep  5 21:29 pjsip.endpoint.conf
1077601035 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip.endpoint_custom.conf
1077601029 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip.endpoint_custom_post.conf
1077600938 -rw-r--r--    1 asterisk asterisk  701 Sep  5 21:29 pjsip.identify.conf
1077601036 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip.identify_custom.conf
1077601033 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip.identify_custom_post.conf
1077601052 -rw-r--r--    1 asterisk asterisk  733 Sep  5 21:29 pjsip_notify.conf
1077600934 -rw-r--r--    1 asterisk asterisk  705 Sep  5 21:29 pjsip.registration.conf
1077601037 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip.registration_custom.conf
1077601032 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip.registration_custom_post.conf
1077600939 -rw-r--r--    1 asterisk asterisk  781 Sep  5 21:29 pjsip.transports.conf
1077601038 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip.transports_custom.conf
1077601028 -rw-r--r--    1 root     root        0 Sep  5 20:36 pjsip.transports_custom_post.conf
1074559888 -rw-rw-r--    1 asterisk asterisk    0 Sep  5 20:30 pjsip_wizard.conf
1074559904 -rw-rw-r--    1 asterisk asterisk   81 Sep  5 20:30 privacy.conf
1077174382 -rw-rw-r--    1 asterisk asterisk    0 Sep  5 20:31 queues_additional.conf
1074559905 -rw-rw-r--    1 asterisk asterisk  522 Sep  5 20:30 queues.conf
1077174381 -rw-rw-r--    1 asterisk asterisk    0 Sep  5 20:31 queues_custom.conf
1077174380 -rw-rw-r--    1 asterisk asterisk    0 Sep  5 20:31 queues_custom_general.conf
1077174379 -rw-rw-r--    1 asterisk asterisk    0 Sep  5 20:31 queues_general_additional.conf
1077174383 -rw-rw-r--    1 asterisk asterisk    0 Sep  5 20:31 queues_post_custom.conf
1077600931 -rw-r--r--    1 asterisk asterisk  844 Sep  5 21:29 res_odbc_additional.conf
1077599644 lrwxrwxrwx    1 root     root       58 Sep  5 20:36 res_odbc.conf -> /var/www/html/freepbx/admin/modules/core/etc/res_odbc.conf
1077601039 -rw-r--r--    1 root     root        0 Sep  5 20:36 res_odbc_custom.conf
1077600943 -rw-r--r--    1 asterisk asterisk  735 Sep  5 21:29 rtp_additional.conf
1077599645 lrwxrwxrwx    1 root     root       53 Sep  5 20:36 rtp.conf -> /var/www/html/freepbx/admin/modules/core/etc/rtp.conf
1077601040 -rw-r--r--    1 root     root        0 Sep  5 20:36 rtp_custom.conf
1077480249 -rw-rw-r--    1 asterisk asterisk    0 Aug 31 16:18 rtp_general_additional.conf
1077600920 -rw-r--r--    1 asterisk asterisk 1.1K Sep  5 21:29 sip_additional.conf
1077599646 lrwxrwxrwx    1 root     root       53 Sep  5 20:36 sip.conf -> /var/www/html/freepbx/admin/modules/core/etc/sip.conf
1077601044 -rw-r--r--    1 root     root        0 Sep  5 20:36 sip_custom.conf
1077601045 -rw-r--r--    1 root     root        0 Sep  5 20:36 sip_custom_post.conf
1077600924 -rw-r--r--    1 asterisk asterisk 1.4K Sep  5 21:29 sip_general_additional.conf
1077601041 -rw-r--r--    1 root     root        0 Sep  5 20:36 sip_general_custom.conf
1077601042 -rw-r--r--    1 root     root        0 Sep  5 20:36 sip_nat.conf
1077600930 -rw-r--r--    1 asterisk asterisk  664 Sep  5 21:29 sip_notify_additional.conf
1077599647 lrwxrwxrwx    1 root     root       60 Sep  5 20:36 sip_notify.conf -> /var/www/html/freepbx/admin/modules/core/etc/sip_notify.co      nf
1077601046 -rw-r--r--    1 root     root        0 Sep  5 20:36 sip_notify_custom.conf
1077600921 -rw-r--r--    1 asterisk asterisk  664 Sep  5 21:29 sip_registrations.conf
1077601043 -rw-r--r--    1 root     root        0 Sep  5 20:36 sip_registrations_custom.conf
1077547673 lrwxrwxrwx    1 root     root       55 Sep  5 20:36 udptl.conf -> /var/www/html/freepbx/admin/modules/core/etc/udptl.conf
1077601047 -rw-r--r--    1 root     root        0 Sep  5 20:36 udptl_custom.conf
1077174371 -rw-rw-r--    1 asterisk asterisk 1.1K Sep  5 21:21 voicemail.conf
1077699109 -rw-rw-r--    1 asterisk asterisk  697 Sep  5 20:30 voicemail.conf.template
1 Like

I have nethserver-freepbx 14.0.0-1.ns7 from nethserver-testing and freepbx 14.0-5.ns7 from nethserver-updates installed and all freepbx modules are up to date and my /etc/asterisk looks like this:

18515788 12 drwxrwxr-x 3 asterisk asterisk 8192 Aug 31 21:13 .
16777281 16 drwxr-xr-x. 148 root root 12288 Sep 6 16:00 …
19926139 4 -rw-r–r-- 1 root root 2816 Aug 31 16:18 acl.conf
17861934 4 -rw-rw-r-- 1 asterisk asterisk 365 Jul 19 23:36 asterisk.conf
17861935 4 -rw-rw-r-- 1 asterisk asterisk 91 Jul 19 23:34 cdr_adaptive_odbc.conf
17864215 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 cdr.conf
18081184 0 lrwxrwxrwx 1 asterisk asterisk 52 Jul 19 23:36 cel.conf → /var/www/html/freepbx/admin/modules/cel/etc/cel.conf
17877263 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 cel_custom_post.conf
17861944 4 -rw-rw-r-- 1 asterisk asterisk 783 Sep 3 04:15 cel_general_additional.conf
17877262 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 cel_general_custom.conf
18031461 0 lrwxrwxrwx 1 asterisk asterisk 57 Jul 19 23:36 cel_odbc.conf → /var/www/html/freepbx/admin/modules/cel/etc/cel_odbc.conf
17877264 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 cel_odbc_custom.conf
17861942 4 -rw-rw-r-- 1 asterisk asterisk 664 Sep 3 04:15 chan_dahdi_additional.conf
18081215 4 -rw-rw-r-- 1 asterisk asterisk 1769 Sep 3 04:15 confbridge_additional.conf
17864223 0 lrwxrwxrwx 1 asterisk asterisk 67 Jul 19 23:36 confbridge.conf → /var/www/html/freepbx/admin/modules/conferences/etc/confbridge.conf
17877265 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 confbridge_custom.conf
17861936 4 -rw-rw-r-- 1 asterisk asterisk 41 Jul 19 23:34 dnsmgr.conf
17861937 4 -rw-rw-r-- 1 asterisk asterisk 50 Jul 19 23:34 enum.conf
18081214 160 -rw-rw-r-- 1 asterisk asterisk 161435 Sep 3 04:15 extensions_additional.conf
17864067 0 lrwxrwxrwx 1 asterisk asterisk 60 Jul 19 23:36 extensions.conf → /var/www/html/freepbx/admin/modules/core/etc/extensions.conf
17877268 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 extensions_custom.conf
17877267 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 extensions_override_freepbx.conf
18074710 4 -rw-rw-r-- 1 asterisk asterisk 708 Sep 3 04:15 features_applicationmap_additional.conf
17877270 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 features_applicationmap_custom.conf
17864062 0 lrwxrwxrwx 1 asterisk asterisk 58 Jul 19 23:36 features.conf → /var/www/html/freepbx/admin/modules/core/etc/features.conf
17861940 4 -rw-rw-r-- 1 asterisk asterisk 712 Sep 3 04:15 features_featuremap_additional.conf
17877272 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 features_featuremap_custom.conf
18074709 4 -rw-rw-r-- 1 asterisk asterisk 679 Sep 3 04:15 features_general_additional.conf
17877269 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 features_general_custom.conf
17861932 4 -rw-r–r-- 1 root root 576 Jul 19 23:34 freepbx_chown.conf
17864220 4 -rw-rw-r-- 1 asterisk asterisk 33 Jul 19 23:36 freepbx-id
17861938 4 -rw-rw-r-- 1 asterisk asterisk 730 Jul 19 23:34 freepbx_module_admin.conf
17877266 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 globals_custom.conf
17861943 4 -rw-rw-r-- 1 asterisk asterisk 957 Sep 3 04:15 http_additional.conf
17863998 0 lrwxrwxrwx 1 asterisk asterisk 54 Jul 19 23:36 http.conf → /var/www/html/freepbx/admin/modules/core/etc/http.conf
17877273 0 -rw-r–r-- 1 asterisk asterisk 0 Sep 3 04:12 http_custom.conf
18074705 4 -rw-rw-r-- 1 asterisk asterisk 664 Sep 3 04:15 iax_additional.conf
17862480 0 lrwxrwxrwx 1 asterisk asterisk 53 Jul 19 23:36 iax.conf → /var/www/html/freepbx/admin/modules/core/etc/iax.conf
17877278 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 iax_custom.conf
17874208 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 iax_custom_post.conf
18074708 4 -rw-rw-r-- 1 asterisk asterisk 746 Sep 3 04:15 iax_general_additional.conf
17877274 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 iax_general_custom.conf
18074706 4 -rw-rw-r-- 1 asterisk asterisk 664 Sep 3 04:15 iax_registrations.conf
17877276 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 iax_registrations_custom.conf
17861939 4 -rw-rw-r-- 1 asterisk asterisk 841 Sep 3 04:15 indications.conf
4185844 0 drwxr-xr-x 3 asterisk asterisk 155 Aug 30 23:06 keys
17889370 4 -rw-rw-r-- 1 asterisk asterisk 664 Sep 3 04:15 localprefixes.conf
17864222 0 lrwxrwxrwx 1 asterisk asterisk 60 Jul 19 23:36 logger.conf → /var/www/html/freepbx/admin/modules/logfiles/etc/logger.conf
18078985 4 -rw-rw-r-- 1 asterisk asterisk 735 Sep 3 04:15 logger_general_additional.conf
18422147 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 logger_general_custom.conf
18074701 4 -rw-rw-r-- 1 asterisk asterisk 753 Sep 3 04:15 logger_logfiles_additional.conf
17795448 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 logger_logfiles_custom.conf
18081172 4 -rw-rw-r-- 1 asterisk asterisk 960 Sep 3 04:15 manager_additional.conf
20556702 4 -rw-rw-r-- 1 asterisk asterisk 971 Aug 31 02:09 manager.conf
20556663 4 -rw-rw-r-- 1 asterisk asterisk 971 Aug 31 02:09 manager.conf.bak
18081173 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:34 manager_custom.conf
18081176 4 -rw-rw-r-- 1 asterisk asterisk 664 Sep 3 04:15 meetme_additional.conf
18082627 4 -rw-rw-r-- 1 asterisk asterisk 126 Jul 19 23:34 meetme.conf
18081174 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:34 meetme_general_additional.conf
18081175 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:34 meetme_general_custom.conf
18082654 4 -rw-rw-r-- 1 asterisk asterisk 1563 Sep 3 04:15 modules.conf
18081178 4 -rw-rw-r-- 1 asterisk asterisk 840 Sep 3 04:15 musiconhold_additional.conf
18082668 4 -rw-rw-r-- 1 asterisk asterisk 208 Jul 19 23:34 musiconhold.conf
18081177 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:34 musiconhold_custom.conf
18081155 4 -rw-rw-r-- 1 asterisk asterisk 90 Jul 19 23:34 phpagi.conf
19926140 4 -rw-r–r-- 1 root root 2255 Aug 31 16:18 pjproject.conf
17877236 4 -rw-rw-r-- 1 asterisk asterisk 968 Sep 3 04:15 pjsip.aor.conf
17861931 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip.aor_custom.conf
17874229 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip.aor_custom_post.conf
17877233 4 -rw-rw-r-- 1 asterisk asterisk 970 Sep 3 04:15 pjsip.auth.conf
17874209 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip.auth_custom.conf
17874245 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip.auth_custom_post.conf
17877253 4 -rw-rw-r-- 1 asterisk asterisk 1235 Sep 3 04:15 pjsip.conf
17874210 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip_custom.conf
17874250 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip_custom_post.conf
17877240 4 -rw-rw-r-- 1 asterisk asterisk 1872 Sep 3 04:15 pjsip.endpoint.conf
17874265 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip.endpoint_custom.conf
17874224 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip.endpoint_custom_post.conf
17877248 4 -rw-rw-r-- 1 asterisk asterisk 851 Sep 3 04:15 pjsip.identify.conf
17874266 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip.identify_custom.conf
17874249 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip.identify_custom_post.conf
17864221 4 -rw-r–r-- 1 asterisk asterisk 733 Sep 3 04:15 pjsip_notify.conf
17877232 4 -rw-rw-r-- 1 asterisk asterisk 966 Sep 3 04:15 pjsip.registration.conf
17874267 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip.registration_custom.conf
17874247 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip.registration_custom_post.conf
17877249 4 -rw-rw-r-- 1 asterisk asterisk 781 Sep 3 04:15 pjsip.transports.conf
17874268 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip.transports_custom.conf
17874211 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 pjsip.transports_custom_post.conf
17861933 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:34 pjsip_wizard.conf
18081167 4 -rw-rw-r-- 1 asterisk asterisk 81 Jul 19 23:34 privacy.conf
18081182 4 -rw-rw-r-- 1 asterisk asterisk 664 Sep 3 04:15 queues_additional.conf
18081168 4 -rw-rw-r-- 1 asterisk asterisk 522 Jul 19 23:34 queues.conf
18081181 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:34 queues_custom.conf
18081180 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:34 queues_custom_general.conf
18081179 4 -rw-rw-r-- 1 asterisk asterisk 743 Sep 3 04:15 queues_general_additional.conf
18081183 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:34 queues_post_custom.conf
20203054 0 -rw-r–r-- 1 asterisk asterisk 0 Aug 31 11:51 res_digium_phone_additional.conf
20203053 0 -rw-r–r-- 1 asterisk asterisk 0 Aug 31 11:51 res_digium_phone_applications.conf
17659298 0 lrwxrwxrwx 1 asterisk asterisk 75 Aug 30 23:11 res_digium_phone.conf → /var/www/html/freepbx/admin/modules/digium_phones/etc/res_digium_phone.conf
20203052 0 -rw-r–r-- 1 asterisk asterisk 0 Aug 31 11:51 res_digium_phone_devices.conf
20203055 0 -rw-r–r-- 1 asterisk asterisk 0 Aug 31 11:51 res_digium_phone_firmware.conf
18079026 0 -rw-r–r-- 1 asterisk asterisk 0 Aug 31 11:51 res_digium_phone_general.conf
18304599 4 -rw-r–r-- 1 asterisk asterisk 733 Sep 3 04:15 res_fax.conf
18593677 0 -rw-r–r-- 1 asterisk asterisk 0 Aug 31 00:01 res_fax_custom.conf
18304600 4 -rw-r–r-- 1 asterisk asterisk 720 Sep 3 04:15 res_fax_digium.conf
18593681 0 -rw-r–r-- 1 asterisk asterisk 0 Aug 31 00:01 res_fax_digium_custom.conf
17861941 4 -rw-rw-r-- 1 asterisk asterisk 844 Sep 3 04:15 res_odbc_additional.conf
17861949 0 lrwxrwxrwx 1 asterisk asterisk 58 Jul 19 23:36 res_odbc.conf → /var/www/html/freepbx/admin/modules/core/etc/res_odbc.conf
17874269 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 res_odbc_custom.conf
18304601 4 -rw-r–r-- 1 asterisk asterisk 917 Sep 3 04:15 res_parking.conf
18593683 0 -rw-r–r-- 1 asterisk asterisk 0 Aug 31 00:01 res_parking_custom.conf
17877254 4 -rw-rw-r-- 1 asterisk asterisk 735 Sep 3 04:15 rtp_additional.conf
17861948 0 lrwxrwxrwx 1 asterisk asterisk 53 Jul 19 23:36 rtp.conf → /var/www/html/freepbx/admin/modules/core/etc/rtp.conf
17874270 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 rtp_custom.conf
19926141 0 -rw-r–r-- 1 root root 0 Aug 31 16:18 rtp_general_additional.conf
18074702 4 -rw-rw-r-- 1 asterisk asterisk 1338 Sep 3 04:15 sip_additional.conf
18514610 0 lrwxrwxrwx 1 asterisk asterisk 53 Jul 19 23:36 sip.conf → /var/www/html/freepbx/admin/modules/core/etc/sip.conf
17795446 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 sip_custom.conf
17864225 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 sip_custom_post.conf
18074707 4 -rw-rw-r-- 1 asterisk asterisk 1491 Sep 3 04:15 sip_general_additional.conf
17874271 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 sip_general_custom.conf
17865265 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 sip_nat.conf
17889372 4 -rw-rw-r-- 1 asterisk asterisk 664 Sep 3 04:15 sip_notify_additional.conf
18514609 0 lrwxrwxrwx 1 asterisk asterisk 60 Jul 19 23:36 sip_notify.conf → /var/www/html/freepbx/admin/modules/core/etc/sip_notify.conf
17864226 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 sip_notify_custom.conf
18074704 4 -rw-rw-r-- 1 asterisk asterisk 664 Sep 3 04:15 sip_registrations.conf
17864224 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 sip_registrations_custom.conf
18514608 0 lrwxrwxrwx 1 asterisk asterisk 55 Jul 19 23:36 udptl.conf → /var/www/html/freepbx/admin/modules/core/etc/udptl.conf
17864212 0 -rw-rw-r-- 1 asterisk asterisk 0 Jul 19 23:36 udptl_custom.conf
18081171 4 -rw-rw-r-- 1 asterisk asterisk 1283 Sep 1 11:54 voicemail.conf
18081170 4 -rw-rw-r-- 1 asterisk asterisk 697 Jul 19 23:34 voicemail.conf.template

Check out my installation, maybe you find something, that is different from yours:

And don’t miss the post from @Stll0 about installing and the next one about fixed asterisk uid/gid:

I did the Installation two times from the Software Center… This Bug should be fixed, who is the developer ?

Hi,
I tried it on my testsystem from Software Center now. I got the same owner(mostly root) now in /etc/asterisk as you got. IMO if you don’t want to go nethserver-testing or cli, you should just not update freepbx or set the right ownership. I think the problem is, that on the one hand Nethserver tries to make a stable and secure system and on the other hand Freepbx 14 is more or less new version and wants to make updates of its own modules all the time, what means to give ownership to user asterisk in /etc/asterisk what may be seen as security problem…I’ve had a customer with hacked PBX, that could really be expensive…
FreePBX should also work without updating. Other distros use even older versions of FreePBX and call it stable…
EDIT: Just want to confirm: Did another fresh vm Nethserver install and tested installing nethserver pbx via Software Center, then I tried to update modules…
Core 14.0.1.5 will be upgraded to online version 14.0.1.9
User Control Panel will be upgraded to online version 14.0.1.2
Same error (file_put_contents(/etc/asterisk/http_custom.conf): failed to open stream: Permission denied) and the module core is disabled from now on and if you don’t change permissions you are stuck here…with disabled not updateable core module…

IMO the updater should work out of the box, or be completely disabled (probably this is the safest choice).

Could we try to disable the updater and make it enabled with a prop or a documented command?
What do you think PBX team (@Stll0, @edoardo_spadoni, @alep, @jobezic) ?

2 Likes

I think that we should fix updates, security would be the same as FreePBX distro

2 Likes

That’s all you have to do for a working module admin:

chown asterisk:asterisk /etc/asterisk/http_custom.conf
mkdir /var/www/html/digium_phones
chown asterisk:asterisk /var/www/html/digium_phones
yum install gcc-c++ mongodb-server
systemctl enable mongod
systemctl start mongod

Then you are able to update and install new standard modules without problems…
EDIT: Long version:

5 Likes

GENIO!!!.. IDOLO!!.. Muchas Gracias… era justo lo que necesitaba…

Did you test it on 7.5 ?

VersiĂłn del sistema
NethServer release 7.5.1804 (final)

VersiĂłn del nĂşcleo
3.10.0-862.3.3.el7.x86_64

OK, thank you…

FYI, bumped into this exact same problem today with a new NS and Asterisk install. Applied the permissions as described above, now I am able to upgrade.

1 Like

Have you guys tried:

fwconsole chwon

?

1 Like

Hi @Jonatan_Tisnado and welcome!

Thanks for the pointer and a very good one indeed!

Thanks!

fwconsole chown

Correction, that’s the correct spelling. Thanks!!

1 Like