Jump to content
  • 0

Related to AMS in private subnet on AWS.


Huy L
 Share

Question

Hi there,

I'm building AMS architect on AWS as below.
1. Create a VPC.
2. Create Subnet
3. Routing subnet to NAT Gateway.
4. Create AMS Server in a private subnet.
5. Create Application for access from outside to Ant media.
However, when I try to publish stream then error: "publishTimeoutError"

I try to open all ports in the Security Group. However, it's still an error.
In this case, AMS can't use  private subnet or I'm missing config?
Thank you
Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0
This is log I checked on origin server.


2020-08-26 11:10:54,351 [network_thread - 2300] INFO  i.a.e.adaptive.WebRTCVideoForwarder - create decoder for name:H264 and params: {level-asymmetry-allowed=1, packetization-mode=1, profile-level-id=42e01f}
2020-08-26 11:10:54,352 [network_thread - 2300] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - onIceConnectionChange CHECKING for streamId: stream1111 hash:1497796783
2020-08-26 11:10:54,353 [network_thread - 2300] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - onIceCandidate: 0:0:candidate:455059452 1 udp 2122260223 172.31.35.23 43422 typ host generation 0 ufrag TbkB network-id 1 network-cost 50::UNKNOWN stream id: stream1111
2020-08-26 11:10:54,434 [network_thread - 2300] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - onIceCandidate: 0:0:candidate:3977240104 1 udp 1686052607 54.238.67.86 3482 typ srflx raddr 172.31.35.23 rport 43422 generation 0 ufrag TbkB network-id 1 network-cost 50:stun:108.177.125.127:19302:UNKNOWN stream id: stream1111
2020-08-26 11:10:54,453 [network_thread - 2300] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - onIceCandidate: 0:0:candidate:1436310284 1 tcp 1518280447 172.31.35.23 47739 typ host tcptype passive generation 0 ufrag TbkB network-id 1 network-cost 50::UNKNOWN stream id: stream1111
2020-08-26 11:10:54,850 [audio-poller-stream1111 thread-12] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - Waiting for encoder to be ready for stream1111 hash:1497796783
2020-08-26 11:10:55,350 [audio-poller-stream1111 thread-12] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - Waiting for encoder to be ready for stream1111 hash:1497796783
2020-08-26 11:10:55,850 [audio-poller-stream1111 thread-12] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - Waiting for encoder to be ready for stream1111 hash:1497796783
2020-08-26 11:10:56,350 [audio-poller-stream1111 thread-12] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - Waiting for encoder to be ready for stream1111 hash:1497796783
2020-08-26 11:10:56,850 [audio-poller-stream1111 thread-12] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - Waiting for encoder to be ready for stream1111 hash:1497796783
2020-08-26 11:10:57,350 [audio-poller-stream1111 thread-12] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - Waiting for encoder to be ready for stream1111 hash:1497796783
2020-08-26 11:10:57,850 [audio-poller-stream1111 thread-12] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - Waiting for encoder to be ready for stream1111 hash:1497796783
2020-08-26 11:10:58,350 [audio-poller-stream1111 thread-12] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - Waiting for encoder to be ready for stream1111 hash:1497796783
2020-08-26 11:10:58,850 [audio-poller-stream1111 thread-12] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - Waiting for encoder to be ready for stream1111 hash:1497796783
2020-08-26 11:10:59,228 [vert.x-eventloop-thread-2] WARN  i.a.e.adaptive.WebRTCEncoderAdaptor - WebRTC ingest is not started. So publish timeout is firing for stream: stream1111
2020-08-26 11:10:59,229 [vert.x-eventloop-thread-2] ERROR i.a.e.w.WebRTCPublishStreamInfoListener - Publish timeout error for stream:stream1111
2020-08-26 11:10:59,229 [vert.x-eventloop-thread-2] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - entering stop() for stream1111
2020-08-26 11:10:59,229 [vert.x-eventloop-thread-1] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - running stop operations in executor for stream: stream1111 Received audio frame: 0  Processed audio frame: 0Received video frame: 0  Processed video frame: 0
2020-08-26 11:10:59,229 [vert.x-eventloop-thread-1] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - Publish Stats StreamId: stream1111 TransferedByte: 0 Stream Duration: 1598440259229 Bitrate: 0 Source IP: null User-Agent: N/A
2020-08-26 11:10:59,231 [vert.x-eventloop-thread-3] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - Encode audio runner is returning because encoder adaptor is stopped for stream1111
2020-08-26 11:10:59,231 [vert.x-eventloop-thread-1] WARN  io.antmedia.datastore.db.MongoStore - result inside edit camera: false
2020-08-26 11:10:59,232 [network_thread - 2300] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:GetPlayoutUnderrunCount
2020-08-26 11:10:59,232 [network_thread - 2300] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - onIceConnectionChange CLOSED for streamId: stream1111 hash:1497796783
2020-08-26 11:10:59,232 [network_thread - 2300] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - entering stop() for stream1111
2020-08-26 11:10:59,232 [network_thread - 2300] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - Encoder is already stopped, returning for stream1111
2020-08-26 11:10:59,233 [network_thread - 2300] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - stopping playout for stream stream1111
2020-08-26 11:10:59,233 [vert.x-worker-thread-14] INFO  i.a.e.adaptive.StreamAdaptor - Recording set to false in streamadaptor: 839117837 for stream: stream1111 stopping scheduler job id: 35
2020-08-26 11:10:59,234 [vert.x-worker-thread-14] INFO  i.a.e.adaptive.StreamAdaptor - Flushing video encoder:SFUForwarder for stream adaptor:839117837 stream id:stream1111
2020-08-26 11:10:59,234 [vert.x-worker-thread-14] INFO  i.a.e.adaptive.StreamAdaptor - Flushing audio encoder:aac for stream adaptor:839117837 stream id:stream1111
2020-08-26 11:10:59,234 [vert.x-worker-thread-14] INFO  i.a.e.adaptive.StreamAdaptor - Flushing audio encoder:libopus for stream adaptor:839117837 stream id:stream1111
2020-08-26 11:10:59,234 [vert.x-worker-thread-14] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - unregistering stream1111 muxer with 0p and codec: H264 from webrtc adaptor
2020-08-26 11:10:59,235 [vert.x-worker-thread-14] WARN  io.antmedia.muxer.HLSMuxer - HLSMuxer trailer is returning because it's not correct state. Isrunning: false, outputformatContext: org.bytedeco.javacpp.avformat$AVFormatContext[address=0x7f0f401a42c0,position=0,limit=0,capacity=0,deallocator=null]
2020-08-26 11:10:59,235 [vert.x-worker-thread-14] INFO  i.a.e.adaptive.SFUForwarder - Video codec writing trailer name: SFUForwarder height:480 for stream:stream1111
2020-08-26 11:10:59,235 [vert.x-worker-thread-14] INFO  i.a.e.adaptive.SFUForwarder - Total processing time 0 ms Average processing time 0 ms per frame for stream:stream1111
2020-08-26 11:10:59,235 [vert.x-worker-thread-14] WARN  io.antmedia.muxer.HLSMuxer - HLSMuxer trailer is returning because it's not correct state. Isrunning: false, outputformatContext: org.bytedeco.javacpp.avformat$AVFormatContext[address=0x7f0f401a42c0,position=0,limit=0,capacity=0,deallocator=null]
2020-08-26 11:10:59,235 [vert.x-worker-thread-14] INFO  i.a.enterprise.adaptive.AACEncoder - writing trailer codec name: aac bitrate:96000 for stream:stream1111
2020-08-26 11:10:59,235 [vert.x-worker-thread-14] INFO  i.a.enterprise.adaptive.OpusEncoder - writing trailer codec name: libopus bitrate:96000 for stream:stream1111
2020-08-26 11:10:59,235 [vert.x-worker-thread-14] INFO  i.a.enterprise.adaptive.OpusEncoder - Total processing time 0, Average processing time 0 ms per frame on average for stream:stream1111
2020-08-26 11:10:59,235 [vert.x-worker-thread-14] INFO  i.a.e.adaptive.StreamAdaptor - Average thread entrance interval 9ms for stream: stream1111
2020-08-26 11:10:59,235 [vert.x-worker-thread-14] INFO  i.a.e.adaptive.StreamAdaptor - Leaving streamadaptor: 839117837 for stream: stream1111
2020-08-26 11:10:59,236 [vert.x-eventloop-thread-1] INFO  i.a.e.w.WebRTCPublishStreamInfoListener - deleting zombi stream stream1111
2020-08-26 11:10:59,238 [vert.x-eventloop-thread-1] INFO  i.a.e.adaptive.WebRTCEncoderAdaptor - leaving stop() for stream1111

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...