Skip to content

TypeError: okit.graphql is not a function when starting github container #10423

@Nonolanlan1007

Description

@Nonolanlan1007

When I start the github container, I get this error after a few seconds.

Reproduction Steps

  1. Start a selfhosted instance
  2. Create an account and a workpspace
  3. Link an empty project to a repository with a dozen of opened issues
  4. Wait for all the issues to import
  5. Create an issue from GitHub
  6. Stop the github container using docker stop huly_v7-github-1
  7. Start the github container using docker start huly_v7-github-1
  8. Check the logs after a few seconds docker logs huly_v7-github-1 -f

Setup informations

Docker Infos
Client: Docker Engine - Community
 Version:    29.1.5
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.30.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v5.0.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose
  model: Docker Model Runner (Docker Inc.)
    Version:  v1.0.7
    Path:     /usr/libexec/docker/cli-plugins/docker-model

Server:
 Containers: 16
  Running: 16
  Paused: 0
  Stopped: 0
 Images: 26
 Server Version: 29.1.5
 Storage Driver: overlayfs
  driver-type: io.containerd.snapshotter.v1
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 CDI spec directories:
  /etc/cdi
  /var/run/cdi
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: dea7da592f5d1d2b7755e3a161be07f43fad8f75
 runc version: v1.3.4-0-gd6d73eb8
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.18.5-200.fc43.x86_64
 Operating System: Fedora Linux 43 (Cloud Edition)
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 3.812GiB
 Name: huly.10.0.1.1
 ID: 5a8b6a21-68b8-4adc-ac59-34226221412e
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false
 Firewall Backend: iptables

Docker Compose:

name: ${DOCKER_NAME}
services:
  # ...
  github:
    image: hardcoreeng/github:${HULY_VERSION}
    ports:
      - 3500:3500
    environment:
      - PORT=3500
      - STORAGE_CONFIG=minio|minio?accessKey=minioadmin&secretKey=minioadmin
      - SERVER_SECRET=${SECRET}
      - ACCOUNTS_URL=http://account:3000
      - STATS_URL=http://stats:4900
      - APP_ID=${GITHUB_APPID}
      - CLIENT_ID=${GITHUB_CLIENTID}
      - CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
      - PRIVATE_KEY=${GITHUB_PRIVATE_KEY}
      - COLLABORATOR_URL=ws${SECURE:+s}://${HOST_ADDRESS}/_collaborator
      - WEBHOOK_SECRET=secret
      - FRONT_URL=http${SECURE:+s}://${HOST_ADDRESS}
      - BOT_NAME=discord-analytics-huly[bot]
    restart: unless-stopped
    networks:
      - huly_net

volumes:
  # ...
networks:
  huly_net:

Logs

{"hasDiscussions":true,"level":"info","message":"processing repository diff update...","openIssues":8,"owner":{"avatarUrl":"https://avatars.githubusercontent.com/u/130366295?v=4","id":"O_kgDOB8U7Vw","login":"DiscordAnalytics"},"repository":"mongo-backups-manager","size":65,"timestamp":"2026-01-20T10:58:17.327Z","updatedAt":1768898957000,"workspace":"12b59106-feaa-4e16-a0d4-585f977a941c"}
{"assigneeIds":["MDQ6VXNlcjczNTk2NDI5"],"level":"info","message":"update fields","timestamp":"2026-01-20T10:58:17.407Z","workspace":"12b59106-feaa-4e16-a0d4-585f977a941c"}
{"level":"info","message":"==> updateIssue","time":76.75,"timestamp":"2026-01-20T10:58:17.482Z","url":"https://github.com/DiscordAnalytics/mongo-backups-manager/issues/12"}
{"level":"info","message":"diff update","time":779.77,"timestamp":"2026-01-20T10:58:17.482Z","url":"https://github.com/DiscordAnalytics/mongo-backups-manager/issues/12"}
{"err":{"message":"okit.graphql is not a function","stack":"TypeError: okit.graphql is not a function\n    at ctx.with.url (/usr/src/app/bundle.js:295445:28)\n    at _MeasureMetricsContext.with (/usr/src/app/bundle.js:5584:25)\n    at IssueSyncManager.performIssueFieldsUpdate (/usr/src/app/bundle.js:295434:23)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async IssueSyncManager.handleDiffUpdate (/usr/src/app/bundle.js:294568:26)\n    at async ctx.with.url (/usr/src/app/bundle.js:295320:27)\n    at async IssueSyncManager.syncToTarget (/usr/src/app/bundle.js:295317:30)\n    at async IssueSyncManager.sync (/usr/src/app/bundle.js:295206:24)\n    at async /usr/src/app/bundle.js:299909:29\n    at async TimeRateLimiter2.exec (/usr/src/app/bundle.js:113837:18)"},"level":"error","message":"error sync","timestamp":"2026-01-20T10:58:17.491Z"}
{"existing":true,"level":"info","message":"sync doc","objectClass":"tracker:class:Issue","time":989.24,"timestamp":"2026-01-20T10:58:17.496Z","url":"https://github.com/discordanalytics/mongo-backups-manager/issues/12","workspace":"12b59106-feaa-4e16-a0d4-585f977a941c"}
{"installation":"https://github.com/DiscordAnalytics","level":"info","message":"mapper external sync","time":4168.71,"timestamp":"2026-01-20T10:58:17.504Z","workspace":"12b59106-feaa-4e16-a0d4-585f977a941c"}

The content of the issue: DiscordAnalytics/mongo-backups-manager#12

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