OpenMRS Core 2.6

Build: #62 failed

Job: Deploy to docker failed

Stages & jobs

  1. Build

  2. Test

  3. Deploy

  4. Release

    Requires a user to start manually

Job result summary

Completed
Duration
33 seconds
Revision
8db7164e8a4d968a0e2424216f9ddf10921ccb70 8db7164e8a4d968a0e2424216f9ddf10921ccb70
Fixed in
#64 (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.

#21 23.20 ================================================================================
#21 23.20 Install  1 Package (+4 Dependent packages)
#21 23.20
#21 23.23 Total download size: 1.5 M
#21 23.23 Installed size: 4.2 M
#21 23.23 Downloading packages:
#21 24.48 --------------------------------------------------------------------------------
#21 24.48 Total                                              1.2 MB/s | 1.5 MB  00:01     
#21 24.49 Running transaction check
#21 24.50 Running transaction test
#21 24.56 Transaction test succeeded
#21 24.57 Running transaction
#21 24.70   Installing : libcap-ng-0.7.5-4.amzn2.0.4.x86_64                           1/5
#21 25.21   Installing : audit-libs-2.8.1-3.amzn2.1.x86_64                            2/5
#21 25.31   Installing : ustr-1.0.4-16.amzn2.0.3.x86_64                               3/5
#21 25.45   Installing : libsemanage-2.5-11.amzn2.x86_64                              4/5
#21 26.08   Installing : 2:shadow-utils-4.1.5.1-24.amzn2.0.2.x86_64                   5/5
#21 26.18   Verifying  : audit-libs-2.8.1-3.amzn2.1.x86_64                            1/5
#21 26.22   Verifying  : ustr-1.0.4-16.amzn2.0.3.x86_64                               2/5
#21 26.25   Verifying  : libsemanage-2.5-11.amzn2.x86_64                              3/5
#21 26.28   Verifying  : 2:shadow-utils-4.1.5.1-24.amzn2.0.2.x86_64                   4/5
#21 26.30   Verifying  : libcap-ng-0.7.5-4.amzn2.0.4.x86_64                           5/5
#21 26.36
#21 26.36 Installed:
#21 26.36   shadow-utils.x86_64 2:4.1.5.1-24.amzn2.0.2                                   
#21 26.36
#21 26.36 Dependency Installed:
#21 26.36   audit-libs.x86_64 0:2.8.1-3.amzn2.1    libcap-ng.x86_64 0:0.7.5-4.amzn2.0.4   
#21 26.36   libsemanage.x86_64 0:2.5-11.amzn2      ustr.x86_64 0:1.0.4-16.amzn2.0.3       
#21 26.36
#21 26.36 Complete!
#21 26.50 Loaded plugins: ovl, priorities
#21 26.51 Cleaning repos: AmazonCorretto amzn2-core
#21 26.51 Cleaning up everything
#21 26.51 Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
#21 DONE 27.0s

#63 [linux/amd64 dev 15/30] RUN --mount=type=cache,target=/root/.m2 mvn --non-recursive install -DskipTests
#63 21.08 Progress (1): 3.4/5.4 kB
Progress (1): 5.4 kB   
                   
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/plexus/plexus-components/1.1.18/plexus-components-1.1.18.pom (5.4 kB at 21 kB/s)
#63 21.22 Downloading from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/plexus/plexus/2.0.7/plexus-2.0.7.pom
#63 21.34 Progress (1): 3.4/17 kB
Progress (1): 6.2/17 kB
Progress (1): 9.0/17 kB
Progress (1): 12/17 kB
Progress (1): 15/17 kB
Progress (1): 17 kB   
                   
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/plexus/plexus/2.0.7/plexus-2.0.7.pom (17 kB at 69 kB/s)
#63 21.47 Downloading from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.pom
#63 21.60 Progress (1): 815 B
                   
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.pom (815 B at 3.2 kB/s)
#63 21.73 Downloading from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/plexus/plexus-containers/1.5.5/plexus-containers-1.5.5.pom
#63 21.85 Progress (1): 3.4/4.2 kB
Progress (1): 4.2 kB   
#63 ...

#66 [linux/amd64 stage-1  3/11] RUN if [ "amd64" = "arm64" ] ; then TINI_URL="https://github.com/krallin/tini/releases/download/v0.19.0/tini-arm64" TINI_SHA=07952557df20bfd2a95f9bef198b445e006171969499a1d361bd9e6f8e5e0e81 ; fi     && curl -fsSL -o /usr/bin/tini https://github.com/krallin/tini/releases/download/v0.19.0/tini     && echo "93dcc18adc78c65a028a84799ecf8ad40c936fdfc5f2a57b1acda5a8117fa82c  /usr/bin/tini" | sha256sum -c     && chmod +rx /usr/bin/tini
#0 0.863 /usr/bin/tini: OK
#66 DONE 0.9s

#63 [linux/amd64 dev 15/30] RUN --mount=type=cache,target=/root/.m2 mvn --non-recursive install -DskipTests
#63 21.85 Progress (1): 3.4/4.2 kB
Progress (1): 4.2 kB   
                   
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/plexus/plexus-containers/1.5.5/plexus-containers-1.5.5.pom (4.2 kB at 17 kB/s)
#63 21.99 Downloading from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.pom
#63 22.11 Progress (1): 3.0 kB
                   
#63 ...

#67 [linux/amd64 stage-1  4/11] RUN useradd -m -d /openmrs/home -u 1001 openmrs
#0 0.201 useradd: cannot create directory /openmrs/home
#67 ERROR: process "/bin/sh -c useradd -m -d /openmrs/home -u 1001 openmrs" did not complete successfully: exit code: 12

#63 [linux/amd64 dev 15/30] RUN --mount=type=cache,target=/root/.m2 mvn --non-recursive install -DskipTests
#63 22.11 Progress (1): 3.0 kB
                   
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.pom (3.0 kB at 12 kB/s)
#63 22.24 Downloading from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/sonatype/spice/spice-parent/12/spice-parent-12.pom
#63 CANCELED

#64 [linux/arm64 stage-1  2/11] RUN yum -y update && yum -y install shadow-utils && yum clean all && rm -rf /usr/local/tomcat/webapps/*
#64 CANCELED
------
> [linux/amd64 stage-1  4/11] RUN useradd -m -d /openmrs/home -u 1001 openmrs:
#0 0.201 useradd: cannot create directory /openmrs/home
------
Dockerfile:115
--------------------
113 |         && chmod +rx /usr/bin/tini
114 |     
115 | >>> RUN useradd -m -d /openmrs/home -u 1001 openmrs
116 |     
117 |     RUN sed -i '/Connector port="8080"/a URIEncoding="UTF-8" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"' \
--------------------
error: failed to solve: process "/bin/sh -c useradd -m -d /openmrs/home -u 1001 openmrs" did not complete successfully: exit code: 12