dgonano / MMM-AlexaPi

Magic Mirror module for the AlexaPi
20 stars 2 forks source link

Connection Refused Error: Alexa pi #4

Open wilburforce83 opened 7 years ago

wilburforce83 commented 7 years ago

Hi, I was wondering if you could help me with an error that I cannot work out. It has been since updated MMM-AlexaPi to the current build. I am receiving the following when I sudo systemctl status AlexaPi.service -l `● AlexaPi.service - Alexa client for all your devices Loaded: loaded (/usr/lib/systemd/system/AlexaPi.service; enabled) Active: active (running) since Thu 2017-04-13 17:06:00 BST; 22min ago Docs: https://github.com/alexa-pi/AlexaPi/wiki Main PID: 559 (python) CGroup: /system.slice/AlexaPi.service └─559 /usr/bin/python /opt/AlexaPi/src/main.py --daemon

Apr 13 17:06:46 raspberrypi python[559]: INFO: Connection OK Apr 13 17:06:46 raspberrypi python[559]: INFO: AVS token: Requesting a new one Apr 13 17:06:47 raspberrypi python[559]: INFO: AVS token: Obtained successfully Apr 13 17:06:47 raspberrypi python[559]: ERROR: URLError: [Errno 111] Connection refused Apr 13 17:06:47 raspberrypi python[559]: ERROR: URLError: [Errno 111] Connection refused Apr 13 17:06:50 raspberrypi python[559]: ERROR: URLError: [Errno 111] Connection refused Apr 13 17:06:50 raspberrypi python[559]: ERROR: URLError: [Errno 111] Connection refused Apr 13 17:06:52 raspberrypi python[559]: ERROR: URLError: [Errno 111] Connection refused Apr 13 17:06:57 raspberrypi python[559]: ERROR: URLError: [Errno 111] Connection refused Apr 13 17:07:02 raspberrypi python[559]: ERROR: URLError: [Errno 111] Connection refused `

I have been advised by the guys over on the AlexaPi gitter that this is to do with the MMM-AlexaPi module, but I can't seem to find a fix, any help would be greatly appreciated.

My "Allowed Origins" and "Allowed Return URL's" are all correct complete with /code localhost and 192.168.x.x both with port 5050

My build has worked previously so I am pretty sure it is something in the updating process?

dgonano commented 7 years ago

Looks like a configuration Issue meaning the two can't connect. Can you please post your config files for each. which port is each application running on?

wilburforce83 commented 7 years ago

Hi, thank you so much helping - where would I find the MMM-AlexaPi config? It's not in modules folder?

dgonano commented 7 years ago

sorry for the slow reply.

the config is in the standard config files for each software. config folder for the mirror and at the bottom of the AlexaPi config file

dgonano commented 7 years ago

I'm vague because it's been a while since i used it and i don't have access to it right now

mariuszkobak commented 7 years ago

@dgonano I have exactly the same problem. I've got an error every 5 seconds. I can start Alexa by wakeup word. I can get firs respone. But can't get second response. Alexa is not responding, I can see that icon is changed to 'speaker' so it looks ok but I can't hear anything.

I've noticed that when I execute Alexa for second time and I can't hear response when I go to PulseAudio settings to increase volume, Alexa playback is starting to work, I can hear the response from the very beggining.