Raspberry PI - Instalacja dockerowa

Moderator: fracz

Awatar użytkownika
PuteR
Posty: 1421
Rejestracja: śr gru 06, 2017 10:07 am

Robiłem cały czas według instrukcjo z pierwszego postu

po wpisaniu komendy którą podałeś wyświetla coś takiego

Kod: Zaznacz cały

pi@raspberrypi:~/supla-docker $ git checkout master
error: Your local changes to the following files would be overwritten by checkout:
        docker-compose.yml
Please commit your changes or stash them before you switch branches.
Aborting
Awatar użytkownika
fracz
Posty: 2256
Rejestracja: pt paź 28, 2016 10:56 pm
Lokalizacja: Kraków

Nie ma nic w pierwszym poście już o src :-(

Niemniej jednak to co napisałeś wyżej sugeruje że coś tam się pobałaganiło.

Kod: Zaznacz cały

cd supla-docker
git checkout .
git reset --hard HEAD
git checkout master
Awatar użytkownika
PuteR
Posty: 1421
Rejestracja: śr gru 06, 2017 10:07 am

prawdę mówiąc nie mam pojęcia skąd się to wzięło. Rapsberry mam od dwóch dni i jest to zarówno mój pierwszy kontakt z mini komputerem jak i linuxem, więc na dobrą sprawę na razie tylko ślepo wykonuję polecenia hehe.

Ok teraz wszystko ruszyło tak jak na filmiku, ale co dalej wpisuje w przeglądarkę adres jaki ma rapsberry i nic się nie dzieje. Strona się nie ładuje. Czy mam coś jeszcze zrobić??
Awatar użytkownika
lesny8
Posty: 2808
Rejestracja: pn gru 11, 2017 9:43 pm

Przy pierwszym uruchomieniu Supli na dockerze, trochę się dzieje, więc poczekaj kilka minut.
Jeżeli poczekałeś i dalej nic nie dostajesz w przeglądarce po wpisaniu adresu IP to musisz szukać przyczyny.
Zajrzyj tu.

Co wpisałeś w pliku .env w CLOUD_DOMAIN
Masz domenę i ją wpisałeś czy adres IP maliny?
Czekam na kolejne Supla Offline Party 👍
Awatar użytkownika
PuteR
Posty: 1421
Rejestracja: śr gru 06, 2017 10:07 am

czekałem długo, wpisałem adres ip maliny.

a tak wyglądają logi, dla mnie to czarna magia i nic tam nie widzę po za słówkiem ERROR :] więc może tam jest jakiś problem.

Kod: Zaznacz cały

pi@raspberrypi:~ $ docker logs --tail=50 supla-cloud
                    Application Migrations


No migrations to execute.

 // Warming up the cache for the prod environment with debug
 // false

 [OK] Cache for the "prod" environment (debug=false) was successfully warmed.

11:44:50 ERROR     [console] Error thrown while running command "supla:create-co                                                                                                                                                             nfirmed-user 'marek.supla.org' marek --no-interaction --if-not-exists". Message:                                                                                                                                                              "Invalid e-mail address" ["error" => RuntimeException { …},"command" => "supla:                                                                                                                                                             create-confirmed-user 'marek.supla.org' marek --no-interaction --if-not-exists",                                                                                                                                                             "message" => "Invalid e-mail address"] []

In CreateConfirmedUserCommand.php line 69:

  Invalid e-mail address


supla:create-confirmed-user [--if-not-exists] [-h|--help] [-q|--quiet] [-v|vv|vv                                                                                                                                                             v|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env                                                                                                                                                              ENV] [--no-debug] [--] <command> [<username>] [<password>]

Database connection has been established.

                    Application Migrations


No migrations to execute.

 // Warming up the cache for the prod environment with debug
 // false

 [OK] Cache for the "prod" environment (debug=false) was successfully warmed.

11:45:30 ERROR     [console] Error thrown while running command "supla:create-co                                                                                                                                                             nfirmed-user 'marek.supla.org' marek --no-interaction --if-not-exists". Message:                                                                                                                                                              "Invalid e-mail address" ["error" => RuntimeException { …},"command" => "supla:                                                                                                                                                             create-confirmed-user 'marek.supla.org' marek --no-interaction --if-not-exists",                                                                                                                                                             "message" => "Invalid e-mail address"] []

In CreateConfirmedUserCommand.php line 69:

  Invalid e-mail address


supla:create-confirmed-user [--if-not-exists] [-h|--help] [-q|--quiet] [-v|vv|vv                                                                                                                                                             v|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env                                                                                                                                                              ENV] [--no-debug] [--] <command> [<username>] [<password>]

Database connection has been established.

                    Application Migrations


No migrations to execute.

 // Warming up the cache for the prod environment with debug
 // false

pi@raspberrypi:~ $ docker logs --tail=50 supla-server
INFO[1543489361.241911] Started at Thu Nov 29 11:02:41 2018
INFO[1543489361.247100] Server version 2.2.0 [Protocol v9], 32
INFO[1543489361.247385] Started at Thu Nov 29 11:02:41 2018
ERR[1543489361.250986] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
ERR[1543489361.251199] The version of the database can not be determined!
2018-11-29 11:02:41,254 INFO exited: supla-scheduler (exit status 1; not expected)
ERR[1543489361.258479] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
ERR[1543489361.258660] The version of the database can not be determined!
2018-11-29 11:02:41,261 INFO exited: supla-server (exit status 1; not expected)
2018-11-29 11:02:43,270 INFO spawned: 'supla-scheduler' with pid 20
2018-11-29 11:02:45,294 INFO spawned: 'supla-server' with pid 22
INFO[1543489363.318889] Scheduler version 2.2.0
INFO[1543489363.319153] Started at Thu Nov 29 11:02:43 2018
ERR[1543489363.331894] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
ERR[1543489363.332185] The version of the database can not be determined!
2018-11-29 11:02:45,299 INFO exited: supla-scheduler (exit status 1; not expected)
INFO[1543489365.346450] Server version 2.2.0 [Protocol v9], 32
2018-11-29 11:02:45,353 INFO spawned: 'supla-scheduler' with pid 24
INFO[1543489365.346814] Started at Thu Nov 29 11:02:45 2018
ERR[1543489365.362272] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
ERR[1543489365.362591] The version of the database can not be determined!
2018-11-29 11:02:45,367 INFO exited: supla-server (exit status 1; not expected)
INFO[1543489365.403274] Scheduler version 2.2.0
INFO[1543489365.403463] Started at Thu Nov 29 11:02:45 2018
ERR[1543489365.410549] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
ERR[1543489365.410726] The version of the database can not be determined!
2018-11-29 11:02:45,412 INFO exited: supla-scheduler (exit status 1; not expected)
2018-11-29 11:02:46,417 INFO spawned: 'supla-scheduler' with pid 26
INFO[1543489366.441717] Scheduler version 2.2.0
INFO[1543489366.441878] Started at Thu Nov 29 11:02:46 2018
ERR[1543489366.449289] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
ERR[1543489366.449463] The version of the database can not be determined!
2018-11-29 11:02:46,451 INFO exited: supla-scheduler (exit status 1; not expected)
2018-11-29 11:02:48,460 INFO spawned: 'supla-scheduler' with pid 28
2018-11-29 11:02:48,467 INFO spawned: 'supla-server' with pid 29
INFO[1543489368.519763] Scheduler version 2.2.0
INFO[1543489368.520153] Started at Thu Nov 29 11:02:48 2018
INFO[1543489368.522434] Server version 2.2.0 [Protocol v9], 32
INFO[1543489368.522815] Started at Thu Nov 29 11:02:48 2018
ERR[1543489368.539586] Incorrect database version!
ERR[1543489368.539389] Incorrect database version!
2018-11-29 11:02:48,542 INFO exited: supla-scheduler (exit status 1; not expected)
2018-11-29 11:02:48,543 INFO exited: supla-server (exit status 1; not expected)
2018-11-29 11:02:49,545 INFO gave up: supla-server entered FATAL state, too many start retries too quickly
2018-11-29 11:02:51,553 INFO spawned: 'supla-scheduler' with pid 32
INFO[1543489371.601925] Scheduler version 2.2.0
INFO[1543489371.602240] Started at Thu Nov 29 11:02:51 2018
ERR[1543489371.618419] Incorrect database version!
2018-11-29 11:02:51,622 INFO exited: supla-scheduler (exit status 1; not expected)
2018-11-29 11:02:52,625 INFO gave up: supla-scheduler entered FATAL state, too many start retries too quickly
pi@raspberrypi:~ $
P. S Czy jeśli już mi to ruszy, to będę mógł normalnie dodawać urządzenia, smartfony i korzystać z podłączonych modolow zarówno w domu będąc w sieci lokalnej jak i poza domem gdy w tej sieci nie będę? Czy muszę jeszcze dodatkowo coś ustawiać?
Awatar użytkownika
fracz
Posty: 2256
Rejestracja: pt paź 28, 2016 10:56 pm
Lokalizacja: Kraków

Pokaż co masz w pliku supla-docker/.env
Awatar użytkownika
PuteR
Posty: 1421
Rejestracja: śr gru 06, 2017 10:07 am

eee trochę głupia sprawa, już sam znalazłem błąd :]
zabrakło @ w emailu.

Teraz działa

Kod: Zaznacz cały

# Where the SUPLA Cloud will be accessible? Put domain or IP address here with port.
CLOUD_DOMAIN=192.168.1.82

# Initial user account details; delete these settings after the first launch
FIRST_USER_EMAIL=xxxx.supla.org
FIRST_USER_PASSWORD=xxxx

# Google ReCaptcha settings
RECAPTCHA_ENABLED=false
RECAPTCHA_PUBLIC_KEY=
RECAPTCHA_PRIVATE_KEY=

# Mailer settings (SMTP)
MAILER_HOST=10.0.75.1
MAILER_PORT=465
MAILER_USER=
MAILER_PASSWORD=
MAILER_ENCRYPTION=ssl
MAILER_FROM=

# If you want to be notified about some server errors, set this
ADMIN_EMAIL=

# Where to store SUPLA Cloud's data
VOLUME_DATA=./var

# On which ports the SUPLA Cloud should listen (only if standalone mode)
PORT_HTTP=80
PORT_HTTPS=443

REQUIRE_REGULATIONS_ACCEPTANCE=false
REQUIRE_COOKIE_POLICY_ACCEPTANCE=false
BRUTE_FORCE_AUTH_PREVENTION_ENABLED=true

# These options protect your application
DB_PASSWORD=JVKswcrQNtiApMEU3zXg3tLVoKZmoxi5
SECRET=1TaCOZozXmV01wZVdL9Aqj2eVkuQSG9A

COMPOSE_PROJECT_NAME=supla
COMPOSE_PATH_SEPARATOR=:
COMPOSE_FILE=docker-compose.yml:docker-compose.standalone.yml:docker-compose.arm32v7.yml
Awatar użytkownika
lesny8
Posty: 2808
Rejestracja: pn gru 11, 2017 9:43 pm

A to @ ;)
PuteR pisze: czw lis 29, 2018 11:44 am P. S Czy jeśli już mi to ruszy, to będę mógł normalnie dodawać urządzenia, smartfony i korzystać z podłączonych modolow zarówno w domu będąc w sieci lokalnej jak i poza domem gdy w tej sieci nie będę? Czy muszę jeszcze dodatkowo coś ustawiać?
Tak, będziesz mógł, ale musisz...
- jeśli masz zewnętrzny adres IP i jest on stały to na routerze robisz przekierowanie portów wskazanych w pliku supla-docker/.env (80 i 443) na adres IP wskazany w pliku supla-docker/.env (192.168.1.82);
-jeśli, nie masz stałego zewnętrznego adresu IP to do tego dochodzi jeszcze konfiguracja DDNS.
Czekam na kolejne Supla Offline Party 👍
Awatar użytkownika
PuteR
Posty: 1421
Rejestracja: śr gru 06, 2017 10:07 am

Mam internet od orange na routerze funbox 2.0 wiec ip jest raczej zmienne.

co w ustawieniach routera powinienem poustawiać aby móc supli używać będąc poza domem.
Załączniki
1.JPG
1.JPG (58.62 KiB) Przejrzano 3482 razy
Awatar użytkownika
PuteR
Posty: 1421
Rejestracja: śr gru 06, 2017 10:07 am

Ok, serwer działa bez problemu w sieci lokalnej supla cloud i aplikacja na telefonie.
Zrobiłem ten ddns i przekierowałem porty i teraz gdy próbuje się z cloudem połączyć z zewnątrz to wyświetla stronę logowania ale jak wpisuję login i hasło to już klapa nie ładuje się. Pliku env mam podany adres ip bo jak podawałem domenę to wtedy aplikacja na telefonie nie chciała się załadować.
Ktoś pomoże jak to wszystko ogarnąć??



P.S Teraz przydało by się zainstalować supla scripts ale poradniki które znalazłem to chyba jeszcze nie na moją wiedzę i umiejętności. Ma ktoś może jakiś sprawdzony i jasno opisany jak to zrobić??
ODPOWIEDZ

Wróć do „supla-docker”