westial / waterarmy

Embedded program to water some plants according their moisture level with an example implementation for Arduino.
GNU General Public License v3.0
2 stars 0 forks source link

Monitoring bridge fails due to a mistaken character in the message #3

Open westial opened 2 years ago

westial commented 2 years ago

Monitoring stopped unexpectedly. I went to RPi and checked the service:

Aug 04 09:56:44 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfa in position 6: invalid start byte. Decoding error
Aug 04 09:56:44 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xef in position 0: invalid continuation byte. Decoding error
Aug 04 09:56:44 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xa6 in position 1: invalid start byte. Decoding error
Aug 04 09:56:44 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xef in position 0: invalid continuation byte. Decoding error
Aug 04 09:56:44 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte. Decoding error
Aug 04 09:56:44 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xef in position 0: invalid continuation byte. Decoding error
Aug 04 09:56:44 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xa6 in position 0: invalid start byte. Decoding error
Aug 04 09:56:44 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xef in position 0: invalid continuation byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfe in position 0: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xef in position 0: invalid continuation byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xde in position 0: unexpected end of data. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xef in position 0: invalid continuation byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode bytes in position 0-1: invalid continuation byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xef in position 0: invalid continuation byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xf4 in position 1: invalid continuation byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xe4 in position 1: invalid continuation byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xa2 in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xf9 in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xd1 in position 1: invalid continuation byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfe in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xf4 in position 1: invalid continuation byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfa in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xa6 in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfa in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfd in position 0: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xff in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfe in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfd in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfd in position 6: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfd in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xff in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfd in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xd6 in position 1: invalid continuation byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfa in position 1: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfe in position 0: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xef in position 0: invalid continuation byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xfe in position 0: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xef in position 0: invalid continuation byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte. Decoding error
Aug 04 09:56:45 pikuni.local WateringPoc[12037]: Expecting property name enclosed in double quotes: line 1 column 23 (char 22). Content as {"P":1,"R":53,"M":47,#W":68}
Aug 04 10:44:34 pikuni.local systemd[1]: Stopping Watering Office Plants PoC...
Aug 04 10:44:34 pikuni.local systemd[1]: wateringpoc.service: Main process exited, code=killed, status=15/TERM
Aug 04 10:44:34 pikuni.local systemd[1]: wateringpoc.service: Succeeded.
Aug 04 10:44:34 pikuni.local systemd[1]: Stopped Watering Office Plants PoC.
Aug 04 10:44:34 pikuni.local systemd[1]: Started Watering Office Plants PoC.
westial commented 2 years ago

There are many decoding errors like that. Eventually Arduino send wrong bytes, they must be ignored. Today's monitoring error was not caused by that decoding error because they are ignored.