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

Error while generating the certificates #54

Open
mukeshtalks opened this issue Feb 5, 2025 · 0 comments
Open

Error while generating the certificates #54

mukeshtalks opened this issue Feb 5, 2025 · 0 comments

Comments

@mukeshtalks
Copy link

Hi I am trying to tun this server on Ubuntu and getting below error. and because of this error my gateway container is also stopped and not able to run the admin UI. Please help me to make this run.

(base) mkb@MKB:~/OCPP_SRV/maeve-csms-main$ cd config/certificates/
(base) mkb@MKB:~/OCPP_SRV/maeve-csms-main/config/certificates$ make
openssl ecparam -name prime256v1 -genkey -noout -out csms.key
openssl req -new -nodes -key csms.key \
        -subj "/CN=CSMS/O=Thoughtworks" \
        -addext "subjectAltName = DNS:localhost, DNS:gateway, DNS:lb" \
        -out csms.csr
echo "basicConstraints = critical, CA:false" > /tmp/temp.ext
echo "keyUsage = critical, digitalSignature, keyEncipherment" >> /tmp/temp.ext
echo "subjectAltName = DNS:localhost, DNS:gateway, DNS:lb" >> /tmp/temp.ext
openssl x509 -req -in csms.csr \
        -out csms.pem \
        -signkey csms.key \
        -days 365 \
        -extfile /tmp/temp.ext
Certificate request self-signature ok
subject=CN = CSMS, O = Thoughtworks
rm -f /tmp/temp.ext
../../scripts/get-ca-cert.sh
make: ../../scripts/get-ca-cert.sh: Permission denied
make: *** [Makefile:27: cpo_sub_ca1.pem] Error 127

### for your reference the log after running the Shell script is as below

(base) mkb@MKB:~/OCPP_SRV/maeve-csms-main/scripts$ bash run.sh
WARN[0000] The "UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "GID" variable is not set. Defaulting to a blank string.
WARN[0000] The "UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "GID" variable is not set. Defaulting to a blank string.
[+] Running 12/12
 ✔ mqtt Pulled                                                                                                     8.6s
   ✔ 66a3d608f3fa Download complete                                                                                0.8s
   ✔ 4c8fa0745f9b Download complete                                                                                1.3s
   ✔ 03fe382c8a5e Download complete                                                                                3.6s
 ✔ firestore Pulled                                                                                              136.1s
   ✔ 64c07d869293 Download complete                                                                                9.9s
   ✔ 9030f297a973 Download complete                                                                                0.9s
   ✔ e93873ad6696 Download complete                                                                                6.3s
   ✔ 0ec98f1f589e Download complete                                                                               30.0s
   ✔ e746ee948795 Download complete                                                                                1.6s
   ✔ dddf56148027 Download complete                                                                               92.7s
   ✔ e335b9092447 Download complete                                                                                9.6s
[+] Running 0/1
[+] Building 9.6s (8/9)                                                                                  docker:default
[+] Running 0/1.6s (16/21)                                                                               docker:default
[+] Building 31.7s (16/21)                                                                               docker:default
[+] Running 0/1.9s (16/21)                                                                               docker:default
[+] Building 32.0s (16/21)                                                                               docker:default
[+] Running 0/1.8s (16/21)                                                                               docker:default
[+] Building 32.9s (16/21)                                                                               docker:default
[+] Running 0/1.5s (16/21)                                                                               docker:default
[+] Building 35.6s (16/21)                                                                               docker:default
[+] Running 0/1.5s (16/21)                                                                               docker:default
[+] Building 38.6s (16/21)                                                                               docker:default
[+] Running 0/1.8s (16/21)                                                                               docker:default
[+] Building 38.9s (16/21)                                                                               docker:default
[+] Running 0/1.8s (16/21)                                                                               docker:default
[+] Building 53.0s (16/21)                                                                               docker:default
[+] Running 0/1.2s (21/22)                                                                               docker:default
[+] Building 78.4s (22/22)                                                                               docker:default
[+] Building 78.4s (22/23)                                                                               docker:default
[+] Running 1/2.2s (23/24)                                                                               docker:default
[+] Building 79.4s (23/24)                                                                               docker:default
 => [gateway] resolve image config for docker-image://docker.io/docker/dockerfile:1.2                              4.4s
[+] Building 100.5s (37/37) FINISHED                                                                     docker:default
 => [manager internal] load build definition from Dockerfile                                                       0.1s
 => => transferring dockerfile: 947B                                                                               0.0s
 => [gateway] resolve image config for docker-image://docker.io/docker/dockerfile:1.2                              4.9s
 => [manager auth] docker/dockerfile:pull token for registry-1.docker.io                                           0.0s
 => CACHED [gateway] docker-image://docker.io/docker/dockerfile:1.2@sha256:e2a8561e419ab1ba6b2fe6cbdf49fd92b95912  2.7s
 => => resolve docker.io/docker/dockerfile:1.2@sha256:e2a8561e419ab1ba6b2fe6cbdf49fd92b95912df1cf7d313c3e2230a333  0.0s
 => => sha256:3cc8e449ce9f6e0752ede8f50a7334bf0c7b2d24d76da2ffae7aa6a729dd1da4 9.64MB / 9.64MB                     2.5s
 => => extracting sha256:3cc8e449ce9f6e0752ede8f50a7334bf0c7b2d24d76da2ffae7aa6a729dd1da4                          0.1s
 => [manager internal] load .dockerignore                                                                          0.1s
 => => transferring context: 2B                                                                                    0.0s
 => [manager internal] load build definition from Dockerfile                                                       0.0s
 => [gateway internal] load metadata for gcr.io/distroless/static:nonroot                                          3.1s
 => [gateway internal] load metadata for docker.io/library/golang:1.20-alpine                                      4.3s
 => [manager auth] library/golang:pull token for registry-1.docker.io                                              0.0s
 => [manager internal] load build context                                                                          0.4s
 => => transferring context: 2.36MB                                                                                0.2s
 => [gateway final 1/3] FROM gcr.io/distroless/static:nonroot@sha256:6ec5aa99dc335666e79dc64e4a6c8b89c33a543a1967  4.2s
 => => resolve gcr.io/distroless/static:nonroot@sha256:6ec5aa99dc335666e79dc64e4a6c8b89c33a543a1967f20d360922a80d  0.1s
 => => sha256:9aee425378d2c16cd44177dc54a274b312897f5860a8e78fdfda555a0d79dd71 130.50kB / 130.50kB                 1.4s
 => => sha256:da7816fa955ea24533c388143c78804c28682eef99b4ee3723b548c70148bba6 321B / 321B                         0.6s
 => => sha256:688513194d7a0f0d77e4a3692748d21c4ccd1af6a5ff9012f18f053ed9573c13 104.24kB / 104.24kB                 1.5s
 => => sha256:3214acf345c0cc6bbdb56b698a41ccdefc624a09d6beb0d38b5de0b2303ecaf4 123B / 123B                         0.6s
 => => sha256:a62778643d563b511190663ef9a77c30d46d282facfdce4f3a7aecc03423c1f3 67B / 67B                           0.5s
 => => sha256:7c12895b777bcaa8ccae0605b4de635b68fc32d60fa08f421dc3818bf55ee212 188B / 188B                         0.6s
 => => sha256:4aa0ea1413d37a58615488592a0b827ea4b2e48fa5a77cf707d0e35f025e613f 385B / 385B                         0.4s
 => => sha256:0bab15eea81d0fe6ab56ebf5fba14e02c4c1775a7f7436fbddd3505add4e18fa 93B / 93B                           0.5s
 => => sha256:efa9d1d5d3a286c60a7261496166fdf31cec2284dafe7eef7cda89eba2f675d6 541.99kB / 541.99kB                 1.3s
 => => extracting sha256:688513194d7a0f0d77e4a3692748d21c4ccd1af6a5ff9012f18f053ed9573c13                          0.1s
 => => sha256:bfb59b82a9b65e47d485e53b3e815bca3b3e21a095bd0cb88ced9ac0b48062bf 13.36kB / 13.36kB                   0.9s
 => => sha256:5664b15f108bf9436ce3312090a767300800edbbfd4511aa1a6d64357024d5dd 168B / 168B                         0.4s
 => => extracting sha256:bfb59b82a9b65e47d485e53b3e815bca3b3e21a095bd0cb88ced9ac0b48062bf                          0.1s
 => => extracting sha256:efa9d1d5d3a286c60a7261496166fdf31cec2284dafe7eef7cda89eba2f675d6                          0.4s
 => => extracting sha256:a62778643d563b511190663ef9a77c30d46d282facfdce4f3a7aecc03423c1f3                          0.0s
 => => extracting sha256:7c12895b777bcaa8ccae0605b4de635b68fc32d60fa08f421dc3818bf55ee212                          0.0s
 => => extracting sha256:3214acf345c0cc6bbdb56b698a41ccdefc624a09d6beb0d38b5de0b2303ecaf4                          0.0s
 => => extracting sha256:5664b15f108bf9436ce3312090a767300800edbbfd4511aa1a6d64357024d5dd                          0.0s
 => => extracting sha256:0bab15eea81d0fe6ab56ebf5fba14e02c4c1775a7f7436fbddd3505add4e18fa                          0.0s
 => => extracting sha256:4aa0ea1413d37a58615488592a0b827ea4b2e48fa5a77cf707d0e35f025e613f                          0.0s
 => => extracting sha256:da7816fa955ea24533c388143c78804c28682eef99b4ee3723b548c70148bba6                          0.0s
 => => extracting sha256:9aee425378d2c16cd44177dc54a274b312897f5860a8e78fdfda555a0d79dd71                          0.0s
 => [gateway builder 1/8] FROM docker.io/library/golang:1.20-alpine@sha256:e47f121850f4e276b2b210c56df3fda9191278  9.6s
 => => resolve docker.io/library/golang:1.20-alpine@sha256:e47f121850f4e276b2b210c56df3fda9191278dd84a3a442bfe0b0  0.1s
 => => sha256:027e8f7f47157b8e955bc20d9874e68eb427280f2b614af061d1f8011434f751 175B / 175B                         0.4s
 => => sha256:3bc7f8f202272c1476692180b407ca56cc50f79b8b1859dcd5d579586b5cebce 101.16MB / 101.16MB                 6.4s
 => => sha256:e8e7baba97f57fa5df2e96f78c627013fec3c450d844769a62de7f40cc5bbed1 284.20kB / 284.20kB                 1.3s
 => => sha256:4abcf20661432fb2d719aaf90656f55c287f8ca915dc1c92ec14ff61e67fbaf8 3.41MB / 3.41MB                     1.7s
 => => extracting sha256:4abcf20661432fb2d719aaf90656f55c287f8ca915dc1c92ec14ff61e67fbaf8                          0.2s
 => => extracting sha256:e8e7baba97f57fa5df2e96f78c627013fec3c450d844769a62de7f40cc5bbed1                          0.2s
 => => extracting sha256:3bc7f8f202272c1476692180b407ca56cc50f79b8b1859dcd5d579586b5cebce                          2.6s
 => => extracting sha256:027e8f7f47157b8e955bc20d9874e68eb427280f2b614af061d1f8011434f751                          0.1s
 => => extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1                          0.0s
 => CACHED [gateway builder 2/8] RUN apk add --no-cache git openssh ca-certificates                                2.7s
 => [manager builder 3/8] WORKDIR /src                                                                             0.1s
 => [manager builder 4/8] RUN if [ "amd64" = "arm64" ]; then         TARGETARCH=aarch64 ;         fi;     wget -O  2.5s
 => [manager builder 5/8] COPY ./go.mod ./go.sum ./                                                                0.1s
 => [manager builder 6/8] RUN go mod download                                                                     27.6s
 => [manager builder 7/8] COPY ./ ./                                                                               0.8s
 => [manager builder 8/8] RUN --mount=type=cache,target=/root/.cache/go-build/ CGO_ENABLED=0 go build -o /app ma  21.0s
 => [manager final 2/3] COPY --from=builder /usr/bin/curl /usr/bin/curl                                            0.1s
 => [manager final 3/3] COPY --from=builder --chown=nonroot:nonroot /app /app                                      0.2s
 => [manager] exporting to image                                                                                   0.5s
 => => exporting layers                                                                                            0.1s
 => => exporting manifest sha256:dc4e54b4a2e7a2734ba65f5d15567a1e6b329a35c8c861f830a7ea5e87e4b324                  0.0s
 => => exporting config sha256:51c8ada8b64a48b801abed408014f30ad0eaa0ad21706c3c445cf4f5b6ffa7a9                    0.0s
 => => exporting attestation manifest sha256:8b1d329c4b4271aeb197dfb5172260f75d4556354b6936a29116d1dec7056d22      0.0s
 => => exporting manifest list sha256:ae9d51148755e7b6d3051050f648ba0d6ee441eff337c18aa194a09f078e326c             0.0s
 => => naming to docker.io/library/maeve-csms-main-manager:latest                                                  0.0s
 => => unpacking to docker.io/library/maeve-csms-main-manager:latest                                               0.2s
 => [manager] resolving provenance for metadata file                                                               0.0s
 => [gateway internal] load build definition from Dockerfile                                                       0.1s
 => => transferring dockerfile: 948B                                                                               0.0s
 => [gateway internal] load .dockerignore                                                                          0.1s
 => => transferring context: 2B                                                                                    0.0s
 => [gateway internal] load build definition from Dockerfile                                                       0.0s
 => [gateway internal] load build context                                                                          0.1s
 => => transferring context: 187.46kB                                                                              0.0s
 => [gateway builder 3/8] RUN if [ "amd64" = "arm64" ]; then         TARGETARCH=aarch64 ;         fi;     wget -O  2.0s
 => [gateway builder 4/8] WORKDIR /src                                                                             0.1s
 => [gateway builder 5/8] COPY ./go.mod ./go.sum ./                                                                0.1s
 => [gateway builder 6/8] RUN go mod download                                                                     10.6s
 => [gateway builder 7/8] COPY ./ ./                                                                               0.2s
 => [gateway builder 8/8] RUN --mount=type=cache,target=/root/.cache/go-build/ CGO_ENABLED=0 go build -o /app mai  3.9s
 => CACHED [gateway final 2/3] COPY --from=builder /usr/bin/curl /usr/bin/curl                                     0.0s
 => [gateway final 3/3] COPY --from=builder --chown=nonroot:nonroot /app /app                                      0.1s
 => [gateway] exporting to image                                                                                   1.4s
 => => exporting layers                                                                                            1.1s
 => => exporting manifest sha256:53b83f618cc1fa6762aae1834695cb1dd319fa2a1f09208e925ebdb1794be7d9                  0.0s
 => => exporting config sha256:b71cb50f59075a3dc4f9b5ee1931da753f069b153a006928bdc137481dc4ac0e                    0.0s
 => => exporting attestation manifest sha256:9c1e8c23d5238d45dc5cd7bfa84a1eb753970d10cfa570c0edb207cb3f28705f      0.1s
 => => exporting manifest list sha256:e1a312f8773eada325cd0c8ed31481353f3e889d3ab3508dda58728dfc168e28             0.0s
[+] Running 7/7o docker.io/library/maeve-csms-main-gateway:latest                                                  0.0s
 ✔ Service manager                        Built                                                                   83.3s
 ✔ Service gateway                        Built                                                                   22.0s
 ✔ Network maeve-csms                     Created                                                                  0.1s
 ✔ Container maeve-csms-main-mqtt-1       Created                                                                  0.3s
 ✔ Container maeve-csms-main-firestore-1  Created                                                                  0.3s
 ✔ Container maeve-csms-main-manager-1    Created                                                                  0.2s
 ✔ Container maeve-csms-main-gateway-1    Created                                                                  0.2s
Attaching to firestore-1, gateway-1, manager-1, mqtt-1
mqtt-1       | 2025/02/05 18:34:14: mosquitto version 2.0.20 starting
mqtt-1       | 2025/02/05 18:34:14: Config loaded from /mosquitto/config/mosquitto.conf.
mqtt-1       | 2025/02/05 18:34:14: Opening ipv4 listen socket on port 1883.
mqtt-1       | 2025/02/05 18:34:14: Opening ipv6 listen socket on port 1883.
mqtt-1       | 2025/02/05 18:34:14: Opening websockets listen socket on port 9000.
mqtt-1       | 2025/02/05 18:34:14: mosquitto version 2.0.20 running
firestore-1  | WARNING: Cloud Firestore Emulator support for Java JRE version 11 will be dropped after gcloud command-line tool release 508.0.0. Please upgrade to Java JRE version 21 or higher to continue using the latest Cloud Firestore Emulator.
firestore-1  | Executing: /usr/lib/google-cloud-sdk/platform/cloud-firestore-emulator/cloud_firestore_emulator start --host=0.0.0.0 --port=8080 --database-mode=firestore-native
firestore-1  | [firestore] Feb 05, 2025 6:34:16 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start
firestore-1  | [firestore] INFO: Started WebSocket server on ws://0.0.0.0:38603
firestore-1  | [firestore] API endpoint: http://0.0.0.0:8080
firestore-1  | [firestore] If you are using a library that supports the FIRESTORE_EMULATOR_HOST environment variable, run:
firestore-1  | [firestore]
firestore-1  | [firestore]    export FIRESTORE_EMULATOR_HOST=0.0.0.0:8080
firestore-1  | [firestore]
firestore-1  | [firestore] If you are running a Firestore in Datastore Mode project, run:
firestore-1  | [firestore]
firestore-1  | [firestore]    export DATASTORE_EMULATOR_HOST=0.0.0.0:8080
firestore-1  | [firestore]
firestore-1  | [firestore] Note: Support for Datastore Mode is in preview. If you encounter any bugs please file at https://github.com/firebase/firebase-tools/issues.
firestore-1  | [firestore] Dev App Server is now running.
firestore-1  | [firestore]
manager-1    | time=2025-02-05T18:34:23.521Z level=INFO msg=listening name=api addr=[::]:9410
manager-1    | time=2025-02-05T18:34:23.562Z level=INFO msg=listening name=ocpi addr=[::]:9411
firestore-1  | [firestore] Feb 05, 2025 6:34:23 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
firestore-1  | [firestore] INFO: Detected HTTP/2 connection.
gateway-1    | Error: reading trusted certs from /certificates/trust.pem: open /certificates/trust.pem: no such file or directory
gateway-1    | Usage:
gateway-1    |   csms serve [flags]
gateway-1    |
gateway-1    | Flags:
gateway-1    |   -h, --help                         help for serve
gateway-1    |       --log-format string            The format of the logs, one of [text, json] (default "text")
gateway-1    |   -r, --manager-api-addr string      The address of the CSMS manager API, e.g. http://127.0.0.1:9410 (default "http://127.0.0.1:9410")
gateway-1    |   -m, --mqtt-addr string             The address of the MQTT broker, e.g. mqtt://127.0.0.1:1883 (default "mqtt://127.0.0.1:1883")
gateway-1    |   -o, --org-name strings             A comma-separated list of organisation names that are valid in client certificates (default [Thoughtworks])
gateway-1    |       --otel-collector-addr string   The address of the open telemetry collector that will receive traces, e.g. localhost:4317
gateway-1    |   -s, --status-addr string           The address that the status server will listen on for connections, e.g. 127.0.0.1:9312 (default "127.0.0.1:9312")
gateway-1    |   -c, --tls-server-cert string       A file that contains a PEM encoded certificate to use as the TLS server cert
gateway-1    |   -k, --tls-server-key string        A file that contains a PEM encoded private key to use as the TLS server key
gateway-1    |   -t, --tls-trust-cert stringArray   A file that contains a PEM encoded certificate to add to the TLS trust store
gateway-1    |       --trust-proxy                  Trust proxy headers when determining the client's TLS status
gateway-1    |   -a, --ws-addr string               The address that the insecure websocket server will listen on for connections, e.g. 127.0.0.1:9310 (default "127.0.0.1:9310")
gateway-1    |   -w, --wss-addr string              The address that the secure websocket server will listen on for connections, e.g. 127.0.0.1:9311
gateway-1    |
gateway-1 exited with code 1
manager-1    | time=2025-02-05T18:35:20.439Z level=INFO msg="checking for pending charge station settings changes"
manager-1    | time=2025-02-05T18:35:20.439Z level=INFO msg="checking for pending charge station certificates changes"
manager-1    | time=2025-02-05T18:35:20.439Z level=INFO msg="sync triggers" duration=625.293928ms sync.trigger.previous="" sync.trigger.count=0
gateway-1 exited with code 1
manager-1    | time=2025-02-05T18:36:18.062Z level=INFO msg="checking for pending charge station certificates changes"
manager-1    | time=2025-02-05T18:36:18.062Z level=INFO msg="checking for pending charge station settings changes"
manager-1    | time=2025-02-05T18:36:18.062Z level=INFO msg="sync triggers" duration=9.990003ms sync.trigger.previous="" sync.trigger.count=0
manager-1    | time=2025-02-05T18:37:15.021Z level=INFO msg="checking for pending charge station settings changes"
manager-1    | time=2025-02-05T18:37:15.022Z level=INFO msg="checking for pending charge station certificates changes"
manager-1    | time=2025-02-05T18:37:15.022Z level=INFO msg="sync triggers" duration=11.830388ms sync.trigger.previous="" sync.trigger.count=0
manager-1    | time=2025-02-05T18:38:12.029Z level=INFO msg="checking for pending charge station certificates changes"
manager-1    | time=2025-02-05T18:38:12.030Z level=INFO msg="checking for pending charge station settings changes"
manager-1    | time=2025-02-05T18:38:12.030Z level=INFO msg="sync triggers" duration=7.856943ms sync.trigger.previous="" sync.trigger.count=0
manager-1    | time=2025-02-05T18:39:09.890Z level=INFO msg="checking for pending charge station certificates changes"
manager-1    | time=2025-02-05T18:39:09.893Z level=INFO msg="checking for pending charge station settings changes"
manager-1    | time=2025-02-05T18:39:09.893Z level=INFO msg="sync triggers" duration=4.581926ms sync.trigger.previous="" sync.trigger.count=0
manager-1    | time=2025-02-05T18:40:05.964Z level=INFO msg="checking for pending charge station certificates changes"
manager-1    | time=2025-02-05T18:40:05.964Z level=INFO msg="checking for pending charge station settings changes"
manager-1    | time=2025-02-05T18:40:05.964Z level=INFO msg="sync triggers" duration=8.372257ms sync.trigger.previous="" sync.trigger.count=0
manager-1    | time=2025-02-05T18:41:02.876Z level=INFO msg="checking for pending charge station settings changes"
manager-1    | time=2025-02-05T18:41:02.876Z level=INFO msg="checking for pending charge station certificates changes"
manager-1    | time=2025-02-05T18:41:02.876Z level=INFO msg="sync triggers" duration=7.993619ms sync.trigger.previous="" sync.trigger.count=0
firestore-1  | [firestore] Feb 05, 2025 6:41:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
firestore-1  | [firestore] INFO: Detected non-HTTP/2 connection.
firestore-1  | [firestore] Feb 05, 2025 6:41:11 PM io.gapi.emulators.netty.NotFoundHandler handleRequest
firestore-1  | [firestore] INFO: Unknown request URI: /favicon.ico
manager-1    | time=2025-02-05T18:41:36.917Z level=INFO msg="GET /" remote_addr=172.19.0.1:48662 status=400 bytes=32 duration=85.919µs
manager-1    | time=2025-02-05T18:41:36.988Z level=INFO msg="GET /favicon.ico" remote_addr=172.19.0.1:48662 status=400 bytes=32 duration=48.121µs
gateway-1    | Error: reading trusted certs from /certificates/trust.pem: open /certificates/trust.pem: no such file or directory
gateway-1    | Usage:
gateway-1    |   csms serve [flags]
gateway-1    |
gateway-1    | Flags:
gateway-1    |   -h, --help                         help for serve
gateway-1    |       --log-format string            The format of the logs, one of [text, json] (default "text")
gateway-1    |   -r, --manager-api-addr string      The address of the CSMS manager API, e.g. http://127.0.0.1:9410 (default "http://127.0.0.1:9410")
gateway-1    |   -m, --mqtt-addr string             The address of the MQTT broker, e.g. mqtt://127.0.0.1:1883 (default "mqtt://127.0.0.1:1883")
gateway-1    |   -o, --org-name strings             A comma-separated list of organisation names that are valid in client certificates (default [Thoughtworks])
gateway-1    |       --otel-collector-addr string   The address of the open telemetry collector that will receive traces, e.g. localhost:4317
gateway-1    |   -s, --status-addr string           The address that the status server will listen on for connections, e.g. 127.0.0.1:9312 (default "127.0.0.1:9312")
gateway-1    |   -c, --tls-server-cert string       A file that contains a PEM encoded certificate to use as the TLS server cert
gateway-1    |   -k, --tls-server-key string        A file that contains a PEM encoded private key to use as the TLS server key
gateway-1    |   -t, --tls-trust-cert stringArray   A file that contains a PEM encoded certificate to add to the TLS trust store
gateway-1    |       --trust-proxy                  Trust proxy headers when determining the client's TLS status
gateway-1    |   -a, --ws-addr string               The address that the insecure websocket server will listen on for connections, e.g. 127.0.0.1:9310 (default "127.0.0.1:9310")
gateway-1    |   -w, --wss-addr string              The address that the secure websocket server will listen on for connections, e.g. 127.0.0.1:9311
gateway-1    |
gateway-1 exited with code 1
manager-1    | time=2025-02-05T18:41:59.811Z level=INFO msg="checking for pending charge station settings changes"
manager-1    | time=2025-02-05T18:41:59.811Z level=INFO msg="checking for pending charge station certificates changes"
gateway-1    | Error: reading trusted certs from /certificates/trust.pem: open /certificates/trust.pem: no such file or directory
gateway-1    | Usage:
gateway-1    |   csms serve [flags]
gateway-1    |
gateway-1    | Flags:
gateway-1    |   -h, --help                         help for serve
gateway-1    |       --log-format string            The format of the logs, one of [text, json] (default "text")
gateway-1    |   -r, --manager-api-addr string      The address of the CSMS manager API, e.g. http://127.0.0.1:9410 (default "http://127.0.0.1:9410")
gateway-1    |   -m, --mqtt-addr string             The address of the MQTT broker, e.g. mqtt://127.0.0.1:1883 (default "mqtt://127.0.0.1:1883")
gateway-1    |   -o, --org-name strings             A comma-separated list of organisation names that are valid in client certificates (default [Thoughtworks])
gateway-1    |       --otel-collector-addr string   The address of the open telemetry collector that will receive traces, e.g. localhost:4317
gateway-1    |   -s, --status-addr string           The address that the status server will listen on for connections, e.g. 127.0.0.1:9312 (default "127.0.0.1:9312")
gateway-1    |   -c, --tls-server-cert string       A file that contains a PEM encoded certificate to use as the TLS server cert
gateway-1    |   -k, --tls-server-key string        A file that contains a PEM encoded private key to use as the TLS server key
gateway-1    |   -t, --tls-trust-cert stringArray   A file that contains a PEM encoded certificate to add to the TLS trust store
gateway-1    |       --trust-proxy                  Trust proxy headers when determining the client's TLS status
gateway-1    |   -a, --ws-addr string               The address that the insecure websocket server will listen on for connections, e.g. 127.0.0.1:9310 (default "127.0.0.1:9310")
gateway-1    |   -w, --wss-addr string              The address that the secure websocket server will listen on for connections, e.g. 127.0.0.1:9311
gateway-1    |
gateway-1 exited with code 1
gateway-1    | Error: reading trusted certs from /certificates/trust.pem: open /certificates/trust.pem: no such file or directory
gateway-1    | Usage:
gateway-1    |   csms serve [flags]
gateway-1    |
gateway-1    | Flags:
gateway-1    |   -h, --help                         help for serve
gateway-1    |       --log-format string            The format of the logs, one of [text, json] (default "text")
gateway-1    |   -r, --manager-api-addr string      The address of the CSMS manager API, e.g. http://127.0.0.1:9410 (default "http://127.0.0.1:9410")
gateway-1    |   -m, --mqtt-addr string             The address of the MQTT broker, e.g. mqtt://127.0.0.1:1883 (default "mqtt://127.0.0.1:1883")
gateway-1    |   -o, --org-name strings             A comma-separated list of organisation names that are valid in client certificates (default [Thoughtworks])
gateway-1    |       --otel-collector-addr string   The address of the open telemetry collector that will receive traces, e.g. localhost:4317
gateway-1    |   -s, --status-addr string           The address that the status server will listen on for connections, e.g. 127.0.0.1:9312 (default "127.0.0.1:9312")
gateway-1    |   -c, --tls-server-cert string       A file that contains a PEM encoded certificate to use as the TLS server cert
gateway-1    |   -k, --tls-server-key string        A file that contains a PEM encoded private key to use as the TLS server key
gateway-1    |   -t, --tls-trust-cert stringArray   A file that contains a PEM encoded certificate to add to the TLS trust store
gateway-1    |       --trust-proxy                  Trust proxy headers when determining the client's TLS status
gateway-1    |   -a, --ws-addr string               The address that the insecure websocket server will listen on for connections, e.g. 127.0.0.1:9310 (default "127.0.0.1:9310")
gateway-1    |   -w, --wss-addr string              The address that the secure websocket server will listen on for connections, e.g. 127.0.0.1:9311
gateway-1    |
gateway-1 exited with code 1
manager-1    | time=2025-02-05T18:41:59.811Z level=INFO msg="sync triggers" duration=10.120275ms sync.trigger.previous="" sync.trigger.count=0
gateway-1    | Error: reading trusted certs from /certificates/trust.pem: open /certificates/trust.pem: no such file or directory
gateway-1    | Usage:
gateway-1    |   csms serve [flags]
gateway-1    |
gateway-1    | Flags:
gateway-1    |   -h, --help                         help for serve
gateway-1    |       --log-format string            The format of the logs, one of [text, json] (default "text")
gateway-1    |   -r, --manager-api-addr string      The address of the CSMS manager API, e.g. http://127.0.0.1:9410 (default "http://127.0.0.1:9410")
gateway-1    |   -m, --mqtt-addr string             The address of the MQTT broker, e.g. mqtt://127.0.0.1:1883 (default "mqtt://127.0.0.1:1883")
gateway-1    |   -o, --org-name strings             A comma-separated list of organisation names that are valid in client certificates (default [Thoughtworks])
gateway-1    |       --otel-collector-addr string   The address of the open telemetry collector that will receive traces, e.g. localhost:4317
gateway-1    |   -s, --status-addr string           The address that the status server will listen on for connections, e.g. 127.0.0.1:9312 (default "127.0.0.1:9312")
gateway-1    |   -c, --tls-server-cert string       A file that contains a PEM encoded certificate to use as the TLS server cert
gateway-1    |   -k, --tls-server-key string        A file that contains a PEM encoded private key to use as the TLS server key
gateway-1    |   -t, --tls-trust-cert stringArray   A file that contains a PEM encoded certificate to add to the TLS trust store
gateway-1    |       --trust-proxy                  Trust proxy headers when determining the client's TLS status
gateway-1    |   -a, --ws-addr string               The address that the insecure websocket server will listen on for connections, e.g. 127.0.0.1:9310 (default "127.0.0.1:9310")
gateway-1    |   -w, --wss-addr string              The address that the secure websocket server will listen on for connections, e.g. 127.0.0.1:9311
gateway-1    |
gateway-1 exited with code 1
manager-1    | time=2025-02-05T18:42:56.787Z level=INFO msg="checking for pending charge station certificates changes"
manager-1    | time=2025-02-05T18:42:56.787Z level=INFO msg="checking for pending charge station settings changes"
manager-1    | time=2025-02-05T18:42:56.787Z level=INFO msg="sync triggers" duration=9.282421ms sync.trigger.previous="" sync.trigger.count=0
manager-1    | time=2025-02-05T18:43:53.750Z level=INFO msg="checking for pending charge station certificates changes"
manager-1    | time=2025-02-05T18:43:53.750Z level=INFO msg="checking for pending charge station settings changes"
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

1 participant