Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Odd-named log files being created during rotation #371

Closed
utdrmac opened this issue Sep 7, 2016 · 1 comment
Closed

Odd-named log files being created during rotation #371

utdrmac opened this issue Sep 7, 2016 · 1 comment
Assignees
Labels

Comments

@utdrmac
Copy link

utdrmac commented Sep 7, 2016

I'm not sure why this is happening but it must be happening during log rotation. I started sharing last night (the 6th) and the log rotated at midnight, localtime (thanks for that fix!)

drmac@drmac-ubuntu:~/.config/Storj Share# ls -la
-rw-r--r-- 1 drmac drmac     916692 Sep  6 23:59 Drive-25b5d4_2016-9-6.log
-rw-r--r-- 1 drmac drmac         1345 Sep  7 07:43 Drive-25b5d4_2016-9-7-(1).log
-rw-r--r-- 1 drmac drmac 69041891 Sep  7 08:35 Drive-25b5d4_2016-9-7.log

Contents of the "-(1)" log:

root@drmac-ubuntu:~/.config/Storj Share# more Drive-25b5d4_2016-9-7-\(1\).log 
[1473226990218] Log file created.
{info} [Wed Sep 07 2016 00:43:10 GMT-0500 (CDT)] starting local database replication
{info} [Wed Sep 07 2016 00:43:10 GMT-0500 (CDT)] database replication complete
{info} [Wed Sep 07 2016 01:43:10 GMT-0500 (CDT)] starting local database replication
{info} [Wed Sep 07 2016 01:43:10 GMT-0500 (CDT)] database replication complete
{info} [Wed Sep 07 2016 02:43:10 GMT-0500 (CDT)] starting local database replication
{info} [Wed Sep 07 2016 02:43:10 GMT-0500 (CDT)] database replication complete
{info} [Wed Sep 07 2016 03:43:10 GMT-0500 (CDT)] starting local database replication
{info} [Wed Sep 07 2016 03:43:10 GMT-0500 (CDT)] database replication complete
{info} [Wed Sep 07 2016 04:43:10 GMT-0500 (CDT)] starting local database replication
{info} [Wed Sep 07 2016 04:43:10 GMT-0500 (CDT)] database replication complete
{info} [Wed Sep 07 2016 05:43:10 GMT-0500 (CDT)] starting local database replication
{info} [Wed Sep 07 2016 05:43:10 GMT-0500 (CDT)] database replication complete
{info} [Wed Sep 07 2016 06:43:10 GMT-0500 (CDT)] starting local database replication
{info} [Wed Sep 07 2016 06:43:10 GMT-0500 (CDT)] database replication complete
{info} [Wed Sep 07 2016 07:43:10 GMT-0500 (CDT)] starting local database replication
{info} [Wed Sep 07 2016 07:43:10 GMT-0500 (CDT)] database replication complete

Must be some other section within the code that's trying to log and it's creating a new file instead of using the existing one.

@aleitner aleitner added the bug label Sep 8, 2016
@utdrmac
Copy link
Author

utdrmac commented Sep 12, 2016

More oddities:

-rw-rw-r--  1 drmac drmac 43635065 Sep 11 23:59 Drive-00bff0_2016-9-11.log
-rw-rw-r--  1 drmac drmac   252907 Sep 12 11:16 Drive-00bff0_2016-9-12-(1).log
-rw-rw-r--  1 drmac drmac   252907 Sep 12 11:16 Drive-00bff0_2016-9-12-(2).log
-rw-rw-r--  1 drmac drmac 39181464 Sep 12 11:16 Drive-00bff0_2016-9-12.log

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants