Build: #1593 failed

Job: Test on MySQL failed

Stages & jobs

  1. Build and push

  2. Validate

  3. Update versions

  4. Release

    Requires a user to start manually
  5. Release 2nd stage

  6. Release 3rd stage

Job result summary

Completed
Duration
24 minutes
Agent
yu.openmrs.org
Revision
c94bc382dc09eb19fabc66101048bfaf422b7bae
Failing since
#1566 (Code changes detected – )
No failed test found. A possible compilation error occurred.

Error summary

The build generated some errors. See the full build log for more details.

+ docker pull openmrs/openmrs-platform@sha256:d1053e615f998b051ead1a66b51adad8ddd91cf34f592f4268c4647fbb774a41
+ docker-compose -f docker-compose.yml -f docker-compose.mysql.yml down -v
Removing network op-opm-tom_default
Network op-opm-tom_default not found.
Removing volume op-opm-tom_db-data
Volume op-opm-tom_db-data not found.
Removing volume op-opm-tom_openmrs-data
Volume op-opm-tom_openmrs-data not found.
+ docker-compose -f docker-compose.yml -f docker-compose.mysql.yml up --build -d
Creating network "op-opm-tom_default" with the default driver
Creating volume "op-opm-tom_db-data" with default driver
Creating volume "op-opm-tom_openmrs-data" with default driver
Pulling db (mysql:5.6)...
Building api
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.39kB done
#1 DONE 0.1s

#2 resolve image config for docker-image://docker.io/docker/dockerfile:1
#2 DONE 0.3s

#3 docker-image://docker.io/docker/dockerfile:1@sha256:b6afd42430b15f2d2a4c5a02b919e98a525b785b1aaff16747d2f623364e39b6
#3 CACHED

#4 [internal] load metadata for docker.io/openmrs/openmrs-core:nightly
#4 ...

#5 [internal] load metadata for docker.io/openmrs/openmrs-core:dev
#5 DONE 0.5s

#4 [internal] load metadata for docker.io/openmrs/openmrs-core:nightly
#4 DONE 0.6s

#6 [internal] load .dockerignore
#6 transferring context:
#6 transferring context: 2B done
#6 DONE 0.1s

#7 [dev 1/6] FROM docker.io/openmrs/openmrs-core:dev@sha256:47010edc28886c41440a9b918168d3eb3e28a36ab4e9e785ab1fd13b5125e17d
#7 DONE 0.0s

#8 [internal] load build context
#8 transferring context: 8.53kB done
#8 DONE 0.1s

#9 [dev 3/6] COPY pom.xml openmrs-distro.properties readme.txt ./
#9 CACHED

#10 [dev 4/6] RUN mvn install -s /usr/share/maven/ref/settings-docker.xml
#10 CACHED

#11 [dev 5/6] RUN cp /openmrs_distro/target/distro/web/openmrs.war /openmrs/distribution/openmrs_core/ &&     cp /openmrs_distro/target/distro/web/openmrs-distro.properties /openmrs/distribution/ &&     cp -R /openmrs_distro/target/distro/web/modules /openmrs/distribution/openmrs_modules &&     cp -R /openmrs_distro/target/distro/web/owa /openmrs/distribution/openmrs_owas
#11 CACHED

#12 [dev 2/6] WORKDIR /openmrs_distro
#12 CACHED

#13 [dev 6/6] RUN mvn clean -s /usr/share/maven/ref/settings-docker.xml
#13 CACHED

#14 [stage-1 1/5] FROM docker.io/openmrs/openmrs-core:nightly@sha256:fbe473befb57c40a03197efff81785131f1d94c43233de7deb00dc7870456325
#14 resolve docker.io/openmrs/openmrs-core:nightly@sha256:fbe473befb57c40a03197efff81785131f1d94c43233de7deb00dc7870456325 0.1s done
#14 sha256:c19f790d19f0a2c00d4fa0f48cb0198cd8c943ac8a7bf03dd432729c25dc3d57 3.71kB / 3.71kB done
#14 sha256:ca54833834b8b001ad8d3fd61510849a6bedde7fd34143430aa882af9b1de333 18.23kB / 18.23kB done
#14 sha256:fbe473befb57c40a03197efff81785131f1d94c43233de7deb00dc7870456325 1.61kB / 1.61kB done
#14 DONE 0.9s

#15 [stage-1 2/5] COPY --from=dev /openmrs/distribution/openmrs_core/openmrs.war /openmrs/distribution/openmrs_core/
#15 DONE 0.4s

#16 [stage-1 3/5] COPY --from=dev /openmrs/distribution/openmrs-distro.properties /openmrs/distribution/
#16 DONE 0.1s

#17 [stage-1 4/5] COPY --from=dev /openmrs/distribution/openmrs_modules /openmrs/distribution/openmrs_modules
#17 DONE 0.3s

#18 [stage-1 5/5] COPY --from=dev /openmrs/distribution/openmrs_owas /openmrs/distribution/openmrs_owas
#18 DONE 0.1s

#19 exporting to image
#19 exporting layers
#19 exporting layers 0.3s done
#19 writing image sha256:f0806ae2713a12893bd3c0673652d7c79851f5698c65f398d366d39fda8b5053 done
#19 naming to docker.io/openmrs/openmrs-platform:nightly 0.0s done
#19 DONE 0.4s

1 warning found (use docker --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 4)
Creating op-opm-tom_db_1 ...
Creating op-opm-tom_db_1 ... done
Creating op-opm-tom_api_1 ...
Creating op-opm-tom_api_1 ... done
+ sleep 500
+ docker ps
+ docker-compose logs
HTTP request sent, awaiting response... 500
--2025-11-06 16:24:21--  (try: 2)  http://localhost:8080/openmrs/
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
Remote file does not exist -- broken link!!!

+ ((  24 == 30  ))
+ echo 'Sleeping 30 seconds'
+ sleep 30
+ count=25
+ wget --spider http://localhost:8080/openmrs/
Spider mode enabled. Check if remote file exists.
--2025-11-06 16:24:51--  http://localhost:8080/openmrs/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
--2025-11-06 16:24:52--  (try: 2)  http://localhost:8080/openmrs/
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
Remote file does not exist -- broken link!!!

+ ((  25 == 30  ))
+ echo 'Sleeping 30 seconds'
+ sleep 30
+ count=26
+ wget --spider http://localhost:8080/openmrs/
Spider mode enabled. Check if remote file exists.
--2025-11-06 16:25:22--  http://localhost:8080/openmrs/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
--2025-11-06 16:25:23--  (try: 2)  http://localhost:8080/openmrs/
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
Remote file does not exist -- broken link!!!

+ ((  26 == 30  ))
+ echo 'Sleeping 30 seconds'
+ sleep 30
+ count=27
+ wget --spider http://localhost:8080/openmrs/
Spider mode enabled. Check if remote file exists.
--2025-11-06 16:25:53--  http://localhost:8080/openmrs/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
--2025-11-06 16:25:54--  (try: 2)  http://localhost:8080/openmrs/
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
Remote file does not exist -- broken link!!!

+ ((  27 == 30  ))
+ echo 'Sleeping 30 seconds'
+ sleep 30
+ count=28
+ wget --spider http://localhost:8080/openmrs/
Spider mode enabled. Check if remote file exists.
--2025-11-06 16:26:24--  http://localhost:8080/openmrs/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
--2025-11-06 16:26:25--  (try: 2)  http://localhost:8080/openmrs/
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
Remote file does not exist -- broken link!!!

+ ((  28 == 30  ))
+ echo 'Sleeping 30 seconds'
+ sleep 30
+ count=29
+ wget --spider http://localhost:8080/openmrs/
Spider mode enabled. Check if remote file exists.
--2025-11-06 16:26:55--  http://localhost:8080/openmrs/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
--2025-11-06 16:26:56--  (try: 2)  http://localhost:8080/openmrs/
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
Remote file does not exist -- broken link!!!

+ ((  29 == 30  ))
+ echo 'Sleeping 30 seconds'
+ sleep 30
+ count=30
+ wget --spider http://localhost:8080/openmrs/
Spider mode enabled. Check if remote file exists.
--2025-11-06 16:27:26--  http://localhost:8080/openmrs/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
--2025-11-06 16:27:27--  (try: 2)  http://localhost:8080/openmrs/
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500
Remote file does not exist -- broken link!!!

+ ((  30 == 30  ))
+ echo 'Server didn'\''t start'
+ cd target/distro/
/data/bamboo-agent/temp/OP-OPM-TOM-1593-ScriptBuildTask-5651384181249774508.sh: line 8: cd: target/distro/: No such file or directory
Stopping op-opm-tom_api_1 ...
Stopping op-opm-tom_db_1  ...
Stopping op-opm-tom_api_1 ... done
Stopping op-opm-tom_db_1  ... done
Removing op-opm-tom_api_1 ...
Removing op-opm-tom_db_1  ...
Removing op-opm-tom_db_1  ... done
Removing op-opm-tom_api_1 ... done
Removing network op-opm-tom_default
Removing volume op-opm-tom_db-data
Removing volume op-opm-tom_openmrs-data