Witam,
Jestem po instalacji SUPLA oraz SUPLA-Scripts (tryb standalone) na RPI:
Kod: Zaznacz cały
pi@raspberrypi:~ $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
79c9e727b905 supla/supla-server:arm32v7 "/usr/bin/server-ent…" 13 minutes ago Up 13 minutes 0.0.0.0:2015-2016->2015-2016/tcp supla-server
165fd6700293 supla/supla-cloud:arm32v7 "docker-php-entrypoi…" 13 minutes ago Up 13 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp supla-cloud
8ca856580092 hypriot/rpi-mysql:5.5 "/entrypoint.sh mysq…" 14 minutes ago Up 13 minutes 3306/tcp supla-db
25aba2b50449 suplascripts_suplascripts "docker-php-entrypoi…" 6 days ago Up 25 minutes 0.0.0.0:90->80/tcp, 0.0.0.0:453->443/tcp suplascripts
b270a39b5c94 hypriot/rpi-mysql:5.5 "/entrypoint.sh mysq…" 6 days ago Up 25 minutes 3306/tcp suplascripts-db
RPI jest pod adresem lokalnym 192.168.1.45, SUPLA ma port HTTPS:80, natomiast SUPLA-Scripts ma HTTPS:90.
Mogę się zalogować do SUPLI, natomiast mam problemy z połączeniem SUPLA-Scripts za pomocą tokena (zrzuty z załączniku):
Poniżej logi:
Kod: Zaznacz cały
pi@raspberrypi:~ $ docker logs --tail=50 suplascripts
Refreshing tokens of users: 0
Refreshing tokens of users: 0
Refreshing tokens of users: 0
Refreshing tokens of users: 0
172.19.0.3:80 192.168.1.136 - - [18/Jun/2019:20:26:25 +0000] "GET /login?mode=token HTTP/1.1" 200 799 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.19.0.3:80 192.168.1.136 - - [18/Jun/2019:20:26:27 +0000] "GET /api/info HTTP/1.1" 200 413 "http://192.168.1.45:90/login?mode=token" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.19.0.3:80 192.168.1.136 - - [18/Jun/2019:20:26:28 +0000] "GET /favicon.ico HTTP/1.1" 200 1450 "http://192.168.1.45:90/login?mode=token" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.19.0.3:80 192.168.1.136 - - [18/Jun/2019:20:26:31 +0000] "PATCH /api/tokens/personal HTTP/1.1" 200 339 "http://192.168.1.45:90/login?mode=token" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.19.0.3:80 192.168.1.136 - - [18/Jun/2019:20:26:45 +0000] "POST /api/tokens/new HTTP/1.1" 503 281 "http://192.168.1.45:90/login?mode=token" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
pi@raspberrypi:~ $ docker logs --tail=50 suplascripts-db
190612 6:34:59 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
190612 6:34:59 [Note] mysqld (mysqld 5.5.60-0+deb7u1) starting as process 1 ...
190612 6:34:59 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
190612 6:34:59 [Note] Plugin 'FEDERATED' is disabled.
190612 6:34:59 InnoDB: The InnoDB memory heap is disabled
190612 6:34:59 InnoDB: Mutexes and rw_locks use GCC atomic builtins
190612 6:34:59 InnoDB: Compressed tables use zlib 1.2.7
190612 6:34:59 InnoDB: Using Linux native AIO
190612 6:34:59 InnoDB: Initializing buffer pool, size = 128.0M
190612 6:34:59 InnoDB: Completed initialization of buffer pool
190612 6:34:59 InnoDB: highest supported file format is Barracuda.
190612 6:35:00 InnoDB: Waiting for the background threads to start
190612 6:35:01 InnoDB: 5.5.60 started; log sequence number 2110916
190612 6:35:01 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
190612 6:35:01 [Note] - '0.0.0.0' resolves to '0.0.0.0';
190612 6:35:01 [Note] Server socket created on IP: '0.0.0.0'.
190612 6:35:01 [Note] Event Scheduler: Loaded 0 events
190612 6:35:01 [Note] mysqld: ready for connections.
Version: '5.5.60-0+deb7u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Debian)
190618 8:01:41 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
190618 8:01:41 [Note] mysqld (mysqld 5.5.60-0+deb7u1) starting as process 1 ...
190618 8:01:41 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
190618 8:01:41 [Note] Plugin 'FEDERATED' is disabled.
190618 8:01:41 InnoDB: The InnoDB memory heap is disabled
190618 8:01:41 InnoDB: Mutexes and rw_locks use GCC atomic builtins
190618 8:01:41 InnoDB: Compressed tables use zlib 1.2.7
190618 8:01:41 InnoDB: Using Linux native AIO
190618 8:01:41 InnoDB: Initializing buffer pool, size = 128.0M
190618 8:01:41 InnoDB: Completed initialization of buffer pool
190618 8:01:41 InnoDB: highest supported file format is Barracuda.
190618 8:01:43 InnoDB: Waiting for the background threads to start
190618 8:01:44 InnoDB: 5.5.60 started; log sequence number 2115300
190618 8:01:44 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
190618 8:01:44 [Note] - '0.0.0.0' resolves to '0.0.0.0';
190618 8:01:44 [Note] Server socket created on IP: '0.0.0.0'.
190618 8:01:44 [Note] Event Scheduler: Loaded 0 events
190618 8:01:44 [Note] mysqld: ready for connections.
Version: '5.5.60-0+deb7u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Debian)
pi@raspberrypi:~ $ docker logs --tail=50 supla-cloud
Client registration expiration date - cleared: 0
I/O Device registration expiration date - cleared: 0
supla:clean:disable-demo-client-apps: RUN:
Clients to disable: 0
supla:clean:passed-io-client-registration-dates: RUN:
Client registration expiration date - cleared: 0
I/O Device registration expiration date - cleared: 0
supla:clean:disable-demo-client-apps: RUN:
Clients to disable: 0
supla:clean:passed-io-client-registration-dates: RUN:
Client registration expiration date - cleared: 0
I/O Device registration expiration date - cleared: 0
supla:clean:disable-demo-client-apps: RUN:
Clients to disable: 0
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:25:55 +0000] "POST /api/webapp-auth HTTP/1.1" 200 2523 "https://192.168.1.45/login" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:25:57 +0000] "GET /api/users/current HTTP/1.1" 200 737 "https://192.168.1.45/login" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:25:57 +0000] "GET /api/locations?include=accessids,password HTTP/1.1" 200 581 "https://192.168.1.45/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:25:57 +0000] "GET /assets/img/icons/favicon.ico HTTP/1.1" 200 1479 "https://192.168.1.45/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:25:57 +0000] "GET /assets/img/step-1.svg HTTP/1.1" 200 3987 "https://192.168.1.45/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:25:57 +0000] "GET /assets/img/step-2.svg HTTP/1.1" 200 1979 "https://192.168.1.45/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:25:58 +0000] "GET /assets/img/icons/favicon.ico HTTP/1.1" 200 1479 "https://192.168.1.45/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:25:57 +0000] "GET /api/server-info HTTP/1.1" 200 710 "https://192.168.1.45/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:26:02 +0000] "GET /assets/img/icons/favicon.ico HTTP/1.1" 200 1479 "https://192.168.1.45/integrations/authorized" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:26:02 +0000] "GET /assets/img/icons/favicon.ico HTTP/1.1" 200 1479 "https://192.168.1.45/integrations/authorized" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:26:02 +0000] "GET /api/oauth-authorized-clients?include=client HTTP/1.1" 200 306 "https://192.168.1.45/integrations/authorized" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
supla:clean:passed-io-client-registration-dates: RUN:
Client registration expiration date - cleared: 0
I/O Device registration expiration date - cleared: 0
supla:clean:disable-demo-client-apps: RUN:
Clients to disable: 0
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:26:04 +0000] "GET /assets/img/icons/favicon.ico HTTP/1.1" 200 1479 "https://192.168.1.45/integrations/tokens" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:26:04 +0000] "GET /assets/img/icons/favicon.ico HTTP/1.1" 200 1479 "https://192.168.1.45/integrations/tokens" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:26:04 +0000] "GET /api/oauth-personal-tokens HTTP/1.1" 200 431 "https://192.168.1.45/integrations/tokens" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:26:06 +0000] "DELETE /api/oauth-personal-tokens/23 HTTP/1.1" 204 301 "https://192.168.1.45/integrations/tokens" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 192.168.1.136 - - [18/Jun/2019:20:26:17 +0000] "POST /api/oauth-personal-tokens HTTP/1.1" 201 713 "https://192.168.1.45/integrations/tokens" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Avast/74.0.1376.132"
172.18.0.3:443 172.18.0.1 - - [18/Jun/2019:20:26:31 +0000] "GET /api/token-info HTTP/1.1" 200 1837 "-" "-"
172.18.0.3:443 172.18.0.1 - - [18/Jun/2019:20:26:31 +0000] "GET /api/users/current HTTP/1.1" 200 2093 "-" "-"
172.18.0.3:443 172.18.0.1 - - [18/Jun/2019:20:26:45 +0000] "GET /api/token-info HTTP/1.1" 200 1837 "-" "-"
172.18.0.3:443 172.18.0.1 - - [18/Jun/2019:20:26:45 +0000] "GET /api/users/current HTTP/1.1" 200 2093 "-" "-"
172.18.0.3:443 172.18.0.1 - - [18/Jun/2019:20:26:46 +0000] "GET /api/v2.3.0/iodevices?include=channels,connected,state HTTP/1.1" 200 1686 "-" "-"
supla:clean:passed-io-client-registration-dates: RUN:
Client registration expiration date - cleared: 0
I/O Device registration expiration date - cleared: 0
supla:clean:disable-demo-client-apps: RUN:
Clients to disable: 0
supla:clean:passed-io-client-registration-dates: RUN:
Client registration expiration date - cleared: 0
I/O Device registration expiration date - cleared: 0
supla:clean:disable-demo-client-apps: RUN:
Clients to disable: 0
pi@raspberrypi:~ $ docker logs --tail=50 supla-server
2019-06-18 08:13:34,354 CRIT Supervisor running as root (no user in config file)
2019-06-18 08:13:34,361 INFO supervisord started with pid 1
2019-06-18 08:13:35,366 INFO spawned: 'supla-scheduler' with pid 11
2019-06-18 08:13:35,371 INFO spawned: 'supla-server' with pid 12
INFO[1560845615.406004] Scheduler version 2.3.3
INFO[1560845615.407499] Started at Tue Jun 18 08:13:35 2019
INFO[1560845615.411440] Server version 2.3.8 [Protocol v10]
INFO[1560845615.411643] Started at Tue Jun 18 08:13:35 2019
INFO[1560845615.440987] SSL version: OpenSSL 1.1.0j 20 Nov 2018
2019-06-18 08:13:36,443 INFO success: supla-scheduler entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-06-18 08:13:36,485 INFO success: supla-server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
INFO[1560870177.837162] Connection accepted: 165.227.180.210:58998 ClientSD: 12 Secure: 1
INFO[1560880869.138938] Connection accepted: 192.168.1.205:41426 ClientSD: 15 Secure: 1
INFO[1560880869.245847] Cipher: ECDHE-RSA-AES256-GCM-SHA384, ClientSD: 15
INFO[1560880882.238955] Connection accepted: 192.168.1.205:41427 ClientSD: 14 Secure: 1
INFO[1560880882.329177] Cipher: ECDHE-RSA-AES256-GCM-SHA384, ClientSD: 14
INFO[1560880885.707375] Connection accepted: 192.168.1.205:41428 ClientSD: 15 Secure: 1
INFO[1560880885.783364] Cipher: ECDHE-RSA-AES256-GCM-SHA384, ClientSD: 15
INFO[1560880922.30538] Connection accepted: 192.168.1.205:41429 ClientSD: 14 Secure: 1
INFO[1560880922.89129] Cipher: ECDHE-RSA-AES256-GCM-SHA384, ClientSD: 14
INFO[1560881003.596320] Connection accepted: 192.168.1.205:41430 ClientSD: 13 Secure: 1
INFO[1560881003.671967] Cipher: ECDHE-RSA-AES256-GCM-SHA384, ClientSD: 13
INFO[1560881003.742786] Client registered. ClientSD: 13 Protocol Version: 10
Pytanie do znawców, czy postawienie SUPLA oraz SUPLA-Scripts na jednym RPI w sieci lokalnej jest możliwe, żeby można było podłączyć SUPLA-Scripts pod SUPLA za pomocą tokena?
Jeżeli tak, to co źle robię, czego nie mogę się połączyć za pomocą tokena?