[opencms-dev] Error importing site from zip-file
Yves Glodt
yg at mind.lu
Tue Jun 16 11:59:21 CEST 2009
I just tried something else which I expected to work, but it did not...
in one OpenCms instance, I have my production site under
/sites/mysite.com
I created a database export of it.
Then I created /sites/old.mysite.com (and set it up in opencms-system.xml),
and wanted to import the former export-file there, but I get the same style of
errors. No file nor folder get created since they already exists with the same
UUID, although in another VFS-path.
Is it not possible to export/import a site from one VFS-path to another ? Or
should I just make copy/paste from within the workplace?
Best regards,
Yves
On Tuesday 16 June 2009 11:48:08 Yves Glodt wrote:
> I think I need to explain better what is happening here... :-)
>
>
> I have a production site, inside my first opencms. The site should be
> mostly rebuild, but based on the old content.
>
> So I copied the mysql db of the first opencms to a second server and run an
> opencms instance with my site as development-environment there. This
> version has now been modified extensively, and I want to export/import it
> back to a new site inside the production server mentioned earlier.
>
> Now, the file /index.html, which had been copied (by database
> backup/restore) from the prod server to the temporary server, exists on
> both with the same ID, and when I want to import it back into the prod
> server, I get a lot of exceptions in the style of:
>
> "Can not created /sites/new/index.html since /site/old/index.html exists
> with the same ID"
>
> That's why I asked if I can not tell the import tool to recreate the UUIDs
> while importing... ?
>
> Best regards,
> Yves
>
> p.s.
> I have already learned my lesson and will only use the export/import tool
> next time to move sites between servers... :-)
>
> On Tuesday 16 June 2009 10:54:42 Yves Glodt wrote:
> > I see now where the problems come from...
> >
> > Caused by: org.opencms.file.CmsVfsResourceAlreadyExistsException: Error
> > creating a resource at location "/sitemap.txt". There is already a
> > resource at location "/sites/myoldsite.com/sitemap.txt" with the same id
> > "7247cdd6-0181-11dd-97f9-0015174f605e".
> >
> >
> > It's a clash of UUIDs. Caused since the site I want to copy from the CMS2
> > back to CMS1 was once already copied, the other way round. So the files
> > partly exist, though in another site and also sometimes path.
> >
> >
> > Can I not make an export without exporting the UUIDs, but have the
> > recreated when importing?
> >
> >
> > Yves
> >
> > On Tuesday 16 June 2009 04:49:23 Johnny Xue | SYSVISION wrote:
> > > Hi, did you put Site root path to "/" when you export/import the
> > > resources?
> > >
> > > Bugzilla from yg at mind.lu wrote:
> > > > Hi,
> > > >
> > > > I created a database-export (into a zip-file) on one server, and want
> > > > to import
> > > > that data into another one. Export works fine, but importing gives
> > > > many exceptions, as e.g.
> > > >
> > > > Exception org.opencms.file.CmsVfsResourceNotFoundException: Error
> > > > creating resource "/de/cogenio/images/travel.jpg" on path
> > > > "/sites/v2.mysite.com/de/cogenio/images/travel.jpg".
> > > > at
> > > > org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsV
> > > >fs Re sourceNotFoundException.java:78)
> > > >
> > > > Exception org.opencms.file.CmsVfsResourceAlreadyExistsException:
> > > > Error creating
> > > > resource "/google2f15e10d385d6a91.html" on path
> > > > "/sites/v2.mysite.com/google2f15e10d385d6a91.html".
> > > > at
> > > > org.opencms.file.CmsVfsResourceAlreadyExistsException.createException
> > > >(C ms VfsResourceAlreadyExistsException.java:77)
> > > >
> > > > I attach the complete log. What could be wrong here?
> > > >
> > > > Best regards,
> > > > Yves
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > This mail is sent to you from the opencms-dev mailing list
> > > > To change your list options, or to unsubscribe from the list, please
> > > > visit http://lists.opencms.org/mailman/listinfo/opencms-dev
> > >
> > > -----
> > > Johnny Xue
> > > SYSVISION Ltd., China
> > > http://www.sysvision.com
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list