polis git:(edge) ✗ docker compose up --build
[+] Building 20.3s (32/41) docker:default
=> [postgres internal] load .dockerignore 0.0s
=> => transferring context: 104B 0.0s
=> [postgres internal] load build definition from Dockerfile-db 0.0s
=> => transferring dockerfile: 372B 0.0s
=> [file-server internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [file-server internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.55kB 0.0s
=> [postgres internal] load metadata for docker.io/library/postgres:13.4-alpine 0.8s
=> [file-server internal] load metadata for docker.io/library/node:18-alpine 0.8s
=> [postgres internal] load build context 0.0s
=> => transferring context: 568B 0.0s
=> [postgres 1/2] FROM docker.io/library/postgres:13.4-alpine@sha256:c170270dc9ba94f491375e366fa2cf46d0bc0027e4a69d70e6e9d1454ba748dc 0.0s
=> [file-server internal] load build context 0.0s
=> => transferring context: 29.00kB 0.0s
=> [file-server client-report 1/7] FROM docker.io/library/node:18-alpine@sha256:0085670310d2879621f96a4216c893f92e2ded827e9e6ef8437672e1bd72f437 0.0s
=> CACHED [postgres 2/2] COPY ./postgres/migrations/*.sql /docker-entrypoint-initdb.d/ 0.0s
=> [postgres] exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:1728c2805362824cf8adb9c2845fa9e97211e2ccd86d744d9713180575f6aaa7 0.0s
=> => naming to docker.io/compdem/polis-postgres:dev 0.0s
=> CACHED [file-server client-report 3/7] RUN apk add git 0.0s
=> CACHED [file-server client-report 4/7] COPY client-report/package*.json ./ 0.0s
=> CACHED [file-server client-report 2/7] WORKDIR /app 0.0s
=> CACHED [file-server client-participation 3/6] COPY client-participation/package*.json ./ 0.0s
=> CACHED [file-server stage-3 3/9] COPY file-server/package*.json ./ 0.0s
=> CACHED [file-server stage-3 4/9] RUN npm ci 0.0s
=> CACHED [file-server stage-3 5/9] COPY file-server/. . 0.0s
=> CACHED [file-server stage-3 6/9] RUN mkdir /app/build 0.0s
=> CACHED [file-server client-admin 3/6] COPY client-admin/package*.json ./ 0.0s
=> CANCELED [file-server client-participation 4/6] RUN npm ci --production=false 19.2s
=> CANCELED [file-server client-admin 4/6] RUN npm ci --production=false 19.0s
=> CANCELED [file-server client-report 5/7] RUN npm ci --production=false 19.4s
=> [math internal] load .dockerignore 0.0s
=> => transferring context: 325B 0.0s
=> [math internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 188B 0.0s
=> [math internal] load metadata for docker.io/library/clojure:tools-deps-bullseye 0.6s
=> [math 1/4] FROM docker.io/library/clojure:tools-deps-bullseye@sha256:b54067408990d2e44a8a77718b13bd5c33095e3434a6cf732453e8a371a1a429 0.0s
=> [math internal] load build context 0.0s
=> => transferring context: 3.23kB 0.0s
=> CACHED [math 2/4] WORKDIR /app 0.0s
=> CACHED [math 3/4] COPY . . 0.0s
=> ERROR [math 4/4] RUN clojure -A:dev -P 18.1s
------
> [math 4/4] RUN clojure -A:dev -P:
6.568 Downloading: org/clojure/math.numeric-tower/0.0.5/math.numeric-tower-0.0.5.pom from central
6.613 Downloading: org/clojure/tools.reader/1.3.6/tools.reader-1.3.6.pom from central
6.659 Downloading: org/clojure/pom.contrib/0.2.2/pom.contrib-0.2.2.pom from central
6.688 Downloading: com/cognitect/aws/s3/825.2.1250.0/s3-825.2.1250.0.pom from central
10.04 Downloading: bidi/bidi/2.1.6/bidi-2.1.6.pom from clojars
10.07 Downloading: net/mikera/core.matrix/0.63.0/core.matrix-0.63.0.pom from clojars
10.07 Downloading: criterium/criterium/0.4.6/criterium-0.4.6.pom from clojars
10.10 Downloading: semantic-csv/semantic-csv/0.2.0/semantic-csv-0.2.0.pom from clojars
10.11 Downloading: irresponsible/tentacles/0.6.9/tentacles-0.6.9.pom from clojars
10.13 Downloading: cider/cider-nrepl/0.30.0/cider-nrepl-0.30.0.pom from clojars
10.45 Downloading: techascent/tech.ml.dataset/6.104/tech.ml.dataset-6.104.pom from clojars
10.52 Downloading: mount/mount/0.1.17/mount-0.1.17.pom from clojars
10.69 Downloading: org/clojure/test.check/1.1.1/test.check-1.1.1.pom from central
11.03 Downloading: org/clojure/tools.cli/1.0.214/tools.cli-1.0.214.pom from central
11.04 Downloading: ring/ring-core/1.9.6/ring-core-1.9.6.pom from clojars
11.04 Downloading: korma/korma/0.4.3/korma-0.4.3.pom from clojars
11.06 Downloading: org/clojure/core.async/1.6.673/core.async-1.6.673.pom from central
11.08 Downloading: commons-collections/commons-collections/20040616/commons-collections-20040616.pom from central
11.22 Downloading: org/flatland/ordered/1.15.10/ordered-1.15.10.pom from clojars
11.23 Downloading: net/mikera/clojure-pom/0.6.0/clojure-pom-0.6.0.pom from clojars
11.28 Downloading: metasoarous/oz/2.0.0-alpha5/oz-2.0.0-alpha5.pom from clojars
11.71 Downloading: bigml/sampling/3.2/sampling-3.2.pom from clojars
11.77 Downloading: net/mikera/mikera-pom/0.6.0/mikera-pom-0.6.0.pom from central
11.84 Downloading: org/sonatype/oss/oss-parent/9/oss-parent-9.pom from central
11.97 Downloading: prismatic/plumbing/0.6.0/plumbing-0.6.0.pom from clojars
12.59 Downloading: com/taoensso/timbre/5.2.1/timbre-5.2.1.pom from clojars
12.59 Downloading: net/mikera/vectorz-clj/0.48.0/vectorz-clj-0.48.0.pom from clojars
12.83 Downloading: cheshire/cheshire/5.11.0/cheshire-5.11.0.pom from clojars
13.14 Downloading: org/clojure/tools.trace/0.7.11/tools.trace-0.7.11.pom from central
13.28 Downloading: org/clojure/pom.contrib/1.0.0/pom.contrib-1.0.0.pom from central
14.03 Downloading: org/clojure/data.csv/1.0.1/data.csv-1.0.1.pom from central
14.11 Downloading: ring/ring-ssl/0.3.0/ring-ssl-0.3.0.pom from clojars
14.26 Downloading: com/cognitect/aws/api/0.8.641/api-0.8.641.pom from central
15.45 Downloading: com/cognitect/http-client/1.0.115/http-client-1.0.115.pom from central
15.46 Downloading: org/clojure/data.json/2.4.0/data.json-2.4.0.pom from central
15.48 Downloading: org/clojure/data.xml/0.2.0-alpha8/data.xml-0.2.0-alpha8.pom from central
15.83 Downloading: environ/environ/1.2.0/environ-1.2.0.pom from clojars
16.16 Downloading: clj-http/clj-http/3.12.3/clj-http-3.12.3.pom from clojars
16.18 Downloading: net/mikera/core.matrix.stats/0.7.0/core.matrix.stats-0.7.0.pom from clojars
16.52 Downloading: clj-time/clj-time/0.15.2/clj-time-0.15.2.pom from clojars
17.50 Error building classpath. Failed to read artifact descriptor for com.cognitect.aws:endpoints:jar:1.1.12.398
17.50 org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for com.cognitect.aws:endpoints:jar:1.1.12.398
17.50 at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:255)
17.50 at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:171)
17.50 at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:263)
17.50 at clojure.tools.deps.extensions.maven$read_descriptor.invokeStatic(maven.clj:115)
17.50 at clojure.tools.deps.extensions.maven$fn__1326.invokeStatic(maven.clj:143)
17.50 at clojure.tools.deps.extensions.maven$fn__1326.invoke(maven.clj:143)
17.50 at clojure.lang.MultiFn.invoke(MultiFn.java:244)
17.50 at clojure.tools.deps$expand_deps$children_task__928$fn__930$fn__931.invoke(deps.clj:407)
17.50 at clojure.lang.AFn.applyToHelper(AFn.java:152)
17.50 at clojure.lang.AFn.applyTo(AFn.java:144)
17.50 at clojure.core$apply.invokeStatic(core.clj:667)
17.50 at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1990)
17.50 at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1990)
17.50 at clojure.lang.RestFn.invoke(RestFn.java:425)
17.50 at clojure.lang.AFn.applyToHelper(AFn.java:156)
17.50 at clojure.lang.RestFn.applyTo(RestFn.java:132)
17.50 at clojure.core$apply.invokeStatic(core.clj:671)
17.50 at clojure.core$bound_fn_STAR_$fn__5818.doInvoke(core.clj:2020)
17.50 at clojure.lang.RestFn.invoke(RestFn.java:397)
17.50 at clojure.lang.AFn.call(AFn.java:18)
17.50 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
17.50 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
17.50 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
17.50 at java.base/java.lang.Thread.run(Thread.java:1583)
17.50 Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact com.cognitect.aws:endpoints:pom:1.1.12.398 from/to central (https://repo1.maven.org/maven2/): Connect to repo1.maven.org:443 [repo1.maven.org/151.101.12.209] failed: Read timed out
17.50 at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:431)
17.50 at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:235)
17.50 at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:212)
17.50 at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:240)
17.50 ... 23 more
17.50 Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact com.cognitect.aws:endpoints:pom:1.1.12.398 from/to central (https://repo1.maven.org/maven2/): Connect to repo1.maven.org:443 [repo1.maven.org/151.101.12.209] failed: Read timed out
17.50 at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:52)
17.50 at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:401)
17.50 at org.eclipse.aether.util.concurrency.RunnableErrorForwarder.lambda$wrap$0(RunnableErrorForwarder.java:73)
17.50 at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:669)
17.50 at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:290)
17.50 at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
17.50 at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:408)
17.50 ... 26 more
17.50 Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to repo1.maven.org:443 [repo1.maven.org/151.101.12.209] failed: Read timed out
17.50 at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)
17.50 at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
17.50 at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
17.50 at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
17.50 at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
17.50 at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
17.50 at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
17.50 at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
17.50 at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
17.50 at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:359)
17.50 at org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:294)
17.50 at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:72)
17.50 at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:496)
17.50 at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:396)
17.50 ... 31 more
17.50 Caused by: java.net.SocketTimeoutException: Read timed out
17.50 at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:278)
17.50 at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:304)
17.50 at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:346)
17.50 at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:796)
17.50 at java.base/java.net.Socket$SocketInputStream.read(Socket.java:1099)
17.50 at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:489)
17.50 at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:483)
17.50 at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160)
17.50 at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
17.50 at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1506)
17.50 at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1421)
17.50 at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455)
17.50 at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:426)
17.50 at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436)
17.50 at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
17.50 at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
17.50 ... 44 more
------
failed to solve: process "/bin/sh -c clojure -A:dev -P" did not complete successfully: exit code: 1
To Reproduce:
git clone https://github.com/compdemocracy/polis
cd polis
cp example.env .env
docker compose up --build
Device information:
polis git:(edge) ✗ docker version
Client:
Version: 24.0.7
API version: 1.43
Go version: go1.21.3
Git commit: afdd53b4e3
Built: Sun Oct 29 15:42:02 2023
OS/Arch: linux/amd64
Context: default
Server:
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.21.3
Git commit: 311b9ff0aa
Built: Sun Oct 29 15:42:02 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.7.11
GitCommit: 64b8a811b07ba6288238eefc14d898ee0b5b99ba.m
runc:
Version: 1.1.11
GitCommit:
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Expected behavior: Run the application locally.
Actual behavior: I got an error.
To Reproduce:
Device information: