Page 1 of 1
help with Webserver plugins
Posted: Sun Aug 20, 2017 11:48 am
by scottsams
I am having issues with my webserver plugin and cannot figure out what is going on. this usually occurs after a reboot - which i have to do often. usually a second reboot fixes the issue. i am on windows 10. i have reinstalled plugin, reinstalled EG as well to no avail. can you help? any info you need, let me know. it happens on all my webserver events.
HTTP.ST.Kitchen Motion Sensor.motion.active []
Send Event ST.Kitchen Motion Sensor.motion.active
Webserver: Send event to another EventGhost: ST.Kitchen Motion Sensor.motion.active
Error in Action: "Webserver: Send event to another EventGhost: ST.Kitchen Motion Sensor.motion.active"
Traceback (most recent call last) (0.5.0-rc4):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 116, in CallWrapper
return self(*args)
File "C:\Program Files (x86)\EventGhost\plugins\Webserver\__init__.py", line 4141, in __call__
Request("TriggerEnduringEvent", event)
File "C:\Program Files (x86)\EventGhost\plugins\Webserver\__init__.py", line 4127, in Request
sock.send("\r\n".join(data))
AttributeError: 'NoneType' object has no attribute 'send'
Re: help with Webserver plugins
Posted: Mon Aug 21, 2017 3:04 am
by kgschlosser
you do not get an error from the webserver plugin when EG starts up?
Re: help with Webserver plugins
Posted: Mon Aug 21, 2017 12:15 pm
by scottsams
here is log at startup
only error is Persistent values:
---> Welcome to EventGhost <---
Autostart
Plugin: Webserver
Persistent values: {}
Plugin: SchedulGhost
Plugin: Scheduler
Plugin started
System.Monitor.On
HTTP.Started 'Webserver started as unsecured (http://) on port 2112'
Main.OnInit
Main.OnInitAfterBoot
System.PowerSource.Line
System.PowerSaving.Off
System.PowerProfile.Balanced
System.Idle
System.Monitor.Dim
System.Monitor.Off
HTTP.ST.Kitchen Motion Sensor.motion.active []
Send Event ST.Kitchen Motion Sensor.motion.active
Webserver: Send event to another EventGhost: ST.Kitchen Motion Sensor.motion.active
Error in Action: "Webserver: Send event to another EventGhost: ST.Kitchen Motion Sensor.motion.active"
Traceback (most recent call last) (0.5.0-rc4):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 116, in CallWrapper
return self(*args)
File "C:\Program Files (x86)\EventGhost\plugins\Webserver\__init__.py", line 4141, in __call__
Request("TriggerEnduringEvent", event)
File "C:\Program Files (x86)\EventGhost\plugins\Webserver\__init__.py", line 4127, in Request
sock.send("\r\n".join(data))
AttributeError: 'NoneType' object has no attribute 'send'
Re: help with Webserver plugins
Posted: Tue Aug 22, 2017 11:50 am
by scottsams
nobody?
Re: help with Webserver plugins
Posted: Wed Aug 23, 2017 11:32 am
by scottsams
anyone?
Re: help with Webserver plugins
Posted: Wed Aug 23, 2017 5:57 pm
by yokel22
Let me see if i can't help you out here. Just an FYI, if you post your questions to the plugin thread your referring(in this case the webserver plugin here:
http://eventghost.net/forum/viewtopic.php?f=9&t=1663). You will likely get a quicker response from someone that has more intimate knowledge on your query.
Okay, so first question. How do you have the webserver's action config setup?
Re: help with Webserver plugins
Posted: Thu Aug 24, 2017 12:20 am
by scottsams
thanks. i can post there. did not realize it was there. not exactly sure what you are asking though.
Re: help with Webserver plugins
Posted: Thu Aug 24, 2017 12:51 am
by yokel22
I mean, what does your configuration for the webserver action "Send Event to another EventGhost" look like. I'm able to replicate the error when i set mine up like this.
If i send it with a direct ip:port like this, it works properly for me.
Re: help with Webserver plugins
Posted: Thu Aug 24, 2017 1:05 am
by scottsams
Here is mine
Re: help with Webserver plugins
Posted: Thu Aug 24, 2017 1:32 am
by yokel22
Just for clarification here. What your saying is that these actions will work for a while after reboot. Then sometime later you start to get this error until you reboot again?
It seems like this is the error that get's thrown when it can't find the host it's trying to send the event to. So is the ip:port your trying to send active when the errors begin?
Re: help with Webserver plugins
Posted: Thu Aug 24, 2017 11:24 pm
by scottsams
Thanks Yokel,
you nailed it. for some reason it can no longer communicate with the other server which is on a different network. not sure what happened. routing is there so i will dig into it.
thanks again!
Re: help with Webserver plugins
Posted: Fri Aug 25, 2017 8:34 am
by yokel22
Good, glad I could help narrow it down.
Re: help with Webserver plugins
Posted: Fri Aug 25, 2017 12:31 pm
by scottsams
turns out i had deleted my ip reservation for my gateway into that network and dhcp server gave out a new ip. working as expected now. not sure what was going on with the intermittent issue originally.
Re: help with Webserver plugins
Posted: Fri Aug 25, 2017 2:15 pm
by kgschlosser
hey thanks yokel for helping get to the bottom of this one. Great work!. And I am happy that the problem is sorted for you scottsams. Even if the issue is not EG related we will try and help sort the problem.