<p>I think tahoe should checksum these files when it writes them and then verify the checksums when it reads them. If the checksum fails, the executable should just delete them automatically and try again (if this is the only sensible course of action) or prompt the user whether to delete them (if there is some option other than deleting them).</p>

<p>Thanks,<br>
Eric<br>
</p>
<div class="gmail_quote">On Jul 7, 2012 10:35 AM, "Peter Secor" <<a href="mailto:secorp@gmail.com">secorp@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Often this is caused by a truncated pickle (state) file which contains state information about the node. These can be removed safely (meaning the node won't crash or lose functionality) but the state will have to be rebuilt, so for example if you are running a lease checker, it will have to build that lease state file over again. These files are located in:<br>

<br>
<tahoe home>\storage\*.state<br>
<br>
Usually there is something like bucket_counter.state and lease_checker.state .<br>
<br>
Hope this helps,<br>
Ps<br>
<br>
On 7/7/12 9:13 AM, Iantcho Vassilev wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi guys,<br>
<br>
<br>
My electricity crashed my windows machine and now i cannot start Tahoe.<br>
Do you have any idea what is the problem?<br>
<br>
C:\Python26\python.exe X:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\bin\tah<br>
oe start -d X:\tahoe<br>
STARTING 'X:\tahoe'<br>
Traceback (most recent call last):<br>
   File "X:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\support\Lib\site-<u></u>packages\twisted-10.1.<br>
0-py2.6-win-amd64.egg\twisted\<u></u>application\app.py", line 626, in run<br>
     runApp(config)<br>
   File "X:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\support\Lib\site-<u></u>packages\twisted-10.1.<br>
0-py2.6-win-amd64.egg\twisted\<u></u>scripts\twistd.py", line 23, in runApp<br>
     _SomeApplicationRunner(config)<u></u>.run()<br>
   File "X:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\support\Lib\site-<u></u>packages\twisted-10.1.<br>
0-py2.6-win-amd64.egg\twisted\<u></u>application\app.py", line 374, in run<br>
     self.application = self.createOrGetApplication()<br>
   File "X:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\support\Lib\site-<u></u>packages\twisted-10.1.<br>
0-py2.6-win-amd64.egg\twisted\<u></u>application\app.py", line 439, in createOrGetAppli<br>
cation<br>
     application = getApplication(self.config, passphrase)<br>
--- <exception caught here> ---<br>
   File "X:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\support\Lib\site-<u></u>packages\twisted-10.1.<br>
0-py2.6-win-amd64.egg\twisted\<u></u>application\app.py", line 450, in getApplication<br>
     application = service.loadApplication(<u></u>filename, style, passphrase)<br>
   File "X:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\support\Lib\site-<u></u>packages\twisted-10.1.<br>
0-py2.6-win-amd64.egg\twisted\<u></u>application\service.py", line 390, in loadApplicat<br>
ion<br>
     application = sob.loadValueFromFile(<u></u>filename, 'application', passphrase)<br>
   File "X:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\support\Lib\site-<u></u>packages\twisted-10.1.<br>
0-py2.6-win-amd64.egg\twisted\<u></u>persisted\sob.py", line 210, in loadValueFromFile<br>
     exec fileObj in d, d<br>
   File "tahoe-client.tac", line 10, in <module><br>
     c = client.Client()<br>
   File "x:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\src\allmydata\client.<u></u>py", line 143, in<br>
__init__<br>
     self.init_storage()<br>
   File "x:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\src\allmydata\client.<u></u>py", line 257, in<br>
init_storage<br>
     expiration_sharetypes=<u></u>expiration_sharetypes)<br>
   File "x:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\src\allmydata\storage\<u></u>server.py", line<br>
96, in __init__<br>
     expiration_sharetypes)<br>
   File "x:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\src\allmydata\storage\<u></u>expirer.py", line<br>
  71, in __init__<br>
     ShareCrawler.__init__(self, server, statefile)<br>
   File "x:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\src\allmydata\storage\<u></u>crawler.py", line<br>
  86, in __init__<br>
     self.load_state()<br>
   File "x:\tahoe-lafs-tahoe-lafs-<u></u>e27423e\src\allmydata\storage\<u></u>crawler.py", line<br>
  195, in load_state<br>
     state = pickle.load(f)<br>
exceptions.EOFError:<br>
<br>
Failed to load application:<br>
______________________________<u></u>_________________<br>
tahoe-dev mailing list<br>
<a href="mailto:tahoe-dev@tahoe-lafs.org" target="_blank">tahoe-dev@tahoe-lafs.org</a><br>
<a href="https://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev" target="_blank">https://tahoe-lafs.org/cgi-<u></u>bin/mailman/listinfo/tahoe-dev</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
tahoe-dev mailing list<br>
<a href="mailto:tahoe-dev@tahoe-lafs.org" target="_blank">tahoe-dev@tahoe-lafs.org</a><br>
<a href="https://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev" target="_blank">https://tahoe-lafs.org/cgi-<u></u>bin/mailman/listinfo/tahoe-dev</a><br>
</blockquote></div>