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 broken builds #254

Closed
dhui opened this issue Jul 30, 2019 · 5 comments
Closed

Fix broken builds #254

dhui opened this issue Jul 30, 2019 · 5 comments

Comments

@dhui
Copy link
Member

dhui commented Jul 30, 2019

Describe the Bug
CI builds are broken due to docker client/server API mismatches.
We're currently getting the following error message when pulling docker images: Error response from daemon: client version 1.39 is too new. Maximum supported API version is 1.38

Steps to Reproduce
Run a build on Travis CI.
Example: https://travis-ci.com/golang-migrate/migrate/builds/120554304

Expected Behavior
Docker images should be pulled w/o any issues and builds should succeed

Migrate Version
N/A

Loaded Source Drivers
N/A

Loaded Database Drivers
N/A

Go Version
N/A

Stacktrace
N/A

Additional context
Need to use docker version 18.09 at minimum to support API version 1.39
https://docs.docker.com/develop/sdk/#api-version-matrix

Could fix by:

  1. installing a newer version of docker in Travis:
    https://docs.travis-ci.com/user/docker/#installing-a-newer-docker-version
  2. Using CircleCI and specifying docker version 18.09.3: https://circleci.com/docs/2.0/building-docker-images/#docker-version
dhui added a commit that referenced this issue Jul 30, 2019
dhui added a commit that referenced this issue Jul 30, 2019
@dhui
Copy link
Member Author

dhui commented Aug 10, 2019

Builds are now failing b/c of issues w/ the MS SQLServer docker tests...
Failed build logs with container logging enabled: https://travis-ci.org/dhui/migrate/builds/570146763

Builds are failing due to: microsoft/mssql-docker#441

       dktest.go:115: Container logs: �s2019-08-10T08:33:53.072893665Z This is an evaluation version.  There are [161] days left in the evaluation period.

            ��2019-08-10T08:33:53.087828576Z This program has encountered a fatal error and cannot continue running at Sat Aug 10 08:33:53 2019

            �R2019-08-10T08:33:53.087856275Z The following diagnostic information is available:

            � 2019-08-10T08:33:53.087860023Z 

            �;2019-08-10T08:33:53.087862716Z          Reason: 0x00000003

            �;2019-08-10T08:33:53.087865477Z          Status: 0x00000001

            ��2019-08-10T08:33:53.087868099Z         Message: (*__errno_location ()) == 28 || (*__errno_location ()) == 22 || (*__errno_location ()) == 38

            �02019-08-10T08:33:53.087870905Z           Stack:

            �J2019-08-10T08:33:53.087873519Z                  IP               Function

            �h2019-08-10T08:33:53.087876213Z                  ---------------- --------------------------------------

            ��B2019-08-10T08:33:53.087879069Z                  000055666d6ab3aa std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c

            ��B2019-08-10T08:33:53.087886782Z                  000055666d6aaea9 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c

            ��B2019-08-10T08:33:53.087890673Z                  000055666d5f03ee std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c

            ��B2019-08-10T08:33:53.087894512Z                  000055666d68b923 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c

            ��B2019-08-10T08:33:53.087899740Z                  000055666d6872f1 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c

            ��B2019-08-10T08:33:53.087904597Z                  000055666d687e6f std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c

            ��B2019-08-10T08:33:53.087908887Z                  000055666d5ec79b std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c

            �K2019-08-10T08:33:53.087924387Z                  000055666d5de645 <unknown>

            �X2019-08-10T08:33:53.087927319Z                  00007f6f9cdc5830 __libc_start_main+0xf0

            �K2019-08-10T08:33:53.087929918Z                  000055666d5db029 <unknown>

            �=2019-08-10T08:33:53.087932666Z         Process: 7 - sqlservr

            �22019-08-10T08:33:53.087935235Z          Thread: 7

            �U2019-08-10T08:33:53.087937785Z     Instance Id: ba715c31-0b22-418a-baee-eb54b7104ba5

            �U2019-08-10T08:33:53.087940353Z        Crash Id: d3984855-8970-4a97-b4a7-90f51b720598

            �q2019-08-10T08:33:53.087943067Z     Build stamp: e7cecc1663d059f8a4c7f4e379339d34261f68cfceb977a62c34ac7bccbb72af

            �C2019-08-10T08:33:53.087945753Z    Distribution: Ubuntu 16.04.6 LTS

            �22019-08-10T08:33:53.087948342Z      Processors: 2

            �A2019-08-10T08:33:53.087950875Z    Total Memory: 7836004352 bytes

            �I2019-08-10T08:33:53.087953481Z       Timestamp: Sat Aug 10 08:33:53 2019

            �22019-08-10T08:33:53.087956048Z      Last errno: 1

            �H2019-08-10T08:33:53.087958591Z Last errno text: Operation not permitted

            � 2019-08-10T08:33:53.095332066Z 

            �22019-08-10T08:33:53.106381241Z Ubuntu 16.04.6 LTS

            �\2019-08-10T08:33:53.111136824Z Capturing core dump and information to /var/opt/mssql/log...

            �Y2019-08-10T08:33:53.683873965Z dmesg: read kernel buffer failed: Operation not permitted

            �<2019-08-10T08:33:53.687400488Z No journal files were found.

            �<2019-08-10T08:33:53.689662913Z No journal files were found.

            �Z2019-08-10T08:33:53.691670137Z Sat Aug 10 08:33:53 UTC 2019 Capturing program information

            �h2019-08-10T08:33:53.883172405Z Sat Aug 10 08:33:53 UTC 2019 Attempting to capture a dump with paldumper

            ��2019-08-10T08:33:54.070816169Z /opt/mssql/bin/crash-support-functions.sh: line 215:   198 Aborted                 (core dumped) $program_dir/paldumper $dokill -p $pid -d $paldumper_dump_type_str -o $dump_filename.gdmp > $paldumper_debuglog_filename 2>&1

            �I2019-08-10T08:33:54.072053368Z WARNING: Capture attempt failure detected

            �T2019-08-10T08:33:54.072236279Z Attempting to capture a filtered dump with paldumper

            �G2019-08-10T08:33:54.198879141Z Captured a filtered dump with paldumper

            �W2019-08-10T08:33:54.200594662Z Sat Aug 10 08:33:54 UTC 2019 Capturing program binaries

            �W2019-08-10T08:33:54.976596372Z Sat Aug 10 08:33:54 UTC 2019 Compressing the dump files

@thaJeztah
Copy link
Contributor

thaJeztah commented Aug 17, 2019

I opened #270 to address the API version mismatch

edit: copied the wrong link

@dhui
Copy link
Member Author

dhui commented Aug 17, 2019

I opened #270 to address the API version mismatch

The version match issue is no longer occurring, but thanks for the PR to protect us from the issue in the future!

Builds are currently failing due to the MS SQLServer Docker container not starting up...
It seems that there are a few open issues related to what we're experiencing. I have a branch with extra container logging enabled (for debugging) and failed attempts to fix the issue if anyone wants to help fix the issue.

@dhui
Copy link
Member Author

dhui commented Aug 19, 2019

Will drop official support for MS SQL Server so future releases aren't blocked, see: #160 (comment)

@dhui
Copy link
Member Author

dhui commented Aug 19, 2019

Fixed by d068374

@dhui dhui closed this as completed Aug 19, 2019
FPiety0521 pushed a commit to FPiety0521/Golang-SQL that referenced this issue May 24, 2023
FPiety0521 pushed a commit to FPiety0521/Golang-SQL that referenced this issue May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants