Pomoc TS-451+ - serwer MSSQL serwer w kółko się uruchamia i wyłącza

Status
Brak możliwości dodawania odpowiedzi.

qn@pFan3

Nowy użytkownik
Noobie
5 Styczeń 2023
2
0
1
33
QNAP
TS-453 Pro
Ethernet
1 GbE
Witam
Mam cały czas problem z uruchomieniem serwera MSSQL na dockerze. Dla uproszczenia obecna instancja została zainstalowana według identycznych informacji z tego wątku: https://forum.qnap.net.pl/threads/ts-x31k-i-docker-mssql.39858/#post-177069. Serwer jest zainstalowany ale tak jak w temacie napisałem w kółko status zmienia się z Running na Stopped. W logach coś co rzuca się przy takiej okazji to wpisy:

2023-01-07 13:36:55.63 spid11s Failed to get the volume information, -1073741772
2023-01-07 13:36:55.64 spid12s [3]. Feature Status: PVS: 0. CTR: 0. ConcurrentPFSUpdate: 1.
2023-01-07 13:36:55.67 spid12s Starting up database 'model'.
2023-01-07 13:36:55.70 spid12s Failed to get the volume information, -1073741772
2023-01-07 13:36:55.77 spid11s Failed to get the volume information, -1073741772
2023-01-07 13:36:55.79 spid11s Error: 17204, Severity: 16, State: 1.
2023-01-07 13:36:55.79 spid11s FCB::Open failed: Could not open file D:\dbs\sh\s19c\0912_144751\cmd\1o\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf for file number 1. OS error: 2(The system cannot find the file specified.).
2023-01-07 13:36:55.81 Server Common language runtime (CLR) functionality initialized.
2023-01-07 13:36:55.82 spid11s Error: 5120, Severity: 16, State: 101.
2023-01-07 13:36:55.82 spid11s Unable to open the physical file "D:\dbs\sh\s19c\0912_144751\cmd\1o\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf". Operating system error 2: "2(The system cannot find the file specified.)".
2023-01-07 13:36:55.85 spid12s Failed to get the volume information, -1073741772
2023-01-07 13:36:55.90 spid12s Error: 17204, Severity: 16, State: 1.
2023-01-07 13:36:55.90 spid12s FCB::Open failed: Could not open file D:\dbs\sh\s19c\0912_144751\cmd\1o\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\model.mdf for file number 1. OS error: 2(The system cannot find the file specified.).
2023-01-07 13:36:55.92 spid12s Error: 5120, Severity: 16, State: 101.
2023-01-07 13:36:55.92 spid12s Unable to open the physical file "D:\dbs\sh\s19c\0912_144751\cmd\1o\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\model.mdf". Operating system error 2: "2(The system cannot find the file specified.)".
2023-01-07 13:36:55.95 spid11s Failed to get the volume information, -1073741772
2023-01-07 13:36:55.99 spid12s Failed to get the volume information, -1073741772
2023-01-07 13:36:56.03 spid11s Failed to get the volume information, -1073741772
2023-01-07 13:36:56.05 spid11s Error: 17207, Severity: 16, State: 1.
2023-01-07 13:36:56.05 spid11s FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'D:\dbs\sh\s19c\0912_144751\cmd\1o\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\MSDBLog.ldf'. Diagnose and correct the operating system error, and retry the operation.
2023-01-07 13:36:56.13 spid11s File activation failure. The physical file name "D:\dbs\sh\s19c\0912_144751\cmd\1o\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\MSDBLog.ldf" may be incorrect.
2023-01-07 13:36:56.15 spid12s Failed to get the volume information, -1073741772
2023-01-07 13:36:56.18 spid12s Error: 17207, Severity: 16, State: 1.
2023-01-07 13:36:56.18 spid12s FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'D:\dbs\sh\s19c\0912_144751\cmd\1o\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\modellog.ldf'. Diagnose and correct the operating system error, and retry the operation.
2023-01-07 13:36:56.18 spid24s A self-generated certificate was successfully loaded for encryption.
2023-01-07 13:36:56.21 spid12s File activation failure. The physical file name "D:\dbs\sh\s19c\0912_144751\cmd\1o\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\modellog.ldf" may be incorrect.
2023-01-07 13:36:56.22 spid12s Error: 945, Severity: 14, State: 2.
2023-01-07 13:36:56.22 spid12s Database 'model' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.

Niestety z Qnapem obcuję od nie dawna i nie mam pomysłu jak podejść do tematu zwłaszcza jak widzę wpis z logów typu "File activation failure. The physical file name "D:\dbs\sh\s19c\0 ... " . Jaki dysk D:?
Pozdrawiam
 
Rozwiązanie
U
jak nie masz tam swojej bazy - to zatrzymaj kontener docker container stop mssql_test i go usuń docker container rm mssql_test , wywal wolumeny:
Kod:
docker volume rm mssql-data
docker volume rm mssql-log
docker volume rm mssql-backups
Połączono posty:

https://forum.qnap.net.pl/threads/mssql-w-dokerze.36962/post-160040 , przewiń do "P: Problemy z uruchomieniem wersji 2019"

polecenia z chmodem przygotuj sobie wcześniej , bo trzeba ja odpalić w SSH po tym jak zacznie marudzić o braku dostępu.
jak nie masz tam swojej bazy - to zatrzymaj kontener docker container stop mssql_test i go usuń docker container rm mssql_test , wywal wolumeny:
Kod:
docker volume rm mssql-data
docker volume rm mssql-log
docker volume rm mssql-backups
Połączono posty:

https://forum.qnap.net.pl/threads/mssql-w-dokerze.36962/post-160040 , przewiń do "P: Problemy z uruchomieniem wersji 2019"

polecenia z chmodem przygotuj sobie wcześniej , bo trzeba ja odpalić w SSH po tym jak zacznie marudzić o braku dostępu.
 
Dobra teraz już działa. Pojawia mi się co prawda coś takiego:
2023-01-07 15:40:40.70 Logon Error: 17836, Severity: 20, State: 17.
2023-01-07 15:40:40.70 Logon Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library. [CLIENT: 10.0.3.1]
ale wydaje mi się że to chyba nie powinno przynajmniej na razie wpłynąć na użytkownie z bazy. Dziękuję za pomoc pigers i zainteresowanie jerry1333.
Pozdrawiam
 
Status
Brak możliwości dodawania odpowiedzi.

Użytkownicy znaleźli tą stronę używając tych słów:

  1. docker
  2. mssql