Jahia in English > Step to make a proper...

0 (0 Good)
0 (0 Bad)

Step to make a proper export/import

by  mabouchacra »  2011/06/07 18:45

Hello,

I am facing a lot of problems trying to make the import works correctly. So my question is simple : is there anything special to make it works?

Here are some details : I have a site with lots of documents/pages/etc. The export works fine from the homepage, I'm exporting everything with the documents. After a while, I get the zip.
Now when I re-import this zip on another (strictly similar) server nothing works fine!

First of all : the documents. They have just disapeared. I don't even have the foolders. It seems there is a problem with the xml generated from the export (see [url=http/1sid=425a069b7f940a7efa963554e1a0efdb:1ybtbs8t]my (other) post on the subject[/url:1ybtbs8t]). There is nothing on the log.

This is quite troublesome as I don't think I'm doing something wrong during the export/import process. The only differences between the two sites (now that I think of it) comes from the site name, server and key which are not the same on the two servers, but I hope the problem does not come from that...

So any ideas? Or at least tell me that I'm not the only one who can't make an import properly.
By the way, i'm using jahia_ANDROMEDA_r29690.

Cheers,
Marc.
  • Step to make a proper export/import
    2011/06/07 18:45

    mabouchacra Hello,<br/><br/>I am facing a lot of problems trying to make the import works correctly. So my question is simple : is there anything special to make it works?<br/><br/>Here are some details : I have a site with lots of documents/pages/etc. The export works fine from the homepage, I'm exporting everything with the documents. After a while, I get the zip.<br/>Now when I re-import this zip on another (strictly similar) server nothing works fine! <br/><br/>First of all : the documents. They have just disapeared. I don't even have the foolders. It seems there is a problem with the xml generated from the export (see [url=http/1sid=425a069b7f940a7efa963554e1a0efdb:1ybtbs8t]my (other) post on the subject[/url:1ybtbs8t]). There is nothing on the log.<br/><br/>This is quite troublesome as I don't think I'm doing something wrong during the export/import process. The only differences between the two sites (now that I think of it) comes from the site name, server and key which are not the same on the two servers, but I hope the problem does not come from that...<br/><br/>So any ideas? Or at least tell me that I'm not the only one who can't make an import properly.<br/>By the way, i'm using jahia_ANDROMEDA_r29690.<br/><br/>Cheers,<br/>Marc.

  • Number of messages  44
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Step to make a proper export/import

    by  pablod »  2011/06/07 18:45

    You are not alone. I am facing the same issue. The import is loading just half of the documents.

    What database are you using? I have Mysql.
  • Re: Step to make a proper export/import
    2011/06/07 18:45

    pablod You are not alone. I am facing the same issue. The import is loading just half of the documents. <br/><br/>What database are you using? I have Mysql.

  • Number of messages  2
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Step to make a proper export/import

    by  mabouchacra »  2011/06/07 18:45

    We are working with Oracle 11g.
  • Re: Step to make a proper export/import
    2011/06/07 18:45

    mabouchacra We are working with Oracle 11g.

  • Number of messages  44
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Step to make a proper export/import

    by  darrenc »  2011/06/07 18:45

    Hi,

    I'm using Jahia 5 but have successfully done an export/import using the auto-export feature in the administration console. Have you tried that? It was done from our linux server to an install of Jahia on my local WinXP PC and took about 4 hours for a site of about 5GB including documents and pages. In theory I think it should be the same thing as what you're doing.

    On the server side we use a MySQL DB but the local install was using the default HSQLDB.

    There is a difference in terms of content repository between 5 and 6. Jahia 5 uses Apache Slide as its repository but Jahia 6 uses Apache JackRabbit. I don't know if that could be a factor.


    The only other experience I have of doing an import export was migrating from a completely different platform to jahia 5. In that case we actually copied all of the documents -images, pdfs etc. into the content repository via the webdav client in Jahia and only then did the import of the xml files with the details of the content. The xml files we were using were custom generated by us but followed the Jahia standards. we had already put in place the jahia template files for the site prior to the import and we were doing the import in pieces - ie starting from a page within the site that might have all the articles for a category linked off it, as opposed to starting from the top level of the site.

    Hope that might be of some use,
    Thanks
    Darren
  • Re: Step to make a proper export/import
    2011/06/07 18:45

    darrenc Hi,<br/><br/>I'm using Jahia 5 but have successfully done an export/import using the auto-export feature in the administration console. Have you tried that? It was done from our linux server to an install of Jahia on my local WinXP PC and took about 4 hours for a site of about 5GB including documents and pages. In theory I think it should be the same thing as what you're doing.<br/><br/>On the server side we use a MySQL DB but the local install was using the default HSQLDB.<br/><br/>There is a difference in terms of content repository between 5 and 6. Jahia 5 uses Apache Slide as its repository but Jahia 6 uses Apache JackRabbit. I don't know if that could be a factor.<br/><br/><br/>The only other experience I have of doing an import export was migrating from a completely different platform to jahia 5. In that case we actually copied all of the documents -images, pdfs etc. into the content repository via the webdav client in Jahia and only then did the import of the xml files with the details of the content. The xml files we were using were custom generated by us but followed the Jahia standards. we had already put in place the jahia template files for the site prior to the import and we were doing the import in pieces - ie starting from a page within the site that might have all the articles for a category linked off it, as opposed to starting from the top level of the site.<br/><br/>Hope that might be of some use,<br/>Thanks<br/>Darren

  • Number of messages  13
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Step to make a proper export/import

    by  darrenc »  2011/06/07 18:45

    Just thought of another thing,

    While publishing the entire site after doing the auto import on my local machine, I did notice some pages that didn't publish properly. Some of that may have been due to me adding extra languages to my local machine install without having a version of all mandatory pages in all the languages.

    I don't remember if the pages were marked as published or not but I did deliberately change them to allow me to republish them and they were fine after that.


    Darren
  • Re: Step to make a proper export/import
    2011/06/07 18:45

    darrenc Just thought of another thing,<br/><br/>While publishing the entire site after doing the auto import on my local machine, I did notice some pages that didn't publish properly. Some of that may have been due to me adding extra languages to my local machine install without having a version of all mandatory pages in all the languages.<br/><br/>I don't remember if the pages were marked as published or not but I did deliberately change them to allow me to republish them and they were fine after that.<br/><br/><br/>Darren

  • Number of messages  13
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Step to make a proper export/import

    by  mabouchacra »  2011/06/07 18:45

    Hi

    thanks for the reply.
    I didn't try the auto-export feature as it does not exactly fit our needs : we are just starting a site for a customer then we send the site to him and he does continue the job. However, i'll try it to see if it works better that way.

    In terms of time, the import process also take about 4hours for me, however my site (i mean the exported zip) is only 300Mo, documents and pages included, which seems a bit long.

    Also, I completely forgot about webdav but I think for now it's our best solution to re-create the entire content repository. I'll do that and hope that the pages problem (published/unpublished) won't happen with my latest import.

    Cheers,
    Marc.
  • Re: Step to make a proper export/import
    2011/06/07 18:45

    mabouchacra Hi<br/><br/>thanks for the reply.<br/>I didn't try the auto-export feature as it does not exactly fit our needs : we are just starting a site for a customer then we send the site to him and he does continue the job. However, i'll try it to see if it works better that way.<br/><br/>In terms of time, the import process also take about 4hours for me, however my site (i mean the exported zip) is only 300Mo, documents and pages included, which seems a bit long.<br/><br/>Also, I completely forgot about webdav but I think for now it's our best solution to re-create the entire content repository. I'll do that and hope that the pages problem (published/unpublished) won't happen with my latest import.<br/><br/>Cheers,<br/>Marc.

  • Number of messages  44
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Step to make a proper export/import

    by  mabouchacra »  2011/06/07 18:45

    Me again!

    Bad news : even if I recreate the content repository with webdav, it wont work.

    I've just figured out that all the links to my files are broken. They are all pointing to the current page instead of pointing to the supposed file directory. So i'll have to find all the links to all my files and then change it manually. And there is about 400 of them...

    Marc.
  • Re: Step to make a proper export/import
    2011/06/07 18:45

    mabouchacra Me again!<br/><br/>Bad news : even if I recreate the content repository with webdav, it wont work.<br/><br/>I've just figured out that all the links to my files are broken. They are all pointing to the current page instead of pointing to the supposed file directory. So i'll have to find all the links to all my files and then change it manually. And there is about 400 of them...<br/><br/>Marc.

  • Number of messages  44
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Step to make a proper export/import

    by  darrenc »  2011/06/07 18:45

    Is that in your export xml file?

    In my xml file the path looks like:

    [code:1ulslel9]
    /1
    [/code:1ulslel9]

    If you're ending up with links pointing to your page would that suggest a problem with the way the link is being created to the webdav either during the import or during the page generation?
  • Re: Step to make a proper export/import
    2011/06/07 18:45

    darrenc Is that in your export xml file?<br/><br/>In my xml file the path looks like:<br/><br/>[code:1ulslel9]<br/>/1<br/>[/code:1ulslel9]<br/><br/>If you're ending up with links pointing to your page would that suggest a problem with the way the link is being created to the webdav either during the import or during the page generation?

  • Number of messages  13
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Step to make a proper export/import

    by  mabouchacra »  2011/06/07 18:45

    Here is an example from my original import file :
    [code:1grnywkd]
    /1 which has the same value as the jcr:uuid in the original XML file, but I guess it's normal.

    Also, my foolders and files have accent, space and number in their name, I hope the problem does not come from that.

    Marc.
  • Re: Step to make a proper export/import
    2011/06/07 18:45

    mabouchacra Here is an example from my original import file :<br/>[code:1grnywkd]<br/>/1 which has the same value as the jcr:uuid in the original XML file, but I guess it's normal.<br/><br/>Also, my foolders and files have accent, space and number in their name, I hope the problem does not come from that.<br/><br/>Marc.

  • Number of messages  44
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Step to make a proper export/import

    by  darrenc »  2011/06/07 18:45

    I had a look at your other post on the import with errors in the log and did a quick google on the error you got.

    One of the first results that came back was

    [url:17574gbd]http/1html[/url:17574gbd]

    Which seems to talk about a duplicate node in webdav. Perhaps if there was an issue during the import into the JCR repository then Jahia abandons the import before creating the proper content link in the db for your doc, which would explain why your page ends up with empty links.

    Anyone from Jahia around to give us a few pointers?
  • Re: Step to make a proper export/import
    2011/06/07 18:45

    darrenc I had a look at your other post on the import with errors in the log and did a quick google on the error you got.<br/><br/>One of the first results that came back was<br/><br/>[url:17574gbd]http/1html[/url:17574gbd]<br/><br/>Which seems to talk about a duplicate node in webdav. Perhaps if there was an issue during the import into the JCR repository then Jahia abandons the import before creating the proper content link in the db for your doc, which would explain why your page ends up with empty links.<br/><br/>Anyone from Jahia around to give us a few pointers?

  • Number of messages  13
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page