System crash and HDD overflow with endless 3cxSystemService..log files within 9 hours?!

Status
Not open for further replies.

Fritz Reinhardt

Free User
Joined
Jan 30, 2018
Messages
14
Reaction score
0
Hi everyone!
Have you ever had a problem like this??

It's now the second time that an email reaches me in the morning by my 3cx system with the title
"3CX Phone System - Harddisk is at or near capacity!".

The mail goes on with
"3CX installation xxxxxxx.3cx.de is running out of space. (0 bytes Space left out of 500 Mb).
As a result of this, recordings, logging and voicemail services are disabled until this problem is resolved.
Login to the machine, free up some space or add more disk space and reboot the server."


Yesterday it had 94GB of free disk space, this morning it was 8MB only. All processes on the server were freaking out... :-(
Looking in my folder
C:\ProgramData\3CX\Instance1\Data\Logs\Backup\20180316
I found - beside some normal looking files - hundreds of files like those in the red box:

upload_2018-3-16_12-27-32.png

But the list goes endless with this kind of files, each of them having 16.385 KB.

The first of the 16.385-files at 00:13 (001351..log) contains data of the day before the catastrophe (15th):

------------|Inf(00)| Date: 15.03.2018 00:28:06
2018/03/15 00:28:06.043|8780|0025|Erro|Can not delete file C:\ProgramData\3CX\Instance1\Data\Logs\3CXPhoneSystem-20180313-011957.blrec, Exception: System.IO.IOException: Der Prozess kann nicht auf die Datei "3CXPhoneSystem-20180313-011957.blrec" zugreifen, da sie von einem anderen Prozess verwendet wird.
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.FileInfo.Delete()
bei _3cxSystemService.OtherTasks.LogBackups.SafeRemoveFile(FileInfo fi)
2018/03/15 00:28:06.057|8780|0025|Erro|Can not delete file C:\ProgramData\3CX\Instance1\Data\Logs\3CXPhoneSystem-20180313-011957.blrec, Exception: System.IO.IOException: Der Prozess kann nicht auf die Datei "3CXPhoneSystem-20180313-011957.blrec" zugreifen, da sie von einem anderen Prozess verwendet wird.
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.FileInfo.Delete()
bei _3cxSystemService.OtherTasks.LogBackups.SafeRemoveFile(FileInfo fi)
2018/03/15 00:58:06.068|8780|0033|Erro|Can not delete file C:\ProgramData\3CX\Instance1\Data\Logs\3CXPhoneSystem-20180313-011957.blrec, Exception: System.IO.IOException: Der Prozess kann nicht auf die Datei "3CXPhoneSystem-20180313-011957.blrec" zugreifen, da sie von einem anderen Prozess verwendet wird.
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.FileInfo.Delete()
bei _3cxSystemService.OtherTasks.LogBackups.SafeRemoveFile(FileInfo fi)
2018/03/15 00:58:07.074|8780|0033|Erro|Can not delete file C:\ProgramData\3CX\Instance1\Data\Logs\3CXPhoneSystem-20180313-011957.blrec, Exception: System.IO.IOException: Der Prozess kann nicht auf die Datei "3CXPhoneSystem-20180313-011957.blrec" zugreifen, da sie von einem anderen Prozess verwendet wird.
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.FileInfo.Delete()
bei _3cxSystemService.OtherTasks.LogBackups.SafeRemoveFile(FileInfo fi)
2018/03/15 09:21:04.966|8780|0003|Erro|CHR: Targeting segment is not found for target 8226f469d56c
2018/03/15 09:31:52.601|8780|0003|Erro|CHR: Targeting segment is not found for target d5353a01473c
2018/03/15 09:35:14.289|8780|0003|Erro|CHR: Targeting segment is not found for target c61bc4591372
2018/03/15 09:43:15.477|8780|0003|Erro|CHR: Targeting segment is not found for target e32858259209
2018/03/15 09:46:28.419|8780|0003|Erro|CHR: Targeting segment is not found for target a3674858d066
2018/03/15 11:10:40.694|8780|0003|Erro|CHR: Targeting segment is not found for target a15b71145b2d
2018/03/15 11:16:58.697|8780|0003|Erro|CHR: Targeting segment is not found for target 2e75c61f571b
2018/03/15 11:50:05.589|8780|0003|Erro|CHR: Targeting segment is not found for target ed5305562902
2018/03/15 11:50:46.632|8780|0003|Erro|CHR: Targeting segment is not found for target 6453b0732316
2018/03/15 14:04:50.535|8780|0003|Erro|CHR: Targeting segment is not found for target d170b060d822
2018/03/15 14:11:35.892|8780|0003|Erro|CHR: Targeting segment is not found for target 4a687c2f6658
2018/03/15 14:14:51.888|8780|0003|Erro|CHR: Targeting segment is not found for target 684df7193851
2018/03/15 14:41:15.886|8780|0003|Erro|CHR: Targeting segment is not found for target 881bef4dde16


Then, day 16 starts:
------------|Inf(00)| Date: 16.03.2018 00:13:39
2018/03/16 00:13:39.238|7312|0001|Inf|Log is created
2018/03/16 00:13:40.553|7312|0004|Info|Log verbosity is set to Low
2018/03/16 00:13:42.819|7312|0003|Erro|CHR: Worker thread caught exception: System.Net.Sockets.SocketException (0x80004005): Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig
bei System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
bei System.Net.Sockets.Socket.Bind(EndPoint localEP)
bei CallHistoryReceiver.Listener..ctor(IPEndPoint ip_ep)
bei CallHistoryReceiver.CHReceiver.WorkerMethod()
2018/03/16 00:13:42.819|7312|0003|Erro|CHR: Worker thread caught exception: System.Net.Sockets.SocketException (0x80004005): Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig
bei System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
bei System.Net.Sockets.Socket.Bind(EndPoint localEP)
bei CallHistoryReceiver.Listener..ctor(IPEndPoint ip_ep)
bei CallHistoryReceiver.CHReceiver.WorkerMethod()
2018/03/16 00:13:42.820|7312|0003|Erro|CHR: Worker thread caught exception: System.Net.Sockets.SocketException (0x80004005): Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig
bei System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
bei System.Net.Sockets.Socket.Bind(EndPoint localEP)
bei CallHistoryReceiver.Listener..ctor(IPEndPoint ip_ep)
bei CallHistoryReceiver.CHReceiver.WorkerMethod()
2018/03/16 00:13:42.820|7312|0003|Erro|CHR: Worker thread caught exception: System.Net.Sockets.SocketException (0x80004005): Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig
bei System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
bei System.Net.Sockets.Socket.Bind(EndPoint localEP)
bei CallHistoryReceiver.Listener..ctor(IPEndPoint ip_ep)
bei CallHistoryReceiver.CHReceiver.WorkerMethod()
2018/03/16 00:13:42.821|7312|0003|Erro|CHR: Worker thread caught exception:


and so on... After reaching the end of the file, a new file is created (001400), going on the same way:

2018/03/16 00:13:51.817|7312|0003|Info|Log is continued
2018/03/16 00:13:51.817|7312|0003|Erro|CHR: Worker thread caught exception: System.Net.Sockets.SocketException (0x80004005): Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig
bei System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
bei System.Net.Sockets.Socket.Bind(EndPoint localEP)
bei CallHistoryReceiver.Listener..ctor(IPEndPoint ip_ep)
bei CallHistoryReceiver.CHReceiver.WorkerMethod()
2018/03/16 00:13:51.818|7312|0003|Erro|CHR: Worker thread caught exception: System.Net.Sockets.SocketException (0x80004005): Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig
bei System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
bei System.Net.Sockets.Socket.Bind(EndPoint localEP)
bei CallHistoryReceiver.Listener..ctor(IPEndPoint ip_ep)


More than 1000 files like this were created...

The system goes well since 3 weeks but this is now the second time that this happens. I solved the problem by deleting all the log files and rebooting the server. It's a 3cx 15.5.0 on a WIN10 Pro build 16299 running with a AMD X4 940 3GHz processor. The message says something about missing rights of a socket...? But why in the middle of that night and the rest of the days working well?

Has anyone a helping idea??

Thank you for your answers!!

Best wishes from the Rhineland Palatinate (Germany)
Fritz
 

Attachments

  • upload_2018-3-16_12-19-8.png
    upload_2018-3-16_12-19-8.png
    28.3 KB · Views: 5
  • upload_2018-3-16_12-26-38.png
    upload_2018-3-16_12-26-38.png
    34 KB · Views: 5
do you have CDR output enabled but nowhere to connect to?
Settings -> CDR
 
Hello Stefan, thank you for your reply!
I have a standard version licence - am I right that it does not support any CDR? At least, I don't find any CDR menu in the management console...?!

But in the parameters list I found some CDR related values like this:

CDR_LOGGING_PATH C:\ProgramData\3CX\Instance1\Data\Logs\CDRLogs
CDR_LOGGING_STYLE 1
CDR_LOGGING_FILESIZE 250


Is it what you meant?
By the way, the "CDRLogs" - folder that is mentioned in the "LOGGING PATH Parameter" does not exist in the "Logs" folder. The folder that blew up with hundreds of files was the "Backup"-folder...?!

What do you think?
 
We will check this one.. I think there were some bug fixes made in this area.. Can you remind me the exact version of 3CX you were using when you reported it?
Anyway - update this system to the latest version and lets stop the service and delete all the log files and start to monitor.. In the meantime I will check.
 
Maybe you have a socket issue on the port you are trying to use.
Can you check the cdr port and either change it and restart (Make sure you have a listening socket passive or active whatever you configured) or spend some days outputting cdr not to a socket but to a file - see if the problem goes away.
 
Could you please check what you have running on port 5484?
 
We will check this one.. I think there were some bug fixes made in this area.. Can you remind me the exact version of 3CX you were using when you reported it?
Anyway - update this system to the latest version and lets stop the service and delete all the log files and start to monitor.. In the meantime I will check.

Thank you for your help and your efforts!!

This happened just 2 weeks ago and the system was set up just 2 weeks before that, so all happened with the version that was up-to-date on 2018-03-16.
Okay, now service is stopped, all logs deleted. What do you mean with "start to monitor"? Is there anything more I can do for monitoring than watching log files?
 
Maybe you have a socket issue on the port you are trying to use.
Can you check the cdr port and either change it and restart (Make sure you have a listening socket passive or active whatever you configured) or spend some days outputting cdr not to a socket but to a file - see if the problem goes away.

You mean the CallDataRecord=CDR, right? In my German version it's KommunikationsDatenGesetz=KDS. It is completely turned off.
 
Could you please check what you have running on port 5484?

Could you please help me with this? What can I do to find out what I have running on port 5484? My router (Fritz!Box7490) has'nt opened this port from the machine to the outside... do you mean that?? Sorry... I'm a beginner... :-)
 
KDS ist die deutsche Form dafür. Aus den logs kann ich schon klar sehen das es etwas mit der CallHistoryRecords ist (CHR). Dieses und Sockets die nicht angesprochen werden können werden hier bemängelt.

Hier 3 Dinge zur prüfung
  1. Hotel Modul Aktiviert und kein PMS Server
  2. KDS Ausgabe an auf Socket (Active) aktiviert
  3. AV auf dem Server unterbindet das wir uns auf dem Host Anrufhistorie senden können, wenn du einen Call Report machst, steht da was drin oder ist alles leer?
 
Hello StefanW,

thank you for your reply! Here is the result of the checks you requested. Can you find something suspicious? What do you mean with AV? Antivirus? There is no antivirus program, even the windows cloud based protection is deactivated.

Thank you!
Fritz

Check 1: Hotel Service
upload_2018-3-29_12-34-17.png

Check 2: KDS (CDR)
upload_2018-3-29_12-35-56.png

Check 3: call list and call report

upload_2018-3-29_12-40-57.png

upload_2018-3-29_12-38-27.png
 
This happened just 2 weeks ago and the system was set up just 2 weeks before that, so all happened with the version that was up-to-date on 2018-03-16.
V15.5 SP4 was released yesterday, so please update to that version. In the management Console you should then see this:
upload_2018-3-29_14-35-6.png

What @nb I think meant is after you do the service pack update, stop services, delete all such files, then start services again and monitor to see if it continues to happen.

Also you have not addressed the question from @MichaelB...
Could you please check what you have running on port 5484?
 
V15.5 SP4 was released yesterday, so please update to that version. In the management Console you should then see this:
View attachment 7381

What @nb I think meant is after you do the service pack update, stop services, delete all such files, then start services again and monitor to see if it continues to happen.

Also you have not addressed the question from @MichaelB...

Hello NickD,
thank you for your reply! I've updated to the 10244.4 today, all services stopped, logs deleted, new start. Let's see if it happens again...
I've asked MichaelB for help, as I don't know how to find out about the port 5484 - how can I see what is happening on this port? Can you give me a hint?

This is what I found out with netstat -a:

Proto Lokale Adresse Remoteadresse Status
...
TCP 0.0.0.0:5484 ABCD-Server:0 ABHÖREN
...
TCP 127.0.0.1:5484 dcba:5606 HERGESTELLT
...
TCP 127.0.0.1:5485 ABCD-Server:0 ABHÖREN
...
TCP 127.0.0.1:5606 dcba:5484 HERGESTELLT
...
TCP [::]:5484 ABCD-Server:0 ABHÖREN

Does it help you?

Thank you!
Fritz
 
Could you please check what you have running on port 5484?

Proto Lokale Adresse Remoteadresse Status
...
TCP 0.0.0.0:5484 ABCD-Server:0 ABHÖREN
...
TCP 127.0.0.1:5484 dcba:5606 HERGESTELLT
...
TCP 127.0.0.1:5485 ABCD-Server:0 ABHÖREN
...
TCP 127.0.0.1:5606 dcba:5484 HERGESTELLT
...
TCP [::]:5484 ABCD-Server:0 ABHÖREN

Does it help you somehow?
 
Status
Not open for further replies.

Members Online Now

Forum statistics

Threads
111,835
Messages
589,291
Members
164,668
Latest member
Infinity Network