Re: import error and deleting an object from the ZODB

"T. Kim Nguyen" <nguyen-z4DKO/[email protected]> Sat, 17 Oct 2015 04:31:58 +0300
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
--===============3962337499810792701==
Content-Type: multipart/alternative;
	boundary=Apple-Mail-77D92F32-D741-4CC5-8E20-CEBB830D11DF
Content-Transfer-Encoding: 7bit


--Apple-Mail-77D92F32-D741-4CC5-8E20-CEBB830D11DF
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Look for wildcard.fixpersistentutilities and this example: http://stackoverf=
low.com/questions/10364026/how-to-clean-unused-add-ons-from-a-plone-site=20

You may also want to post questions like this in either stackoverflow.com or=
 community.plone.org. This mailing list is deprecated :)

    Kim=20



On Oct 16, 2015, at 6:03 PM, aschmitz <[email protected]> wrote:

I have a Zope server that hosts roughly a dozen Plone sites.  These sites
started out on Plone 3, and they've been upgraded a few times.  They've been=

running Plone 4.3.1 for over a year.  Now I need to split these sites onto
separate servers, so I exported each one to its own ZEXP file.

I'm getting an error on two of the sites, when I try to import them:

   Error Type: ImportError
   Error Value: No module named CacheSetup.content.caching_policy_manager

While these sites were on Plone 3, they used Products.CacheSetup.  All of
the CacheFu related products were uninstalled on all of the sites before
they were upgraded to Plone 4 and plone.app.caching was installed.=20
Apparently two of the sites still contain a single object that references
Products.CacheSetup, so they can't be imported.

I exported one of the sites to an XML file and extracted the references to
the CacheSetup content caching_policy_manager.  The XML is available here:

  http://pastebin.com/9vgRNu0p

Based on the export I think the ID of the problem object is 1648800.  Can I
use this information to delete this object from the ZODB, so the export will=

be importable again?

Thanks,
Alan



--
View this message in context: http://plone.293351.n2.nabble.com/import-error=
-and-deleting-an-object-from-the-ZODB-tp7574345.html
Sent from the General Questions mailing list archive at Nabble.com.

----------------------------------------------------------------------------=
--
_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users

--Apple-Mail-77D92F32-D741-4CC5-8E20-CEBB830D11DF
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D=
utf-8"></head><body dir=3D"auto"><div>Look for wildcard.fixpersistentutiliti=
es and this example:&nbsp;<a href=3D"http://stackoverflow.com/questions/1036=
4026/how-to-clean-unused-add-ons-from-a-plone-site">http://stackoverflow.com=
/questions/10364026/how-to-clean-unused-add-ons-from-a-plone-site</a>&nbsp;<=
/div><div id=3D"AppleMailSignature"><br></div><div id=3D"AppleMailSignature"=
>You may also want to post questions like this in either <a href=3D"http://s=
tackoverflow.com">stackoverflow.com</a> or <a href=3D"http://community.plone=
.org">community.plone.org</a>. This mailing list is deprecated :)</div><div i=
d=3D"AppleMailSignature"><br></div><div id=3D"AppleMailSignature">&nbsp; &nb=
sp; Kim&nbsp;<br><br><div><div><br></div></div></div><div><br>On Oct 16, 201=
5, at 6:03 PM, aschmitz &lt;<a href=3D"mailto:[email protected]">[email protected]=
et</a>&gt; wrote:<br><br></div><div><span>I have a Zope server that hosts ro=
ughly a dozen Plone sites. &nbsp;These sites</span><br><span>started out on P=
lone 3, and they've been upgraded a few times. &nbsp;They've been</span><br>=
<span>running Plone 4.3.1 for over a year. &nbsp;Now I need to split these s=
ites onto</span><br><span>separate servers, so I exported each one to its ow=
n ZEXP file.</span><br><span></span><br><span>I'm getting an error on two of=
 the sites, when I try to import them:</span><br><span></span><br><span> &nb=
sp;&nbsp;&nbsp;Error Type: ImportError</span><br><span> &nbsp;&nbsp;&nbsp;Er=
ror Value: No module named CacheSetup.content.caching_policy_manager</span><=
br><span></span><br><span>While these sites were on Plone 3, they used Produ=
cts.CacheSetup. &nbsp;All of</span><br><span>the CacheFu related products we=
re uninstalled on all of the sites before</span><br><span>they were upgraded=
 to Plone 4 and plone.app.caching was installed. </span><br><span>Apparently=
 two of the sites still contain a single object that references</span><br><s=
pan>Products.CacheSetup, so they can't be imported.</span><br><span></span><=
br><span>I exported one of the sites to an XML file and extracted the refere=
nces to</span><br><span>the CacheSetup content caching_policy_manager. &nbsp=
;The XML is available here:</span><br><span></span><br><span> &nbsp;&nbsp;<a=
 href=3D"http://pastebin.com/9vgRNu0p">http://pastebin.com/9vgRNu0p</a></spa=
n><br><span></span><br><span>Based on the export I think the ID of the probl=
em object is 1648800. &nbsp;Can I</span><br><span>use this information to de=
lete this object from the ZODB, so the export will</span><br><span>be import=
able again?</span><br><span></span><br><span>Thanks,</span><br><span>Alan</s=
pan><br><span></span><br><span></span><br><span></span><br><span>--</span><b=
r><span>View this message in context: <a href=3D"http://plone.293351.n2.nabb=
le.com/import-error-and-deleting-an-object-from-the-ZODB-tp7574345.html">htt=
p://plone.293351.n2.nabble.com/import-error-and-deleting-an-object-from-the-=
ZODB-tp7574345.html</a></span><br><span>Sent from the General Questions mail=
ing list archive at <a href=3D"http://nabble.com">Nabble.com</a>.</span><br>=
<span></span><br><span>-----------------------------------------------------=
-------------------------</span><br><span>__________________________________=
_____________</span><br><span>Plone-Users mailing list</span><br><span><a hr=
ef=3D"mailto:[email protected]">[email protected]=
e.net</a></span><br><span><a href=3D"https://lists.sourceforge.net/lists/lis=
tinfo/plone-users">https://lists.sourceforge.net/lists/listinfo/plone-users<=
/a></span><br></div></body></html>=

--Apple-Mail-77D92F32-D741-4CC5-8E20-CEBB830D11DF--


--===============3962337499810792701==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============3962337499810792701==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users

--===============3962337499810792701==--