Closed Ilovegym66 closed 3 years ago
This error happends when the Proxy Certificate is not correctly setup or enabled OR a wron App version is used
app verion 3.12.6, proxy.. here I found this fault: `
smartmeter.0 | 2021-03-30 23:48:35.660 | info | (23635) Received 7 values, 3 updated |
---|---|---|---|
tuya.0 | 2021-03-30 23:48:35.556 | info | (3875) Listen for encrypted local Tuya devices on port 6667 |
tuya.0 | 2021-03-30 23:48:35.556 | info | (3875) Listen for local Tuya devices on port 6666 |
tuya.0 | 2021-03-30 23:48:35.553 | info | (3875) Existing devices initialized |
tuya.0 | 2021-03-30 23:48:35.552 | info | (3875) 037071752462ab4bdced Init with IP=192.168.7.28, Key=8e99c65cc9094f9a, Version=3.3 |
tuya.0 | 2021-03-30 23:48:35.543 | info | (3875) 0020097260019455f173 Init with IP=192.168.7.27, Key=292937b7be903f69, Version=3.1 |
tuya.0 | 2021-03-30 23:48:35.542 | info | (3875) 05047501d8f15be05792 Init with IP=192.168.7.31, Key=582f11ae9a89ef76, Version=3.3 |
tuya.0 | 2021-03-30 23:48:35.535 | info | (3875) 80270017bcddc2379ee4 Init with IP=192.168.2.203, Key=4caf51baf99c2b4e, Version=3.3 |
tuya.0 | 2021-03-30 23:48:35.521 | info | (3875) 012002512c3ae844f84b Init with IP=192.168.2.204, Key=fa40afabd793ba3b, Version=3.1 |
tuya.0 | 2021-03-30 23:48:35.520 | info | (3875) bf72e9be420184d658hjd0 Init with IP=192.168.10.101, Key=011fad449177a791, Version=3.3 |
tuya.0 | 2021-03-30 23:48:35.517 | info | (3875) 184558222462ab5366ef Init with IP=192.168.7.23, Key=f1c8377151a9d793, Version=3.3 |
tuya.0 | 2021-03-30 23:48:34.716 | info | (3875) starting. Version 3.5.9 in /opt/iobroker/node_modules/iobroker.tuya, node: v14.16.0, js-controller: 3.2.16 |
tuya.0 | 2021-03-30 23:48:28.582 | info | (54877) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason |
tuya.0 | 2021-03-30 23:48:28.579 | info | (54877) terminating |
tuya.0 | 2021-03-30 23:48:25.569 | info | (54877) Got terminate signal TERMINATE_YOURSELF |
tuya.0 | 2021-03-30 23:48:06.148 | error | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) |
tuya.0 | 2021-03-30 23:48:06.148 | error | (54877) Error: connect ECONNREFUSED 192.168.3.41:8801 |
tuya.0 | 2021-03-30 23:48:06.146 | error | (54877) SSL-Proxy ERROR: Error: connect ECONNREFUSED 192.168.3.41:8801 |
tuya.0 | 2021-03-30 23:47:32.586 | error | at processTicksAndRejections (internal/process/task_queues.js:75:11) |
tuya.0 | 2021-03-30 23:47:32.586 | error | at net.js:1009:9 |
tuya.0 | 2021-03-30 23:47:32.586 | error | at defaultTriggerAsyncIdScope (internal/async_hooks.js:430:12) |
tuya.0 | 2021-03-30 23:47:32.586 | error | at internalConnect (net.js:921:16) |
tuya.0 | 2021-03-30 23:47:32.586 | error | (54877) Error: connect EADDRNOTAVAIL 192.168.3.41:8801 - Local (192.168.3.41:0) |
tuya.0 | 2021-03-30 23:47:32.583 | error | (54877) SSL-Proxy ERROR: Error: connect EADDRNOTAVAIL 192.168.3.41:8801 - Local (192.168.3.41:0) |
tuya.0 | 2021-03-30 23:45:18.924 | error | at processTicksAndRejections (internal/process/task_queues.js:75:11) |
tuya.0 | 2021-03-30 23:45:18.924 | error | at net.js:1009:9 |
tuya.0 | 2021-03-30 23:45:18.924 | error | at defaultTriggerAsyncIdScope (internal/async_hooks.js:430:12) |
tuya.0 | 2021-03-30 23:45:18.924 | error | at internalConnect (net.js:921:16) |
tuya.0 | 2021-03-30 23:45:18.924 | error | (54877) Error: connect EADDRNOTAVAIL 192.168.3.41:8801 - Local (192.168.3.41:0) |
tuya.0 | 2021-03-30 23:45:18.923 | error | (54877) SSL-Proxy ERROR: Error: connect EADDRNOTAVAIL 192.168.3.41:8801 - Local (192.168.3.41:0) |
tuya.0 | 2021-03-30 23:43:58.404 | info | (54877) SSL-Proxy ready to receive requests |
tuya.0 | 2021-03-30 23:43:55.602 | error | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) |
tuya.0 | 2021-03-30 23:43:55.602 | error | (54877) Error: connect ECONNREFUSED 192.168.3.41:8801 |
tuya.0 | 2021-03-30 23:43:55.598 | error | (54877) SSL-Proxy ERROR: Error: connect ECONNREFUSED 192.168.3.41:8801 |
tuya.0 | 2021-03-30 23:42:35.184 | info | (54877) SSL-Proxy ready to receive requests |
tuya.0 | 2021-03-30 23:42:31.316 | error | at TCP. |
tuya.0 | 2021-03-30 23:42:31.316 | error | at Socket.EventEmitter.emit (domain.js:467:12) |
tuya.0 | 2021-03-30 23:42:31.316 | error | at Socket.emit (events.js:327:22) |
tuya.0 | 2021-03-30 23:42:31.316 | error | at Socket.socketCloseListener (_http_client.js:443:25) |
tuya.0 | 2021-03-30 23:42:31.316 | error | at connResetException (internal/errors.js:607:14) |
tuya.0 | 2021-03-30 23:42:31.316 | error | (54877) Error: socket hang up |
tuya.0 | 2021-03-30 23:42:31.310 | error | (54877) SSL-Proxy ERROR: Error: socket hang up |
tuya.0 | 2021-03-30 23:42:26.249 | error | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) |
tuya.0 | 2021-03-30 23:42:26.249 | error | (54877) Error: connect ECONNRESET 192.168.3.41:8801 |
tuya.0 | 2021-03-30 23:42:26.246 | error | (54877) SSL-Proxy ERROR: Error: connect ECONNRESET 192.168.3.41:8801 |
tuya.0 | 2021-03-30 23:41:49.077 | info | (54877) SSL-Proxy ready to receive requests |
tuya.0 | 2021-03-30 23:39:16.535 | info | (54877) Listen for encrypted local Tuya devices on port 6667 |
tuya.0 | 2021-03-30 23:39:16.535 | info | (54877) Listen for local Tuya devices on port 6666 |
tuya.0 | 2021-03-30 23:39:16.527 | info | (54877) Existing devices initialized |
tuya.0 | 2021-03-30 23:39:16.526 | info | (54877) 80270017bcddc2379ee4 Init with IP=192.168.2.203, Key=4caf51baf99c2b4e, Version=3.3 |
tuya.0 | 2021-03-30 23:39:16.519 | info | (54877) 012002512c3ae844f84b Init with IP=192.168.2.204, Key=fa40afabd793ba3b, Version=3.1 |
tuya.0 | 2021-03-30 23:39:16.518 | info | (54877) bf72e9be420184d658hjd0 Init with IP=192.168.10.101, Key=011fad449177a791, Version=3.3 |
tuya.0 | 2021-03-30 23:39:16.500 | info | (54877) 037071752462ab4bdced Init with IP=192.168.7.28, Key=8e99c65cc9094f9a, Version=3.3 |
tuya.0 | 2021-03-30 23:39:16.497 | info | (54877) 184558222462ab5366ef Init with IP=192.168.7.23, Key=f1c8377151a9d793, Version=3.3 |
tuya.0 | 2021-03-30 23:39:16.487 | info | (54877) 0020097260019455f173 Init with IP=192.168.7.27, Key=292937b7be903f69, Version=3.1 |
tuya.0 | 2021-03-30 23:39:16.480 | info | (54877) 05047501d8f15be05792 Init with IP=192.168.7.31, Key=582f11ae9a89ef76, Version=3.3 |
tuya.0 | 2021-03-30 23:39:15.815 | info | (54877) starting. Version 3.5.9 in /opt/iobroker/node_modules/iobroker.tuya, node: v14.16.0, js-controller: 3.2.16 |
tuya.0 | 2021-03-30 23:39:09.724 | info | (39492) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason |
tuya.0 | 2021-03-30 23:39:09.721 | info | (39492) terminating |
tuya.0 | 2021-03-30 23:39:06.711 | info | (39492) Got terminate signal TERMINATE_YOURSELF |
tuya.0 | 2021-03-30 23:38:47.331 | error | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) |
tuya.0 | 2021-03-30 23:38:47.331 | error | (39492) Error: connect ECONNREFUSED 192.168.3.41:8888 |
tuya.0 | 2021-03-30 23:38:47.330 | error | (39492) SSL-Proxy ERROR: Error: connect ECONNREFUSED 192.168.3.41:8888 |
tuya.0 | 2021-03-30 23:38:46.314 | error | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) |
tuya.0 | 2021-03-30 23:38:46.314 | error | (39492) Error: connect ECONNRESET 192.168.3.41:8888 |
tuya.0 | 2021-03-30 23:38:46.313 | error | (39492) SSL-Proxy ERROR: Error: connect ECONNRESET 192.168.3.41:8888 |
tuya.0 | 2021-03-30 23:37:43.581 | error | at processTicksAndRejections (internal/process/task_queues.js:75:11) |
tuya.0 | 2021-03-30 23:37:43.581 | error | at net.js:1009:9 |
tuya.0 | 2021-03-30 23:37:43.581 | error | at defaultTriggerAsyncIdScope (internal/async_hooks.js:430:12) |
tuya.0 | 2021-03-30 23:37:43.581 | error | at internalConnect (net.js:921:16) |
tuya.0 | 2021-03-30 23:37:43.581 | error | (39492) Error: connect EADDRNOTAVAIL 192.168.3.41:8888 - Local (192.168.3.41:0) |
tuya.0 | 2021-03-30 23:37:43.578 | error | (39492) SSL-Proxy ERROR: Error: connect EADDRNOTAVAIL 192.168.3.41:8888 - Local (192.168.3.41:0) |
tuya.0 | 2021-03-30 23:36:20.050 | info | (39492) SSL-Proxy ready to receive requests |
`
what fault you mean? This log just states that the proxy gets some requests to hosts he can not connect to e.g. 192.168.3.41 on port 8888 or 8801
that's the problem.. I tested other ports, and everytime the same.. in the past I use 8010 and 8012 and this works fine. Last test was in february, as I assigned the doorbell. Now I have a air purifier and it doesn t work any more. I test the hole night.. Mysterios is, that I can only download the certificate via qr-code, with http://iobroker-io:8012/ca.pem ( or other ports, but I see the download link after using the qr-code ) it dont work. I installed another instance on a second iobroker-slave, and the same effect was happened...
I'll reboot now the complete system... make tests yesterday in the late night.. hopefully its a fault on my system.. but pff.. I had never problems with this adapter and the proxy.. I use the smartlife-app 3.12.6 .. but if the proxy not work, its clear, that this is not the problem.
It seems that you already activated the the ssl proxy before even installing the certificate AND it seems that your host can not connect to himself on the other port ... maybe a network issue? or docker and missing port forwards or such?
Ideally install certificate FIRST and THEN enable the proxy.
Nothing was changed in that regard since veeery long time
hmpff I've tested every thing.. no chance.. than I take another new smartphone Samsung S20 complete resetted to factory defaults, installed the certi and the smartlife app 3.12.6. Same Error: 2021-03-31 18:41:05.605 - error: tuya.0 (58997) Error: 140049830627200:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 46 I have the feeling, that something with the creation of the Certificate is not okay.. can this be..?? I make now a try with a older tablet with Android 7 or 8.. and give feedback. Have you a chance to test the actual function?
yes try older androids ... see readme .. I got reports that some newer andreoid versions do not allow self signed root CAs at all to be registered ... so success was mostly with androdi simulators. Thats why I like iOS ... straight forward, the same in all versions ;-)))
Yeah, well done... but don't ask, what a nighmare.. I must go back to Android 5 in the Emulator, with 7 it s not possible any more, too.. looks like google update after installation asap the policys... I found the correct pdf docu in the folder /opt/iobroker/node_modules/iobroker.tuya, can you make a link to this from the Adapter, please..? The Link there dont work or take me to the github page, and there are other docus..
Hi, I need to add a device, and I can't.. I've done this a lot of times with different smartphones and I'm sure it's not on my site.. :-) I tested it with different ports, same results. Here the debug, if I start the smartlife-app at my phone: