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

Michael.Fankanowsky at t-systems.com Michael.Fankanowsky at t-systems.com
Thu May 23 15:09:36 CEST 2019


Hi,

I could solve the problem. I didn’t consider that after login via ssh on the remote host the ‘execution’ environment is the user’s home directory. But our application is in a different directory and we configured the logs to be there (we detected the logs by accident in the home directory).
Thus I had to combine two commands in ssh call with ProxyCommand – first a change directory and then the call of the start script. Now it works.
Sorry for the confusion.

Best regards,

Michael Fankanowsky

Von: logback-user <logback-user-bounces at qos.ch> Im Auftrag von Oleksandr Gavenko
Gesendet: Montag, 13. Mai 2019 15:53
An: logback users list <logback-user at qos.ch>
Betreff: Re: [logback-user] No logfile when starting application from a remote host

Spring Boot is a magic.

They probably expose some JMX endpoints but I know a way with Actuator endpoints, check in that order of importance:

curl http://localhost:8080/actuator/env
curl http://localhost:8080/actuator/loggers
curl http://localhost:8080/actuator/ configprops


On Mon, May 13, 2019 at 12:34 PM <Michael.Fankanowsky at t-systems.com<mailto:Michael.Fankanowsky at t-systems.com>> wrote:
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<mailto: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/20190523/ab0084c3/attachment.html>


More information about the logback-user mailing list