fripon / freeture

A Free software to capTure meteors
http://fripon.github.io/freeture
GNU General Public License v3.0
56 stars 23 forks source link

monitor logfile runtime error #12

Closed yihahn closed 8 years ago

yihahn commented 8 years ago

To whom may concened,

OS : Ubuntu 14.04 Freeture version : 1.0-4 X.org X Server version : 1.18.3 g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4

I set a configuration file like this :

# Limit size of logs on the hard disk (mo)
LOG_SIZE_LIMIT = 100

# Level of messages to save in log files.
# <normal> | <notification> | <fail> | <warning> | <critical>
LOG_SEVERITY = normal

After freeture rans for several hours, I got runtime error like below and freeture stopped.

boost::filesystem::remove: Directory not empty

Asubayo commented 8 years ago

Hi,

Did you specify a custom path in LOG_PATH ? For example : /home/freeture/log/

yihahn commented 8 years ago

Absoulutely, I confirmed that my configuration file is no problem with mode 1.

I was running freeture in mode 3 for 3-4 hours when I saw the error message.

cmarmo commented 8 years ago

Hi yihahn, Could you please tell us the value of your LOG_PATH parameter? Thanks, Chiara

yihahn commented 8 years ago
# Path of logs files.
LOG_PATH = /home/yihahn/Packages/freeture/log/
cmarmo commented 8 years ago

Hi yihahn, I'm late, but well, if you are still interested... The problem was the remove_all(http://www.boost.org/doc/libs/1_61_0/libs/filesystem/doc/reference.html#remove_all) C++ function used in Logger.h. After three or four hours your log in normal mode was bigger than 100Mb and remove_all tried to remove the directory when FreeTure was still writing the logfile. If you have some time to test the last committed version (0c3332ec25d3153e3fd9ce3fc706678dc0b38773) ... let me know. Chiara