Discussion:
[Geoserver-users] Geoserver not logging, feature info not returning
Christopher DeMars
2017-06-21 16:46:45 UTC
Permalink
After an update of geoserver, the logging no longer works and openlayers'
getGetFeatureInfoUrl base feature query also no longer works. WMS layers
(including parameterized SQL layers) work.

Example of the feature query:

localhost/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=npschemmap%3Anps&LAYERS=npschemmap%3Anps&TILED=true&INFO_FORMAT=application%2Fjson&I=170&J=18&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-13306157.883883482%2C4226661.916057106%2C-13149614.849955441%2C4383204.949985147

All the folders/files in the tomcat web app directory are owned by tomcat7

Any ideas on where to look to fix things?

Geoserver info:

GeoServer Version
2.11.1
Git Revision
0628848420a522efc1c6bbd90cb3346038929f6a
Build Date
18-May-2017 22:36
GeoTools Version
17.1 (rev 86d8efab5104df08c81acf7b2f2342e08c9dea4b)
GeoWebCache Version
1.11.0 (rev 1.11.x/02b79570ae64d548f9fb39bcab5edc9cb4d0c992)

Tomcat7 info:

Using CATALINA_BASE: /usr/share/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME: /usr
Using CLASSPATH:
/usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.52 (Ubuntu)
Server built: Apr 5 2017 06:27:12
Server number: 7.0.52.0
OS Name: Linux
OS Version: 3.13.0-112-generic
Architecture: amd64
JVM Version: 1.8.0_101-b13
JVM Vendor: Oracle Corporation

Ubuntu info:

Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
Christopher DeMars
2017-06-22 02:44:22 UTC
Permalink
The feature request error was due to the geoserver upgrade overwriting of
the WEB-INF/web.xml which dropped the CORS clause.

Still no logs being written though. Debugging without logs makes things a
bit harder.

Any suggestions as to something equally stupid that I'm not seeing?
Post by Christopher DeMars
After an update of geoserver, the logging no longer works and openlayers'
getGetFeatureInfoUrl base feature query also no longer works. WMS layers
(including parameterized SQL layers) work.
localhost/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&
REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&
QUERY_LAYERS=npschemmap%3Anps&LAYERS=npschemmap%3Anps&TILED=
true&INFO_FORMAT=application%2Fjson&I=170&J=18&WIDTH=256&
HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-13306157.
883883482%2C4226661.916057106%2C-13149614.849955441%2C4383204.949985147
All the folders/files in the tomcat web app directory are owned by tomcat7
Any ideas on where to look to fix things?
GeoServer Version
2.11.1
Git Revision
0628848420a522efc1c6bbd90cb3346038929f6a
Build Date
18-May-2017 22:36
GeoTools Version
17.1 (rev 86d8efab5104df08c81acf7b2f2342e08c9dea4b)
GeoWebCache Version
1.11.0 (rev 1.11.x/02b79570ae64d548f9fb39bcab5edc9cb4d0c992)
Using CATALINA_BASE: /usr/share/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/
tomcat7/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.52 (Ubuntu)
Server built: Apr 5 2017 06:27:12
Server number: 7.0.52.0
OS Name: Linux
OS Version: 3.13.0-112-generic
Architecture: amd64
JVM Version: 1.8.0_101-b13
JVM Vendor: Oracle Corporation
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
Andrea Aime
2017-06-22 07:10:07 UTC
Permalink
Eh... it's difficult indeed, we can only guess.

Did you check the logging settngs in the UI?
Are they pointing to a valid configuration file in $geoserver_data_dir?
What about the log location?

If that does not help, see if you have logging to stdout enabled, if not,
do so and then check Tomcat's catalina.out file, see if there is
anything in there

Cheers
Andrea
Post by Christopher DeMars
The feature request error was due to the geoserver upgrade overwriting of
the WEB-INF/web.xml which dropped the CORS clause.
Still no logs being written though. Debugging without logs makes things a
bit harder.
Any suggestions as to something equally stupid that I'm not seeing?
Post by Christopher DeMars
After an update of geoserver, the logging no longer works and openlayers'
getGetFeatureInfoUrl base feature query also no longer works. WMS layers
(including parameterized SQL layers) work.
localhost/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=
GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_
LAYERS=npschemmap%3Anps&LAYERS=npschemmap%3Anps&TILED=true&
INFO_FORMAT=application%2Fjson&I=170&J=18&WIDTH=256&HEIGHT=
256&CRS=EPSG%3A3857&STYLES=&BBOX=-13306157.883883482%
2C4226661.916057106%2C-13149614.849955441%2C4383204.949985147
All the folders/files in the tomcat web app directory are owned by tomcat7
Any ideas on where to look to fix things?
GeoServer Version
2.11.1
Git Revision
0628848420a522efc1c6bbd90cb3346038929f6a
Build Date
18-May-2017 22:36
GeoTools Version
17.1 (rev 86d8efab5104df08c81acf7b2f2342e08c9dea4b)
GeoWebCache Version
1.11.0 (rev 1.11.x/02b79570ae64d548f9fb39bcab5edc9cb4d0c992)
Using CATALINA_BASE: /usr/share/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/share/tomcat7/bin/bootstr
ap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.52 (Ubuntu)
Server built: Apr 5 2017 06:27:12
Server number: 7.0.52.0
OS Name: Linux
OS Version: 3.13.0-112-generic
Architecture: amd64
JVM Version: 1.8.0_101-b13
JVM Vendor: Oracle Corporation
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo Ú consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
Loading...