NethServer Version: 7.3.1611
Module: 7.3.1611
I played with FreePBX a lot and finally screwed it up. Now I’m looking how to completely uninstall it and start over.
Any information is appreciated.
Alex
NethServer Version: 7.3.1611
Module: 7.3.1611
I played with FreePBX a lot and finally screwed it up. Now I’m looking how to completely uninstall it and start over.
Any information is appreciated.
Alex
Hello @Ivashenkov,
you can remove it via the Software Center, but this only removes the Nethserver packages.
To remove freepbx completely you may run this additionally.
yum remove freepbx
Complete removal via command line:
yum remove nethserver-freepbx nethserver-janus freepbx
You could also drop asterisk
and asteriskcdrdb
databases inside MariaDB.
That doesn’t remove everything. After re-installation it is still does not work as designed (still screwed up)
I think it should be more than that. Database drop is not enough.
May be someone who integrated the module can point the places where to clean up?
As @giacomo wrote, please drop the databases after removing the packages:
[root@testserver ~]# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 194
Server version: 5.5.56-MariaDB MariaDB Server
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> DROP DATABASE asterisk;
Query OK, 59 rows affected (0.06 sec)
MariaDB [(none)]> DROP DATABASE asteriskcdrdb;
Query OK, 2 rows affected (0.00 sec)
As FreePBX is compiled after install you have to erase the freepbx dir and maybe also the conf file:
rm -Rf /var/www/html/freepbx
rm /etc/freepbx.conf
I’ll try it today. Will report back. What about asterisk part? Do I need to worry about it?
You are right, we should worry about it:
yum remove *asterisk*
rm -Rf /etc/asterisk/
The freepbx dir has to exist so after creating /var/www/html/freepbx the reinstall worked.
I would say:
yum remove \*asterisk\*
I also removed:
/var/log/asterisk/
/var/lib/asterisk/
/var/spool/cron/asterisk
/var/spool/asterisk
/etc/httpd/conf.d/freepbx.conf
/etc/freepbx.conf
/var/www/html/freepbx/admin/
Does not work
Will re-do whole server.
What’s the error message? What does not work? Maybe just permissions of /var/www/html/freepbx
For some reason /var/www/html/freepbx is empty. it wasn’t recovered after cleanup and re-installation. I have no idea what else not recovered and how to reinstall EVERYTHING. Even on windows I can force re-installation and force to install application and all it’s dependencies which make application usable again. I expected in Linux should be the same kinda option. And uninslallation is also not clean. There a lot of leftovers. There should be some option like complete remove, which possibly give me a chance to install package from the scratch, like it was never installed before.
Sorry, I can’t reproduce it. Did you check owner and permissions of /var/www/html/freepbx?
[root@testserver ~]# ls -l /var/www/html
total 8
drwxrwxr-x 3 asterisk asterisk 54 Oct 10 21:44 freepbx
You are absolutely right. Reinstallation should work better in your case but I’d like to know why it doesn’t work so we can improve Nethserver.
Could you post relevant error messages in /var/log/messages after trying to install/remove?
There is permission information:
[root@carcloud ~]# ls -l /var/www/html
total 4
drwxrwxr-x 2 asterisk asterisk 6 Oct 9 22:27 freepbx
lrwxrwxrwx. 1 root root 27 Aug 9 2016 proxy.crt -> /etc/pki/tls/certs/NSRV.crt
-rw-r–r--. 1 root root 65 Aug 9 2016 wpad.dat
There the messages:
Oct 10 02:07:46 carcloud yum[27373]: Installed: libsrtp15-1.5.4-3.ns7.x86_64
Oct 10 02:07:48 carcloud systemd: Reloading.
Oct 10 02:07:48 carcloud systemd: Reloading.
Oct 10 02:07:48 carcloud yum[27373]: Installed: asterisk13-core-13.17.0-3.ns7.x86_64
Oct 10 02:07:48 carcloud yum[27373]: Installed: asterisk13-speex-13.17.0-3.ns7.x86_64
Oct 10 02:07:48 carcloud yum[27373]: Installed: asterisk13-odbc-13.17.0-3.ns7.x86_64
Oct 10 02:07:48 carcloud yum[27373]: Installed: asterisk13-resample-13.17.0-3.ns7.x86_64
Oct 10 02:07:48 carcloud yum[27373]: Installed: asterisk13-addons-core-13.17.0-3.ns7.x86_64
Oct 10 02:07:48 carcloud yum[27373]: Installed: asterisk13-addons-mysql-13.17.0-3.ns7.x86_64
Oct 10 02:07:48 carcloud yum[27373]: Installed: asterisk13-voicemail-odbcstorage-13.17.0-3.ns7.x86_64
Oct 10 02:07:49 carcloud yum[27373]: Installed: janus-gateway-0.2.3-5.ns7.x86_64
Oct 10 02:07:49 carcloud systemd: Reloading.
Oct 10 02:07:49 carcloud yum[27373]: Installed: dahdi-tools-2.11.1-1.ns7.x86_64
Oct 10 02:07:52 carcloud yum[27373]: Installed: asterisk-sounds-extra-en-ulaw-1.5-2.ns7.noarch
Oct 10 02:08:03 carcloud yum[27373]: Installed: freepbx-14.0-6.ns7.noarch
Oct 10 02:08:03 carcloud systemd: Reloading.
Oct 10 02:08:03 carcloud yum[27373]: Installed: nethserver-freepbx-14.0.0-1.ns7.noarch
Oct 10 02:08:03 carcloud yum[27373]: Installed: nethserver-janus-1.0.0-1.ns7.noarch
Oct 10 02:08:08 carcloud esmith::event[27525]: Event: nethserver-janus-update
Oct 10 02:08:08 carcloud esmith::event[27525]: Migrating existing database configuration
Oct 10 02:08:08 carcloud dbus[1547]: [system] Activating via systemd: service name=‘org.freedesktop.timedate1’ unit='dbus-org.freedesktop.timedate1.service’
Oct 10 02:08:08 carcloud dbus-daemon: dbus[1547]: [system] Activating via systemd: service name=‘org.freedesktop.timedate1’ unit='dbus-org.freedesktop.timedate1.service’
Oct 10 02:08:08 carcloud systemd: Starting Time & Date Service…
Oct 10 02:08:08 carcloud dbus[1547]: [system] Successfully activated service 'org.freedesktop.timedate1’
Oct 10 02:08:08 carcloud dbus-daemon: dbus[1547]: [system] Successfully activated service 'org.freedesktop.timedate1’
Oct 10 02:08:08 carcloud systemd: Started Time & Date Service.
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database certificates
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database networks
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database accounts
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database routes
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database proxypass
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database hosts
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database fwrules
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database fwservices
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database portforward
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database tc
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database dhcp
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database contentfilter
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database domains
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database squid
Oct 10 02:08:09 carcloud esmith::event[27525]: Migrating existing database vhosts
Oct 10 02:08:09 carcloud esmith::event[27525]: Action: /etc/e-smith/events/nethserver-janus-update/S00initialize-default-databases SUCCESS [0.583722]
Oct 10 02:08:09 carcloud esmith::event[27525]: expanding /opt/janus/etc/janus/janus.cfg
Oct 10 02:08:09 carcloud esmith::event[27525]: expanding /opt/janus/etc/janus/janus.plugin.sip.cfg
Oct 10 02:08:09 carcloud esmith::event[27525]: expanding /opt/janus/etc/janus/janus.transport.http.cfg
Oct 10 02:08:09 carcloud esmith::event[27525]: expanding /opt/janus/etc/janus/janus.transport.pfunix.cfg
Oct 10 02:08:09 carcloud esmith::event[27525]: expanding /opt/janus/etc/janus/janus.transport.websockets.cfg
Oct 10 02:08:09 carcloud esmith::event[27525]: expanding /opt/janus/share/janus/certs/cert.key
Oct 10 02:08:09 carcloud esmith::event[27525]: expanding /opt/janus/share/janus/certs/cert.pem
Oct 10 02:08:09 carcloud esmith::event[27525]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.439024]
Oct 10 02:08:10 carcloud systemd: Reloading.
Oct 10 02:08:10 carcloud esmith::event[27525]: [INFO] service httpd reload
Oct 10 02:08:10 carcloud systemd: Reloaded The Apache HTTP Server.
Oct 10 02:08:10 carcloud systemd: Reloading.
Oct 10 02:08:10 carcloud systemd: Started Janus WebRTC gateway.
Oct 10 02:08:10 carcloud systemd: Starting Janus WebRTC gateway…
Oct 10 02:08:10 carcloud esmith::event[27525]: [INFO] janus-gateway has been started
Oct 10 02:08:10 carcloud esmith::event[27525]: Action: /etc/e-smith/events/actions/adjust-services SUCCESS [0.6846]
Oct 10 02:08:10 carcloud esmith::event[27525]: Event: nethserver-janus-update SUCCESS
Oct 10 02:08:10 carcloud esmith::event[27608]: Event: nethserver-freepbx-update
Oct 10 02:08:10 carcloud esmith::event[27608]: Migrating existing database configuration
Oct 10 02:08:10 carcloud esmith::event[27608]: Migrating existing database certificates
Oct 10 02:08:10 carcloud esmith::event[27608]: Migrating existing database networks
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database accounts
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database routes
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database proxypass
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database hosts
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database fwrules
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database fwservices
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database portforward
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database tc
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database dhcp
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database contentfilter
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database domains
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database squid
Oct 10 02:08:11 carcloud esmith::event[27608]: Migrating existing database vhosts
Oct 10 02:08:11 carcloud esmith::event[27608]: Action: /etc/e-smith/events/nethserver-freepbx-update/S00initialize-default-databases SUCCESS [0.639659]
Oct 10 02:08:11 carcloud esmith::event[27608]: expanding /etc/odbc.ini
Oct 10 02:08:11 carcloud esmith::event[27608]: expanding /etc/asterisk/freepbx_chown.conf
Oct 10 02:08:11 carcloud esmith::event[27608]: expanding /etc/httpd/conf.d/default-virtualhost.inc
Oct 10 02:08:11 carcloud esmith::event[27608]: expanding /etc/httpd/conf.d/freepbx.conf
Oct 10 02:08:11 carcloud esmith::event[27608]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.432989]
Oct 10 02:08:11 carcloud esmith::event[27608]: *** Installing FreePBX *** see /var/log/freepbx_rpm_install.log
Oct 10 02:10:01 carcloud systemd: Started Session 11877 of user root.
Oct 10 02:10:01 carcloud systemd: Starting Session 11877 of user root.
Oct 10 02:10:51 carcloud kernel: bnx2 0000:01:00.0 em1: using MSIX
Oct 10 02:10:51 carcloud kernel: IPv6: ADDRCONF(NETDEV_UP): em1: link is not ready
Oct 10 02:10:51 carcloud kernel: bnx2 0000:01:00.1 em2: using MSIX
Oct 10 02:10:51 carcloud kernel: IPv6: ADDRCONF(NETDEV_UP): em2: link is not ready
Oct 10 02:10:55 carcloud nmbd[27087]: [2017/10/10 02:10:55.439554, 0] …/source3/nmbd/nmbd_namequery.c:109(query_name_response)
Oct 10 02:10:55 carcloud nmbd[27087]: query_name_response: Multiple (2) responses received for a query on subnet 192.168.10.6 for name WORKGROUP<1d>.
Oct 10 02:10:55 carcloud nmbd[27087]: This response was from IP 192.168.10.43, reporting an IP address of 192.168.10.43.
Oct 10 02:13:15 carcloud esmith::event[27608]: Action: /etc/e-smith/events/nethserver-freepbx-update/S50nethserver-freepbx-conf SUCCESS [303.532183]
Oct 10 02:13:15 carcloud esmith::event[27608]: odbcinst: Driver installed. Usage count increased to 5.
Oct 10 02:13:15 carcloud esmith::event[27608]: Target directory is /etc
Oct 10 02:13:15 carcloud esmith::event[27608]: odbcinst: Driver installed. Usage count increased to 5.
Oct 10 02:13:15 carcloud esmith::event[27608]: Target directory is /etc
Oct 10 02:13:15 carcloud esmith::event[27608]: odbcinst: Driver installed. Usage count increased to 6.
Oct 10 02:13:15 carcloud esmith::event[27608]: Target directory is /etc
Oct 10 02:13:15 carcloud esmith::event[27608]: Action: /etc/e-smith/events/nethserver-freepbx-update/S50nethserver-unixODBC-conf SUCCESS [0.008348]
Oct 10 02:13:15 carcloud esmith::event[27608]: ERROR 1049 (42000): Unknown database 'asterisk’
Oct 10 02:13:15 carcloud esmith::event[27608]: Action: /etc/e-smith/events/nethserver-freepbx-update/S55nethserver-freepbx-conf-scl FAILED: 127 [0.173138]
Oct 10 02:13:15 carcloud esmith::event[27608]: DBI connect(‘database=asterisk;host=localhost’,‘root’,…) failed: Unknown database ‘asterisk’ at /etc/e-smith/events/nethserver-freepbx-update/S60nethserver-freepbx-conf-users line 101.
Oct 10 02:13:15 carcloud esmith::event[27608]: Action: /etc/e-smith/events/nethserver-freepbx-update/S60nethserver-freepbx-conf-users FAILED: 255 [0.32379]
Oct 10 02:13:15 carcloud esmith::event[27608]: Action: /etc/e-smith/events/nethserver-freepbx-update/S60nethserver-freepbx-set-cron-scl SUCCESS [0.007409]
Oct 10 02:13:15 carcloud esmith::event[27608]: [INFO] Astdb backup doesn’t exist
Oct 10 02:13:15 carcloud esmith::event[27608]: [INFO] Asterisk mysql database backup doesn’t exist
Oct 10 02:13:15 carcloud esmith::event[27608]: Action: /etc/e-smith/events/nethserver-freepbx-update/S70nethserver-freepbx-backup-restore SUCCESS [0.006137]
Oct 10 02:13:15 carcloud systemd: Reloading.
Oct 10 02:13:16 carcloud esmith::event[27608]: [INFO] service asterisk restart
Oct 10 02:13:16 carcloud systemd: Stopping Asterisk PBX and telephony daemon…
Oct 10 02:13:16 carcloud systemd: asterisk.service: control process exited, code=exited status=1
Oct 10 02:13:16 carcloud systemd: asterisk.service: Got notification message from PID 22270, but reception is disabled.
Oct 10 02:13:16 carcloud asterisk: #033[0mXSLT support not found. XML documentation may be incomplete.
Oct 10 02:13:16 carcloud asterisk: Unable to load config file 'stasis.conf’
Oct 10 02:13:16 carcloud asterisk: Could not load Stasis configuration; using defaults
Oct 10 02:13:16 carcloud asterisk: 3 modules will be loaded.
Oct 10 02:13:16 carcloud asterisk: CDR simple logging enabled.
Oct 10 02:13:16 carcloud asterisk: 226 modules will be loaded.
Oct 10 02:13:16 carcloud asterisk: Unable to load config file 'ari.conf’
Oct 10 02:13:16 carcloud asterisk: Adding default profile to res_parking
Oct 10 02:13:16 carcloud asterisk: Error opening firmware directory ‘/var/lib/asterisk/firmware/iax’: No such file or directory
Oct 10 02:13:16 carcloud asterisk: No IAX provisioning configuration found, IAX provisioning disabled.
Oct 10 02:13:16 carcloud asterisk: Contents of sip.conf are invalid and cannot be parsed
Oct 10 02:13:16 carcloud asterisk: No ‘sip’ message technology found.
Oct 10 02:13:16 carcloud asterisk: Adding default_menu menu to app_confbridge
Oct 10 02:13:16 carcloud asterisk: No such configuration file festival.conf
Oct 10 02:13:16 carcloud asterisk: Failed to connect to mysql database asterisk on 127.0.0.1.
Oct 10 02:13:16 carcloud asterisk: No queuerules.conf file found, queues will not follow penalty rules
Oct 10 02:13:16 carcloud asterisk: Unexpected event 32768 for file ''
Oct 10 02:13:16 carcloud asterisk: #033[0m
Oct 10 02:13:16 carcloud systemd: Unit asterisk.service entered failed state.
Oct 10 02:13:16 carcloud systemd: asterisk.service failed.
Oct 10 02:13:16 carcloud systemd: Started Asterisk PBX and telephony daemon…
Oct 10 02:13:16 carcloud systemd: Starting Asterisk PBX and telephony daemon…
Oct 10 02:13:16 carcloud systemd: Reloading.
Oct 10 02:13:16 carcloud esmith::event[27608]: [INFO] service httpd restart
Oct 10 02:13:16 carcloud systemd: Stopping The Apache HTTP Server…
Oct 10 02:13:17 carcloud systemd: Starting The Apache HTTP Server…
Oct 10 02:13:17 carcloud systemd: Started The Apache HTTP Server.
Oct 10 02:13:17 carcloud systemd: Reloading.
Oct 10 02:13:17 carcloud systemd: Starting The Apache HTTP Server instance for FreePBX…
Oct 10 02:13:17 carcloud systemd: Started The Apache HTTP Server instance for FreePBX.
Oct 10 02:13:17 carcloud esmith::event[27608]: [INFO] httpd-fpbx has been started
Oct 10 02:13:17 carcloud systemd: Reloading.
Oct 10 02:13:17 carcloud systemd: Starting The PHP FastCGI Process Manager…
Oct 10 02:13:18 carcloud systemd: Started The PHP FastCGI Process Manager.
Oct 10 02:13:18 carcloud esmith::event[27608]: [INFO] rh-php56-php-fpm has been started
Oct 10 02:13:18 carcloud esmith::event[27608]: Action: /etc/e-smith/events/actions/adjust-services SUCCESS [2.386984]
Oct 10 02:13:18 carcloud esmith::event[27608]: Event: nethserver-freepbx-update FAILED
Oct 10 02:13:18 carcloud esmith::event[29116]: Event: runlevel-adjust
Oct 10 02:13:18 carcloud dbus[1547]: [system] Activating via systemd: service name=‘org.freedesktop.timedate1’ unit='dbus-org.freedesktop.timedate1.service’
Oct 10 02:13:18 carcloud dbus-daemon: dbus[1547]: [system] Activating via systemd: service name=‘org.freedesktop.timedate1’ unit='dbus-org.freedesktop.timedate1.service’
Oct 10 02:13:18 carcloud systemd: Starting Time & Date Service…
Oct 10 02:13:18 carcloud dbus[1547]: [system] Successfully activated service 'org.freedesktop.timedate1’
Oct 10 02:13:18 carcloud dbus-daemon: dbus[1547]: [system] Successfully activated service 'org.freedesktop.timedate1’
Oct 10 02:13:18 carcloud systemd: Started Time & Date Service.
Oct 10 02:13:18 carcloud systemd: Reloading.
Oct 10 02:13:21 carcloud esmith::event[29116]: Action: /etc/e-smith/events/runlevel-adjust/S20runlevel-adjust SUCCESS [3.301743]
Oct 10 02:13:21 carcloud esmith::event[29116]: Event: runlevel-adjust SUCCESS
Oct 10 02:13:21 carcloud esmith::event[29941]: Event: firewall-adjust
Oct 10 02:13:21 carcloud esmith::event[29942]: Event: nethserver-firewall-base-save firewall-adjust
Oct 10 02:13:22 carcloud esmith::event[29942]: Action: /etc/e-smith/events/nethserver-firewall-base-save/S02providers-cleanup SUCCESS [0.288533]
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/lsm/lsm.conf
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/actions
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/hosts
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/interfaces
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/maclist
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/mangle
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/masq
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/nat
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/policy
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/providers
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/rtrules
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/rules
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/shorewall.conf
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/stoppedrules
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/tcinterfaces
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/tcpri
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/tunnels
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/zones
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /etc/shorewall/modules
Oct 10 02:13:22 carcloud esmith::event[29942]: expanding /var/www/html/wpad.dat
Oct 10 02:13:22 carcloud esmith::event[29942]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.853963]
Oct 10 02:13:23 carcloud systemd: Reloading.
Oct 10 02:13:24 carcloud root: Shorewall reloaded
Oct 10 02:13:24 carcloud esmith::event[29942]: [NOTICE] Shorewall restart
Oct 10 02:13:24 carcloud esmith::event[29942]: Action: /etc/e-smith/events/nethserver-firewall-base-save/S89nethserver-shorewall-restart SUCCESS [1.434012]
Oct 10 02:13:24 carcloud systemd: Reloading.
Oct 10 02:13:24 carcloud esmith::event[29942]: [INFO] service lsm is disabled: skipped
Oct 10 02:13:24 carcloud esmith::event[29942]: Action: /etc/e-smith/events/actions/adjust-services SUCCESS [0.399785]
Oct 10 02:13:24 carcloud esmith::event[29942]: Event: nethserver-firewall-base-save SUCCESS
Oct 10 02:13:24 carcloud esmith::event[29941]: Action: /etc/e-smith/events/firewall-adjust/S20firewall-adjust SUCCESS [3.114524]
Oct 10 02:13:24 carcloud esmith::event[29941]: Event: firewall-adjust SUCCESS
Oct 10 02:16:12 carcloud dbus[1547]: [system] Activating service name=‘org.freedesktop.problems’ (using servicehelper)
Oct 10 02:16:12 carcloud dbus-daemon: dbus[1547]: [system] Activating service name=‘org.freedesktop.problems’ (using servicehelper)
Oct 10 02:16:12 carcloud dbus[1547]: [system] Successfully activated service 'org.freedesktop.problems’
Oct 10 02:16:12 carcloud dbus-daemon: dbus[1547]: [system] Successfully activated service 'org.freedesktop.problems’
Oct 10 02:16:12 carcloud dbus[1547]: [system] Activating via systemd: service name=‘org.freedesktop.timedate1’ unit='dbus-org.freedesktop.timedate1.service’
Oct 10 02:16:12 carcloud dbus-daemon: dbus[1547]: [system] Activating via systemd: service name=‘org.freedesktop.timedate1’ unit='dbus-org.freedesktop.timedate1.service’
Oct 10 02:16:12 carcloud systemd: Starting Time & Date Service…
Oct 10 02:16:12 carcloud dbus[1547]: [system] Successfully activated service 'org.freedesktop.timedate1’
Oct 10 02:16:12 carcloud dbus-daemon: dbus[1547]: [system] Successfully activated service 'org.freedesktop.timedate1’
Oct 10 02:16:12 carcloud systemd: Started Time & Date Service.
Oct 10 02:18:07 carcloud yum[30469]: Installed: nethserver-freepbx-14.0.0-1.ns7.noarch
Oct 10 02:18:12 carcloud esmith::event[30477]: Event: nethserver-freepbx-update
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database configuration
Oct 10 02:18:12 carcloud dbus[1547]: [system] Activating via systemd: service name=‘org.freedesktop.timedate1’ unit='dbus-org.freedesktop.timedate1.service’
Oct 10 02:18:12 carcloud dbus-daemon: dbus[1547]: [system] Activating via systemd: service name=‘org.freedesktop.timedate1’ unit='dbus-org.freedesktop.timedate1.service’
Oct 10 02:18:12 carcloud systemd: Starting Time & Date Service…
Oct 10 02:18:12 carcloud dbus[1547]: [system] Successfully activated service 'org.freedesktop.timedate1’
Oct 10 02:18:12 carcloud dbus-daemon: dbus[1547]: [system] Successfully activated service 'org.freedesktop.timedate1’
Oct 10 02:18:12 carcloud systemd: Started Time & Date Service.
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database certificates
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database networks
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database accounts
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database routes
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database proxypass
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database hosts
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database fwrules
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database fwservices
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database portforward
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database tc
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database dhcp
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database contentfilter
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database domains
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database squid
Oct 10 02:18:12 carcloud esmith::event[30477]: Migrating existing database vhosts
Oct 10 02:18:12 carcloud esmith::event[30477]: Action: /etc/e-smith/events/nethserver-freepbx-update/S00initialize-default-databases SUCCESS [0.667441]
Oct 10 02:18:12 carcloud esmith::event[30477]: expanding /etc/odbc.ini
Oct 10 02:18:13 carcloud esmith::event[30477]: expanding /etc/asterisk/freepbx_chown.conf
Oct 10 02:18:13 carcloud esmith::event[30477]: expanding /etc/httpd/conf.d/default-virtualhost.inc
Oct 10 02:18:13 carcloud esmith::event[30477]: expanding /etc/httpd/conf.d/freepbx.conf
Oct 10 02:18:13 carcloud esmith::event[30477]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.431393]
Oct 10 02:18:13 carcloud esmith::event[30477]: *** Installing FreePBX *** see /var/log/freepbx_rpm_install.log
Oct 10 02:18:13 carcloud esmith::event[30477]: Action: /etc/e-smith/events/nethserver-freepbx-update/S50nethserver-freepbx-conf SUCCESS [0.067273]
Oct 10 02:18:13 carcloud esmith::event[30477]: odbcinst: Driver installed. Usage count increased to 6.
Oct 10 02:18:13 carcloud esmith::event[30477]: Target directory is /etc
Oct 10 02:18:13 carcloud esmith::event[30477]: odbcinst: Driver installed. Usage count increased to 6.
Oct 10 02:18:13 carcloud esmith::event[30477]: Target directory is /etc
Oct 10 02:18:13 carcloud esmith::event[30477]: odbcinst: Driver installed. Usage count increased to 7.
Oct 10 02:18:13 carcloud esmith::event[30477]: Target directory is /etc
Oct 10 02:18:13 carcloud esmith::event[30477]: Action: /etc/e-smith/events/nethserver-freepbx-update/S50nethserver-unixODBC-conf SUCCESS [0.008192]
Oct 10 02:18:13 carcloud esmith::event[30477]: ERROR 1049 (42000): Unknown database 'asterisk’
Oct 10 02:18:13 carcloud esmith::event[30477]: Action: /etc/e-smith/events/nethserver-freepbx-update/S55nethserver-freepbx-conf-scl FAILED: 127 [0.173639]
Oct 10 02:18:13 carcloud esmith::event[30477]: DBI connect(‘database=asterisk;host=localhost’,‘root’,…) failed: Unknown database ‘asterisk’ at /etc/e-smith/events/nethserver-freepbx-update/S60nethserver-freepbx-conf-users line 101.
Oct 10 02:18:13 carcloud esmith::event[30477]: Action: /etc/e-smith/events/nethserver-freepbx-update/S60nethserver-freepbx-conf-users FAILED: 255 [0.32476]
Oct 10 02:18:13 carcloud esmith::event[30477]: Action: /etc/e-smith/events/nethserver-freepbx-update/S60nethserver-freepbx-set-cron-scl SUCCESS [0.004077]
Oct 10 02:18:13 carcloud esmith::event[30477]: [INFO] Astdb backup doesn’t exist
Oct 10 02:18:13 carcloud esmith::event[30477]: [INFO] Asterisk mysql database backup doesn’t exist
Oct 10 02:18:13 carcloud esmith::event[30477]: Action: /etc/e-smith/events/nethserver-freepbx-update/S70nethserver-freepbx-backup-restore SUCCESS [0.005329]
Oct 10 02:18:13 carcloud systemd: Reloading.
Oct 10 02:18:14 carcloud esmith::event[30477]: [INFO] service asterisk restart
Oct 10 02:18:14 carcloud systemd: Stopping Asterisk PBX and telephony daemon…
Oct 10 02:18:14 carcloud systemd: Started Asterisk PBX and telephony daemon…
Oct 10 02:18:14 carcloud systemd: Starting Asterisk PBX and telephony daemon…
Oct 10 02:18:14 carcloud systemd: Reloading.
Oct 10 02:18:14 carcloud esmith::event[30477]: [INFO] service httpd restart
Oct 10 02:18:14 carcloud systemd: Stopping The Apache HTTP Server…
Oct 10 02:18:15 carcloud systemd: Starting The Apache HTTP Server…
Oct 10 02:18:15 carcloud systemd: Started The Apache HTTP Server.
Oct 10 02:18:15 carcloud systemd: Reloading.
Oct 10 02:18:15 carcloud esmith::event[30477]: [INFO] service httpd-fpbx restart
Oct 10 02:18:15 carcloud systemd: Stopping The Apache HTTP Server instance for FreePBX…
Oct 10 02:18:16 carcloud systemd: Starting The Apache HTTP Server instance for FreePBX…
Oct 10 02:18:16 carcloud systemd: Started The Apache HTTP Server instance for FreePBX.
Oct 10 02:18:16 carcloud systemd: Reloading.
Oct 10 02:18:16 carcloud esmith::event[30477]: [INFO] service rh-php56-php-fpm restart
Oct 10 02:18:16 carcloud systemd: Stopping The PHP FastCGI Process Manager…
Oct 10 02:18:17 carcloud systemd: Starting The PHP FastCGI Process Manager…
Oct 10 02:18:17 carcloud systemd: Started The PHP FastCGI Process Manager.
Oct 10 02:18:17 carcloud esmith::event[30477]: Action: /etc/e-smith/events/actions/adjust-services SUCCESS [3.416417]
Oct 10 02:18:17 carcloud esmith::event[30477]: Event: nethserver-freepbx-update FAILED
Oct 10 02:18:17 carcloud esmith::event[30714]: Event: runlevel-adjust
Oct 10 02:18:17 carcloud systemd: Reloading.
Oct 10 02:18:20 carcloud esmith::event[30714]: Action: /etc/e-smith/events/runlevel-adjust/S20runlevel-adjust SUCCESS [3.302462]
Oct 10 02:18:20 carcloud esmith::event[30714]: Event: runlevel-adjust SUCCESS
Oct 10 02:18:20 carcloud esmith::event[31503]: Event: firewall-adjust
Oct 10 02:18:20 carcloud esmith::event[31504]: Event: nethserver-firewall-base-save firewall-adjust
Oct 10 02:18:21 carcloud esmith::event[31504]: Action: /etc/e-smith/events/nethserver-firewall-base-save/S02providers-cleanup SUCCESS [0.289112]
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/lsm/lsm.conf
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/actions
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/hosts
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/interfaces
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/maclist
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/mangle
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/masq
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/nat
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/policy
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/providers
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/rtrules
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/rules
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/shorewall.conf
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/stoppedrules
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/tcinterfaces
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/tcpri
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/tunnels
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/zones
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /etc/shorewall/modules
Oct 10 02:18:21 carcloud esmith::event[31504]: expanding /var/www/html/wpad.dat
Oct 10 02:18:21 carcloud esmith::event[31504]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.853724]
Oct 10 02:18:22 carcloud systemd: Reloading.
Oct 10 02:18:23 carcloud root: Shorewall reloaded
Oct 10 02:18:23 carcloud esmith::event[31504]: [NOTICE] Shorewall restart
Oct 10 02:18:23 carcloud esmith::event[31504]: Action: /etc/e-smith/events/nethserver-firewall-base-save/S89nethserver-shorewall-restart SUCCESS [1.434625]
Oct 10 02:18:23 carcloud systemd: Reloading.
Oct 10 02:18:23 carcloud esmith::event[31504]: [INFO] service lsm is disabled: skipped
Oct 10 02:18:23 carcloud esmith::event[31504]: Action: /etc/e-smith/events/actions/adjust-services SUCCESS [0.396206]
Oct 10 02:18:23 carcloud esmith::event[31504]: Event: nethserver-firewall-base-save SUCCESS
Oct 10 02:18:23 carcloud esmith::event[31503]: Action: /etc/e-smith/events/firewall-adjust/S20firewall-adjust SUCCESS [3.113165]
Oct 10 02:18:23 carcloud esmith::event[31503]: Event: firewall-adjust SUCCESS
Oct 10 02:18:35 carcloud dbus[1547]: [system] Activating service name=‘org.freedesktop.problems’ (using servicehelper)
Oct 10 02:18:35 carcloud dbus-daemon: dbus[1547]: [system] Activating service name=‘org.freedesktop.problems’ (using servicehelper)
Oct 10 02:18:35 carcloud dbus[1547]: [system] Successfully activated service 'org.freedesktop.problems’
Oct 10 02:18:35 carcloud dbus-daemon: dbus[1547]: [system] Successfully activated service 'org.freedesktop.problems’
Oct 10 02:20:01 carcloud systemd: Started Session 11878 of user root.
Oct 10 02:20:01 carcloud systemd: Starting Session 11878 of user root.
Oct 10 02:20:55 carcloud nmbd[27087]: [2017/10/10 02:20:55.166770, 0] …/source3/nmbd/nmbd_namequery.c:109(query_name_response)
Oct 10 02:20:55 carcloud nmbd[27087]: query_name_response: Multiple (2) responses received for a query on subnet 192.168.10.6 for name WORKGROUP<1d>.
Oct 10 02:20:55 carcloud nmbd[27087]: This response was from IP 192.168.10.43, reporting an IP address of 192.168.10.43.
Oct 10 02:22:53 carcloud systemd: Stopping The Apache HTTP Server…
Oct 10 02:22:54 carcloud systemd: Starting The Apache HTTP Server…
Oct 10 02:22:54 carcloud systemd: Started The Apache HTTP Server.
Oct 10 03:05:55 carcloud nmbd[27087]: [2017/10/10 03:05:55.145761, 0] …/source3/nmbd/nmbd_namequery.c:109(query_name_response)
Oct 10 03:25:48 carcloud freshclam[2051]: ClamAV update process started at Tue Oct 10 03:25:48 2017
Oct 10 03:25:48 carcloud freshclam[2051]: main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Oct 10 03:25:48 carcloud freshclam[2051]: Downloading daily-23932.cdiff [100%]
Oct 10 03:25:51 carcloud freshclam[2051]: daily.cld updated (version: 23932, sigs: 1749796, f-level: 63, builder: neo)
Oct 10 03:25:51 carcloud freshclam[2051]: bytecode.cld is up to date (version: 313, sigs: 73, f-level: 63, builder: neo)
Oct 10 03:25:53 carcloud freshclam[2051]: Database updated (6316118 signatures) from database.clamav.net (IP: 74.115.25.14)
Oct 10 03:25:54 carcloud clamd: Reading databases from /var/lib/clamav
Oct 10 03:35:01 carcloud esmith::event[2422]: Event: pre-backup-config
Oct 10 03:35:01 carcloud esmith::event[2422]: expanding /etc/backup-config.d/nethserver-sssd.include
Oct 10 03:35:02 carcloud dbus[1547]: [system] Activating via systemd: service name=‘org.freedesktop.timedate1’ unit='dbus-org.freedesktop.timedate1.service’
Oct 10 03:35:02 carcloud dbus-daemon: dbus[1547]: [system] Activating via systemd: service name=‘org.freedesktop.timedate1’ unit='dbus-org.freedesktop.timedate1.service’
Oct 10 03:35:02 carcloud systemd: Starting Time & Date Service…
Oct 10 03:35:02 carcloud dbus[1547]: [system] Successfully activated service 'org.freedesktop.timedate1’
Oct 10 03:35:02 carcloud dbus-daemon: dbus[1547]: [system] Successfully activated service ‘org.freedesktop.timedate1’
/var/www/html/freepbx is empty.
Let me know if you need more info
I think, I could reproduce your error so now I had an empty freepbx dir after reinstalling.
I did following steps to reproduce:
rm -Rf /var/log/asterisk/
rm -Rf /var/lib/asterisk/
rm -Rf /var/spool/cron/asterisk
rm -Rf /var/spool/asterisk
rm -Rf /etc/httpd/conf.d/freepbx.conf
rm -Rf /etc/freepbx.conf
rm -Rf /var/www/html/freepbx/admin/
and I could solve it with:
mysql
DROP DATABASE asterisk;
DROP DATABASE asteriskcdrdb;
exit
rm -Rf /var/www/html/freepbx/*
touch /etc/freepbx.conf
yum reinstall nethserver-freepbx *asterisk*
I am impressed! Thank you very much! For some reason it did not work from the first time. There were no connection to asterisk. But second time it worked like a charm!
By the way it wasn’t completely restored. Voice mail didn’t work. Mail boxes have not created in the default folder (manual correction did not help), a lot of errors in the log, and time to time orange window popped up on the top with one word - “undefined”. So I killed the server. No sense to keep it in that condition. But thank you for trying. I guess it should be more testings in install -> misconfigure -> remove -> re-install cycle. Right now it does not work well