ory / ory/docs

Go websocket not working in oathkeeper example

Open
#1,093 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
161
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Preflight checklist
Describe the bug

The go websocket container called ws in the oathkeeper example fails to build. The logs are saying that the executable in the Dockerfile's entrypoint doesn't exist.

Reproducing the bug
  1. Run cd code-examples/oathkeeper
  2. Run docker compose up --build
  3. Go to http://127.0.0.1:4455 and create an account
  4. Go to http://127.0.0.1:8080
Relevant log output
Attaching to oathkeeper-kratos-1, oathkeeper-kratos-migrate-1, oathkeeper-kratos-selfservice-ui-node-1, oathkeeper-mailslurper-1, oathkeeper-oathkeeper-1, oathkeeper-postgres-kratos-1, oathkeeper-ws-1
oathkeeper-ws-1                          | exec /ws: no such file or directory
oathkeeper-mailslurper-1                 | time="2022-11-22T23:44:31Z" level=info msg="Starting MailSlurper Server v1.14.1" who=MailSlurper
Relevant configuration

No response

Version

master

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker Compose

Additional Context

I ran it on WSL but it failed on Docker Desktop for Windows too.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in code-examples/oathkeeper by running docker compose up --build and inspect the ws container's Dockerfile entrypoint alongside the build output. Done means the ws container starts without the “exec /ws: no such file or directory” error and the documented Oathkeeper example can be reached at the stated URLs.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, go
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.