Jahia Install Forum > How to reinitialize...

0 (0 Good)
0 (0 Bad)

How to reinitialize the repository?

by  hwellmann »  2012/11/21 17:04

I'm stuck trying to install Jahia as a WAR in a separate Tomcat, using a MySQL DB.  It seems that the repository and template copying process is only half-finished due an OOME, and Jahia is not able to resume or repair the repository setup by itself.

I'm getting messages like

2012-11-21 17:52:58,851: ERROR [RenderService] - Cannot find template
javax.jcr.PathNotFoundException: /sites/systemsite/templates
 

2012-11-21 17:52:58,854: ERROR [RenderChain] - Error while rendering the resource: Resource{node=/users/root, primaryNodeTypeName='jnt:user', templateType='html', template='user-home', configuration='page'} -> org.jahia.services.render.TemplateNotFoundException: user-home

How can I retrigger the repository setup without repeating the entire installation process?

Best regards,

Harald

 

  (hwellmann)

Number of messages  22
Registration date
0 (0 Good)
0 (0 Bad)

Re: How to reinitialize the repository?

by  rvt »  2012/11/22 15:11

Herald,

I never tried this myself but you could execute the SQL's in webapps/ROOT/WEB-INF/var/db/sql/schema/mysql I am not sure if that will work though as I never had any OOM myself during installation or Jahia first time startup.

Then increate memory before you restart again, I believe you already have Java experience so that doesn't need any explanation, if so, let us know.

Ries

 

  • Re: How to reinitialize the repository?
    2012/11/22 15:11

    rvt <p> Herald,</p> <p> I never tried this myself but you could execute the SQL&#39;s in&nbsp;webapps/ROOT/WEB-INF/var/db/sql/schema/mysql I am not sure if that will work though as I never had any OOM myself during installation or Jahia first time startup.</p> <p> Then increate memory before you restart again, I believe you already have Java experience so that doesn&#39;t need any explanation, if so, let us know.</p> <p> Ries</p> <p> &nbsp;</p>

  • Number of messages  185
    Registration date Nov 22, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Re: How to reinitialize the repository?

    by  hwellmann »  2012/11/23 08:54

    Thanks, I ran the scripts and this seemed to make Jahia reinitialize itself after restarting Tomcat, but I still cannot login:

    2012-11-23 09:42:11,731: ERROR [http-8080-1] org.jahia.services.render.filter.RenderChain: Error while rendering the resource: Resource{node=/users/root, primaryNodeTypeName='jnt:user', templateType='html', template='user-home', configuration='page'} -> org.jahia.services.render.TemplateNotFoundException: user-home
    2012-11-23 09:42:11,732: INFO  [http-8080-1] org.jahia.bin.Render: Rendered [/jahia/cms/render/live/fr/users/root.user-home.html] user=[root] ip=[0:0:0:0:0:0:0:1] sessionID=[DCEF094EC2A45AF869A652227087851B] in [10ms]
    2012-11-23 09:42:11,733: WARN  [http-8080-1] org.jahia.bin.errors.ErrorLoggingFilter: [Error code: 404]: Requested resource is not available: /jahia/cms/fr/users/root.user-home.html
    2012-11-23 09:42:58,539: ERROR [http-8080-1] org.jahia.services.usermanager.jcr.JCRGroupManagerProvider: Error retrieving membership for user root, will return empty list
    javax.jcr.ItemNotFoundException: ac29b582-efb7-4975-b37c-ae07e882a29e
     

    Any other ideas?

    Best regards,

    Harald

      (hwellmann)

    Number of messages  22
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re : Re: Re: How to reinitialize the repository?

    by  gkuhmel »  2012/11/23 13:43

    Hi Harald,

    By experience, an error while installing Jahia is hard to recover.

    Why ? because when runningjahia for the first time, the system deploys the modules that come with the installation. And these modules can embed content définition, content creation etc that will be installed into the JCR and so into your DB.

    So rerunning the DB scripts are not enough, logically you should too redeploy all the modules.

    IMHO, you should drop your DP, delete the war installed, and redeploy the jahia .war.

     

  • Re : Re: Re: How to reinitialize the repository?
    2012/11/23 13:43

    gkuhmel <p> Hi Harald,</p> <p> By experience, an error while installing Jahia is hard to recover.</p> <p> Why ? because when runningjahia for the first time, the system deploys the modules that come with the installation. And these modules can embed content d&eacute;finition, content creation etc that will be installed into the JCR and so into your DB.</p> <p> So rerunning the DB scripts are not enough, logically you should too redeploy all the modules.</p> <p> IMHO, you should drop your DP, delete the war installed, and redeploy the jahia .war.</p> <p> &nbsp;</p>

  • Number of messages  24
    Registration date Nov 23, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Re : Re: Re: How to reinitialize the repository?

    by  hwellmann »  2012/11/26 10:03

    > IMHO, you should drop your DP, delete the war installed, and redeploy the jahia .war.

    That doesn't work either, since the database contains no tables. Apparently I need to rerun the installer. This is  rather a nuisance. Installing the application and installing/initialising the database/repository should be strictly separate.

    IMHO the installer creates more problems than it solves. Why not simply distribute a WAR and a setup script?

    Best regards,

    Harald

     


     

      (hwellmann)

    Number of messages  22
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re : Re: Re: How to reinitialize the repository?

    by  shuber »  2012/11/27 10:42

    Hello Harald, 

    The installer is really designed mostly for evaluators that want to quickly install and test the product. For more advanced work I recommend to work with the Maven plugin. Our SDK package contains everything to get you started, check the following page : http://www.jahia.com/cms/home/download/develop/download-sdk.html

    Once everything is setup (there are a few steps, but they only need to be done once), resetting Jahia then becomes possible simply by running : mvn jahia:configure

    Best regards,

      Serge Huber.

    Serge Huber (shuber)

    Number of messages  271
    Registration date
    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