Skip to content
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

Security 1.0 - Random corruption? #57

Open
jeeftor opened this issue Jan 6, 2024 · 0 comments
Open

Security 1.0 - Random corruption? #57

jeeftor opened this issue Jan 6, 2024 · 0 comments

Comments

@jeeftor
Copy link

jeeftor commented Jan 6, 2024

This is the 3rd time a specific situation has happened with my device and I'm not sure I'll be able to provide useful debugging info.

  • I start getting errors in the MQTT logs about authentication, the web interface dies. I can still ping the device but it basically stops responding to anything.

Just hard booted and nothing so I'll probably have to reflash it I'm thinking...

Connected via flash tool and here are my logs:

### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
10
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
11
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
12
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
13
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
14
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
15
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
16
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
17
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
18
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
19
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
20
### MQTT DISCONNECTED ###
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
21
### MQTT DISCONNECTED ###
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
22
;l�d��|��l�|�����$��c|������{�c��c��'o�l'o����c�p��d{${$p�o������l����#'�|�����#��o'��d��$ ����g'��d��'{���g�{s�`�p�n����;��ܜ�����c�g�|����c��'o���$`����gn��$��'{���'�{�$`��r��'�;�$`����������$`���o��l
Mounting LittleFS...
[setup.json]
JSON parsed
Storage OK, restoring WiFi and MQTT config.
Connecting to: 
THENETWORK...
Using static IP address
Set WiFi output power to: 20.50
...
WIFI CONNECTED
IP Address: 192.168.1.71
nb of attempts: 3
IMPROV������http://192.168.1.71�

WiFi connected
Local IP: 192.168.1.71
SoftAP IP: (IP unset)
Server started
Webserver ready. Open http://ratgdo.local/ in your browser
Launching webserver for improv
Starting ArduinoOTA service
doorCommandTopic: ratgdo/command/door
lightCommandTopic: ratgdo/command/light
lockCommandTopic: ratgdo/command/lock
Using security+ 1.0
Setup Complete
 _____ _____ _____ _____ ____  _____ 
| __  |  _  |_   _|   __|    \|     |
|    -|     | | | |  |  |  |  |  |  |
|__|__|__|__| |_| |_____|____/|_____|
version 2.51
IMPROV������http://192.168.1.71�
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
0
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
1
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
2
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
3
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
4
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
5
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
6
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
7
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
8
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
9
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
10
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
11
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
12
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
13
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
14
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
15
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
16
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
17
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
18
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
19
### MQTT DISCONNECTED ###
Connecting to
MQTT Broker...
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
20
### MQTT DISCONNECTED ###
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
21
### MQTT DISCONNECTED ###
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
22
### MQTT DISCONNECTED ###
MQTT Last Will Params: 
willTopic: ratgdo/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT attempts=
23

I'm seeing similar things in MQTT:

2024-01-06 10:51:29: Client ratgdo disconnected, not authorised.
2024-01-06 10:51:30: New connection from 192.168.1.71:59909 on port 1883.
2024-01-06 10:51:30: Client ratgdo disconnected, not authorised.
2024-01-06 10:51:30: New connection from 192.168.1.71:58824 on port 1883.
2024-01-06 10:51:30: Client ratgdo disconnected, not authorised.
2024-01-06 10:51:31: New connection from 192.168.1.71:58485 on port 1883.
2024-01-06 10:51:31: Client ratgdo disconnected, not authorised.
2024-01-06 10:51:31: New connection from 192.168.1.71:58659 on port 1883.
2024-01-06 10:51:31: Client ratgdo disconnected, not authorised.
2024-01-06 10:51:32: New connection from 192.168.1.71:49194 on port 1883.
2024-01-06 10:51:32: Client ratgdo disconnected, not authorised.
2024-01-06 10:51:32: New connection from 192.168.1.71:53461 on port 1883.
2024-01-06 10:51:32: Client ratgdo disconnected, not authorised.
2024-01-06 10:51:33: New connection from 192.168.1.71:59065 on port 1883.
2024-01-06 10:51:33: Client ratgdo disconnected, not authorised.
2024-01-06 10:51:34: New connection from 192.168.1.71:53540 on port 1883.
2024-01-06 10:51:34: Client ratgdo disconnected, not authorised.

Let it be known - nothing has changed in the MQTT Configuration... so I'm not sure whats happening.

The only thought I can come up with is it got into some sort of loop thats retrying so fast the webpage wont load.

After a re-flash -> same username and same password everything is peachy again...

I wonder if we get into an authentication issue over and over again whether adding some sort of back-off ... (drop to once every 5 seconds) might help things out... I've seen other IOT devices end up in a similar type of deadlock on occasion

(Also happily awaiting the ESPHome version for security 1.0:) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant