I've just built bitcoin-4.00rc2 on Ubuntu 10.04, and it's now downloading the blocks. I notice though that the .bitcoin/database directory is being filled up by over a hundred log files, and they are eating up more than 1GB of disk space.
0.4.0rc2 build for linux is creating over a hundred log files #515
issue oris opened this issue on September 14, 2011-
oris commented at 1:56 PM on September 14, 2011: none
-
alexwaters commented at 2:00 PM on September 14, 2011: contributor
I'll test in 11.04 to see if I can recreate the issue
-
gavinandresen commented at 2:16 PM on September 14, 2011: contributor
Can you run the same experiment with the previous release?
database log files are cleaned up on either startup or next shutdown (can't remember which), so if you're downloading the blockchain with a new install lots of logs are expected.
-
oris commented at 2:36 PM on September 14, 2011: none
It looks like the previous release behave the same way. All the log files except the last are cleaned up after shutdown as you said. So this is normal behaviour.
- alexwaters closed this on Sep 14, 2011
-
sipa commented at 8:52 AM on September 15, 2011: member
Older releases do indeed have the same problem, but that doesn't mean it's an issue that can be ignored. Start up bitcoin with an empty datadir, and it creates over 1.5GiB of log files when it finishes downloading the chain...
- alexwaters reopened this on Sep 15, 2011
-
alexwaters commented at 8:56 AM on September 15, 2011: contributor
Ok, I assumed that the log files it creates were valuable. Maybe a commit could make log-file creation opt-in.
- sipa closed this on Apr 5, 2012
- dexX7 referenced this in commit 49a36077b3 on Dec 11, 2017
- achow101 referenced this in commit ce963f609c on Jul 14, 2018
- lateminer referenced this in commit 79e7a13b07 on Jan 22, 2019
- sipa referenced this in commit cc05fa919a on Mar 30, 2019
- sipa referenced this in commit 54245985fb on Mar 31, 2019
- LongShao007 referenced this in commit 3d9a3d2063 on Jul 15, 2019
- fjahr referenced this in commit cd5f6028e5 on Jul 24, 2019
- kallewoof referenced this in commit 2d465aa9cd on Oct 4, 2019
- kallewoof referenced this in commit e9f6e82bbf on Oct 4, 2019
- kallewoof referenced this in commit 928c756171 on Oct 4, 2019
- lateminer referenced this in commit 6708361caa on Jul 17, 2020
- rajarshimaitra referenced this in commit 4618b97fce on Aug 5, 2021
- MarcoFalke locked this on Sep 8, 2021