Błędy wynikają z tego że server wstał szybciej niż baza danych i zanim to się stało - chciał sie z nią połączyć. Chyba trzeba odwrócić kolejność tak by serwer wstawał jako ostatni: https://github.com/SUPLA/supla-docker/issues/2
Ad 1.: Faktycznie, zapomniałem o adresie serwera - powinien być konfigurowalny przez zmienne środowiskowe: https://github.com/SUPLA/supla-docker/issues/3
Ad 2.: Klient to Twój smartfon a nie nowe konta użytkowników. Wyłączenie możliwości rejestracji kont jest już w liście zadań do clouda, ale nie jest to jeszcze zrobione: https://github.com/SUPLA/supla-cloud/issues/151
Ad 3.: Super! A jakieś urządzenie do sterowania? I wtedy kluczowe pytanie: czy są jakieś lagi w sterowaniu urządzeniami przez takiego clouda? I czy harmonogramy działają?
Ile czasu trwała instalacja?
Supla ❤ Docker
Moderator: fracz
Instalacja trwała ok 10 minut (dokładnie nie mierzyłem).
Urządzenie podłaczę i przetestuję wieczorem.
Jacek
Urządzenie podłaczę i przetestuję wieczorem.
Jacek
__________________________________________________________
Specjalizowane oprogramowanie do sterowników Sonoff, Gosund, Blitzwolf, Shelly i innych:
https://djack.com.pl/modules.php?name=Downloads&d_op=viewdownload&cid=54
Specjalizowane oprogramowanie do sterowników Sonoff, Gosund, Blitzwolf, Shelly i innych:
https://djack.com.pl/modules.php?name=Downloads&d_op=viewdownload&cid=54
synology docker
dostaję taki błąd
dostaję taki błąd
Kod: Zaznacz cały
root@debian:/# ./supla-docker/supla.sh start
Starting SUPLA containers
Building supla-mysql
Step 1/2 : FROM mysql:5.7.20
5.7.20: Pulling from library/mysql
f49cf87b52c1: Pull complete
78032de49d65: Extracting [==================================================>] 2.087kB/2.087kB
837546b20bc4: Download complete
9b8316af6cc6: Download complete
1056cf29b9f1: Download complete
86f3913b029a: Download complete
4cbbfc9aebab: Download complete
8ffd0352f6a8: Download complete
45d90f823f97: Download complete
ca2a791aeb35: Download complete
ERROR: Service 'supla-mysql' failed to build: failed to register layer: Failed to create btrfs snapshot: inappropriate ioctl for device
Error: No such container: supla-cloud
Error: No such container: supla-cloud
Error: No such container: supla-cloud
SUPLA crontab already installed
SUPLA containers has been started.
root@debian:/# ls
bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv supla-docker sys tmp usr var
root@debian:/# cd supla-docker
root@debian:/supla-docker# ls
README.md cloud docker-compose.yml mysql server ssl supla-docker.png supla.sh var
root@debian:/supla-docker# docker logs --tail=50 supla-server
Error response from daemon: No such container: supla-server
Co to za architektura? Jaki jest wynik działania poniższych komend?
Kod: Zaznacz cały
dpkg --print-architecture
uname -m
fracz pisze: ↑śr gru 13, 2017 9:24 am Co to za architektura? Jaki jest wynik działania poniższych komend?
Kod: Zaznacz cały
dpkg --print-architecture uname -m
Kod: Zaznacz cały
root@debian:/supla-docker# dpkg --print-architecture
amd64
root@debian:/supla-docker# uname -m
x86_64
Wg tego co tu piszą problemem jest system plików https://forum.synology.com/enu/viewtopi ... 9&start=15
Czy masz do tego podpiętą jakąś partycję w ext4? Jeśli tak, w pliku supla-docker/.env w VOLUME_DATA ustaw ścieżkę do jakiegoś pustego katalogu na tej partycji i spróbuj wtedy. Do tego katalogu trafią dane z bazy MySQL.Then synology docker uses aufs which is what I use (my nas is formatted using ext4) . Earlier versions of docker allowed you to use aufs on a Btrfs volume but docker disabled the ability to do this in later versions as it was a cause of corruptions.
Czy w takiej instalacji serwera supla jest możliwa instalacja Twoich skryptów według:
https://github.com/fracz/supla-scripts/ ... -docker.md
bo przy instalacji (dla wersji v2.5.3) pojawiły się błędy:
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'Serv erName' directive globally to suppress this message
Enabling module cgi.
Module alias already enabled
Module env already enabled
Considering dependency proxy for proxy_http:
Enabling module proxy.
Enabling module proxy_http.
To activate the new configuration, you need to run:
service apache2 restart
Enabling site default-ssl.
To activate the new configuration, you need to run:
service apache2 reload
---> fa1e382dc25c
Step 5/6 : ARG WWW_DATA_UID=1001
---> Running in dd4f9e3bf965
---> 785fccf32d84
Step 6/6 : RUN usermod --uid "$WWW_DATA_UID" www-data && groupmod --gid "$WWW_DATA_UID" www-data & & chown -hR www-data:www-data /var/www
---> Running in 3aed24c3c10b
usermod: UID '0' already exists
ERROR: Service 'suplascripts' failed to build: The command '/bin/sh -c usermod --uid "$WWW_DATA_UID" www-data && groupmod --gid "$WWW_DATA_UID" www-data && chown -hR www-data:www-data /var/www' returned a non-zero code : 4
Error: No such container: suplascripts
supla-scripts crontab has been installed successfully
Jacek
https://github.com/fracz/supla-scripts/ ... -docker.md
bo przy instalacji (dla wersji v2.5.3) pojawiły się błędy:
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'Serv erName' directive globally to suppress this message
Enabling module cgi.
Module alias already enabled
Module env already enabled
Considering dependency proxy for proxy_http:
Enabling module proxy.
Enabling module proxy_http.
To activate the new configuration, you need to run:
service apache2 restart
Enabling site default-ssl.
To activate the new configuration, you need to run:
service apache2 reload
---> fa1e382dc25c
Step 5/6 : ARG WWW_DATA_UID=1001
---> Running in dd4f9e3bf965
---> 785fccf32d84
Step 6/6 : RUN usermod --uid "$WWW_DATA_UID" www-data && groupmod --gid "$WWW_DATA_UID" www-data & & chown -hR www-data:www-data /var/www
---> Running in 3aed24c3c10b
usermod: UID '0' already exists
ERROR: Service 'suplascripts' failed to build: The command '/bin/sh -c usermod --uid "$WWW_DATA_UID" www-data && groupmod --gid "$WWW_DATA_UID" www-data && chown -hR www-data:www-data /var/www' returned a non-zero code : 4
Error: No such container: suplascripts
supla-scripts crontab has been installed successfully
Jacek
__________________________________________________________
Specjalizowane oprogramowanie do sterowników Sonoff, Gosund, Blitzwolf, Shelly i innych:
https://djack.com.pl/modules.php?name=Downloads&d_op=viewdownload&cid=54
Specjalizowane oprogramowanie do sterowników Sonoff, Gosund, Blitzwolf, Shelly i innych:
https://djack.com.pl/modules.php?name=Downloads&d_op=viewdownload&cid=54
Nie wiem czy ma to znaczenie bo działa na malinie już Supla 2.1, ale pod koniec instalacji takie błędy:
Kod: Zaznacz cały
Step 10/10 : COPY parameters.yml app/config/parameters.yml
---> a8f797369a5e
Successfully built a8f797369a5e
Successfully tagged supla_supla-cloud:latest
Creating supla-mysql ...
Creating supla-mysql ... done
Creating supla-server ...
Creating supla-server ... error
ERROR: for supla-server Cannot start service supla-server: driver failed progra mming external connectivity on endpoint supla-server (ea75b0b6a936916b25ca32946a efebfebcfbaded32276439d20209ceafaec019): Error starting userland proxy: listen t cp 0.0.0.0:2016: bind: address already in use
ERROR: for supla-server Cannot start service supla-server: driver failed progra mming external connectivity on endpoint supla-server (ea75b0b6a936916b25ca32946a efebfebcfbaded32276439d20209ceafaec019): Error starting userland proxy: listen t cp 0.0.0.0:2016: bind: address already in use
ERROR: Encountered errors while bringing up the project.
Error: No such container: supla-cloud
Error: No such container: supla-cloud
Error: No such container: supla-cloud
SUPLA crontab has been installed successfully
SUPLA containers has been started.