[GeoNetwork-users] Remote Directory metadata_data

Good day,

I would ask them if anyone knows the ability to remotely configure the
directory (/ opt / tomcat / webapps / geonetwork / WEB-INF / data / data /
metadata_data) and i would like to have data from the metadata in another
different storage space, thank you.

Thanks...

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Remote-Directory-metadata-data-tp5172832.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi,

Remotely, you mean somewhere else in the filesystem ? Or using external storage protocols (NFS, FTP, etc) ? As far as I know, the latter is not possible, directly. I would say you then have to mount it properly, and make sure it is already available when your tomcat instance starts.

If your new place is accessible through the standard filesystem, your answer is in the User doc : http://geonetwork-opensource.org/manuals/2.10.3/eng/users/admin/advanced-configuration/index.html , see Setting the data directory

Jean

Le 13/11/2014 15:21, cbeltran a écrit :

Good day,

I would ask them if anyone knows the ability to remotely configure the
directory (/ opt / tomcat / webapps / geonetwork / WEB-INF / data / data /
metadata_data) and i would like to have data from the metadata in another
different storage space, thank you.

Thanks...

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Remote-Directory-metadata-data-tp5172832.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--

*Jean Pommier -- pi-Geosolutions*

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp@anonymised.com
Web : www.pi-geosolutions.fr

Hi,

As Jean said, i would recommand you to add the line
-Dgeonetwork.dir=$GEONETWORK_DIR
in a config file of your tomcat.

Note that you can separate subfolder of the data dir, like schema, or data
with for example :
-Dgeonetwork.schema.dir=$GEONETWORK_SCHEMA_DIR"

On Thu, Nov 13, 2014 at 3:49 PM, Jean Pommier <
jean.pommier@anonymised.com> wrote:

Hi,

Remotely, you mean somewhere else in the filesystem ? Or using external
storage protocols (NFS, FTP, etc) ? As far as I know, the latter is not
possible, directly. I would say you then have to mount it properly, and
make sure it is already available when your tomcat instance starts.

If your new place is accessible through the standard filesystem, your
answer is in the User doc :

Advanced configuration - GeoNetwork Opensource
, see Setting the data directory

Jean

Le 13/11/2014 15:21, cbeltran a écrit :
> Good day,
>
> I would ask them if anyone knows the ability to remotely configure the
> directory (/ opt / tomcat / webapps / geonetwork / WEB-INF / data / data
/
> metadata_data) and i would like to have data from the metadata in another
> different storage space, thank you.
>
> Thanks...
>
>
>
> --
> View this message in context:
http://osgeo-org.1560.x6.nabble.com/Remote-Directory-metadata-data-tp5172832.html
> Sent from the GeoNetwork users mailing list archive at Nabble.com.
>
>
------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
>
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
> _______________________________________________
> GeoNetwork-users mailing list
> GeoNetwork-users@lists.sourceforge.net
> geonetwork-users List Signup and Options
> GeoNetwork OpenSource is maintained at
GeoNetwork - Geographic Metadata Catalog download | SourceForge.net
>

--

*Jean Pommier -- pi-Geosolutions*

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp@anonymised.com
Web : www.pi-geosolutions.fr

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.

http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at
GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

--
Florent Gravin
Camptocamp - Chambéry
0479444492

Hi Jean

Thanks for your reply, I think storage in another server? Its possible??

Thanks

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Remote-Directory-metadata-data-tp5172832p5172856.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Florent

Thanks,

When yo refer -Dgeonetwork.dir=$GEONETWORK_DIR

what is the configuration file in tomcat?

Thanks???

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Remote-Directory-metadata-data-tp5172832p5172857.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Try to add
GEONETWORK_DIR=your_data_dir
export ADD_JAVA_OPTS="$ADD_JAVA_OPTS -Dgeonetwork.dir=$GEONETWORK_DIR
-Dfile.encoding=UTF8"
in for example tomcat/bin/setenv.sh

If you don't have it, just look for files that seem to update ADD_JAVA_OPTS
or CATALINA_OPTS
To check, restart your tomcat and geonetwork, and go into information
page /geonetwork/srv/eng/admin.console#/dashboard/information

On Thu, Nov 13, 2014 at 4:21 PM, cbeltran <cbeltran@anonymised.com> wrote:

Hi Florent

Thanks,

When yo refer -Dgeonetwork.dir=$GEONETWORK_DIR

what is the configuration file in tomcat?

Thanks???

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Remote-Directory-metadata-data-tp5172832p5172857.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.

http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at
GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

--
Florent Gravin
Camptocamp - Chambéry
0479444492

Hi,

Look

<http://osgeo-org.1560.x6.nabble.com/file/n5172869/geonetworkdata.png&gt;

And config this:

GEONETWORK_DIR=//192.168.11.70/metadata_data --> Its ok?
export ADD_JAVA_OPTS="$ADD_JAVA_OPTS -Dgeonetwork.dir=$GEONETWORK_DIR
-Dfile.encoding=UTF8"

Thanks...

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Remote-Directory-metadata-data-tp5172832p5172869.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi,

I don't think so. At least not easily.
Maybe mounting a partition with NFS ? I guess you'll have to try...
Cheers,

Jean

Le 13/11/2014 16:17, cbeltran a écrit :

Hi Jean

Thanks for your reply, I think storage in another server? Its possible??

Thanks

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Remote-Directory-metadata-data-tp5172832p5172856.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--

*Jean Pommier -- pi-Geosolutions*

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp@anonymised.com
Web : www.pi-geosolutions.fr

hi

Jean

I made the settings to make it a local storage:

nano setenv.sh --> on /opt/tomcat/bin/

GEONETWORK_DIR = / home / cbeltran / geonetwork
ADD_JAVA_OPTS export = "$ ADD_JAVA_OPTS -Dgeonetwork.dir = $ GEONETWORK_DIR
-Dfile.encoding = UTF8"

after

chmod +x setenv.sh

now

[root@anonymised.com bin]# export GEONETWORK_DIR=/home/cbeltran/geonetwork

and

[root@anonymised.com bin]# echo $GEONETWORK_DIR
/home/cbeltran/geonetwork

Initially It works, I went that route and created the "geonetwork" folder
and within this entire structure:

index
data
config

Then I create a new metadata but the directory information is stored by
default in / opt / tomcat / webapps / geonetwork / WEB-INF / data / data /
metadata_data

and not in / home / cbeltran / geonetwork / data / metadata_data

finally restart and no longer work.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Remote-Directory-metadata-data-tp5172832p5173668.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi,

I investigated, I did this:

In /geonetwork/WEB-INF/web.xml

This line:

Uncomment and modified

            <init-param>
            <param-name>geonetwork.dir</param-name>
            <param-value>/home/gic/geonetwork</param-value> --> local
directory
           </init-param>-->

restart tomcat, Now I will review the directory and did create the entire
directory structure

geonetwork/
|--data
| |--metadata_data
| |--resources:
| | |--htmlcache
| | |--images
| |
| |--metadata_subversion
|
|--config:
| |--schemaplugin-uri-catalog.xml
| |--codelist:
| |--schemaPlugins
|
|--index:
| |--taxonomy
| |--index.

But I have a problem when I'm in geonetwork through the browser the
following error message:

TransformerConfigurationException : Failed to compile stylesheet. 1 error
detected.

Attached image.

Thanks...

<http://osgeo-org.1560.x6.nabble.com/file/n5173695/geonetworkerror.png&gt;

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Remote-Directory-metadata-data-tp5172832p5173695.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.