Disk full in server

Thank for all your answers Anton...

Sean Hay6 years ago

Hello Anton,
Out of the blue my disk filled up on the 3rd of October.

wrapper.log.20180926	2.9k	26-Sep-2018 21:13:00	root(0)/root(0)	666		   
wrapper.log.20180927 Download File 4.9k	27-Sep-2018 22:41:09	root(0)/root(0)	666		   
wrapper.log.20180928	3.1k	28-Sep-2018 23:54:23	root(0)/root(0)	666		   
wrapper.log.20180929	2.9k	29-Sep-2018 18:25:43	root(0)/root(0)	666		   
wrapper.log.20180930	2.7k	30-Sep-2018 23:45:10	root(0)/root(0)	666		   
wrapper.log.20181001	3.2k	01-Oct-2018 17:48:53	root(0)/root(0)	666		   
wrapper.log.20181002	66506.7M	03-Oct-2018 00:00:00	root(0)/root(0)	666		   
wrapper.log.20181003	10677.5M	03-Oct-2018 13:16:13	root(0)/root(0)	666		   
wrapper.log.20181003.lck	0	03-Oct-2018 13:16:04	root(0)/root(0)	666		   
wrapper.log.20181005	21.6k	05-Oct-2018 07:53:43	root(0)/root(0)	666		   
wrapper.log.20181005.lck	0	05-Oct-2018 07:53:33	root(0)/root(0)	666
Sean Hay6 years ago

Hello Anton,

I have sent you one of the smaller log files.
Another thing I found, when I deleted the 66GB log file, previous log files changed in size from i.e. 29th was 2.9k now it is 9.9m

Thanks
Sean

Sean Hay6 years ago

Please ignore the above with file size changes I did not see different log file names.
I have sent samples of log files.

Jack3 years ago

What is filling up my hard disk. There are so many core.# files of various sizes in the traccar folder. Someone assist.

1.1M /opt/traccar/core.62934
1.1G /opt/traccar/core.446
1.5G /opt/traccar/core.630
1.5G /opt/traccar/core.2021

Anton Tananaev3 years ago

There shouldn't be any core files in the traccar folder. If you have those, it likely indicates JVM crashes.

Jack3 years ago

Thanks for the quick response. Is it safe to delete these files? Which command can i safely use to carry out the same?
Currently the service is running, are there any pointers I can use to check the JVM crashes?

Anton Tananaev3 years ago

Are they not text files with crash info? It should be safe to remove them.

Jack3 years ago

I have deleted the files and confirmed traccar service to be running okay, even restarted just to verify. This has saved me ~52GB of disk. Thanks once again for your help.

I could not decipher the contents. This is what cat command showed.

/opt/traccar# cat /opt/traccar/core.20841
ELF...
Anton Tananaev3 years ago

Looks like ELF coredump files.

Jack3 years ago

Thanks for the pointer.