-
Notifications
You must be signed in to change notification settings - Fork 607
Failed to connect to AVS #306
Comments
Hi yxzb, What platform are you running this on Mac/Ubuntu/Pi ? |
Hi jjamazon, The platform is ubuntu,and the SDK version is v1.2.0. config file is below:
|
Hi yxzb, Looks like your Openssl does not meet minimum requirement 2017-11-06 04:40:02.036 [ 1] W HTTP2Transport:OpenSSL minimum version requirement failed!:version=OpenSSL/1.0.1f,required=1.0.2 Take a look at the minimum requirements link below. |
Hi jjamazon, I hava installed the latest OpenSSL,and the log is below: `alexa@alexa-server:~/jqzhang/amazon/out/SampleApp/src$ TZ=UTC ./SampleApp ../../Integration/AlexaClientSDKConfig.json DEBUG9 Connecting...############################# 2017-11-13 03:01:11.355 [ 6] 9 SpeakerManager:provideStateCalled Client not connected!##################################### 2017-11-13 03:01:31.360 [ b] 0 HTTP2StreamPool:releaseStream:streamId=1,numAcquiredStreams=0 Thank you very much! |
Hi yxzb, Looking at that log, I can see that you have DEBUG9 logs enabled, but there is no obvious trigger for why the connection attempt failed. The logs shows a very quick failure. I would have expect to see some logs from the connection attempt, and probably some logs from retrying to connect. This leads me to ask: Have you customized SampleApp or DefaultClient in some way? It is a long shot, since I do not see any logs showing ACL attempting to connect, but you can get even more complete logs if you build with the cmake command line option
That will spit out the libcurl logs, which may show more detail about the attempt to connect to AVS. If you do try out this switch, be aware that the logs may include sensitive data, so you should be sure to redact anything you don't want to share before posting such logs. Thank you, |
Hi scotthea-amazon, I hava not customized SampleApp or DefaultClient. I hava just built with the cmake command line option : -DACSDK_EMIT_SENSITIVE_LOGS=ON and the log is below: `alexa@alexa-server:~/jqzhang/amazon/out/SampleApp/src$ TZ=UTC ./SampleApp ../../Integration/AlexaClientSDKConfig.json DEBUG9 Connecting...############################# 2017-11-14 02:30:29.302 [ 3] 1 AlertsCapabilityAgent:executeOnConnectionStatusChanged:status=PENDING,reason=ACL_CLIENT_REQUEST Client not connected!##################################### 2017-11-14 02:30:49.397 [ b] I HTTP2Stream:libcurl:streamId=5,text=stopped the pause stream! Thank you very much! |
Hello yxzb, Even in your latest log, after you upgraded OpenSSL, the log shows that the SDK has been linked with an incompatible version of OpenSSL:
It looks like you need to update your configuration or entice CMake into to finding the newer version of OpenSSL on your system. Regards, |
I have met the same problem. When I upgraded the version of openssl, the fail message "It looks like you need to update your configuration or entice CMake into to finding the newer version of OpenSSL on your system." Thanks! |
when i try to run the SampleApp,it reports that 'Failed to connect to AVS'
And the log is below:
`alexa@alexa-server:~/jqzhang/amazon/out/SampleApp/src$ TZ=UTC ./SampleApp /home/alexa/jqzhang/amazon/out/Integration/AlexaClientSDKConfig.json DEBUG9
Running app with log level: DEBUG9
2017-11-06 04:40:00.318 [ 1] I ConfigurationNode:initializeSuccess
2017-11-06 04:40:00.321 [ 1] 9 MediaPlayer:createCalled
2017-11-06 04:40:00.351 [ 1] 9 MediaPlayer:createCalled
2017-11-06 04:40:00.351 [ 1] 9 MediaPlayer:createCalled
2017-11-06 04:40:00.356 [ 1] 9 MediaPlayer:setObserverCalled
2017-11-06 04:40:00.356 [ 2] 0 MediaPlayer:handleSetObserverCalled
2017-11-06 04:40:00.357 [ 1] 9 SpeechSynthesizer:addObserver:observer=0x14c0a40
2017-11-06 04:40:00.357 [ 1] 9 MediaPlayer:setObserverCalled
2017-11-06 04:40:00.357 [ 2] 0 MediaPlayer:handleSetObserverCalled
2017-11-06 04:40:00.357 [ 1] 9 MediaPlayer:setObserverCalled
2017-11-06 04:40:00.357 [ 2] 0 MediaPlayer:handleSetObserverCalled
2017-11-06 04:40:00.358 [ 1] 9 AlertScheduler:setTimerForNextAlertLocked
2017-11-06 04:40:00.358 [ 1] I AlertScheduler:executeScheduleNextAlertForRendering::no work to do.
2017-11-06 04:40:00.358 [ 3] 1 AlertsCapabilityAgent:executeOnConnectionStatusChanged:status=DISCONNECTED,reason=ACL_CLIENT_REQUEST
2017-11-06 04:40:00.359 [ 1] 9 MediaPlayer:getSpeakerTypeCalled
2017-11-06 04:40:00.360 [ 1] 9 MediaPlayer:getSpeakerTypeCalled
2017-11-06 04:40:00.360 [ 1] 9 MediaPlayer:getSpeakerTypeCalled
2017-11-06 04:40:00.360 [ 1] 0 SpeakerManager:mapCreated:numAvsSynced=2,numLocal=1
2017-11-06 04:40:00.360 [ 1] 1 AudioPlayer:addObserver
2017-11-06 04:40:00.360 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechSynthesizer,name=Speak,handler=0x14e5e30,policy=BLOCKING
2017-11-06 04:40:00.360 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=ClearQueue,handler=0x14e68e0,policy=NON_BLOCKING
2017-11-06 04:40:00.360 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Stop,handler=0x14e68e0,policy=NON_BLOCKING
2017-11-06 04:40:00.360 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Play,handler=0x14e68e0,policy=NON_BLOCKING
2017-11-06 04:40:00.360 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=ExpectSpeech,handler=0x14e4dd0,policy=NON_BLOCKING
2017-11-06 04:40:00.360 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=StopCapture,handler=0x14e4dd0,policy=NON_BLOCKING
2017-11-06 04:40:00.361 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=DeleteAlert,handler=0x14e7990,policy=NON_BLOCKING
2017-11-06 04:40:00.361 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=SetAlert,handler=0x14e7990,policy=NON_BLOCKING
2017-11-06 04:40:00.361 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=SetEndpoint,handler=0x1557bf0,policy=NON_BLOCKING
2017-11-06 04:40:00.361 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=ResetUserInactivity,handler=0x14e49e8,policy=NON_BLOCKING
2017-11-06 04:40:00.361 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=SetMute,handler=0x1556730,policy=NON_BLOCKING
2017-11-06 04:40:00.361 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=AdjustVolume,handler=0x1556730,policy=NON_BLOCKING
2017-11-06 04:40:00.361 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=SetVolume,handler=0x1556730,policy=NON_BLOCKING
2017-11-06 04:40:00.361 [ 1] 9 TemplateRuntime:getConfiguration
2017-11-06 04:40:00.361 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=TemplateRuntime,name=RenderPlayerInfo,handler=0x15570a0,policy=NON_BLOCKING
2017-11-06 04:40:00.361 [ 1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=TemplateRuntime,name=RenderTemplate,handler=0x15570a0,policy=NON_BLOCKING
2017-11-06 04:40:02.036 [ 4] 0 HttpPost:doPostSucceeded:code=200
2017-11-06 04:40:02.036 [ 4] 0 AuthDelegate:handleLwaResponseSucceeded:expiresInSeconds=3600
2017-11-06 04:40:02.036 [ 4] 0 AuthDelegate:onAuthStateChangeCalled:state=1,error=0
2017-11-06 04:40:02.036 [ 1] 0 MessageRouter:connectionStatusChanged:reason=ACL_CLIENT_REQUEST,newStatus=PENDING
2017-11-06 04:40:02.036 [ 1] W HTTP2Transport:OpenSSL minimum version requirement failed!:version=OpenSSL/1.0.1f,required=1.0.2
2017-11-06 04:40:02.037 [ 1] 0 HTTP2StreamPool:getStream:streamId=1,numAcquiredStreams=1
2017-11-06 04:40:02.037 [ 5] 9 PostConnectSynchronize:Entering postConnectLoop thread
#############################
Connecting...
#############################
2017-11-06 04:40:02.038 [ 6] 9 SpeakerManager:provideStateCalled
2017-11-06 04:40:02.038 [ 6] 0 AudioPlayer:provideState:stateRequestToken=1
2017-11-06 04:40:02.038 [ 3] 1 AlertsCapabilityAgent:executeOnConnectionStatusChanged:status=PENDING,reason=ACL_CLIENT_REQUEST
2017-11-06 04:40:02.038 [ 6] 9 SpeechSynthesizer:provideState:token=1
2017-11-06 04:40:02.038 [ 7] 9 SpeakerManager:executeProvideStateCalled
2017-11-06 04:40:02.038 [ 7] 9 MediaPlayer:getSpeakerSettingsCalled
2017-11-06 04:40:02.038 [ 8] 0 AudioPlayer:executeProvideState:sendToken=true,stateRequestToken=1
2017-11-06 04:40:02.038 [ 2] 9 MediaPlayer:handleGetSpeakerSettingsCalled
2017-11-06 04:40:02.038 [ 8] 0 ContextManager:updateStateLocked:action=updatedState,state={"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"},namespace=AudioPlayer,name=PlaybackState
2017-11-06 04:40:02.038 [ 7] 9 MediaPlayer:getSpeakerSettingsCalled
2017-11-06 04:40:02.038 [ 2] 9 MediaPlayer:handleGetSpeakerSettingsCalled
2017-11-06 04:40:02.038 [ 9] 0 SpeechSynthesizer:executeProvideState:stateRequestToken=1
2017-11-06 04:40:02.038 [ 7] 9 SpeakerManager:validateSpeakerSettingsConsistencyResult:consistent=true
2017-11-06 04:40:02.039 [ 7] 9 SpeakerManager:validateSpeakerSettings:volume=100,mute=false
2017-11-06 04:40:02.038 [ a] 0 ContextManager:updateStateLocked:action=updatedState,state={"wakeword" : ""},namespace=SpeechRecognizer,name=RecognizerState
2017-11-06 04:40:02.039 [ 9] 0 ContextManager:updateStateLocked:action=updatedState,state={"token":"","offsetInMilliseconds":0,"playerActivity":"FINISHED"},namespace=SpeechSynthesizer,name=SpeechState
2017-11-06 04:40:02.039 [ 7] 0 ContextManager:updateStateLocked:action=updatedState,state={"volume":100,"muted":false},namespace=Speaker,name=VolumeState
2017-11-06 04:40:02.039 [ 6] 0 ContextManager:buildContextSuccessful:context={"context":[{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":false}},{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":""}}]}
2017-11-06 04:40:02.040 [ 6] 0 EventBuilder:buildJsonEventString:messageId=66b794d1-a959-4685-a0da-435ed0a345e5,namespace=System,name=SynchronizeState
2017-11-06 04:40:02.040 [ 6] 0 PostConnectSynchronize:onContextAvailable : Send PostConnectMessage to transport
2017-11-06 04:40:02.040 [ 6] 9 HTTP2Transport:enqueueRequest
2017-11-06 04:40:05.509 [ b] 0 HTTP2StreamPool:releaseStream:streamId=1,numAcquiredStreams=0
2017-11-06 04:40:05.509 [ b] 0 HTTP2StreamPool:getStream:streamId=3,numAcquiredStreams=1
2017-11-06 04:40:05.510 [ b] E HTTP2Transport:networkLoopRetryingToConnect:reason=establishConnectionFailed,retryCount=0,retryBackoff=322
2017-11-06 04:40:07.230 [ b] 0 HTTP2StreamPool:releaseStream:streamId=3,numAcquiredStreams=0
2017-11-06 04:40:07.231 [ b] 0 HTTP2StreamPool:getStream:streamId=5,numAcquiredStreams=1
2017-11-06 04:40:07.231 [ b] E HTTP2Transport:networkLoopRetryingToConnect:reason=establishConnectionFailed,retryCount=1,retryBackoff=1307
2017-11-06 04:40:10.544 [ b] 0 HTTP2StreamPool:releaseStream:streamId=5,numAcquiredStreams=0
2017-11-06 04:40:10.544 [ b] 0 HTTP2StreamPool:getStream:streamId=7,numAcquiredStreams=1
2017-11-06 04:40:10.544 [ b] E HTTP2Transport:networkLoopRetryingToConnect:reason=establishConnectionFailed,retryCount=2,retryBackoff=4324
2017-11-06 04:40:16.242 [ b] 0 HTTP2StreamPool:releaseStream:streamId=7,numAcquiredStreams=0
2017-11-06 04:40:16.243 [ b] 0 HTTP2StreamPool:getStream:streamId=9,numAcquiredStreams=1
2017-11-06 04:40:16.243 [ b] E HTTP2Transport:networkLoopRetryingToConnect:reason=establishConnectionFailed,retryCount=3,retryBackoff=6955
Failed to connect to AVS!
2017-11-06 04:40:22.038 [ 1] I DirectiveSequencer:doShutdown
2017-11-06 04:40:22.038 [ 1] 9 TemplateRuntime:getConfiguration
2017-11-06 04:40:22.038 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=TemplateRuntime,name=RenderPlayerInfo,handler=0x15570a0,policy=NON_BLOCKING
2017-11-06 04:40:22.038 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=TemplateRuntime,name=RenderTemplate,handler=0x15570a0,policy=NON_BLOCKING
2017-11-06 04:40:22.038 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Speaker,name=SetMute,handler=0x1556730,policy=NON_BLOCKING
2017-11-06 04:40:22.038 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Speaker,name=AdjustVolume,handler=0x1556730,policy=NON_BLOCKING
2017-11-06 04:40:22.038 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Speaker,name=SetVolume,handler=0x1556730,policy=NON_BLOCKING
2017-11-06 04:40:22.038 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alerts,name=DeleteAlert,handler=0x14e7990,policy=NON_BLOCKING
2017-11-06 04:40:22.038 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alerts,name=SetAlert,handler=0x14e7990,policy=NON_BLOCKING
2017-11-06 04:40:22.038 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=System,name=SetEndpoint,handler=0x1557bf0,policy=NON_BLOCKING
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=SpeechSynthesizer,name=Speak,handler=0x14e5e30,policy=BLOCKING
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=AudioPlayer,name=ClearQueue,handler=0x14e68e0,policy=NON_BLOCKING
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=AudioPlayer,name=Stop,handler=0x14e68e0,policy=NON_BLOCKING
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=AudioPlayer,name=Play,handler=0x14e68e0,policy=NON_BLOCKING
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=SpeechRecognizer,name=ExpectSpeech,handler=0x14e4dd0,policy=NON_BLOCKING
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=SpeechRecognizer,name=StopCapture,handler=0x14e4dd0,policy=NON_BLOCKING
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=System,name=ResetUserInactivity,handler=0x14e49e8,policy=NON_BLOCKING
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:onDeregisteredCalled:handler=0x15570a0
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:onDeregisteredCalled:handler=0x1556730
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:onDeregisteredCalled:handler=0x14e7990
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:onDeregisteredCalled:handler=0x1557bf0
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:onDeregisteredCalled:handler=0x14e5e30
2017-11-06 04:40:22.039 [ 1] 9 SpeechSynthesizer:onDeregistered
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:onDeregisteredCalled:handler=0x14e68e0
2017-11-06 04:40:22.039 [ 1] 0 AudioPlayer:onDeregistered
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:onDeregisteredCalled:handler=0x14e4dd0
2017-11-06 04:40:22.039 [ 8] 1 AudioPlayer:executeStop:playNextItem=false,m_currentActivity=IDLE
2017-11-06 04:40:22.039 [ 1] I DirectiveRouter:onDeregisteredCalled:handler=0x14e49e8
2017-11-06 04:40:22.039 [ 1] 0 ContextManager:setStateProvider:action=removedStateProvider,namespace=Speaker,name=VolumeState
2017-11-06 04:40:22.040 [ 1] 1 AudioPlayer:removeObserver
2017-11-06 04:40:22.040 [ 1] 1 AudioPlayer:executeStop:playNextItem=false,m_currentActivity=IDLE
2017-11-06 04:40:22.040 [ 1] 9 MediaPlayer:setObserverCalled
2017-11-06 04:40:22.040 [ 2] 0 MediaPlayer:handleSetObserverCalled
2017-11-06 04:40:22.040 [ 1] 0 ContextManager:setStateProvider:action=removedStateProvider,namespace=AudioPlayer,name=PlaybackState
2017-11-06 04:40:22.040 [ 1] 9 SpeechSynthesizer:doShutdown
2017-11-06 04:40:22.040 [ 1] 9 MediaPlayer:setObserverCalled
2017-11-06 04:40:22.040 [ 2] 0 MediaPlayer:handleSetObserverCalled
2017-11-06 04:40:22.041 [ 1] 9 AlertsCapabilityAgent:releaseChannel
2017-11-06 04:40:22.041 [ 1] 0 MessageRouter:connectionStatusChanged:reason=ACL_CLIENT_REQUEST,newStatus=DISCONNECTED
2017-11-06 04:40:22.041 [ 1] 0 PostConnectSynchronize:PostConnectSynchronizer::doShutdown().
#####################################
Client not connected!
#####################################
2017-11-06 04:40:22.041 [ 5] 9 PostConnectSynchronize:Exiting postConnectLoop thread
2017-11-06 04:40:22.041 [ b] 0 HTTP2StreamPool:releaseStream:streamId=9,numAcquiredStreams=0
2017-11-06 04:40:22.041 [ b] 0 HTTP2StreamPool:getStream:streamId=11,numAcquiredStreams=1
2017-11-06 04:40:22.041 [ b] 0 HTTP2StreamPool:releaseStream:streamId=11,numAcquiredStreams=0
2017-11-06 04:40:22.043 [ b] 0 PostConnectSynchronize:onSendCompleted:status=NOT_CONNECTED
2017-11-06 04:40:22.044 [ c] I CertifiedSender:CertifiedSender worker thread done. exiting mainloop.
2017-11-06 04:40:22.047 [ 1] 9 MediaPlayer:~MediaPlayerCalled
2017-11-06 04:40:22.047 [ 1] 9 MediaPlayer:resetPipeline
2017-11-06 04:40:22.048 [ 1] 9 MediaPlayer:~MediaPlayerCalled
2017-11-06 04:40:22.048 [ 1] 9 MediaPlayer:resetPipeline
Failed to initialize SampleApplication
Failed to create to SampleApplication!
`
Has anyone encountered the same problem and how to solve it?
The text was updated successfully, but these errors were encountered: