New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alexa can't find device when running from service. #67
Comments
Huh, haven't run into this. Can you increase the verbosity to |
Thanks for the response. I'll give this a go as soon as I get a chance, probably over the weekend. |
Okay, so I increased the verbosity to
I'm guessing I've got some permissions problems, recreating the user didn't work. I made the user using the command from the docs: |
What user are you running this command as? Does it work if you do this?
If not, you're probably correct in that you're missing some permissions for the Relevant reading:
Let me know if that fixes it. |
I haven't gotten a reply, so I'm closing this issue as dead. Please feel free to let me know if I should re-open. |
Hi, I haven't resolved the issue but I also haven't had time to investigate it further. I'm still getting round it just fine using nohup, and manually restarting the service if my RPi restarts for whatever reason. Not ideal but that happens so infrequently its not a problem. I'll eventually try out your suggestions and get back to you here. Thanks! |
Hi, I've just tried running this command, as you suggested:
This is the output I got:
Looks like a permissions error with |
Did you see this:
EDIT: For testing purposes, is there a way you can run |
Just got fauxmo setup on another project, hit the same issue, and running |
fauxmo --version
): 0.4.7My Issue
I've got FauxMo working just fine - excellent work, by the way - but only when I run the script from the command line myself, Alexa can't find the device when the script starts from a service (assuming it is starting). My knowledge (or lack thereof) on services are probably the problem here.
I have my fauxmo.service file like so:
Then I ran
sudo systemctl enable fauxmo.service
andsudo systemctl start fauxmo.service
, like the docs says, and no errors appear to be happening, however Alexa just doesn't detect anything.The output of
sudo systemctl status fauxmo.service
shows the following:Which looks good to me - the only thing that I'm not sure is right is that the time it started always says 2 or 3s ago, which should be the last time the the service was (re)started, surely?
Manually running the command that the status shows:
Starts the script just fine and Alexa can find it.
I'm currently sort-of getting round this by using nohup, but that doesn't work through reboots.
Not really sure where to go from here, any ideas?
Thanks for any help!
My config can be found in my repo, here.
WHYT
Covered above.
Please make sure you've taken these steps before submitting a new issue:
venv
-vvv
) and include relevant outputconfig.json
The text was updated successfully, but these errors were encountered: