Hi,

We made more testing and used GS 2.22RC on Tomcat 7 instead of Tomcat 9. Still 
no writing into the log file. But then we found a couple of RedHat servers that 
do write log into file. The specifications of the log-writing servers are:

java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64
Apache Tomcat/7.0.76
Red Hat Enterprise Linux Server release 7.8 (Maipo)
Linux 3.10.0-1127.13.1.el7.x86_64

Those servers have different Linux kernel but wouldn't it be odd if that would 
make a difference? The kernel on the not-log-writing servers is
Linux 3.10.0-1127.el7.x86_64

-Jukka Rahkonen-

Lähettäjä: Andrea Aime <andrea.a...@geosolutionsgroup.com>
Lähetetty: keskiviikko 9. marraskuuta 2022 11.59
Vastaanottaja: Rahkonen Jukka <jukka.rahko...@maanmittauslaitos.fi>
Kopio: Jody Garnett <jody.garn...@gmail.com>; 
geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] Geoserver 2.22RC does not write log into file

Hi all,
I've made a quick test with Apache Tomcat 9.0.55, GeoServer 2.22-RC, data dir 
still placed in the war file (the default one, not externalized).
Changed the logging configuration to DEFAULT, PRODUCTION and 
GEOSERVER_DEVELOPER_LOGGING, changed also the location
of the target file name as an extra test, in all cases I'm getting new lines 
being logged into the log file...

Cheers
Andrea

On Mon, Nov 7, 2022 at 8:26 AM Rahkonen Jukka 
<jukka.rahko...@maanmittauslaitos.fi<mailto:jukka.rahko...@maanmittauslaitos.fi>>
 wrote:
Hi,

My colleague sent this information about our system. Geoserver installation was 
made out of the box with a war file.

-Red Hat Enterprise Linux Server release 7.8 (Maipo)
-Apache Tomcat/9.0.62
-geoserver-22-RC-war

Things tested:
"-Dorg.apache.logging.log4j.simplelog.StatusLogger.level=DEBUG" and 
"<Configuration status="debug">"
without improvement to the problem.

Restarting tomcat or switching the logging profile generates following line to 
"geoserver.log":
04 Nov 14:49:26 CONFIG [geoserver.logging] - Log4j 2 configuration set to 
DEFAULT_LOGGING.xml
Since that no more lines appear into the log file.

"chmod 777" to complete "data" directory did not change anyting.
Tomcat is running on tomcat user and complete "webapps/geoserver22" directory 
is owned by tomcat:tomcat.
Tomcat sandboxing is not enabled.

Pre geoserver 2.21.x versions have no problems with log writing on this system.

I noticed one difference to your test. You wrote that "3. Out of the box logs 
are going to webapps/geoserver/logs/geoserver.log". In our case the out of the 
box logs are pointing inside the automatically created data directory, 
"/var/lib/tomcat9/webapps/geoserver22/data/logs/geoserver.log".

-Jukka Rahkonen-


Lähettäjä: Jody Garnett <jody.garn...@gmail.com<mailto:jody.garn...@gmail.com>>
Lähetetty: tiistai 1. marraskuuta 2022 19.44
Vastaanottaja: Rahkonen Jukka 
<jukka.rahko...@maanmittauslaitos.fi<mailto:jukka.rahko...@maanmittauslaitos.fi>>
Kopio: 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
Aihe: Re: [Geoserver-users] Geoserver 2.22RC does not write log into file

1. Trying now:
- macOS 13.0
- Tomcat 9.0.68
- geoserver-22-RC-war

2. The war contains license html files, but no top-level RUNNING or README 
instructions (not sure why)
3. Out of the box logs are going to webapps/geoserver/logs/geoserver.log
4. Changing to GEOSERVER_DEVELOPER_LOGGING.xml
5. So many TRACE logs it is very busy ...

So I cannot produce this problem locally

Q: Is your tomcat running as different user? Does it have permission to create 
geoserver.log? Have you enabled tomcat sandboxing to prevent apps modifying 
webapps folder?
--
Jody Garnett


On Tue, 1 Nov 2022 at 00:56, Rahkonen Jukka 
<jukka.rahko...@maanmittauslaitos.fi<mailto:jukka.rahko...@maanmittauslaitos.fi>>
 wrote:
Hi,

I wonder why Geoserver does not write log into a file with version 2.22RC that 
is installed on Linux from war. The default data_dir fallback is in use and 
therefore the log file should be 
'/var/lib/tomcat9/webapps/geoserver22/data/logs/geoserver.log'. But when we 
start Geoserver and use it we can see only this one line in the UI About & 
Status - GeoServer Logs:

01 Nov 09:00:30 CONFIG [geoserver.logging] - Log4j 2 configuration set to 
GEOSERVER_DEVELOPER_LOGGING.xml

Logging works as supposed with 2.22RC that I installed from bin-zin on Windows. 
On the Linux server the logging is OK with pre-log4j 2 version 2.20 but both 
2.21 and 2.22RC create just that one line log. Any suggestions about what to 
try next? The production data_dir will not be at 
/var/lib/tomcat9/webapps/geoserver22/data/ but we use the defaults for fast 
testing.

-Jukka Rahkonen-
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/<https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ianturton.com%2Ftalks%2Ffoss4g.html%23%2F&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Ccb398d6da1ea4d0a847408dac23907bf%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638035847454007947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4Z2wglMFymqjmaOKiC53ZhEmrTs3p0pCYENyyb1I4Ww%3D&reserved=0>
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html<https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgeoserver.org%2Fcomm%2Fuserlist-guidelines.html&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Ccb398d6da1ea4d0a847408dac23907bf%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638035847454007947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zTll1uJsEr4T83OZXcJVaqVprla2y7lDMLTMM5Nzhok%3D&reserved=0>

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgeoserver%2Fgeoserver%2Fwiki%2FSuccessfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Ccb398d6da1ea4d0a847408dac23907bf%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638035847454007947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2FMTRhH41TvWNw2KI%2FL1Lg7N7DWP7RtwKinKUVrkZNLc%3D&reserved=0>


Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fgeoserver-users&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Ccb398d6da1ea4d0a847408dac23907bf%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638035847454007947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=eleBDb9hIa1zagq%2BOLXup%2FRg3RaLBuXW4JJ69ao3p6w%3D&reserved=0>
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/<https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ianturton.com%2Ftalks%2Ffoss4g.html%23%2F&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Ccb398d6da1ea4d0a847408dac23907bf%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638035847454007947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4Z2wglMFymqjmaOKiC53ZhEmrTs3p0pCYENyyb1I4Ww%3D&reserved=0>
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html<https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgeoserver.org%2Fcomm%2Fuserlist-guidelines.html&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Ccb398d6da1ea4d0a847408dac23907bf%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638035847454007947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zTll1uJsEr4T83OZXcJVaqVprla2y7lDMLTMM5Nzhok%3D&reserved=0>

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgeoserver%2Fgeoserver%2Fwiki%2FSuccessfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Ccb398d6da1ea4d0a847408dac23907bf%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638035847454007947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2FMTRhH41TvWNw2KI%2FL1Lg7N7DWP7RtwKinKUVrkZNLc%3D&reserved=0>


Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fgeoserver-users&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Ccb398d6da1ea4d0a847408dac23907bf%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638035847454007947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=eleBDb9hIa1zagq%2BOLXup%2FRg3RaLBuXW4JJ69ao3p6w%3D&reserved=0>


--

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit 
http://bit.ly/gs-services-us<https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbit.ly%2Fgs-services-us&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Ccb398d6da1ea4d0a847408dac23907bf%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638035847454007947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2FrN%2BgRr8EUqsucidZDlh3oYap%2B1ReDWDgEw2vGY0jis%3D&reserved=0>
 for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  339 8844549


https://www.geosolutionsgroup.com/<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.geosolutionsgroup.com%2F&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Ccb398d6da1ea4d0a847408dac23907bf%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638035847454007947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2Fxq%2BQiijGm8Tdhma1SyS0IOVep%2Bt7llF7DGzI7KI8Qc%3D&reserved=0>

http://twitter.com/geosolutions_it<https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Ftwitter.com%2Fgeosolutions_it&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Ccb398d6da1ea4d0a847408dac23907bf%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638035847454007947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zfO%2BjJyUcipmxDUT4YqXIvI%2BdLkauQcNIkrXR0q4moE%3D&reserved=0>

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

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 
2016/679 - Regolamento generale sulla protezione dei dati "GDPR"), si precisa 
che ogni circostanza inerente alla presente email (il suo contenuto, gli 
eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i 
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per 
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei 
comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed 
and may contain information that is privileged, confidential or otherwise 
protected from disclosure. We remind that - as provided by European Regulation 
2016/679 "GDPR" - copying, dissemination or use of this e-mail or the 
information herein by anyone other than the intended recipient is prohibited. 
If you have received this email by mistake, please notify us immediately by 
telephone or e-mail
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to