Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-163

Frequent build failures on Travis

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Blocker Blocker
    • 0.3.6, 0.4
    • 0.3.5
    • build-infrastructure
    • None

      Lately our Travis-CI builds are failing very frequently, and interestingly during the installation of dependencies phase. The failure is strange, namely that a Docker container cannot be started because one is already running:

      [INFO] --- docker-maven-plugin:0.18.1:build (start) @ debezium-connector-mysql ---
      [INFO] DOCKER> Pulling from mysql/mysql-server
      [INFO] DOCKER> Digest: sha256:b52eb7d36e5cdb505b0d236416dd3cc2c68506ea26921790ef66500294b62c57
      [INFO] DOCKER> Status: Image is up to date for mysql/mysql-server:5.7
      [INFO] DOCKER> Pulled mysql/mysql-server:5.7 in 584 milliseconds
      [INFO] Copying files to /home/travis/build/debezium/debezium/debezium-connector-mysql/target/docker/debezium/mysql-server-test-database/build/maven
      [INFO] Building tar: /home/travis/build/debezium/debezium/debezium-connector-mysql/target/docker/debezium/mysql-server-test-database/tmp/docker-build.tar
      [INFO] DOCKER> docker-build.tar: Created [debezium/mysql-server-test-database] in 169 milliseconds
      [INFO] DOCKER> Step 1 : FROM mysql/mysql-server:5.7
      [INFO] DOCKER> ---> b167dfd08d33
      [INFO] DOCKER> Step 2 : COPY maven /
      [INFO] DOCKER> ---> Using cache
      [INFO] DOCKER> ---> 1b481e4b963d
      [INFO] DOCKER> Successfully built 1b481e4b963d
      [INFO] DOCKER> [debezium/mysql-server-test-database]: Built image sha256:1b481
      [INFO] 
      [INFO] --- docker-maven-plugin:0.18.1:start (start) @ debezium-connector-mysql ---
      [INFO] DOCKER> [debezium/mysql-server-test-database]: Start container 902dac3492ee
      [ERROR] DOCKER> Error occurred during container startup, shutting down...
      [ERROR] DOCKER> I/O Error
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] 
      [INFO] Debezium Checkstyle Rules .......................... SUCCESS [  2.129 s]
      [INFO] Debezium Parent POM ................................ SUCCESS [  0.979 s]
      [INFO] Debezium Assembly Descriptors ...................... SUCCESS [  1.565 s]
      [INFO] Debezium Core ...................................... SUCCESS [  1.967 s]
      [INFO] Debezium Embedded .................................. SUCCESS [  1.669 s]
      [INFO] Debezium Connector for MySQL ....................... FAILURE [  2.935 s]
      [INFO] Debezium Connector for MongoDB ..................... SKIPPED
      [INFO] Debezium Connector for PostgreSQL .................. SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 12.443 s
      [INFO] Finished at: 2016-12-02T14:06:21+00:00
      [INFO] Final Memory: 44M/233M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.18.1:start (start) on project debezium-connector-mysql: I/O Error: Unable to start container id [902dac3492ee]: driver failed programming external connectivity on endpoint tender_mcclintock (a39d46d5545de05801a6bd4fd87ed34e8aaebe40ed86ad7dcbdd444deade4859): Error starting userland proxy: listen tcp 0.0.0.0:3306: bind: address already in use 
      

      First of all, we shouldn't be starting Docker containers during this step. Secondly, there are no existing containers: the .travis.yml file already is running docker ps -a several times prior to this and there are no containers running. Therefore, it's likely something to do with the recently-upgraded Docker Maven Plugin.

              rhauch Randall Hauch (Inactive)
              rhauch Randall Hauch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: