TIPS incrediblebackup13 apparently unable to stop Asterisk

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,813
Reaction score
625
Ran /root/incrediblebackup13 see resulting output in 'code box' below.
subsequent use of pbxstatus shows Asterisk DN: as follows
Incredible PBX 13-13.7 for Raspberry Pi 3B
Asterisk: DN Apache: UP MariaDB: UP
SendMail: UP IPtables: UP SSH: UP
LAN port: UP Fail2Ban: UP Webmin: UP
GV OAUTH: UP Chan-SCCP: UP NR VPN: UP
FaxGetty: DN IAX Modem: DN HylaFax: DN

RAM:497144 Raspbian (Jessie) Disk:76G
Asterisk + GUI ver. 13.0.120.10
_____________________________________________________End of pbxstatus

Query how am I to know if resulting backup file was obtained with asterisk down????

Code:
BACKUP: DU-2019.12.29.11.24-A13.22.0-F13.0-I13-13.7.tar.gz

To proceed at your own risk, press the Enter key.

Please wait...

Creating symlink for fwconsole
ln: failed to create symbolic link '/usr/local/sbin/fwconsole': File exists
!!!!amportal is depreciated. Please use fwconsole!!!!
forwarding all commands to 'fwconsole'
Running Incredible PBX shutdown...

Shutting down Asterisk Gracefully. Will forcefully kill after 30 seconds.
Press C to Cancel
Press N to shut down NOW
[>---------------------------] 1 sec
Killing asterisk forcefully.
Asterisk is still running and we can't stop it!
[ ok ] Stopping mysql (via systemctl): mysql.service.
Creating backup. Please wait...
tar: Removing leading `/' from member names
[ ok ] Starting mysql (via systemctl): mysql.service.

Please wait...

Creating symlink for fwconsole
ln: failed to create symbolic link '/usr/local/sbin/fwconsole': File exists
!!!!amportal is depreciated. Please use fwconsole!!!!
forwarding all commands to 'fwconsole'
Asterisk already running
Running Incredible PBX startup...
Setting Permissions...
Setting base permissions...Done
Setting specific permissions...
 1437 [============================]
Finished setting permissions
Unable to run Pre-Asterisk hooks, because Asterisk is already running on PID 1930 and has been running for ERROR
Compressing the backup. Hang in there...
Backup finished and backup file saved.
BACKUP: /backup/DU-2019.12.29.11.24-A13.22.0-F13.0-I13-13.7.tar.gz
 
Try adding killall asterisk
Thanks @wardmundy
Will try -
Code:
cp -n /root/incrediblebackup13 /root/incrediblebackup13.org && sed -i 's|amportal stop|amportal stop \|\| killall asterisk|' /root/incrediblebackup13
chmod -x incrediblebackup13.org incrediblebackup.org
 
Last edited:

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top