Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Microsoft SQL Server CI #271

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Fix Microsoft SQL Server CI #271

merged 2 commits into from
Oct 23, 2024

Conversation

hiroyuki-sato
Copy link
Member

@hiroyuki-sato hiroyuki-sato commented Oct 8, 2024

Fix #270

The mssql server image can be found in the docker hub

I tried 2019-CU28-ubuntu-20.04 at first, But It doesn't work properly with the following errors.
So, I downgraded the image to 2019-CU27-ubuntu-20.04.

  /usr/bin/docker logs --details 046c8bbb88d08d685eae111b76586ece1a95f445b7518aa95bc8440d57ab426e
   SQL Server 2019 will run as non-root by default.
   This container is running as user mssql.
   To learn more visit https://go.microsoft.com/fwlink/?linkid=2099216.
   2024-10-08 05:13:27.09 Server      Setup step is copying system data file 'C:\templatedata\master.mdf' to '/var/opt/mssql/data/master.mdf'.
   
  2024-10-08 05:13:27.11 Server      Did not find an existing master data file /var/opt/mssql/data/master.mdf, copying the missing default master and other system database files. If you have moved the database location, but not moved the database files, startup may fail. To repair: shutdown SQL Server, move the master database to configured location, and restart.
   
  2024-10-08 05:13:27.11 Server      Setup step is copying system data file 'C:\templatedata\mastlog.ldf' to '/var/opt/mssql/data/mastlog.ldf'.
   
  2024-10-08 05:13:27.11 Server      Setup step is copying system data file 'C:\templatedata\model.mdf' to '/var/opt/mssql/data/model.mdf'.
   
  2024-10-08 05:13:27.12 Server      Setup step is copying system data file 'C:\templatedata\modellog.ldf' to '/var/opt/mssql/data/modellog.ldf'.
   
  2024-10-08 05:13:27.13 Server      Setup step is copying system data file 'C:\templatedata\msdbdata.mdf' to '/var/opt/mssql/data/msdbdata.mdf'.
   
  2024-10-08 05:13:27.14 Server      Setup step is copying system data file 'C:\templatedata\msdblog.ldf' to '/var/opt/mssql/data/msdblog.ldf'.
   
  2024-10-08 05:13:27.15 Server      Setup step is FORCE copying system data file 'C:\templatedata\model_replicatedmaster.mdf' to '/var/opt/mssql/data/model_replicatedmaster.mdf'.
   
  2024-10-08 05:13:27.15 Server      Setup step is FORCE copying system data file 'C:\templatedata\model_replicatedmaster.ldf' to '/var/opt/mssql/data/model_replicatedmaster.ldf'.
   
  2024-10-08 05:13:27.15 Server      Setup step is FORCE copying system data file 'C:\templatedata\model_msdbdata.mdf' to '/var/opt/mssql/data/model_msdbdata.mdf'.
   
  2024-10-08 05:13:27.17 Server      Setup step is FORCE copying system data file 'C:\templatedata\model_msdblog.ldf' to '/var/opt/mssql/data/model_msdblog.ldf'.
   
  2024-10-08 05:13:27.19 Server      Microsoft SQL Server 2019 (RTM-CU28) (KB5039747) - 15.0.4385.2 (X64) 
   
  	Jul 25 2024 21:32:40 
   
  	Copyright (C) 2019 Microsoft Corporation
   
  	Developer Edition (64-bit) on Linux (Ubuntu 20.04.6 LTS) <X64>
   
  2024-10-08 05:13:27.19 Server      UTC adjustment: 0:00
   
  2024-10-08 05:13:27.20 Server      (c) Microsoft Corporation.
   
  2024-10-08 05:13:27.20 Server      All rights reserved.
   
  2024-10-08 05:13:27.20 Server      Server process ID is 388.
   
  2024-10-08 05:13:27.20 Server      Logging SQL Server messages in file '/var/opt/mssql/log/errorlog'.
   
  2024-10-08 05:13:27.20 Server      Registry startup parameters: 
   
  	 -d /var/opt/mssql/data/master.mdf
   
  	 -l /var/opt/mssql/data/mastlog.ldf
   
  2024-10-08 05:13:28.29 spid12s     [2]. Feature Status: PVS: 0. CTR: 0. ConcurrentPFSUpdate: 1.
   
  2024-10-08 05:13:28.29 spid12s     Starting up database 'tempdb'.
   
  2024-10-08 05:13:28.43 spid12s     The tempdb database has 1 data file(s).
   
  2024-10-08 05:13:28.43 spid27s     The Service Broker endpoint is in disabled or stopped state.
   
  2024-10-08 05:13:28.43 spid27s     The Database Mirroring endpoint is in disabled or stopped state.
   
  2024-10-08 05:13:28.44 spid27s     Service Broker manager has started.
   
  2024-10-08 05:13:28.44 spid9s      Database 'msdb' running the upgrade step from version 902 to version 903.
   
  2024-10-08 05:13:28.45 spid9s      Database 'msdb' running the upgrade step from version 903 to version 904.
   
  2024-10-08 05:13:28.57 spid9s      Recovery is complete. This is an informational message only. No user action is required.
   
  2024-10-08 05:13:28.58 spid19s     The default language (LCID 0) has been set for engine and full-text services.
   
  2024-10-08 05:13:28.66 spid19s     The tempdb database has 4 data file(s).
   
  2024-10-08 05:18:36.02 spid60      Attempting to load library 'xplog70.dll' into memory. This is an informational message only. No user action is required.
   
  2024-10-08 05:18:36.04 spid60      Using 'xplog70.dll' version '2019.150.4385' to execute extended stored procedure 'xp_msver'. This is an informational message only; no user action is required.
  Error: Failed to initialize container mcr.microsoft.com/mssql/server:2019-CU28-ubuntu-20.04
Error: One or more containers failed to start.

@hiroyuki-sato hiroyuki-sato requested a review from a team as a code owner October 8, 2024 12:38
Co-authored-by: Dai MIKURUBE <dmikurube@users.noreply.github.com>
@hiroyuki-sato
Copy link
Member Author

@dmikurube Thanks! I merged the suggested change.

Copy link
Member

@dmikurube dmikurube left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hiroyuki-sato hiroyuki-sato merged commit d49aadb into master Oct 23, 2024
12 checks passed
@hiroyuki-sato hiroyuki-sato deleted the embulk/fix-sqlserver-ci branch October 23, 2024 12:06
@hiroyuki-sato
Copy link
Member Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[CI] Microsoft SQL Server doesn't work properly.
2 participants