Hi Jim,<br><br>But I am using ZODB 3.4.4 :( Are there any other options? How can I find where this invalid object is being referenced? <br><br>Will something like packing resolve this?<br><br>Thanks,<br>Roopesh<br><br><br>
<div class="gmail_quote">On Thu, Jul 23, 2009 at 4:45 PM, Jim Fulton <span dir="ltr">&lt;<a href="mailto:jim@zope.com">jim@zope.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The object is already gone. It&#39;s odd that it is in the index.<br>
You can try deleting the object from the index and then saving the<br>
index.  You might need to use ZODB 3.9 to do that, as I think __del__<br>
was only recently added to file-storage indexes.<br>
<br>
Jim<br>
<div><div></div><div class="h5"><br>
On Thu, Jul 23, 2009 at 6:57 AM, Rupesh P Raj&lt;<a href="mailto:roopesh.praj@gmail.com">roopesh.praj@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; Using Zope Debug Console, I used a part of the code fsrefs.py to find the<br>
&gt; oid&#39;s of POSKeyError:<br>
&gt;<br>
&gt;     fs = FileStorage(path, read_only=1)<br>
&gt;     undone = {}<br>
&gt;<br>
&gt;     noload = {}<br>
&gt;<br>
&gt;     for oid in fs._index.keys():<br>
&gt;         try:<br>
&gt;             data, serial = fs.load(oid, &quot;&quot;)<br>
&gt;         except (KeyboardInterrupt, SystemExit):<br>
&gt;             raise<br>
&gt;         except POSKeyError:<br>
&gt;             undone[oid] = 1<br>
&gt;         except:<br>
&gt;             if VERBOSE:<br>
&gt;                 traceback.print_exc()<br>
&gt;             noload[oid] = 1<br>
&gt;<br>
&gt; This gave me one oid.Then I tried something like below :<br>
&gt;<br>
&gt; obj = app._p_jar[oid]<br>
&gt;<br>
&gt; But this gave me another POSKeyError instead :(<br>
&gt;<br>
&gt; Why does this happen? How can I delete this object.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Roopesh<br>
</div></div>&gt; _______________________________________________<br>
&gt; Zope-Dev maillist  -  <a href="mailto:Zope-Dev@zope.org">Zope-Dev@zope.org</a><br>
&gt; <a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev</a><br>
&gt; **  No cross posts or HTML encoding!  **<br>
&gt; (Related lists -<br>
&gt;  <a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
&gt;  <a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a> )<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
<font color="#888888">Jim Fulton<br>
</font></blockquote></div><br>