Phoenix route reported as existing comes up as 404

We have an exiting app at another Fly.io account hosted at https://copi.securedelivery.org/ that we have redeployed at https://copi.owaspcornucopia.org/ on a new account, but I am having difficulties with getting the phoenix server to serve the routes.

I started with staging the code at heroku. The app is running just fine there, but then I tried the old fly.toml and dockerFile config that was used last year and I can’t seem to get it work.

Here is the release step on heroku: cornucopia/copi.owasp.org/compile at 9f1543f2aabf4262c86c3b9cee732a1de203c80f · OWASP/cornucopia · GitHub

This is the dockerfile: cornucopia/copi.owasp.org/Dockerfile at 9f1543f2aabf4262c86c3b9cee732a1de203c80f · OWASP/cornucopia · GitHub

and fly.toml: copi/fly.toml at 822f1d2a490b952adfcdb6b7d779c28b4e6bbfac · secure-delivery/copi · GitHub

The env.sh.eex: cornucopia/copi.owasp.org/rel/env.sh.eex at 8023bb94a18457d12dc50b5d570f9132b218482c · OWASP/cornucopia · GitHub

and runtime.exs: cornucopia/copi.owasp.org/config/runtime.exs at 8023bb94a18457d12dc50b5d570f9132b218482c · OWASP/cornucopia · GitHub

After enabling debug mode, this is the error I am getting:

As you can see, the route that throws a 404 is there even though it complains that it is missing.

I am thinking that there may be some step I am missing or some config. I just can’t seem to understand what it could be.

Solved it. I had been using the wrong docker image:

Changed to:

ARG ELIXIR_VERSION=1.18.3
ARG OTP_VERSION=27.3.3
ARG DEBIAN_VERSION=bullseye-20250428-slim

I was using:
ARG ELIXIR_VERSION=1.18.3
ARG OTP_VERSION=25.3.2.21
ARG DEBIAN_VERSION=buster-20240612-slim

Which caused the app to crash.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.