Wowza Community

Missing x-app in ERROR log

Hi,

As i have hundreds of streams - i need to have a deep knowledge about errors happening. I want to split the by application name. I added x-app in serverError but this field is empty in logs.

Example:

-	-	ERROR	server	comment	2015-09-26	18:52:36	-	-	-	-	-	574.171	-	-	-	-	-	-	-	-	MediaCasterConnection.connect: Failed to connect[x.x.x.x] : org.apache.mina.common.RuntimeIOException: Failed to get the session[java.net.NoRouteToHostException: No route to host].|at org.apache.mina.common.support.DefaultConnectFuture.getSession(DefaultConnectFuture.java:76)|at com.wowza.wms.mediacaster.MediaCasterConnection.connect(MediaCasterConnection.java:70)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasicRTSPWorker.doConnect(RTPSessionDescriptionDataProviderBasicRTSPWorker.java:2074)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:336)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:206)|
-	-	ERROR	server	comment	2015-09-26	18:52:36	-	-	-	-	-	574.309	-	-	-	-	-	-	-	-	MediaCasterConnection.connect: Failed to connect[x.x.x.x] : org.apache.mina.common.RuntimeIOException: Failed to get the session[java.net.NoRouteToHostException: No route to host].|at org.apache.mina.common.support.DefaultConnectFuture.getSession(DefaultConnectFuture.java:76)|at com.wowza.wms.mediacaster.MediaCasterConnection.connect(MediaCasterConnection.java:70)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasicRTSPWorker.doConnect(RTPSessionDescriptionDataProviderBasicRTSPWorker.java:2074)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:336)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:206)|
-	-	ERROR	server	comment	2015-09-26	18:52:37	-	-	-	-	-	575.244	-	-	-	-	-	-	-	-	MediaCasterConnection.connect: Failed to connect[x.x.x.x] : org.apache.mina.common.RuntimeIOException: Failed to get the session[java.net.NoRouteToHostException: No route to host].|at org.apache.mina.common.support.DefaultConnectFuture.getSession(DefaultConnectFuture.java:76)|at com.wowza.wms.mediacaster.MediaCasterConnection.connect(MediaCasterConnection.java:70)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasicRTSPWorker.doConnect(RTPSessionDescriptionDataProviderBasicRTSPWorker.java:2074)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:336)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:206)|
-	-	ERROR	server	comment	2015-09-26	18:52:38	-	-	-	-	-	576.115	-	-	-	-	-	-	-	-	MediaCasterConnection.connect: Failed to connect[x.x.x.x] : org.apache.mina.common.RuntimeIOException: Failed to get the session[java.net.NoRouteToHostException: No route to host].|at org.apache.mina.common.support.DefaultConnectFuture.getSession(DefaultConnectFuture.java:76)|at com.wowza.wms.mediacaster.MediaCasterConnection.connect(MediaCasterConnection.java:70)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasicRTSPWorker.doConnect(RTPSessionDescriptionDataProviderBasicRTSPWorker.java:2074)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:336)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:206)|
-	-	ERROR	server	comment	2015-09-26	18:52:39	-	-	-	-	-	576.795	-	-	-	-	-	-	-	-	MediaCasterConnection.connect: Failed to connect[x.x.x.x] : org.apache.mina.common.RuntimeIOException: Failed to get the session[ConnectException: null].|at org.apache.mina.common.support.DefaultConnectFuture.getSession(DefaultConnectFuture.java:71)|at com.wowza.wms.mediacaster.MediaCasterConnection.connect(MediaCasterConnection.java:70)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasicRTSPWorker.doConnect(RTPSessionDescriptionDataProviderBasicRTSPWorker.java:2074)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:336)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:206)|
-	-	ERROR	server	comment	2015-09-26	18:52:39	-	-	-	-	-	576.795	-	-	-	-	-	-	-	-	MediaCasterConnection.connect: Failed to connect[x.x.x.x] : org.apache.mina.common.RuntimeIOException: Failed to get the session[java.net.NoRouteToHostException: No route to host].|at org.apache.mina.common.support.DefaultConnectFuture.getSession(DefaultConnectFuture.java:76)|at com.wowza.wms.mediacaster.MediaCasterConnection.connect(MediaCasterConnection.java:70)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasicRTSPWorker.doConnect(RTPSessionDescriptionDataProviderBasicRTSPWorker.java:2074)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:336)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:206)|

How to catch them to binded application? What am i doing wrong?

Did you restart Wowza? That is necessary after changes to log4j.properties file.

Salvadore

Of course i did. I work with Wowza since 1.6 version :slight_smile: I tried everything - x-app is not showing and identifing problem in logs with incomming RTSP streams is problematic because i dont know which app is involved in error.

This is what happens:

- - - INFO server comment - MPEGDashWriterHandler.createChunkM4S[kamera/_definst_/kamera.stream]: Add chunk: id:2 type:m4s_mux a/v/k:0/180/2 duration:8048
- - - INFO server comment - MPEGDashWriterHandler.createChunkM4S[kamera/_definst_/kamera.stream]: Add chunk: id:2 type:m4s_video v/k:180/2 duration:8048
- - - INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.doConnect: rtsp://xxxxx
- - - ERROR server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.doConnect: Connect org.apache.mina.common.RuntimeIOException: Failed to get the session[ConnectException: Connection refused].
- - - WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming. Cannot connect to server: rtsp://xxxxxx
^C- - - INFO server comment - ServerShutdownHook.run[shutdown]
- - - INFO server comment - MediaCache[MediaCache]: Stop
- - - INFO server comment - Wowza REST API stopped
- - - INFO server comment - Wowza REST Documentation Server has been stopped
- - - INFO server comment - StatsManager:stopManager() stopped
- - - INFO vhost vhost-stop _defaultVHost_ -
- - - INFO application app-stop _definst_ kamera/_definst_
- - - INFO server comment - RTPMediaCaster.shutdown[1057073002:kamera/_definst_:kamera.stream]: kamera.stream
- - - INFO server comment - RTPMediaCaster.disconnect[1057073002:kamera/_definst_:kamera.stream]
- - - INFO server comment - RTPMediaCaster.closeRTPSession[1057073002:kamera/_definst_:kamera.stream]
- - - INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.close closeSession
- - - INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
- - - INFO server comment - RTPSessionTracker.remove[rtsp://xxxxxx]: 0:true
kamera.stream _definst_ kamera INFO stream unpublish kamera.stream -
- _definst_ kamera INFO server comment - MediaCasterStreamValidator.removeMonitor[kamera/_definst_/kamera.stream]
kamera.stream _definst_ kamera INFO stream destroy kamera.stream -
- _definst_ kamera INFO server comment - MediaStreamMap.removeLiveStreamPacketizer[kamera/_definst_/kamera.stream]: Destroy live stream packetizer: cupertinostreamingpacketizer
- _definst_ kamera INFO server comment - MediaStreamMap.removeLiveStreamPacketizer[kamera/_definst_/kamera.stream]: Destroy live stream packetizer: smoothstreamingpacketizer
- _definst_ kamera INFO server comment - MediaStreamMap.removeLiveStreamPacketizer[kamera/_definst_/kamera.stream]: Destroy live stream packetizer: sanjosestreamingpacketizer
- _definst_ kamera INFO server comment - MediaStreamMap.removeLiveStreamPacketizer[kamera/_definst_/kamera.stream]: Destroy live stream packetizer: mpegdashstreamingpacketizer
- _definst_ kamera INFO server comment - DvrStreamManagerBase.shutdown[kamera/_definst_/kamera.stream]
- _definst_ kamera INFO server comment - DvrStreamManagerBase.removeStreamStore[kamera/_definst_/kamera.stream] : stream:{DvrStreamStoreBase streamName:kamera.stream.0 isLoaded:true canPlay:true canRecord:true hasEncryption:false isLive:true isRecording:true isRecordingPaused:false props:{Properties: isDvrPacketizer: true}].
- _definst_ kamera INFO server comment - LiveStreamDvrRecorderBase.shutdown[kamera/_definst_/kamera.stream]
- _definst_ kamera INFO server comment - MediaStreamMap.removeLiveStreamPacketizer[kamera/_definst_/kamera.stream]: Destroy live stream packetizer: dvrstreamingpacketizer
- _definst_ kamera INFO application app-stop _definst_ lublin/_definst_
- _definst_ kamera INFO server comment - RTPMediaCaster.shutdown[842759659:lublin/_definst_:lublin.stream]: lublin.stream
- _definst_ kamera INFO server comment - RTPMediaCaster.disconnect[842759659:lublin/_definst_:lublin.stream]
- _definst_ kamera INFO server comment - RTPMediaCaster.closeRTPSession[842759659:lublin/_definst_:lublin.stream]
- _definst_ kamera INFO server comment - onAppStop: lublin/_definst_

Log config for Console Appender:

# Console appender
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=com.wowza.wms.logging.ECLFPatternLayout
log4j.appender.stdout.layout.Fields=x-sname,x-appinst,x-app,x-severity,x-category,x-event,x-ctx,x-comment
log4j.appender.stdout.layout.OutputHeader=false
log4j.appender.stdout.layout.QuoteFields=false
log4j.appender.stdout.layout.Delimeter=space

When i hit CTRL+C to stop Wowza - the fields are showing. Why?

Placing a original log4 props file and adding x-app to file produces also a “-” sing in place of x-app field.

Is this a bug?

Hello,

From what i can see you are putting the x-app field in the Console Appender section when you should have this field in the Access or Error appender section as it is in the default lgo4j.properties file.

Can you explain why you are placing this filed in the Console Appender section of the log4j.properties file?

Regards,

Jason Hatchett