[GeoNetwork-users] Installing GeoNetwork from the command line

Hello everyone,

I'm trying to install GeoNetwork on Ubuntu Server 12.04 following the
manual. As you can see in the log below, I'm getting no error messages
installing, but I didn't get any service running on port 8080. Do I
need to start the service explicitly? How do I do that?

Thank you,

Luís

---------------------------------------------------------------------------

$ java -jar geonetwork-install-2.6.4-0.jar geonetwork.xml
[ Starting automated installation ]
[ Starting to unpack ]
[ Processing package: Core (1/1) ]
[ Unpacking finished. ]
[ Writing the uninstaller data ... ]
[ Automated installation done ]

$ wget http://localhost:8080/geonetwork
--2013-01-30 17:11:13-- http://localhost:8080/geonetwork
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:8080... failed:
Connection refused.

$ cat geonetwork.xml
<AutomatedInstallation langpack="eng">
    <com.izforge.izpack.panels.HelloPanel/>
    <com.izforge.izpack.panels.HTMLLicencePanel/>
    <com.izforge.izpack.panels.TargetPanel>
        <installpath>/usr/share/geonetwork</installpath>
    </com.izforge.izpack.panels.TargetPanel>
    <com.izforge.izpack.panels.PacksPanel>
        <selected>
            <pack index="0"/>
        </selected>
    </com.izforge.izpack.panels.PacksPanel>
    <com.izforge.izpack.panels.InstallPanel/>
    <com.izforge.izpack.panels.ShortcutPanel>
        <programGroup name="GeoNetwork opensource"/>
        <shortcut name="Open GeoNetwork opensource" initialState="1"
commandLine="" workingDirectory="/usr/share/geonetwork"
target="/usr/share/geonetwork/bin/win/start-stdln.html" type="1"
icon="/usr/share/geonetwork/bin/ico/gn.ico" group="true"
description="This opens the GeoNetwork homepage in a web browser"
iconIndex="0"/>
        <shortcut name="Start server" initialState="0" commandLine=""
workingDirectory="/usr/share/geonetwork/bin"
target="/usr/share/geonetwork/bin/start-geonetwork.sh" type="1"
icon="/usr/share/geonetwork/bin/ico/gnstart.ico" group="true"
description="This starts the GeoNetwork server" iconIndex="0"/>
        <shortcut name="Stop server" initialState="0" commandLine=""
workingDirectory="/usr/share/geonetwork/bin"
target="/usr/share/geonetwork/bin/stop-geonetwork.sh" type="1"
icon="/usr/share/geonetwork/bin/ico/gnstop.ico" group="true"
description="This stops the GeoNetwork server" iconIndex="0"/>
        <shortcut name="Start GAST" initialState="0" commandLine="-jar
&quot;/usr/share/geonetwork/gast/gast.jar&quot;"
workingDirectory="/usr/share/geonetwork/bin" target="" type="1"
icon="/usr/share/geonetwork/bin/ico/gast.ico" group="true"
description="This starts GeoNetwork&apos;s Administrator Survival
Tool" iconIndex="0"/>
        <shortcut name="Documentation" initialState="1" commandLine=""
workingDirectory="/usr/share/geonetwork"
target="/usr/share/geonetwork/web/geonetwork/docs/eng/users" type="1"
icon="/usr/share/geonetwork/bin/ico/docs.ico" group="true"
description="GeoNetwork opensource documentation" iconIndex="0"/>
        <shortcut name="Release notes " initialState="1"
commandLine="" workingDirectory="/usr/share/geonetwork"
target="/usr/share/geonetwork/web/geonetwork/docs/readme.html"
type="1" icon="/usr/share/geonetwork/bin/ico/text.ico" group="true"
description="GeoNetwork desktop release notes " iconIndex="0"/>
        <shortcut name="GPL License" initialState="1" commandLine=""
workingDirectory="/usr/share/geonetwork"
target="/usr/share/geonetwork/web/geonetwork/docs/license.html"
type="1" icon="/usr/share/geonetwork/bin/ico/text.ico" group="true"
description="GeoNetwork opensource GNU-GPL license " iconIndex="0"/>
        <shortcut name="Uninstaller" initialState="0"
commandLine="-jar
&quot;/usr/share/geonetwork/Uninstaller/uninstaller.jar&quot;"
workingDirectory="" target="java" type="1" icon="trashcan_full"
group="true" description="" iconIndex="0"/>
    </com.izforge.izpack.panels.ShortcutPanel>
    <com.izforge.izpack.panels.HTMLInfoPanel/>
    <com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>

On 30 January 2013 17:32, Olivier Gagnon <mcnolii@anonymised.com> wrote:

Look for startup in bin folder ...

Hi Olivier thank you for the tip. I found out the start script, but it
is returning an error (see below). There's no logs folder in the
geontowork or geonetwork/bin folder. Should I create it?

Thank you,

Luís

----------------------------------------------------

$ sh start-geonetwork.sh
rm: cannot remove `logs/*request.log*': No such file or directory
rm: cannot remove `logs/output.log': No such file or directory
mv: cannot stat `logs/geonetwork.log.*': No such file or directory
mv: cannot stat `logs/geoserver.log.*': No such file or directory

hi luis,
have a look at the folder jetty - there are logfiles in a logs directory:
maybe
geonetwork264/jetty/logs
some helpful information:
http://www.geoportal.rlp.de/mediawiki/index.php/Installation_geonetwork_/_geoserver_Debian_squeeze
regards
armin

2013/1/31 Luís de Sousa <luis.a.de.sousa@anonymised.com>:

On 30 January 2013 17:32, Olivier Gagnon <mcnolii@anonymised.com> wrote:

Look for startup in bin folder ...

Hi Olivier thank you for the tip. I found out the start script, but it
is returning an error (see below). There's no logs folder in the
geontowork or geonetwork/bin folder. Should I create it?

Thank you,

Luís

----------------------------------------------------

$ sh start-geonetwork.sh
rm: cannot remove `logs/*request.log*': No such file or directory
rm: cannot remove `logs/output.log': No such file or directory
mv: cannot stat `logs/geonetwork.log.*': No such file or directory
mv: cannot stat `logs/geoserver.log.*': No such file or directory

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
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

Hi Luís

If you have a chance to install the war file in Tomcat I think can be a
better option than using installer. But if not an option, check about the
log files to verify is a problem in the startup or there's any issue with
the server configuration.

You're trying to to a wget in same machine, what about trying to access
from another computer browser using the server ip/name? You get same issue
about connection refused?

Regards,
Jose García

On Thu, Jan 31, 2013 at 9:12 AM, Armin Retterath
<armin.retterath@anonymised.com>wrote:

hi luis,
have a look at the folder jetty - there are logfiles in a logs directory:
maybe
geonetwork264/jetty/logs
some helpful information:

http://www.geoportal.rlp.de/mediawiki/index.php/Installation_geonetwork_/_geoserver_Debian_squeeze
regards
armin

2013/1/31 Luís de Sousa <luis.a.de.sousa@anonymised.com>:
> On 30 January 2013 17:32, Olivier Gagnon <mcnolii@anonymised.com> wrote:
>> Look for startup in bin folder ...
>>
>
> Hi Olivier thank you for the tip. I found out the start script, but it
> is returning an error (see below). There's no logs folder in the
> geontowork or geonetwork/bin folder. Should I create it?
>
> Thank you,
>
> Luís
>
> ----------------------------------------------------
>
> $ sh start-geonetwork.sh
> rm: cannot remove `logs/*request.log*': No such file or directory
> rm: cannot remove `logs/output.log': No such file or directory
> mv: cannot stat `logs/geonetwork.log.*': No such file or directory
> mv: cannot stat `logs/geoserver.log.*': No such file or directory
>
>
------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan
> _______________________________________________
> 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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
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

--
*
GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net for details.
_________________________
Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net/&gt;

*

Thanks to Armin and José for the replies.

In fact, despite those error messages, Jetty starts up and is serving
the page. I checked the Jetty logs and there's an error there, but
unrelated (I'm opening a new thread on that).

So, perhaps this is something I shouldn't worry about?

Thank you,

Luís