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> 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>
> *Lähetetty:* tiistai 1. marraskuuta 2022 19.44
> *Vastaanottaja:* Rahkonen Jukka <jukka.rahko...@maanmittauslaitos.fi>
> *Kopio:* 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> 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%7C335ca018cc944252ca3708dabc30c96c%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638029214984398207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=DaFJhunoKDYdh8sjmW1PcJUYX3NTMGdRh1t5GBm5tW0%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%7C335ca018cc944252ca3708dabc30c96c%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638029214984398207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=AINAL4%2BdWC%2FNqgtqpvSZGnGAJanZZ9FTuuu9pKluX3k%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%7C335ca018cc944252ca3708dabc30c96c%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638029214984398207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SfSZuPlvM8r8NsxYZC3twx33KwKYXRCadO2gw1AIhEI%3D&reserved=0>
>
>
> 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%7C335ca018cc944252ca3708dabc30c96c%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638029214984554450%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=67L3gfxjUSGmK9ChPNY5%2Fpef%2FIY4QH8KwiUggQ7eAeY%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#/
> - 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
>


-- 

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us 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/

http://twitter.com/geosolutions_it

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

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