Skip to content

Happen Go struct field CreateRequest.Config.Entrypoint of type []string when use sd-in-abox #3465

@kanseiishikawa

Description

@kanseiishikawa

Error in screwdriver_api_1 when using sd-in-a-box

{"level":"error","message":"Getting errors with [{}]: Error: (HTTP code 400) bad parameter - invalid JSON: json: cannot unmarshal string into Go struct field CreateRequest.Config.Entrypoint of type []string ","timestamp":"2026-02-11T06:06:52.100Z"}
{"level":"error","message":"Failed to start 3 build: Error: (HTTP code 400) bad parameter - invalid JSON: json: cannot unmarshal string into Go struct field CreateRequest.Config.Entrypoint of type []string ","timestamp":"2026-02-11T06:06:52.100Z"}
260211/060652.786, (1770789976020:f83ca0a26e60:7:mlhmenrx:10244) [request,server,error] data: Error: (HTTP code 400) bad parameter - invalid JSON: json: cannot unmarshal string into Go struct field CreateRequest.Config.Entrypoint of type []string
    at /usr/src/app/node_modules/docker-modem/lib/modem.js:383:17
    at getCause (/usr/src/app/node_modules/docker-modem/lib/modem.js:418:7)
    at Modem.buildPayload (/usr/src/app/node_modules/docker-modem/lib/modem.js:379:5)
    at IncomingMessage.<anonymous> (/usr/src/app/node_modules/docker-modem/lib/modem.js:347:16)
    at IncomingMessage.emit (node:events:531:35)
    at endReadableNT (node:internal/streams/readable:1698:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

This error can be seen in the docker logs

This is my docker-compose.yml. It is generated by python <(curl -L https://git.io/sd-in-a-box)
The key has been removed and posted.

version: '2'
services:
    api:
        image: screwdrivercd/screwdriver:latest
        ports:
            - 9001:80
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock:rw
            - ./data/:/tmp/sd-data/:rw
        environment:
            PORT: 80
            URI: http://163.43.158.225:9001
            ECOSYSTEM_UI: http://163.43.158.225:9000
            ECOSYSTEM_STORE: http://163.43.158.225:9002
            DATASTORE_PLUGIN: sequelize
            DATASTORE_SEQUELIZE_DIALECT: sqlite
            DATASTORE_SEQUELIZE_STORAGE: /tmp/sd-data/storage.db
            EXECUTOR_PLUGIN: docker
            EXECUTOR_JENKINS_LAUNCH_VERSION: latest
            LAUNCH_VERSION: latest
            EXECUTOR_QUEUE_ENABLED: "false"
            SECRET_WHITELIST: "[]"
            DOCKER_API_VERSION: 1.41
            EXECUTOR_DOCKER_DOCKER: |
                {
                    "socketPath": "/var/run/docker.sock"
                }
            SCM_SETTINGS: |
                {
                    "github": {
                        "plugin": "github",
                        "config": {"username": "sd-buildbot", "email": "dev-null@screwdriver.cd", "secret": "SUPER-SECRET-SIGNING-THING", "oauthClientId": "Ov23liIAmOgSbvh8XS9a", "oauthClientSecret": ""}
                    }
                }
            SECRET_JWT_PRIVATE_KEY: |
                -----BEGIN PRIVATE KEY-----
                
                -----END PRIVATE KEY-----
            SECRET_JWT_PUBLIC_KEY: |
                -----BEGIN PUBLIC KEY-----
                
                -----END PUBLIC KEY-----
    ui:
        image: screwdrivercd/ui:latest
        ports:
            - 9000:80
        environment:
            ECOSYSTEM_API: http://163.43.158.225:9001
            ECOSYSTEM_STORE: http://163.43.158.225:9002
            AVATAR_HOSTNAME: avatars*.githubusercontent.com

    store:
        image: screwdrivercd/store:latest
        ports:
            - 9002:80
        environment:
            ECOSYSTEM_UI: http://163.43.158.225:9000
            URI: http://163.43.158.225:9002
            SECRET_JWT_PUBLIC_KEY: |
                -----BEGIN PUBLIC KEY-----
             
                -----END PUBLIC KEY-----

This is my screwdriver.yaml

shared:
  image: node:20-slim
jobs:
  main:
    requires: [~pr, ~commit]
    steps:
      - export: export GREETING="Hello, world!"
      - hello: echo $GREETING

result docker ps -a

CONTAINER ID   IMAGE                              COMMAND                  CREATED          STATUS          PORTS                                               NAMES
f83ca0a26e60   screwdrivercd/screwdriver:latest   "/usr/local/bin/dumb…"   28 minutes ago   Up 28 minutes   8080/tcp, 0.0.0.0:9001->80/tcp, [::]:9001->80/tcp   screwdriver_api_1
382d35208a94   screwdrivercd/store:latest         "/usr/local/bin/dumb…"   28 minutes ago   Up 28 minutes   0.0.0.0:9002->80/tcp, [::]:9002->80/tcp             screwdriver_store_1
9bf9ac138fc6   screwdrivercd/ui:latest            "/usr/local/openrest…"   28 minutes ago   Up 28 minutes   0.0.0.0:9000->80/tcp, [::]:9000->80/tcp             screwdriver_ui_1

Everything is running on the latest version, but I don't know what the cause is. Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions