{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1375","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1375/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1375/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1375/events","html_url":"https://github.com/ipfs/go-ipfs/issues/1375","id":88423388,"number":1375,"title":"Log rotation via Logs.MaxBackups broken","user":{"login":"lgierth","id":19248,"avatar_url":"https://avatars.githubusercontent.com/u/19248?v=3","gravatar_id":"","url":"https://api.github.com/users/lgierth","html_url":"https://github.com/lgierth","followers_url":"https://api.github.com/users/lgierth/followers","following_url":"https://api.github.com/users/lgierth/following{/other_user}","gists_url":"https://api.github.com/users/lgierth/gists{/gist_id}","starred_url":"https://api.github.com/users/lgierth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgierth/subscriptions","organizations_url":"https://api.github.com/users/lgierth/orgs","repos_url":"https://api.github.com/users/lgierth/repos","events_url":"https://api.github.com/users/lgierth/events{/privacy}","received_events_url":"https://api.github.com/users/lgierth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-15T13:11:34Z","updated_at":"2015-06-15T14:40:54Z","closed_at":null,"body":"Old logs are not being removed, e.g. on one of the gateway servers (saturn).\r\n\r\n```\r\n$ ls -la /ipfs/ipfs_master/repo/logs\r\ntotal 1527944\r\ndrwxr-xr-x 2 root root     36864 Jun 15 08:02 .\r\ndrwxr-xr-x 5 root root      4096 Jun 15 08:47 ..\r\n-rw-r--r-- 1 root root 104857600 Jun 14 21:57 events-2015-06-15T01-57-53.411.log\r\n-rw-r--r-- 1 root root 104857600 Jun 14 22:45 events-2015-06-15T02-45-07.608.log\r\n-rw-r--r-- 1 root root 104857600 Jun 14 23:57 events-2015-06-15T03-57-21.684.log\r\n-rw-r--r-- 1 root root 104857600 Jun 15 00:59 events-2015-06-15T04-59-41.068.log\r\n-rw-r--r-- 1 root root 104857600 Jun 15 01:48 events-2015-06-15T05-48-37.328.log\r\n-rw-r--r-- 1 root root 104857600 Jun 15 02:45 events-2015-06-15T06-45-13.662.log\r\n-rw-r--r-- 1 root root 104857600 Jun 15 03:37 events-2015-06-15T07-37-06.694.log\r\n-rw-r--r-- 1 root root 104857600 Jun 15 04:06 events-2015-06-15T08-06-41.607.log\r\n-rw-r--r-- 1 root root 104857600 Jun 15 04:46 events-2015-06-15T08-46-56.850.log\r\n-rw-r--r-- 1 root root 104857600 Jun 15 05:30 events-2015-06-15T09-30-31.561.log\r\n-rw-r--r-- 1 root root 104857600 Jun 15 05:59 events-2015-06-15T09-59-14.303.log\r\n-rw-r--r-- 1 root root 104857600 Jun 15 06:27 events-2015-06-15T10-27-13.424.log\r\n-rw-r--r-- 1 root root 104857600 Jun 15 07:15 events-2015-06-15T11-15-25.221.log\r\n-rw-r--r-- 1 root root 104857600 Jun 15 08:02 events-2015-06-15T12-02-49.921.log\r\n-rw-r--r-- 1 root root  96501760 Jun 15 09:05 events.log\r\n```"},"comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/comments/112093268","html_url":"https://github.com/ipfs/go-ipfs/issues/1375#issuecomment-112093268","issue_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1375","id":112093268,"user":{"login":"lgierth","id":19248,"avatar_url":"https://avatars.githubusercontent.com/u/19248?v=3","gravatar_id":"","url":"https://api.github.com/users/lgierth","html_url":"https://github.com/lgierth","followers_url":"https://api.github.com/users/lgierth/followers","following_url":"https://api.github.com/users/lgierth/following{/other_user}","gists_url":"https://api.github.com/users/lgierth/gists{/gist_id}","starred_url":"https://api.github.com/users/lgierth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgierth/subscriptions","organizations_url":"https://api.github.com/users/lgierth/orgs","repos_url":"https://api.github.com/users/lgierth/repos","events_url":"https://api.github.com/users/lgierth/events{/privacy}","received_events_url":"https://api.github.com/users/lgierth/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T14:40:54Z","updated_at":"2015-06-15T14:40:54Z","body":"The commit is 988b158dc7dc93ec636162a06a2b31cc006532c8 on all of them.\r\nMaxSizeMB seems to works. earth's config lacks MaxAgeDays, but shows the same problem.\r\n\r\n```\r\n$ ansible solarnet -a 'docker exec ipfs bash -c \"ipfs version ; ipfs config Logs\"'\r\nuranus | success | rc=0 >>\r\nipfs version 0.3.4\r\n{\r\n  \"Filename\": \"/ipfs/repo/logs/events.log\",\r\n  \"MaxAgeDays\": 0,\r\n  \"MaxBackups\": 1,\r\n  \"MaxSizeMB\": 100\r\n}\r\n\r\njupiter | success | rc=0 >>\r\nipfs version 0.3.4\r\n{\r\n  \"Filename\": \"/ipfs/repo/logs/events.log\",\r\n  \"MaxAgeDays\": 0,\r\n  \"MaxBackups\": 1,\r\n  \"MaxSizeMB\": 100\r\n}\r\n\r\nneptune | success | rc=0 >>\r\nipfs version 0.3.4\r\n{\r\n  \"Filename\": \"/ipfs/repo/logs/events.log\",\r\n  \"MaxAgeDays\": 0,\r\n  \"MaxBackups\": 1,\r\n  \"MaxSizeMB\": 100\r\n}\r\n\r\npluto | success | rc=0 >>\r\nipfs version 0.3.4\r\n{\r\n  \"Filename\": \"/ipfs/repo/logs/events.log\",\r\n  \"MaxAgeDays\": 0,\r\n  \"MaxBackups\": 1,\r\n  \"MaxSizeMB\": 100\r\n}\r\n\r\nvenus | success | rc=0 >>\r\nipfs version 0.3.4\r\n{\r\n  \"MaxAgeDays\": 0,\r\n  \"MaxBackups\": 1,\r\n  \"MaxSizeMB\": 100\r\n}\r\n\r\nearth | success | rc=0 >>\r\nipfs version 0.3.4\r\n{\r\n  \"MaxBackups\": 1,\r\n  \"MaxSizeMB\": 100\r\n}\r\n\r\nmercury | success | rc=0 >>\r\nipfs version 0.3.4\r\n{\r\n  \"MaxAgeDays\": 0,\r\n  \"MaxBackups\": 1,\r\n  \"MaxSizeMB\": 100\r\n}\r\n\r\nsaturn | success | rc=0 >>\r\nipfs version 0.3.4\r\n{\r\n  \"Filename\": \"/ipfs/repo/logs/events.log\",\r\n  \"MaxAgeDays\": 0,\r\n  \"MaxBackups\": 1,\r\n  \"MaxSizeMB\": 100\r\n}\r\n```"}}