mpower-tools icon indicating copy to clipboard operation
mpower-tools copied to clipboard

Bad output after tail -f /var/log/messages command

Open spyrito79 opened this issue 4 years ago • 2 comments

Hi magcode I was following your github guide. My first problem was your script that not worked for me. So copied and pasted manually every your single file in the folder:

mqtt/client

save reboot

After that i started mqtt with this below command:

/var/etc/persistent/mqtt/client/mqrun.sh

this output gives me back:

MF.v2.1.11# /var/etc/persistent/mqtt/client/mqrun.sh mqtt: killing old instances killall: mqsub.sh: no process killed mqtt: Using temp file /tmp/mqtmp.XXXX33WiDi mqtt: starting pub and sub scripts MF.v2.1.11# mqtt: Found 6 ports. mqtt: MQTT listening... mqtt: Publishing to 10.1.10.1 with topic homie/mFi-bedroom

in the file "/var/etc/persistent/mqtt/client/mqtt.cfg" i set the following string: mqtthost=10.1.10.10

with the ip of my mpower device itself

Now, if i do well until here ,I'm definitely blocked after this command below:

MF.v2.1.11# tail -f /var/log/messages Jan 1 14:23:34 mFi-bedroom user.err syslog: ace_reporter.reporter_fail(): initial contact failed #3, url=http://mfi:6080/inform, rc=3 Jan 1 14:24:04 mFi-bedroom user.debug syslog: ace_reporter.reporter_timedout(): Connect(http://mfi:6080/inform) has timed out Jan 1 14:24:04 mFi-bedroom user.err syslog: ace_reporter.reporter_fail(): server unreachable Jan 1 14:24:04 mFi-bedroom user.err syslog: ace_reporter.reporter_fail(): initial contact failed #4, url=http://mfi:6080/inform, rc=3 Jan 1 14:24:34 mFi-bedroom user.debug syslog: ace_reporter.reporter_timedout(): Connect(http://mfi:6080/inform) has timed out Jan 1 14:24:34 mFi-bedroom user.err syslog: ace_reporter.reporter_fail(): server unreachable Jan 1 14:24:34 mFi-bedroom user.err syslog: ace_reporter.reporter_fail(): initial contact failed #5, url=http://mfi:6080/inform, rc=3 Jan 1 14:25:04 mFi-bedroom user.debug syslog: ace_reporter.reporter_timedout(): Connect(http://mfi:6080/inform) has timed out Jan 1 14:25:04 mFi-bedroom user.err syslog: ace_reporter.reporter_fail(): server unreachable Jan 1 14:25:04 mFi-bedroom user.err syslog: ace_reporter.reporter_fail(): initial contact failed #6, url=http://mfi:6080/inform, rc=3 Jan 1 14:25:34 mFi-bedroom user.debug syslog: ace_reporter.reporter_timedout(): Connect(http://mfi:6080/inform) has timed out Jan 1 14:25:34 mFi-bedroom user.err syslog: ace_reporter.reporter_fail(): server unreachable Jan 1 14:25:34 mFi-bedroom user.err syslog: ace_reporter.reporter_fail(): initial contact failed #7, url=http://mfi:6080/inform, rc=3

Where am i doing wrong? Thanks for your eventual help spyrito79

spyrito79 avatar Feb 24 '21 14:02 spyrito79

two points

in the file "/var/etc/persistent/mqtt/client/mqtt.cfg" i set the following string: mqtthost=10.1.10.10

mqtthost must point the host ip of your MQTT Server. Not the mpower

I'm definitely blocked after this command below:

The messages you posted are "normal" and have nothing to do with this tool. You may want to read this https://github.com/magcode/mpower-tools/tree/master/nocontroller to get rid of it

magcode avatar Feb 24 '21 16:02 magcode

Thanks for your quick reply. I haven't given you all the information on my real problem and I'm sorry.

I have installed openhab 2.5.4 on Ubuntu 18.04 server and I created mqtt binding and mqtt broker by web browser but i 'm not able to get openhab to communicate with mpower pro. What are my issue?

spyrito79 avatar Feb 25 '21 20:02 spyrito79