[logback-user] No logfile when starting application from a remote host

Jonas Gröger jonas at huntun.de
Mon May 13 14:25:46 CEST 2019


And you are also remotely logging in as user warp?

> On 13. May 2019, at 13:39, <Michael.Fankanowsky at t-systems.com> <Michael.Fankanowsky at t-systems.com> wrote:
> 
> Hi,
>  
> yes, as user warp I’m able to write manually to the log file. And yes, the application is running as user warp.
> On the host where the application is running we don’t have problems with logging, also rolling the log file (by size and date) is working fine. Stopping and starting the application is also no problem. Only when doing this from a remote host.
>  
> Best regards,
>  
> Michael Fankanowsky
>  
> Von: logback-user <logback-user-bounces at qos.ch> Im Auftrag von Jonas Gröger
> Gesendet: Montag, 13. Mai 2019 13:24
> An: logback users list <logback-user at qos.ch>
> Betreff: Re: [logback-user] No logfile when starting application from a remote host
>  
> Can you write the file manually as warp?
>  
> su warp
> echo test >> /opt/pegasus/PREMAINT/logs/watchdog.log
> 
> 
> Also: is your application running as use warp?
> 
> On 13. May 2019, at 12:49, <Michael.Fankanowsky at t-systems.com> <Michael.Fankanowsky at t-systems.com> wrote:
> 
> warp at q4de3gsy593:~> namei -l 
> f: /opt/pegasus/PREMAINT/logs/watchdog.log
> drwxr-xr-x root root  /
> drwxr-xr-x root root  opt
> drwxr-xr-x warp users pegasus
> drwxr-xr-x warp users PREMAINT
> drwxr-xr-x warp users logs
> -rw-r--r-- warp users watchdog.log
> warp at q4de3gsy593:~> whoami
> warp
>  
> Von: logback-user <logback-user-bounces at qos.ch> Im Auftrag von Jonas Gröger
> Gesendet: Montag, 13. Mai 2019 12:30
> An: logback users list <logback-user at qos.ch>
> Betreff: Re: [logback-user] No logfile when starting application from a remote host
>  
> Try the following and attach here :
>  
> namei -l /path/to/logfile
> whoami
> 
> On 13. May 2019, at 12:12, <Michael.Fankanowsky at t-systems.com> <Michael.Fankanowsky at t-systems.com> wrote:
> 
> Hi,
>  
> we are using a shell script to start/stop the application and calling this script from remote is working fine.
>  
> Best regards,
>  
> Michael Fankanowsky
>  
> Von: logback-user <logback-user-bounces at qos.ch> Im Auftrag von Ceki Gülcü
> Gesendet: Montag, 13. Mai 2019 11:55
> An: logback users list <logback-user at qos.ch>
> Betreff: Re: [logback-user] No logfile when starting application from a remote host
>  
> access right issue?
>  
> -------- Original message --------
> From: Michael.Fankanowsky at t-systems.com
> Date: 5/13/19 11:32 (GMT+01:00)
> To: logback-user at qos.ch
> Subject: [logback-user] No logfile when starting application from a remote host
>  
> Hi,
>  
> we are using logback v1.2.3 in a Springboot application which is running on Linux. When starting the application locally on the Linux host, logfile is created and application logs to it. When starting the application from a remote host via ssh then no logfile is created. When restarting the application (logfile is present and application has been logging to it) from a remote host, then no log messages will be logged to the existing logfile. It is working when restarting the application locally on the Linux host.
> Does anyone have an idea concerning this behavior?
>  
> Best regards,
>  
> Michael Fankanowsky
> _______________________________________________
> logback-user mailing list
> logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
> _______________________________________________
> logback-user mailing list
> logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
> _______________________________________________
> logback-user mailing list
> logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20190513/eb511466/attachment.html>


More information about the logback-user mailing list