[Geoserver-users] startup problems

Hi All,

I have startup problems with Geoserver 1.7.2 on Ubuntu Linux 8.10
I choosed binary package install and created service based on the
binary package install instructions.
My install locations conform these environment variables:
GEOSERVER_DATA_DIR=/var/lib/geoserver_data
GEOSERVER_HOME=/usr/local/geoserver-1.7.2

/usr/local/geoserver-1.7.2 is write-only for the service. Its data_dir
is copied into /var/lib/geoserver_data. All rights and ownerships are
granted there for www-data user, like
-rw-rw-rw- 1 www-data www-data 14360 Feb 2 12:51 serverlog
logs/
-rwxrwxrwx 1 www-data www-data 7652 Feb 2 12:51 geoserver.log
(I know these files don't need executable flag, but don't care)

Service script settings in /etc/init.d/geoserver are:

PATH=/usr/sbin:/usr/bin:/sbin:/bin
DESC="geoserver"
NAME=geoserver
SCRIPTNAME=/etc/init.d/$NAME
GEOSERVER_USER=www-data
GEOSERVER_DATA_DIR=/var/lib/geoserver_data
JAVA_HOME=/usr/lib/jvm/java-6-sun
GEOSERVER_HOME=/usr/local/geoserver-1.7.2

http://localhost:8080/geoserver in a browser shows ap this error:
HTTP ERROR 404
RequestURI=/geoserver
Powered by jetty://

Processes with 'geo' string in them are:
www-data 30838 2.5 7.4 243056 76784 pts/4 Sl 13:32 0:13
/usr/lib/jvm/java-6-sun/bin/java
-DGEOSERVER_DATA_DIR=/var/lib/geoserver_data -Djava.awt.headless=true
-DSTOP.PORT=8079 -DSTOP.KEY=geoserver -jar start.jar

After stopping service, clearing the above log files and starting,
their contents describing errors are:
serverlog:
...
527 [main] WARN org.mortbay.log - Deprecated configuration used for
/usr/local/geoserver-1.7.2/webapps
0 [main] ERROR org.vfny.geoserver.global -
...
log4j:WARN File option not set for appender [geoserverlogfile].
...
2009.02.02. 13:32:26 java.util.prefs.FileSystemPreferences$2 run
WARNING: Couldn't create user preferences directory. User preferences
are unusable.
2009.02.02. 13:32:26 java.util.prefs.FileSystemPreferences$2 run
WARNING: java.io.IOException: No such file or directory
02 febr. 13:32:26 WARN [geoserver.securit] - Rule *.*.r=* is
overriding another rule targetting the same resource
02 febr. 13:32:26 WARN [geoserver.securit] - Rule *.*.w=* is
overriding another rule targetting the same resource
13194 [main] INFO /geoserver - Initializing WebApplicationContext for
Struts ActionServlet 'action', module ''
13236 [main] WARN org.mortbay.log - failed
org.mortbay.jetty.NCSARequestLog@anonymised.com
java.io.IOException: Cannot write log directory /usr/local/geoserver-1.7.2/logs
        at org.mortbay.util.RolloverFileOutputStream.setFile(RolloverFileOutputStream.java:217)
        at org.mortbay.util.RolloverFileOutputStream.<init>(RolloverFileOutputStream.java:164)
        at org.mortbay.jetty.NCSARequestLog.doStart(NCSARequestLog.java:378)
...
13278 [main] INFO org.mortbay.log - Started SelectChannelConnector@anonymised.com:8080

logs/geoserver.log:
2009-02-02 13:32:26,976 WARN [geoserver.securit] - Rule *.*.w=* is
overriding another rule targetting the same resource

both contained several INFO lines and some uninteresting warnings
about coordinate order hint for one coverage.

What did I wrong?

thanx in advance!
Best regards: Balázs Bámer

Balázs Bámer wrote:

Hi All,

I have startup problems with Geoserver 1.7.2 on Ubuntu Linux 8.10
I choosed binary package install and created service based on the
binary package install instructions.
My install locations conform these environment variables:
GEOSERVER_DATA_DIR=/var/lib/geoserver_data
GEOSERVER_HOME=/usr/local/geoserver-1.7.2

/usr/local/geoserver-1.7.2 is write-only for the service. Its data_dir
is copied into /var/lib/geoserver_data. All rights and ownerships are
granted there for www-data user, like
-rw-rw-rw- 1 www-data www-data 14360 Feb 2 12:51 serverlog
logs/
-rwxrwxrwx 1 www-data www-data 7652 Feb 2 12:51 geoserver.log
(I know these files don't need executable flag, but don't care)

Service script settings in /etc/init.d/geoserver are:

PATH=/usr/sbin:/usr/bin:/sbin:/bin
DESC="geoserver"
NAME=geoserver
SCRIPTNAME=/etc/init.d/$NAME
GEOSERVER_USER=www-data
GEOSERVER_DATA_DIR=/var/lib/geoserver_data
JAVA_HOME=/usr/lib/jvm/java-6-sun
GEOSERVER_HOME=/usr/local/geoserver-1.7.2

http://localhost:8080/geoserver in a browser shows ap this error:
HTTP ERROR 404
RequestURI=/geoserver
Powered by jetty://

Processes with 'geo' string in them are:
www-data 30838 2.5 7.4 243056 76784 pts/4 Sl 13:32 0:13
/usr/lib/jvm/java-6-sun/bin/java
-DGEOSERVER_DATA_DIR=/var/lib/geoserver_data -Djava.awt.headless=true
-DSTOP.PORT=8079 -DSTOP.KEY=geoserver -jar start.jar

After stopping service, clearing the above log files and starting,
their contents describing errors are:
serverlog:
...
527 [main] WARN org.mortbay.log - Deprecated configuration used for
/usr/local/geoserver-1.7.2/webapps
0 [main] ERROR org.vfny.geoserver.global -
...
log4j:WARN File option not set for appender [geoserverlogfile].
...
2009.02.02. 13:32:26 java.util.prefs.FileSystemPreferences$2 run
WARNING: Couldn't create user preferences directory. User preferences
are unusable.
2009.02.02. 13:32:26 java.util.prefs.FileSystemPreferences$2 run
WARNING: java.io.IOException: No such file or directory
02 febr. 13:32:26 WARN [geoserver.securit] - Rule *.*.r=* is
overriding another rule targetting the same resource
02 febr. 13:32:26 WARN [geoserver.securit] - Rule *.*.w=* is
overriding another rule targetting the same resource
13194 [main] INFO /geoserver - Initializing WebApplicationContext for
Struts ActionServlet 'action', module ''
13236 [main] WARN org.mortbay.log - failed
org.mortbay.jetty.NCSARequestLog@anonymised.com
java.io.IOException: Cannot write log directory /usr/local/geoserver-1.7.2/logs
        at org.mortbay.util.RolloverFileOutputStream.setFile(RolloverFileOutputStream.java:217)
        at org.mortbay.util.RolloverFileOutputStream.<init>(RolloverFileOutputStream.java:164)
        at org.mortbay.jetty.NCSARequestLog.doStart(NCSARequestLog.java:378)

I don't really know, it seems the user starting up geoserver does not have write permissions on the /usr/local/geoserver-1.7.2/logs directory?

Cheers
Andrea

Balázs Bámer wrote:

Hi All,

I have startup problems with Geoserver 1.7.2 on Ubuntu Linux 8.10
I choosed binary package install and created service based on the
binary package install instructions.
My install locations conform these environment variables:
GEOSERVER_DATA_DIR=/var/lib/geoserver_data
GEOSERVER_HOME=/usr/local/geoserver-1.7.2

/usr/local/geoserver-1.7.2 is write-only for the service. Its data_dir
is copied into /var/lib/geoserver_data. All rights and ownerships are
granted there for www-data user, like
-rw-rw-rw- 1 www-data www-data 14360 Feb 2 12:51 serverlog
logs/
-rwxrwxrwx 1 www-data www-data 7652 Feb 2 12:51 geoserver.log
(I know these files don't need executable flag, but don't care)

<snip>

www-data is a special system account that Ubuntu provides for Apache, it should not be used for other purposes. For instance, the account may have an AppArmor profile that prevents this kind of access.

You should create brand new user, call him "geoserver" if you like, and run jetty as that user.

-Arne

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers