Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monitor logfile runtime error #12

Closed
yihahn opened this issue Jun 8, 2016 · 5 comments
Closed

monitor logfile runtime error #12

yihahn opened this issue Jun 8, 2016 · 5 comments

Comments

@yihahn
Copy link

yihahn commented Jun 8, 2016

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
Copy link
Contributor

Asubayo commented Jun 8, 2016

Hi,

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

@yihahn
Copy link
Author

yihahn commented Jun 9, 2016

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
Copy link
Contributor

cmarmo commented Jun 9, 2016

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

@yihahn
Copy link
Author

yihahn commented Jun 12, 2016

# Path of logs files.
LOG_PATH = /home/yihahn/Packages/freeture/log/

cmarmo added a commit that referenced this issue Sep 27, 2016
@cmarmo
Copy link
Contributor

cmarmo commented Sep 27, 2016

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 (0c3332e) ... let me know.
Chiara

@cmarmo cmarmo closed this as completed Sep 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants