lokalna supla-cloud brak zarejestrowanych urządzeń

sxatster
Posty: 25
Rejestracja: pt sty 27, 2023 8:15 am

Cześć,

mam problem:
postawiłem supla-cloud, podłączyłem supla-server (wygląda że jest działająca komunikacja via IPC)
urządzenia się rejestrują w supla-server - ale nie pojawiają sie w supla-cloud w sekcji urządzeń..

ponawiałem rejestrację kilka razy - widać że urządzenia wysyłają komunikat clientSD ale nie wiem jak zweryfikować przyczynę problemu - bo logi w tym zakresie są puste.. mogę prosić o wskazówki jak zweryfikować przyczynę?
Awatar użytkownika
pzygmunt
Posty: 18281
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Sprawdź w urządzeniach LAST STATE
sxatster
Posty: 25
Rejestracja: pt sty 27, 2023 8:15 am

last state mam
wifi connecting..
sterownik to supla SRW-01

w sieci lokalnej otrzymał adres ip 192.168.13.115, mogę do niego pingować - odpowiada,
dioda na sterowniku wolno miga

na consoli z supla-server otrzymuje:
INFO[11:00:06.118854] Connection accepted: 192.168.13.115:6231 ClientSD: 17 Secure: 1
Awatar użytkownika
pzygmunt
Posty: 18281
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Sprawdź czy w logach nie ma jakiś błędów.
sxatster
Posty: 25
Rejestracja: pt sty 27, 2023 8:15 am

logi są czyste.. -
zbudowałem też wersję debug supla-server ale też nic to nie wniosło nowego..


root@dom:/var/www/supla-cloud-docker/var/logs# cat php_error.log

root@dom:/var/www/supla-cloud-docker/var/logs# cat prod-2023-02-06.log

root@dom:/var/www/supla-cloud-docker/var/logs# cat supla-server-2023-02-06.log

na konsoli od rana tylko

"INFO[13:14:04.918620] Connection accepted: 192.168.13.113:21222 ClientSD: 17 Secure: 1
INFO[13:14:06.694934] Connection accepted: 192.168.13.115:47422 ClientSD: 16 Secure: 1
INFO[13:14:07.652613] Connection accepted: 192.168.13.114:40089 ClientSD: 17 Secure: 1
INFO[13:14:13.718064] Connection accepted: 192.168.13.115:21090 ClientSD: 16 Secure: 1
INFO[13:14:13.971067] Connection accepted: 192.168.13.113:43347 ClientSD: 17 Secure: 1
INFO[13:14:14.676360] Connection accepted: 192.168.13.114:43988 ClientSD: 16 Secure: 1
INFO[13:14:20.739936] Connection accepted: 192.168.13.115:29792 ClientSD: 17 Secure: 1
INFO[13:14:20.991244] Connection accepted: 192.168.13.113:8982 ClientSD: 16 Secure: 1
INFO[13:14:21.699435] Connection accepted: 192.168.13.114:28038 ClientSD: 17 Secure: 1
INFO[13:14:27.762680] Connection accepted: 192.168.13.115:22973 ClientSD: 16 Secure: 1
INFO[13:14:28.722438] Connection accepted: 192.168.13.114:42992 ClientSD: 17 Secure: 1
INFO[13:14:31.988153] Connection accepted: 192.168.13.113:34544 ClientSD: 16 Secure: 1
INFO[13:14:34.785957] Connection accepted: 192.168.13.115:4765 ClientSD: 17 Secure: 1
INFO[13:14:35.744993] Connection accepted: 192.168.13.114:16475 ClientSD: 16 Secure: 1
INFO[13:14:41.009441] Connection accepted: 192.168.13.113:14949 ClientSD: 17 Secure: 1
INFO[13:14:41.810948] Connection accepted: 192.168.13.115:1436 ClientSD: 16 Secure: 1
INFO[13:14:42.766562] Connection accepted: 192.168.13.114:4586 ClientSD: 17 Secure: 1
INFO[13:14:48.032268] Connection accepted: 192.168.13.113:41141 ClientSD: 16 Secure: 1
INFO[13:14:48.834062] Connection accepted: 192.168.13.115:48986 ClientSD: 17 Secure: 1
INFO[13:14:49.790677] Connection accepted: 192.168.13.114:4750 ClientSD: 16 Secure: 1
INFO[13:14:55.057751] Connection accepted: 192.168.13.113:33893 ClientSD: 17 Secure: 1
INFO[13:14:55.857608] Connection accepted: 192.168.13.115:17117 ClientSD: 16 Secure: 1
INFO[13:14:56.813957] Connection accepted: 192.168.13.114:32187 ClientSD: 17 Secure: 1
INFO[13:15:02.081475] Connection accepted: 192.168.13.113:9605 ClientSD: 16 Secure: 1
INFO[13:15:02.883397] Connection accepted: 192.168.13.115:1260 ClientSD: 17 Secure: 1
INFO[13:15:03.836923] Connection accepted: 192.168.13.114:21306 ClientSD: 16 Secure: 1
INFO[13:15:09.104147] Connection accepted: 192.168.13.113:33152 ClientSD: 17 Secure: 1
INFO[13:15:09.906254] Connection accepted: 192.168.13.115:7662 ClientSD: 16 Secure: 1
INFO[13:15:10.861490] Connection accepted: 192.168.13.114:30149 ClientSD: 17 Secure: 1
INFO[13:15:16.798083] Connection accepted: 192.168.13.114:49107 ClientSD: 16 Secure: 1
INFO[13:15:16.930159] Connection accepted: 192.168.13.115:3924 ClientSD: 18 Secure: 1
"
czyli te 3 urządzonka które są skonfigurowane i więcej nic się nie dzieje
sxatster
Posty: 25
Rejestracja: pt sty 27, 2023 8:15 am

mam przypuszczenia że urządzenia nie dogadują się z kodowaniem SSL między serwerem a "urządzeniem" - czyżby inny protokół kodowania SSL (nowe wersje SSL dużo zostało pogaszonych rozwiązań)
żeby to potwierdzić nie mogę obecnie zgasić SSL po stronie serwera - bo nic nie działa.. :/
sxatster
Posty: 25
Rejestracja: pt sty 27, 2023 8:15 am

mam soft 2.7.2 - i tez sie nie da podlaczyc do Waszego clouda
Awatar użytkownika
pzygmunt
Posty: 18281
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Z tych logów wynika, że urządzenie nie mogą się dogadać z serwerem na poziomie ssl-a. Użyj
https://ftp.openbsd.org/pub/OpenBSD/Lib ... 6.2.tar.gz
sxatster
Posty: 25
Rejestracja: pt sty 27, 2023 8:15 am

/usr/bin/ld: ./src/sslcrypto.o: in function `sslcrypto_init':
sslcrypto.c:(.text+0x2d0): undefined reference to `SSL_library_init'
/usr/bin/ld: sslcrypto.c:(.text+0x2d4): undefined reference to `SSL_load_error_strings'
/usr/bin/ld: sslcrypto.c:(.text+0x2f0): undefined reference to `CRYPTO_num_locks'
/usr/bin/ld: sslcrypto.c:(.text+0x330): undefined reference to `CRYPTO_num_locks'
/usr/bin/ld: sslcrypto.c:(.text+0x344): undefined reference to `CRYPTO_set_locking_callback'
/usr/bin/ld: sslcrypto.c:(.text+0x350): undefined reference to `CRYPTO_set_id_callback'
/usr/bin/ld: sslcrypto.c:(.text+0x35c): undefined reference to `CRYPTO_set_dynlock_create_callback'
/usr/bin/ld: sslcrypto.c:(.text+0x368): undefined reference to `CRYPTO_set_dynlock_lock_callback'
/usr/bin/ld: sslcrypto.c:(.text+0x3a0): undefined reference to `CRYPTO_set_dynlock_destroy_callback'
/usr/bin/ld: ./src/sslcrypto.o: in function `sslcrypto_free':
sslcrypto.c:(.text+0x444): undefined reference to `CRYPTO_set_dynlock_create_callback'
/usr/bin/ld: sslcrypto.c:(.text+0x44c): undefined reference to `CRYPTO_set_dynlock_lock_callback'
/usr/bin/ld: sslcrypto.c:(.text+0x454): undefined reference to `CRYPTO_set_dynlock_destroy_callback'
/usr/bin/ld: sslcrypto.c:(.text+0x460): undefined reference to `CRYPTO_set_locking_callback'
/usr/bin/ld: sslcrypto.c:(.text+0x468): undefined reference to `CRYPTO_set_id_callback'
/usr/bin/ld: sslcrypto.c:(.text+0x488): undefined reference to `CRYPTO_num_locks'
/usr/bin/ld: ./src/supla-socket.o: in function `ssocket_initserverctx':
supla-socket.c:(.text+0xa8): undefined reference to `OPENSSL_add_all_algorithms_noconf'
/usr/bin/ld: ./src/supla-socket.o: in function `ssocket_client_initctx':
supla-socket.c:(.text+0x550): undefined reference to `OPENSSL_add_all_algorithms_noconf'
/usr/bin/ld: ./src/supla-socket.o: in function `ssocket_free.part.0':
supla-socket.c:(.text+0xc64): undefined reference to `EVP_cleanup'
/usr/bin/ld: supla-socket.c:(.text+0xc68): undefined reference to `ERR_free_strings'
/usr/bin/ld: supla-socket.c:(.text+0xc6c): undefined reference to `EVP_cleanup'
/usr/bin/ld: supla-socket.c:(.text+0xc7c): undefined reference to `ERR_free_strings'
/usr/bin/ld: supla-socket.c:(.text+0xc80): undefined reference to `CRYPTO_cleanup_all_ex_data'
/usr/bin/ld: ./src/supla-socket.o: in function `ssocket_server_init':
supla-socket.c:(.text+0xe04): undefined reference to `OPENSSL_add_all_algorithms_noconf'
/usr/bin/ld: ./src/supla-socket.o: in function `ssocket_close':
supla-socket.c:(.text+0x1034): undefined reference to `EVP_cleanup'
/usr/bin/ld: supla-socket.c:(.text+0x1064): undefined reference to `ERR_free_strings'
/usr/bin/ld: ./src/supla-socket.o: in function `ssocket_client_init':
supla-socket.c:(.text+0x13a0): undefined reference to `SSL_library_init'
/usr/bin/ld: supla-socket.c:(.text+0x13a4): undefined reference to `SSL_load_error_strings'
/usr/bin/ld: supla-socket.c:(.text+0x13a8): undefined reference to `OPENSSL_add_all_algorithms_noconf'


po zainstalowaniu biblioteki - kompilacja się wywala - jak to obejść.. bo wygląda że brakuje funkcji opensslowych w tej bibliotece powyżej..
ODPOWIEDZ

Wróć do „Ogólna dyskusja”