- Joined
- Jan 27, 2019
- Messages
- 56
- Reaction score
- 3
Hi All,
I have a client that wants to run backups from the command line (separate from the ones scheduled in 3CX itself).
This is a very standard setup on the current 3CX Debian ISO.
I ran a backup using these commands:
which seemed to run okay from the terminal screen, but when I checked the log file, it contains the lines I have quoted at the bottom of this post.
I figured perhaps it was because 3CX was running, so I stopped all the 3CX Services:
and then re-ran the above command to backup, but it just sat there doing nothing.
Can anyone advise if I am doing something wrong?
Thanks,
Alan.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Log file - truncated - end only, which shows all the exceptions:
I have a client that wants to run backups from the command line (separate from the ones scheduled in 3CX itself).
This is a very standard setup on the current 3CX Debian ISO.
I ran a backup using these commands:
Code:
cd /var/lib/3cxpbx/Instance1/Bin/
sudo -u phonesystem /usr/sbin/3CXBackupCmd --file=YYYYMMDD-HHMM-3CX_Backup_All.zip --options=ALL --log=/tmp/YYYYMMDD-HHMM-3CX_Backup_All.log
which seemed to run okay from the terminal screen, but when I checked the log file, it contains the lines I have quoted at the bottom of this post.
I figured perhaps it was because 3CX was running, so I stopped all the 3CX Services:
Code:
systemctl stop 3CX*.Service
and then re-ran the above command to backup, but it just sat there doing nothing.
Can anyone advise if I am doing something wrong?
Thanks,
Alan.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Log file - truncated - end only, which shows all the exceptions:
2019/07/30 13:51:23.196|2093|0001|Info|Sending email about backup is succeeded
2019/07/30 13:51:23.362|2093|0001|Excpt|System.AggregateException: One or more errors occurred. (Resource temporarily unavailable) ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: Resource temporarily unavailable
at System.Net.Dns.InternalGetHostByName(String hostName)
at System.Net.Dns.ResolveCallback(Object context)
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)
at System.Net.Dns.EndGetHostAddresses(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.DoDnsCallback(IAsyncResult result, MultipleAddressConnectAsyncResult context)
at System.Net.Sockets.Socket.DnsCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at MailKit.Net.SocketUtils.ConnectAsync(String host, Int32 port, IPEndPoint localEndPoint, Boolean doAsync, CancellationToken cancellationToken)
at MailKit.Net.SocketUtils.ConnectAsync(String host, Int32 port, IPEndPoint localEndPoint, Int32 timeout, Boolean doAsync, CancellationToken cancellationToken)
at MailKit.MailService.ConnectSocket(String host, Int32 port, Boolean doAsync, CancellationToken cancellationToken)
at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait(TimeSpan timeout)
at TcxMail.Mail.SmtpConnect(SmtpClient smtpClient)
at TcxMail.Mail.Send(AlternateView calendarData)
at _3cxBackupRestoreImpl.BackupRestoreUtils.NotifyBackupFailed(String file, IEnumerable`1 exceptions)
---> (Inner Exception #0) System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000001, 11): Resource temporarily unavailable
at System.Net.Dns.InternalGetHostByName(String hostName)
at System.Net.Dns.ResolveCallback(Object context)
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)
at System.Net.Dns.EndGetHostAddresses(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.DoDnsCallback(IAsyncResult result, MultipleAddressConnectAsyncResult context)
at System.Net.Sockets.Socket.DnsCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at MailKit.Net.SocketUtils.ConnectAsync(String host, Int32 port, IPEndPoint localEndPoint, Boolean doAsync, CancellationToken cancellationToken)
at MailKit.Net.SocketUtils.ConnectAsync(String host, Int32 port, IPEndPoint localEndPoint, Int32 timeout, Boolean doAsync, CancellationToken cancellationToken)
at MailKit.MailService.ConnectSocket(String host, Int32 port, Boolean doAsync, CancellationToken cancellationToken)
at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken)<---