Problem z własną instancją Supli

User avatar
lesny8
Posts: 3132
Joined: Mon Dec 11, 2017 9:43 pm
Has thanked: 10 times
Been thanked: 9 times

Post

Najpierw usuń obrazy Supli, które masz pobrane/wybudowane, dopiero potem zabierz się za instalowanie od nowa.

Jak zaczniesz od nowa, to po wygenerowaniu .env podmień katalog /var a dopiero na końcu wystartuj skrypt.
SOP 2023 :heavy_check_mark:
SOP 2024 :heavy_check_mark:
Czekam na kolejne Supla Offline Party :upside_down_face:
🧩: 🔑cz->b ⛴️+ila
jaku2k
Posts: 920
Joined: Sun May 24, 2020 8:40 pm
Has thanked: 1 time

Post

lesny8 wrote: Wed Feb 23, 2022 7:27 am Najpierw usuń obrazy Supli, które masz pobrane/wybudowane, dopiero potem zabierz się za instalowanie od nowa.

Jak zaczniesz od nowa, to po wygenerowaniu .env podmień katalog /var a dopiero na końcu wystartuj skrypt.
Dziękuję bardzo za pomoc. Udało się uruchomić. :)

Niestety nie ma zapisanych danych (urządzeń, identyfikatorów dostępu, itd.). :(
Pozdrawiam
Jakub
User avatar
lesny8
Posts: 3132
Joined: Mon Dec 11, 2017 9:43 pm
Has thanked: 10 times
Been thanked: 9 times

Post

No to coś po drodze musiałeś zamieszać.
Baza jest pusta?
SOP 2023 :heavy_check_mark:
SOP 2024 :heavy_check_mark:
Czekam na kolejne Supla Offline Party :upside_down_face:
🧩: 🔑cz->b ⛴️+ila
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

Może nie ten "var" skopiowałeś. Albo nie masz właściwej jego kopii.
SUPLA.... Nareszcie w domu.
User avatar
lesny8
Posts: 3132
Joined: Mon Dec 11, 2017 9:43 pm
Has thanked: 10 times
Been thanked: 9 times

Post

Też mi się tak zdaje, że nie ten /var
SOP 2023 :heavy_check_mark:
SOP 2024 :heavy_check_mark:
Czekam na kolejne Supla Offline Party :upside_down_face:
🧩: 🔑cz->b ⛴️+ila
jaku2k
Posts: 920
Joined: Sun May 24, 2020 8:40 pm
Has thanked: 1 time

Post

Skopiowałem var obecny w folderze supla (w obrębie którego poruszam się jeśli chodzi o instalację Supli).
Są w nim foldery
backups
cloud-local
cloud-logs

oraz pliki
.gitignore oraz supla.sql
Pozdrawiam
Jakub
jaku2k
Posts: 920
Joined: Sun May 24, 2020 8:40 pm
Has thanked: 1 time

Post

Poniżej zamieszczam logi supla-server

Code: Select all

2022-02-23 15:04:47,407 INFO exited: supla-server (exit status 1; not expected)
INFO[1645628687.440059] Scheduler version 2.3.11
INFO[1645628687.440143] Started at Wed Feb 23 15:04:47 2022
2022-02-23 15:04:47,441 INFO spawned: 'supla-server' with pid 29
ERR[1645628687.442443] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
ERR[1645628687.442951] The version of the database can not be determined!
2022-02-23 15:04:47,443 INFO exited: supla-scheduler (exit status 1; not expected)
INFO[1645628687.449336] Server version 2.3.52 [Protocol v17]
INFO[1645628687.449411] Started at Wed Feb 23 15:04:47 2022
ERR[1645628687.451795] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
ERR[1645628687.451916] The version of the database can not be determined!
2022-02-23 15:04:47,452 INFO exited: supla-server (exit status 1; not expected)
2022-02-23 15:04:48,454 INFO spawned: 'supla-scheduler' with pid 30
2022-02-23 15:04:48,455 INFO spawned: 'supla-server' with pid 31
INFO[1645628688.459962] Scheduler version 2.3.11
INFO[1645628688.460295] Started at Wed Feb 23 15:04:48 2022
ERR[1645628688.462656] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
INFO[1645628688.463226] Server version 2.3.52 [Protocol v17]
ERR[1645628688.463371] The version of the database can not be determined!
INFO[1645628688.463393] Started at Wed Feb 23 15:04:48 2022
2022-02-23 15:04:48,464 INFO exited: supla-scheduler (exit status 1; not expected)
ERR[1645628688.465797] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
ERR[1645628688.465946] The version of the database can not be determined!
2022-02-23 15:04:48,466 INFO exited: supla-server (exit status 1; not expected)
2022-02-23 15:04:50,469 INFO spawned: 'supla-scheduler' with pid 32
2022-02-23 15:04:50,470 INFO spawned: 'supla-server' with pid 33
INFO[1645628690.474819] Scheduler version 2.3.11
INFO[1645628690.475303] Started at Wed Feb 23 15:04:50 2022
ERR[1645628690.477485] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
ERR[1645628690.478122] The version of the database can not be determined!
2022-02-23 15:04:50,479 INFO exited: supla-scheduler (exit status 1; not expected)
INFO[1645628690.479400] Server version 2.3.52 [Protocol v17]
INFO[1645628690.479461] Started at Wed Feb 23 15:04:50 2022
ERR[1645628690.481181] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
ERR[1645628690.481470] The version of the database can not be determined!
2022-02-23 15:04:50,482 INFO exited: supla-server (exit status 1; not expected)
2022-02-23 15:04:53,486 INFO spawned: 'supla-scheduler' with pid 34
2022-02-23 15:04:53,488 INFO spawned: 'supla-server' with pid 35
INFO[1645628693.609722] Scheduler version 2.3.11
INFO[1645628693.610367] Started at Wed Feb 23 15:04:53 2022
INFO[1645628693.611042] Server version 2.3.52 [Protocol v17]
INFO[1645628693.611505] Started at Wed Feb 23 15:04:53 2022
ERR[1645628693.612743] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
ERR[1645628693.613215] The version of the database can not be determined!
2022-02-23 15:04:53,614 INFO exited: supla-scheduler (exit status 1; not expected)
ERR[1645628693.614475] MySQL - stmt prepare error - Table 'supla.migration_versions' doesn't exist
2022-02-23 15:04:53,615 INFO gave up: supla-scheduler entered FATAL state, too many start retries too quickly
ERR[1645628693.614592] The version of the database can not be determined!
2022-02-23 15:04:53,615 INFO exited: supla-server (exit status 1; not expected)
2022-02-23 15:04:53,615 INFO gave up: supla-server entered FATAL state, too many start retries too quickly
Jak wpisałem

Code: Select all

docker restart supla-server
to w Cloudzie w końcu zaczęły się rejestrować urządzenia. Niestety danych brak.

Pewnie, tak jak Panowie piszecie, popełniłem gdzieś błąd przy kopiowaniu var-a. Czekam na ustosunkowanie się do wiadomości powyżej.
Pozdrawiam
Jakub
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

Z logów wynika, że baza jest niekompletna.
SUPLA.... Nareszcie w domu.
jaku2k
Posts: 920
Joined: Sun May 24, 2020 8:40 pm
Has thanked: 1 time

Post

pzygmunt wrote: Wed Feb 23, 2022 6:12 pm Z logów wynika, że baza jest niekompletna.
Jeśli dobrze rozumuję, to chyba jednak poprzednie wariacje komend, jakie wykonałem (te, o których wspominam na początku tego wątku) spowodowały usunięcie danych z bazy danych. Jak próbuję otworzyć wczoraj pobrany plik supla.sql (zarówno notatnikiem, jak i phpmyadminem), to otrzymuję puty dokument.

Z racji tego, że na pulpicie zrobił się niezły bałagan, to trudno mi się odnaleźć w chronologii pobierania plików. Mam jednak wciągnięty do phpmyadmina plik, który zawiera różne tabele, niestety również puste.
You do not have the required permissions to view the files attached to this post.
Pozdrawiam
Jakub
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

Na screenie nie ma ani jednej Suplowej.
SUPLA.... Nareszcie w domu.

Return to “Pomoc”