v26.05 - aktualizacja

Moderator: fracz

User avatar
fracz
Posts: 2342
Joined: Fri Oct 28, 2016 10:56 pm
Location: Kraków
Has thanked: 4 times
Been thanked: 6 times

Post

Przy aktualizacji do wersji v26.05 trzeba wykonać kilka modyfikacji w swojej konfiguracji w pliku .env. Szczegóły są opisane przy release notes: https://github.com/SUPLA/supla-docker/r ... tag/v26.05
User avatar
lukfud
Posts: 2480
Joined: Thu Nov 23, 2017 11:33 pm
Location: Warszawa
Has thanked: 13 times
Been thanked: 11 times

Post

Aktualizacja przeszła pomyślnie, dzięki ;)
https://www.facebook.com/groups/supladiy
https://www.facebook.com/groups/suplazamel
https://www.facebook.com/groups/suplaauraton
https://smartnerzeczy.pl
User avatar
kris.sg
Posts: 482
Joined: Mon Aug 07, 2017 8:08 pm
Location: Przezchlebie
Has thanked: 1 time
Been thanked: 1 time

Post

U mnie jest problem, po zmodyfikowaniu .env i upgrade w kontenerze supla-cloud:

Code: Select all

Waiting for database connection (6)...

Waiting for database connection (5)...

Waiting for database connection (4)...

Waiting for database connection (3)...

Waiting for database connection (2)...

Waiting for database connection (1)...

10:42:19 CRITICAL  [console] Error thrown while running command "doctrine:database:create --if-not-exists --no-interaction". Message: "An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for supla-db failed: Name or service not known" ["exception" => Doctrine\DBAL\Exception\ConnectionException { …},"command" => "doctrine:database:create --if-not-exists --no-interaction","message" => "An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for supla-db failed: Name or service not known"]

In ExceptionConverter.php line 112:

                                                                               

  An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_get  

  addresses: getaddrinfo for supla-db failed: Name or service not known        

                                                                               

In Exception.php line 24:

                                                                               

  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for supla-db f  

  ailed: Name or service not known                                             

                                                                               

In PDOConnect.php line 28:

                                                                               

  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for supla-db f  

  ailed: Name or service not known                                             

                                                                               

In PDOConnect.php line 28:

                                                                               

  PDO::connect(): php_network_getaddresses: getaddrinfo for supla-db failed:   

  Name or service not known                                                    

                                                                               

doctrine:database:create [-c|--connection [CONNECTION]] [--if-not-exists]

In CheckDbConnectionCommand.php line 29:

                                         

  Could not connect to to the database.  

                                         

doctrine:database:create [-c|--connection [CONNECTION]] [--if-not-exists]

10:42:19 CRITICAL  [console] Error thrown while running command "doctrine:migrations:sync-metadata-storage --no-interaction". Message: "An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for supla-db failed: Name or service not known" ["exception" => Doctrine\DBAL\Exception\ConnectionException { …},"command" => "doctrine:migrations:sync-metadata-storage --no-interaction","message" => "An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for supla-db failed: Name or service not known"]

In ExceptionConverter.php line 112:

                                                                               

  An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_get  

  addresses: getaddrinfo for supla-db failed: Name or service not known        

                                                                               

In Exception.php line 24:

                                                                               

  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for supla-db f  

  ailed: Name or service not known                                             

                                                                               

In PDOConnect.php line 28:

                                                                               

  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for supla-db f  

  ailed: Name or service not known                                             

                                                                               

In PDOConnect.php line 28:

                                                                               

  PDO::connect(): php_network_getaddresses: getaddrinfo for supla-db failed:   

  Name or service not known                                                    

                                                                               

doctrine:migrations:sync-metadata-storage [--configuration CONFIGURATION] [--em EM] [--conn CONN]

[WARN] Both CLOUD_DOMAIN and SUPLA_HOST_ADDRESS are set. Using SUPLA_HOST_ADDRESS and ignoring CLOUD_DOMAIN.

[WARN] Both SECRET and APP_SECRET are set. Using APP_SECRET and ignoring SECRET.

[WARN] You are using deprecated MAILER_FROM environment variable. Please use SUPLA_MAILER_FROM instead.

[WARN] You are using deprecated ADMIN_EMAIL environment variable. Please use SUPLA_ADMIN_EMAIL instead.

[WARN] You are using deprecated REQUIRE_REGULATIONS_ACCEPTANCE environment variable. Please use SUPLA_REQUIRE_REGULATIONS_ACCEPTANCE instead.

[WARN] You are using deprecated REQUIRE_COOKIE_POLICY_ACCEPTANCE environment variable. Please use SUPLA_REQUIRE_COOKIE_POLICY_ACCEPTANCE instead.

[WARN] You are using deprecated BRUTE_FORCE_AUTH_PREVENTION_ENABLED environment variable. Please use SUPLA_BRUTE_FORCE_AUTH_PREVENTION_ENABLED instead.

[WARN] You are using deprecated ACCOUNTS_REGISTRATION_ENABLED environment variable. Please use SUPLA_ACCOUNTS_REGISTRATION_ENABLED instead.

[WARN] You are using deprecated MQTT_BROKER_ENABLED environment variable. Please use SUPLA_MQTT_BROKER_ENABLED instead.

[WARN] You are using deprecated MQTT_BROKER_HOST environment variable. Please use SUPLA_MQTT_BROKER_HOST instead.

[WARN] You are using deprecated MQTT_BROKER_PORT environment variable. Please use SUPLA_MQTT_BROKER_PORT instead.

[WARN] You are using deprecated MQTT_BROKER_TLS environment variable. Please use SUPLA_MQTT_BROKER_TLS instead.

[WARN] You are using deprecated MQTT_BROKER_USERNAME environment variable. Please use SUPLA_MQTT_BROKER_USERNAME instead.

[WARN] You are using deprecated MQTT_BROKER_PASSWORD environment variable. Please use SUPLA_MQTT_BROKER_PASSWORD instead.

[WARN] You are using deprecated MQTT_BROKER_CLIENT_ID environment variable. Please use SUPLA_MQTT_BROKER_CLIENT_ID instead.

PHP Deprecated:  FOS\OAuthServerBundle\Storage\OAuthStorage::__construct(): Implicitly marking parameter $userProvider as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/klapaudius/oauth-server-bundle/Storage/OAuthStorage.php on line 57

PHP Deprecated:  FOS\OAuthServerBundle\Storage\OAuthStorage::__construct(): Implicitly marking parameter $passwordHasherFactory as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/klapaudius/oauth-server-bundle/Storage/OAuthStorage.php on line 57

PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::__construct(): Implicitly marking parameter $twig as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/TemplateListener.php on line 39

PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $language as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43

PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $trustResolver as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43

PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $roleHierarchy as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43

PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $tokenStorage as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43

PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $authChecker as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43

PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43

PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::__construct(): Implicitly marking parameter $authChecker as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/IsGrantedListener.php on line 33

PHP Deprecated:  FOS\OAuthServerBundle\Security\EntryPoint\OAuthEntryPoint::start(): Implicitly marking parameter $authException as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/klapaudius/oauth-server-bundle/Security/EntryPoint/OAuthEntryPoint.php on line 32

PHP Deprecated:  FOS\OAuthServerBundle\Form\Handler\AuthorizeFormHandler::setContainer(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/klapaudius/oauth-server-bundle/Form/Handler/AuthorizeFormHandler.php on line 60

PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct(): Implicitly marking parameter $registry as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php on line 46

PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct(): Implicitly marking parameter $expressionLanguage as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php on line 46

Waiting for database connection (10)...

www nie działa, urządzenia rozłączone
■Rpi4(m.2) Supla Cloud, Scripts ■Rpi3(sd) SD: 6x MI ATC, 1x W.S.
ROLETY_V3 x12 ■SWITCH_DUAL x4 ■GATE_MODULE_V3 x1 ■SOCKET_SSR x1 ■SMOKE_MODULE x1
SONOFF_TOUCH x4 ■YUNSCHAN x1 ■STAITCASE_DIMMER x1 ■MEW-01 x2 ■mROW-02 x1 ■LEW-01 x1
POW_R2 x2 ■SP111 x3
User avatar
kris.sg
Posts: 482
Joined: Mon Aug 07, 2017 8:08 pm
Location: Przezchlebie
Has thanked: 1 time
Been thanked: 1 time

Post

Sam sobie odpowiem, kłania się czytanie konsoli ze zrozumieniem :)
przy git pull miałem:

Code: Select all

supla@Supla-Ubuntu:~/supla-docker$ git pull
remote: Enumerating objects: 91, done.
remote: Counting objects: 100% (91/91), done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 68 (delta 49), reused 47 (delta 28), pack-reused 0 (from 0)
Unpacking objects: 100% (68/68), 9.42 KiB | 196.00 KiB/s, done.
From https://github.com/SUPLA/supla-docker
   4678349..03469c4  master     -> origin/master
   ae0ee8a..a36f18d  src        -> origin/src
 * [new tag]         v26.05     -> v26.05
Updating 9c35e28..03469c4
error: Your local changes to the following files would be overwritten by merge:
        docker-compose.proxy.yml
        docker-compose.yml
Please commit your changes or stash them before you merge.
Aborting
zrobiłem porządek i teraz jest ok:

Code: Select all

supla@Supla-Ubuntu:~/supla-docker$ git reset --hard
HEAD is now at 03469c4 Fix CLOUD_DOMAIN
supla@Supla-Ubuntu:~/supla-docker$ git pull
Already up to date.
dodatkowo nie zauważyłem w .env wpisu:

Code: Select all

DB_IMAGE=mysql:5.7.20
po usunięciu oczywiście wszystko działa jak należy :)
■Rpi4(m.2) Supla Cloud, Scripts ■Rpi3(sd) SD: 6x MI ATC, 1x W.S.
ROLETY_V3 x12 ■SWITCH_DUAL x4 ■GATE_MODULE_V3 x1 ■SOCKET_SSR x1 ■SMOKE_MODULE x1
SONOFF_TOUCH x4 ■YUNSCHAN x1 ■STAITCASE_DIMMER x1 ■MEW-01 x2 ■mROW-02 x1 ■LEW-01 x1
POW_R2 x2 ■SP111 x3
BigM
Posts: 13
Joined: Tue Feb 20, 2018 7:31 pm

Post

Cześć, po aktualizacji do wersji 26.05 mam problem z interfejsem webowym; wszystkie moduły wydają się być niedostępne. Jednak w aplikacji na Androida wszystko wyświetla się poprawnie i można z niego korzystać bez żadnych problemów.
You do not have the required permissions to view the files attached to this post.
BigM
Posts: 13
Joined: Tue Feb 20, 2018 7:31 pm

Post

Udało mi się rozwiązać problem samodzielnie ;).

Po automatycznej aktualizacji (Dackhand) wystąpiły problemy, więc przywróciłem kopię zapasową kontenera.

Jednak ta kopia zapasowa nadal zawierała stare pliki docker-compose.yml i supla.sh. Po ich ręcznej wymianie kontener znów działa :D .
robi05
Posts: 176
Joined: Wed Mar 13, 2024 7:47 pm
Has thanked: 1 time
Been thanked: 6 times

Post

Aktualizacja przeprowadzona:) niestety brak tych moich powiadomień po VPN :(
edm
Posts: 677
Joined: Mon Jan 15, 2018 6:18 pm
Been thanked: 2 times

Post

Czysta instalacja v26.05 od nowa.
Moja instancja supla póki co nie zarejestrowana, lecz to nie powinno mieć znaczenia.
Chcę zrobić integrację (jak poprzednio), żeby mieć dostęp do supla scripts, którą mam również u siebie lokalnie.
I kończy się na Internal server error.
Niby w Moje aplikacje OAuth jest widoczne ID2... ale nie da się w to wejść, ani tego usunąć. Zawsze pojawia się Internal server error.
Fragment z logów
docker exec supla-cloud tail -100 /var/www/cloud/var/log/prod-2026-05-16.log | grep -A5 "500\|ERROR\|oauth-clients\|secret"

Code: Select all

Unable to call method "belongsToUser" of object "SuplaBundle\Entity\Main\OAuth\ApiClient"
You do not have the required permissions to view the files attached to this post.
Last edited by edm on Sun May 17, 2026 9:25 pm, edited 1 time in total.
Wziąłem udział w Supla Offline Party 2023 :D
qba01
Posts: 14
Joined: Sun Jan 18, 2026 7:46 pm
Has thanked: 2 times

Post

U mnie nie chce się uaktualnić a nawet czysta instalacja nie wstaje, supla-cloud ciągle się restartuje. Przesyłam logi z supla-cloud:

Code: Select all

In Transport.php line 176:
                                                                               
  Unable to send emails via "gmail" as the bridge is not installed; try runni  
  ng "composer require symfony/google-mailer".                                 
                                                                               

[WARN] You are using deprecated MAILER_FROM environment variable. Please use SUPLA_MAILER_FROM instead.
PHP Deprecated:  FOS\OAuthServerBundle\Storage\OAuthStorage::__construct(): Implicitly marking parameter $userProvider as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/klapaudius/oauth-server-bundle/Storage/OAuthStorage.php on line 57
PHP Deprecated:  FOS\OAuthServerBundle\Storage\OAuthStorage::__construct(): Implicitly marking parameter $passwordHasherFactory as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/klapaudius/oauth-server-bundle/Storage/OAuthStorage.php on line 57
PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::__construct(): Implicitly marking parameter $twig as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/TemplateListener.php on line 39
PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $language as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43
PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $trustResolver as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43
PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $roleHierarchy as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43
PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $tokenStorage as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43
PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $authChecker as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43
PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43
PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::__construct(): Implicitly marking parameter $authChecker as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/EventListener/IsGrantedListener.php on line 33
PHP Deprecated:  FOS\OAuthServerBundle\Security\EntryPoint\OAuthEntryPoint::start(): Implicitly marking parameter $authException as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/klapaudius/oauth-server-bundle/Security/EntryPoint/OAuthEntryPoint.php on line 32
PHP Deprecated:  FOS\OAuthServerBundle\Form\Handler\AuthorizeFormHandler::setContainer(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/klapaudius/oauth-server-bundle/Form/Handler/AuthorizeFormHandler.php on line 60
PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct(): Implicitly marking parameter $registry as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php on line 46
PHP Deprecated:  Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct(): Implicitly marking parameter $expressionLanguage as nullable is deprecated, the explicit nullable type must be used instead in /var/www/cloud/vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php on line 46
Plik .env

Code: Select all

#############################################################################
# Refer to https://github.com/SUPLA/supla-docker/wiki/Environment-variables
# for more settings.
#############################################################################

# Where the SUPLA Cloud will be accessible? Put domain or IP address here with port (if custom).
SUPLA_HOST_ADDRESS=192.168.1.202

# Mailer settings
# For Gmail as a transport, use: "gmail://username:password@localhost"
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# With username and password, use: "smtp://username:password@localhost:25?encryption=&auth_mode="
MAILER_DSN=gmail://zzz:xxx@localhost
[email protected]

VOLUME_DATA=./var

PORT_HTTP=80
PORT_HTTPS=443

DATABASE_PASSWORD=xyz
APP_SECRET=zyx

DATABASE_IMAGE=mariadb:12.2.2
DATABASE_VERSION=mariadb-12.2.2

DOCKER_NETWORK_NAME=webproxy
COMPOSE_PROJECT_NAME=supla
COMPOSE_FILE=docker-compose.yml:docker-compose.standalone.yml
edm
Posts: 677
Joined: Mon Jan 15, 2018 6:18 pm
Been thanked: 2 times

Post

Odpowiedź na wcześniejsze moje pytanie dot. aktualnej zawartości pliku .env znalazłem tu: https://github.com/SUPLA/supla-docker/w ... -variables

Pozostał problem wykonania integracji opisywany tutaj viewtopic.php?p=236268#p236268
@fracz z uwagi na moje dane osobiste wysłałem Ci w wiadomości prywatnej link do wideo gdzie widać problem z wykonaniem integracji.
Jest to świeża instalacja od nowa i po tym próba zrobienia integracji.
Wziąłem udział w Supla Offline Party 2023 :D

Return to “supla-docker”