Closed TheDarkBlueEvil closed 2 years ago
Did you get this sorted? This is normally related to ports not being opened.
Chris
Hi,
thanks for the answer. It was a problem with SSL. Now it works. But I had troubles with ERROR wp forced disconnect. I think this is the point with the cron job, but I don’t know exactly what there is to do.
By the way, thanks for the plug-in, it’s great for me.
Hi,
Great.
Yes, you'll be right about the forced disconnect.
A php page will have a default timeout after which it is killed. Mqttcogs has a setting to disconnect and reconnect every n seconds. This is best done via a proper cron job as wordpress cron jobs don't work very well.
From this page http://mqttcogs.sailresults.org/get-started-with-mqttcogs/
MqttCogs sets up a scheduled event that runs every minute in WordPress. When the event fires MqttCogs checks if still connected. If not it reconnects to the Mqtt broker. However, WordPress scheduled events are a little flaky. Have a read of this article about how to properly set up wordpress cron jobs!
Chris
On 06/12/2021 16:32, TheDarkBlueEvil wrote:
Hi,
thanks for the answer. It was a problem with SSL. Now it works. But I had troubles with ERROR wp forced disconnect. I think this is the point with the cron job, but I don’t know exactly what there is to do.
By the way, thanks for the plug-in, it’s great for me.
Von meinem iPhone gesendet
Am 06.12.2021 um 17:28 schrieb ciknowles @.***>:
Did you get this sorted? This is normally related to ports not being opened.
Chris
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-986942252, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5TPI2LXHAGMWHYSMYJFVLUPTQQZANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hi,
i have read it. But no luck with it.
Maybe you have an idea?
BR
Hi,
Do you know what the timeout is for your php scripts on your server?
You need to set the Mqtt recycle setting to less than this.
Chris
On 06/12/2021 17:40, TheDarkBlueEvil wrote:
Hi,
i have read it. But no luck with it.
I have installed wordpress on a plesk inviroment.
Than deactivadet „define('DISABLE_WP_CRON', true);“ in wp-config.php
After that i habe setup the cron
Maybe you have an idea?
BR
Von: ciknowles @.> Gesendet: Montag, 6. Dezember 2021 18:22 An: ciknowles/mqtt-cogs @.> Cc: TheDarkBlueEvil @.>; State change @.> Betreff: Re: [ciknowles/mqtt-cogs] Error someotherWTFFFFFF!!!! (Issue #14)
Hi,
Great.
Yes, you'll be right about the forced disconnect.
A php page will have a default timeout after which it is killed. Mqttcogs has a setting to disconnect and reconnect every n seconds. This is best done via a proper cron job as wordpress cron jobs don't work very well.
From this page http://mqttcogs.sailresults.org/get-started-with-mqttcogs/
MqttCogs sets up a scheduled event that runs every minute in WordPress. When the event fires MqttCogs checks if still connected. If not it reconnects to the Mqtt broker. However, WordPress scheduled events are a little flaky. Have a read of this article about how to properly set up wordpress cron jobs!
Chris
On 06/12/2021 16:32, TheDarkBlueEvil wrote:
Hi,
thanks for the answer. It was a problem with SSL. Now it works. But I had troubles with ERROR wp forced disconnect. I think this is the point with the cron job, but I don’t know exactly what there is to do.
By the way, thanks for the plug-in, it’s great for me.
Von meinem iPhone gesendet
Am 06.12.2021 um 17:28 schrieb ciknowles @. <mailto:@.> >:
Did you get this sorted? This is normally related to ports not being opened.
Chris
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-986942252,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5TPI2LXHAGMWHYSMYJFVLUPTQQZANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-986987030 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBXBBRXQB5JIZH2HMOQNRTUPTWKJANCNFSM5JNDHJ7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/ATBXBBRQIVC5FPMLP3VC2NDUPTWKJA5CNFSM5JNDHJ7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHLKDUFQ.gif
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-987003104, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5TPIYT4MGJ5YJLNVNPS23UPTYR7ANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hi,
no i don´t know the timeout. But the question is, is the cron job ok is there somthing else to do…
BR Stefan
Hi Stefan,
Are you using the wordpress Cron job or did you disable it and use a server cron job?
From uk. Am a developer, use a lot of languages. Php is more of a hobby.
Chris
On 07/12/2021 15:12, TheDarkBlueEvil wrote:
Hi,
no i don´t know the timeout.
But the question is, is the cron job ok is there somthing else to do…
Other question. From where are you?
Did you work on other projects like this?
BR Stefan
Von: ciknowles @.> Gesendet: Dienstag, 7. Dezember 2021 08:14 An: ciknowles/mqtt-cogs @.> Cc: TheDarkBlueEvil @.>; State change @.> Betreff: Re: [ciknowles/mqtt-cogs] Error someotherWTFFFFFF!!!! (Issue #14)
Hi,
Do you know what the timeout is for your php scripts on your server?
You need to set the Mqtt recycle setting to less than this.
Chris
On 06/12/2021 17:40, TheDarkBlueEvil wrote:
Hi,
i have read it. But no luck with it.
I have installed wordpress on a plesk inviroment.
Than deactivadet „define('DISABLE_WP_CRON', true);“ in wp-config.php
After that i habe setup the cron
Maybe you have an idea?
BR
Von: ciknowles @. <mailto:@.> > Gesendet: Montag, 6. Dezember 2021 18:22 An: ciknowles/mqtt-cogs @. <mailto:@.> > Cc: TheDarkBlueEvil @. <mailto:@.> >; State change @. <mailto:@.> > Betreff: Re: [ciknowles/mqtt-cogs] Error someotherWTFFFFFF!!!! (Issue #14)
Hi,
Great.
Yes, you'll be right about the forced disconnect.
A php page will have a default timeout after which it is killed. Mqttcogs has a setting to disconnect and reconnect every n seconds. This is best done via a proper cron job as wordpress cron jobs don't work very well.
From this page http://mqttcogs.sailresults.org/get-started-with-mqttcogs/
MqttCogs sets up a scheduled event that runs every minute in WordPress. When the event fires MqttCogs checks if still connected. If not it reconnects to the Mqtt broker. However, WordPress scheduled events are a little flaky. Have a read of this article about how to properly set up wordpress cron jobs!
Chris
On 06/12/2021 16:32, TheDarkBlueEvil wrote:
Hi,
thanks for the answer. It was a problem with SSL. Now it works. But I had troubles with ERROR wp forced disconnect. I think this is the point with the cron job, but I don’t know exactly what there is to do.
By the way, thanks for the plug-in, it’s great for me.
Von meinem iPhone gesendet
Am 06.12.2021 um 17:28 schrieb ciknowles @. <mailto:@.> mailto:***@***.*** >:
Did you get this sorted? This is normally related to ports not being opened.
Chris
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-986942252,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5TPI2LXHAGMWHYSMYJFVLUPTQQZANCNFSM5JNDHJ7A.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email%20%0b
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> &mt=8&pt=524675>
or Android <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android%20%0b <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-986987030 , or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATBXBBRXQB5JIZH2HMOQNRTUPTWKJANCNFSM5JNDHJ7A
. Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-987003104,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5TPIYT4MGJ5YJLNVNPS23UPTYR7ANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-987634111 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBXBBR6UEG2POX7VBG27E3UPWX5BANCNFSM5JNDHJ7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/ATBXBBWVH3AQBHPRBIVCAS3UPWX5BA5CNFSM5JNDHJ7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHLPBTPY.gif
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-988017331, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5TPI7WSVEWXJPTCUIOJD3UPYP6LANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hi,
i do exactly this:
Ha,
I am getting this error "ERROR wp forced disconnect" now.
Why because CloudMqtt have shut down their free 'Cute Cat' tier mqtt service. Will have to find another.
Chris
On 07/12/2021 15:18, TheDarkBlueEvil wrote:
Hi,
i do exactly this:
I have installed wordpress on a plesk inviroment.
Than deactivadet the cron job in Wordpres --> „define('DISABLE_WP_CRON', true);“ at wp-config.php
After that i setup the cron in Plesk like this:
BR
Von: ciknowles @.> Gesendet: Dienstag, 7. Dezember 2021 16:15 An: ciknowles/mqtt-cogs @.> Cc: TheDarkBlueEvil @.>; State change @.> Betreff: Re: [ciknowles/mqtt-cogs] Error someotherWTFFFFFF!!!! (Issue #14)
Hi Stefan,
Are you using the wordpress Cron job or did you disable it and use a server cron job?
From uk. Am a developer, use a lot of languages. Php is more of a hobby.
Chris
On 07/12/2021 15:12, TheDarkBlueEvil wrote:
Hi,
no i don´t know the timeout.
But the question is, is the cron job ok is there somthing else to do…
Other question. From where are you?
Did you work on other projects like this?
BR Stefan
Von: ciknowles @. <mailto:@.> > Gesendet: Dienstag, 7. Dezember 2021 08:14 An: ciknowles/mqtt-cogs @. <mailto:@.> > Cc: TheDarkBlueEvil @. <mailto:@.> >; State change @. <mailto:@.> > Betreff: Re: [ciknowles/mqtt-cogs] Error someotherWTFFFFFF!!!! (Issue #14)
Hi,
Do you know what the timeout is for your php scripts on your server?
You need to set the Mqtt recycle setting to less than this.
Chris
On 06/12/2021 17:40, TheDarkBlueEvil wrote:
Hi,
i have read it. But no luck with it.
I have installed wordpress on a plesk inviroment.
Than deactivadet „define('DISABLE_WP_CRON', true);“ in wp-config.php
After that i habe setup the cron
Maybe you have an idea?
BR
Von: ciknowles @. <mailto:@.> mailto:***@***.*** > Gesendet: Montag, 6. Dezember 2021 18:22 An: ciknowles/mqtt-cogs @. <mailto:@.> mailto:***@***.*** > Cc: TheDarkBlueEvil @. <mailto:@.> mailto:***@***.*** >; State change @. <mailto:@.> mailto:***@***.*** > Betreff: Re: [ciknowles/mqtt-cogs] Error someotherWTFFFFFF!!!! (Issue #14)
Hi,
Great.
Yes, you'll be right about the forced disconnect.
A php page will have a default timeout after which it is killed. Mqttcogs has a setting to disconnect and reconnect every n seconds. This is best done via a proper cron job as wordpress cron jobs don't work very well.
From this page http://mqttcogs.sailresults.org/get-started-with-mqttcogs/
MqttCogs sets up a scheduled event that runs every minute in WordPress. When the event fires MqttCogs checks if still connected. If not it reconnects to the Mqtt broker. However, WordPress scheduled events are a little flaky. Have a read of this article about how to properly set up wordpress cron jobs!
Chris
On 06/12/2021 16:32, TheDarkBlueEvil wrote:
Hi,
thanks for the answer. It was a problem with SSL. Now it works. But I had troubles with ERROR wp forced disconnect. I think this is the point with the cron job, but I don’t know exactly what there is to do.
By the way, thanks for the plug-in, it’s great for me.
Von meinem iPhone gesendet
Am 06.12.2021 um 17:28 schrieb ciknowles @. <mailto:@.> mailto:***@***.*** mailto:***@***.*** >:
Did you get this sorted? This is normally related to ports not being opened.
Chris
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-986942252,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5TPI2LXHAGMWHYSMYJFVLUPTQQZANCNFSM5JNDHJ7A.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email%20%0b
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email%20%0b
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email%20%0b
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> &mt=8&pt=524675>
&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android%20%0b https://play.google.com/store/apps/details?id=com.github.android%20%0b <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android%20%0b <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-986987030
, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATBXBBRXQB5JIZH2HMOQNRTUPTWKJANCNFSM5JNDHJ7A
. Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email%20%0b
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> &mt=8&pt=524675>
or Android <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android%20%0b <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-987003104,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5TPIYT4MGJ5YJLNVNPS23UPTYR7ANCNFSM5JNDHJ7A.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email%20%0b
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> &mt=8&pt=524675>
or Android <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android%20%0b <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-987634111 , or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATBXBBR6UEG2POX7VBG27E3UPWX5BANCNFSM5JNDHJ7A
. Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-988017331,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5TPI7WSVEWXJPTCUIOJD3UPYP6LANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-988020085 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBXBBVY5MLVXDV2NI4DGKTUPYQI5ANCNFSM5JNDHJ7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/ATBXBBSU5NFESOKWPCXHI7LUPYQI5A5CNFSM5JNDHJ7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHLR725I.gif
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-988023313, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5TPIYGXXEA5T67QS7NOLLUPYQVXANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I have set the MQTT Connection Recycle to „280“
Now that is my log:
Hi,
What MQTT broker are you using?
Have you checked that you can access it from your wordpress server?
C
On 06/12/2021 17:40, TheDarkBlueEvil wrote:
Hi,
i have read it. But no luck with it.
I have installed wordpress on a plesk inviroment.
Than deactivadet „define('DISABLE_WP_CRON', true);“ in wp-config.php
After that i habe setup the cron
Maybe you have an idea?
BR
Von: ciknowles @.> Gesendet: Montag, 6. Dezember 2021 18:22 An: ciknowles/mqtt-cogs @.> Cc: TheDarkBlueEvil @.>; State change @.> Betreff: Re: [ciknowles/mqtt-cogs] Error someotherWTFFFFFF!!!! (Issue #14)
Hi,
Great.
Yes, you'll be right about the forced disconnect.
A php page will have a default timeout after which it is killed. Mqttcogs has a setting to disconnect and reconnect every n seconds. This is best done via a proper cron job as wordpress cron jobs don't work very well.
From this page http://mqttcogs.sailresults.org/get-started-with-mqttcogs/
MqttCogs sets up a scheduled event that runs every minute in WordPress. When the event fires MqttCogs checks if still connected. If not it reconnects to the Mqtt broker. However, WordPress scheduled events are a little flaky. Have a read of this article about how to properly set up wordpress cron jobs!
Chris
On 06/12/2021 16:32, TheDarkBlueEvil wrote:
Hi,
thanks for the answer. It was a problem with SSL. Now it works. But I had troubles with ERROR wp forced disconnect. I think this is the point with the cron job, but I don’t know exactly what there is to do.
By the way, thanks for the plug-in, it’s great for me.
Von meinem iPhone gesendet
Am 06.12.2021 um 17:28 schrieb ciknowles @. <mailto:@.> >:
Did you get this sorted? This is normally related to ports not being opened.
Chris
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-986942252,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5TPI2LXHAGMWHYSMYJFVLUPTQQZANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-986987030 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBXBBRXQB5JIZH2HMOQNRTUPTWKJANCNFSM5JNDHJ7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/ATBXBBRQIVC5FPMLP3VC2NDUPTWKJA5CNFSM5JNDHJ7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHLKDUFQ.gif
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-987003104, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5TPIYT4MGJ5YJLNVNPS23UPTYR7ANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hi,
i´m using Mosquitto and yes, i can connect and get values from it into my wordpress. It looks like only the cronjob won´t work. Because every 280sec (what i have set in the MQTT Cogs Settings) i get the „ERROR wp forced disconnect“
BR Stefan
Hi,
Try setting it to 58secs. Then enable/disable the plugin and see if that helps.
Chris
On 08/12/2021 06:27, TheDarkBlueEvil wrote:
Hi,
i´m using Mosquitto and yes, i can connect and get values from it into my wordpress.
It looks like only the cronjob won´t work. Because every 280sec (what i have set in the MQTT Cogs Settings) i get the „ERROR wp forced disconnect“
BR Stefan
Von: ciknowles @.> Gesendet: Mittwoch, 8. Dezember 2021 06:29 An: ciknowles/mqtt-cogs @.> Cc: TheDarkBlueEvil @.>; State change @.> Betreff: Re: [ciknowles/mqtt-cogs] Error someotherWTFFFFFF!!!! (Issue #14)
Hi,
What MQTT broker are you using?
Have you checked that you can access it from your wordpress server?
C
On 06/12/2021 17:40, TheDarkBlueEvil wrote:
Hi,
i have read it. But no luck with it.
I have installed wordpress on a plesk inviroment.
Than deactivadet „define('DISABLE_WP_CRON', true);“ in wp-config.php
After that i habe setup the cron
Maybe you have an idea?
BR
Von: ciknowles @. <mailto:@.> > Gesendet: Montag, 6. Dezember 2021 18:22 An: ciknowles/mqtt-cogs @. <mailto:@.> > Cc: TheDarkBlueEvil @. <mailto:@.> >; State change @. <mailto:@.> > Betreff: Re: [ciknowles/mqtt-cogs] Error someotherWTFFFFFF!!!! (Issue #14)
Hi,
Great.
Yes, you'll be right about the forced disconnect.
A php page will have a default timeout after which it is killed. Mqttcogs has a setting to disconnect and reconnect every n seconds. This is best done via a proper cron job as wordpress cron jobs don't work very well.
From this page http://mqttcogs.sailresults.org/get-started-with-mqttcogs/
MqttCogs sets up a scheduled event that runs every minute in WordPress. When the event fires MqttCogs checks if still connected. If not it reconnects to the Mqtt broker. However, WordPress scheduled events are a little flaky. Have a read of this article about how to properly set up wordpress cron jobs!
Chris
On 06/12/2021 16:32, TheDarkBlueEvil wrote:
Hi,
thanks for the answer. It was a problem with SSL. Now it works. But I had troubles with ERROR wp forced disconnect. I think this is the point with the cron job, but I don’t know exactly what there is to do.
By the way, thanks for the plug-in, it’s great for me.
Von meinem iPhone gesendet
Am 06.12.2021 um 17:28 schrieb ciknowles @. <mailto:@.> mailto:***@***.*** >:
Did you get this sorted? This is normally related to ports not being opened.
Chris
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-986942252,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5TPI2LXHAGMWHYSMYJFVLUPTQQZANCNFSM5JNDHJ7A.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email%20%0b
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> &mt=8&pt=524675>
or Android <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android%20%0b <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-986987030 , or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATBXBBRXQB5JIZH2HMOQNRTUPTWKJANCNFSM5JNDHJ7A
. Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub
https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-987003104,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5TPIYT4MGJ5YJLNVNPS23UPTYR7ANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 &mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub &referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-988512088 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBXBBX2KL6UNFDHU3HUVJLUP3UILANCNFSM5JNDHJ7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/ATBXBBQOQVANSFPZE7PPKHDUP3UILA5CNFSM5JNDHJ7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHLVX6WA.gif
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-988536698, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5TPIYKSQJVAGNB26BJR6LUP33FTANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hi,
it gets worse when i do so. There is 58secs: There is 280sec:
Hi,
Can you send me the last 100 lines or so of your debug log and I'll look at what is going on.
(make sure you blank any sensitive stuff if you are posting to github)
The debug you've already sent is being removed by github - can't tell much from that.
Chris
Hi,
here are the last 100 entrys from MQTT Log (MQTT Debug --> ALL)
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
---|---|
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 09:42:40 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638952960, last_ping_time=1638952833, keepalive=60 |
But values are transmitting
Ok,
So it is failing because it is not getting the expected response after a ping.
What protocol does your mqtt broker use?
In fact, if you tell me what broker you are using I could try it.
Chris
mosquitto version 2.0.14
What do you have your protocol set to in the mqttcogs settings?
try 3_1_1
Chris
On 08/12/2021 09:18, TheDarkBlueEvil wrote:
mosquitto version 2.0.14
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-988634704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5TPI7ZKLVHYMDHTGRETUDUP4PFBANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
ok actually i tried this before. I changed it again.
The log now shows the following
Wed Dec 08 2021 10:51:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG loop(): received PINGRESP Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638957121, last_ping_time=1638957091, keepalive=60 Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG socket_read(2) Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG message_read(): message_type=PINGRESP, flags=0 Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG message_read(): remaining length=0, data to read=0 Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG loop(): received PINGRESP Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG checking Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG somethingLock is not acqiured Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638957151, last_ping_time=1638957121, keepalive=60 Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG socket_read(2) Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG message_read(): message_type=PINGRESP, flags=0 Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG message_read(): remaining length=0, data to read=0 Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG loop(): received PINGRESP Wed Dec 08 2021 10:52:34 GMT+0100 (Mitteleuropäische Normalzeit) | Wed Dec 08 2021 10:52:35 GMT+0100 (Mitteleuropäische Normalzeit)
Now working I think.
C
On 08/12/2021 09:56, TheDarkBlueEvil wrote:
ok actually i tried this before. I changed it again.
The log now shows the following
Wed Dec 08 2021 10:51:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG loop(): received PINGRESP Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638957121, last_ping_time=1638957091, keepalive=60 Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG socket_read(2) Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG message_read(): message_type=PINGRESP, flags=0 Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG message_read(): remaining length=0, data to read=0 Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG loop(): received PINGRESP Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG checking Wed Dec 08 2021 10:52:01 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG somethingLock is not acqiured Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638957151, last_ping_time=1638957121, keepalive=60 Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG socket_read(2) Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG message_read(): message_type=PINGRESP, flags=0 Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG message_read(): remaining length=0, data to read=0 Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | Wed Dec 08 2021 10:52:31 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG loop(): received PINGRESP Wed Dec 08 2021 10:52:34 GMT+0100 (Mitteleuropäische Normalzeit) | Wed Dec 08 2021 10:52:35 GMT+0100 (Mitteleuropäische Normalzeit)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ciknowles/mqtt-cogs/issues/14#issuecomment-988662728, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5TPI7GVC4SSY5J24EP4B3UP4TTXANCNFSM5JNDHJ7A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I think so. Thanks for your time.
BR
After some time (nothing change) my log looks like this:
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
---|---|
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638982538, last_ping_time=1638982383, keepalive=60 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638982538, last_ping_time=1638982383, keepalive=60 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638982538, last_ping_time=1638982383, keepalive=60 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638982538, last_ping_time=1638982383, keepalive=60 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638982538, last_ping_time=1638982383, keepalive=60 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638982538, last_ping_time=1638982383, keepalive=60 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | NOTICE loop(): Connection lost. |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG keepalive(): current_time=1638982538, last_ping_time=1638982383, keepalive=60 |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG ping() |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message write: message_type=PINGREQ |
Wed Dec 08 2021 17:55:38 GMT+0100 (Mitteleuropäische Normalzeit) | DEBUG Message Build: total length=2 |
Apart from all the datetimes being the same (this is odd). This looks normal. Trying turning off Debug level logging (your log will get big very quickly) and check it is working as expected.
I get this error in de Mqtt Cogs log.
In SQL it shows the follow:
ERROR array ( 'type' => 8, 'message' => 'fwrite(): send of 2 bytes failed with errno=32 Broken pipe', 'file' => '/var/www/vhosts/agrarnet.at/httpdocs/wp-content/plugins/mqtt-cogs-master/sskaje/mqtt/SocketClient.php', 'line' => 166, )
I don´t know exactly where is the issue..