moving a gn instance to another new server

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

moving a gn instance to another new server

BartO
I'm using geonetwork 3.4 that I want to move to another server with a differnt hostname.
My plan was to copy the geonetwork.war and its unpacked folder (containing the data dir) to the new server, starting tomcat again et voila...

But I'm ending up in the following error when starting up the new instance:

FileError: 'http:/x.x.x.x:8080/geonetwork/catalog/lib/style/bootstrap-3.0.1/bootstrap.less' wasn't found (404)

in bootstrap.less

Raised exception while starting the application. Fix the error and restart.
Message

Subversion repository at /var/lib/tomcat/webapps/geonetwork/WEB-INF/data/data/metadata_subversion has uuid a529f3b5-16ee-4ef3-aecd-ddbb91823772 which does not match repository uuid held in database 369da58f-3213-4c65-917e-1115b230f596

Handler

org.fao.geonet.Geonetwork

Exception

java.lang.IllegalArgumentException: Subversion repository at /var/lib/tomcat/webapps/geonetwork/WEB-INF/data/data/metadata_subversion has uuid a529f3b5-16ee-4ef3-aecd-ddbb91823772 which does not match repository uuid held in database 369da58f-3213-4c65-917e-1115b230f596

Stack

java.lang.IllegalArgumentException: Subversion repository at /var/lib/tomcat/webapps/geonetwork/WEB-INF/data/data/metadata_subversion has uuid a529f3b5-16ee-4ef3-aecd-ddbb91823772 which does not match repository uuid held in database 369da58f-3213-4c65-917e-1115b230f596
        at org.fao.geonet.kernel.SvnManager.init(SvnManager.java:162)
        at org.fao.geonet.Geonetwork.start(Geonetwork.java:305)
        at jeeves.server.JeevesEngine.initAppHandler(JeevesEngine.java:448)
        at jeeves.server.JeevesEngine.init(JeevesEngine.java:191)
        at jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:84)
        at javax.servlet.GenericServlet.init(GenericServlet.java:158)
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1269)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1182)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1072)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5368)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5660)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)


How to actually migrate geonetwork to another server?
VITO Disclaimer: http://www.vito.be/e-maildisclaimer

_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: moving a gn instance to another new server

Jo Cook
Hi,

You can generally fix this by renaming the metadata_subversion folder
(the path is in the error message) and restarting. GeoNetwork will
create a new one when it starts up.

All the best

Jo

On Fri, Jun 5, 2020 at 4:18 PM Ooms Bart <[hidden email]> wrote:

>
> I'm using geonetwork 3.4 that I want to move to another server with a differnt hostname.
> My plan was to copy the geonetwork.war and its unpacked folder (containing the data dir) to the new server, starting tomcat again et voila...
>
> But I'm ending up in the following error when starting up the new instance:
>
> FileError: 'http:/x.x.x.x:8080/geonetwork/catalog/lib/style/bootstrap-3.0.1/bootstrap.less' wasn't found (404)
>
> in bootstrap.less
>
> Raised exception while starting the application. Fix the error and restart.
> Message
>
> Subversion repository at /var/lib/tomcat/webapps/geonetwork/WEB-INF/data/data/metadata_subversion has uuid a529f3b5-16ee-4ef3-aecd-ddbb91823772 which does not match repository uuid held in database 369da58f-3213-4c65-917e-1115b230f596
>
> Handler
>
> org.fao.geonet.Geonetwork
>
> Exception
>
> java.lang.IllegalArgumentException: Subversion repository at /var/lib/tomcat/webapps/geonetwork/WEB-INF/data/data/metadata_subversion has uuid a529f3b5-16ee-4ef3-aecd-ddbb91823772 which does not match repository uuid held in database 369da58f-3213-4c65-917e-1115b230f596
>
> Stack
>
> java.lang.IllegalArgumentException: Subversion repository at /var/lib/tomcat/webapps/geonetwork/WEB-INF/data/data/metadata_subversion has uuid a529f3b5-16ee-4ef3-aecd-ddbb91823772 which does not match repository uuid held in database 369da58f-3213-4c65-917e-1115b230f596
>         at org.fao.geonet.kernel.SvnManager.init(SvnManager.java:162)
>         at org.fao.geonet.Geonetwork.start(Geonetwork.java:305)
>         at jeeves.server.JeevesEngine.initAppHandler(JeevesEngine.java:448)
>         at jeeves.server.JeevesEngine.init(JeevesEngine.java:191)
>         at jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:84)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:158)
>         at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1269)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1182)
>         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1072)
>         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5368)
>         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5660)
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
>         at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
>
>
> How to actually migrate geonetwork to another server?
> VITO Disclaimer: http://www.vito.be/e-maildisclaimer
>
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



--
Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For
urgent responses at that time, please visit
support.astuntechnology.com or phone our office on 01372 744009

--
-- 
*Sign up to our mailing list
<https://astuntechnology.com/company/#email-updates> for updates on news,
products, conferences, events and training*
*
*

Astun Technology Ltd,
Epsom Square Centre, 6-7 The Derby Square, Epsom, Surrey, KT19 8AG, UK 

t:+44 1372 744 009 w: astuntechnology.com <http://astuntechnology.com/
twitter:@astuntech <https://twitter.com/astuntech>



iShare - enterprise
geographic intelligence platform <https://astuntechnology.com/ishare/>

GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/training-courses/>
Helpdesk and customer
portal
<https://astuntech.atlassian.net/wiki/spaces/ISHAREHELP/pages/364970043/Astun+Technology+Support+Portal>





Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.


_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork