I am experiencing a persistent deployment issue with my app. Every time I deploy, the build and image push succeed, but the deployment fails with the following error:
text
Apply to pusher-auth-…
Oops, something went wrong! Could you try that again?
pool size must be > 0
Steps I have already taken:
Destroyed all machines for the app using the CLI (fly machine destroy … --force)
Scaled the app to 0, then back up to 1 (and 2) machines (fly scale count 0 then fly scale count 1)
Created new machines and attempted redeployment
Verified that my app listens on port 8080 and all configuration is correct
Despite all of the above, the error persists on the original app. This appears to be a platform-level issue with the machine pool for this app.
Can you please help me investigate and reset/fix the machine pool for my app?
# syntax = docker/dockerfile:1
# Adjust NODE_VERSION as desired
ARG NODE_VERSION=22.15.0
FROM node:${NODE_VERSION}-slim AS base
LABEL fly_launch_runtime="Node.js"
# Node.js app lives here
WORKDIR /app
# Set production environment
ENV NODE_ENV="production"
# Throw-away build stage to reduce size of final image
FROM base AS build
# Install packages needed to build node modules
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential node-gyp pkg-config python-is-python3
# Install node modules
COPY package-lock.json package.json ./
RUN npm ci --include=dev
# Copy application code
COPY . .
# Build application
RUN npm run build
# Remove development dependencies
RUN npm prune --omit=dev
# Final stage for app image
FROM base
# Copy built application
COPY --from=build /app /app
# Start the server by default, this can be overwritten at runtime
EXPOSE 8080
CMD [ "npm", "run", "start" ]
Righto. If your original post is now wrong, it may be worth editing it, so that it reflects your present situation. That’s the first thing people will read if they are new to your thread.
Thanks for the two files. Does your Dockerfile build and run locally?
Yes it builds locally in docker. I am a bit of a novice here. I am using cursor to try to fix the issue and it tells me everything is totally fine and it is running in docker.
I am not sure why it keep failing health checks.
Is there anything you think i should look closly at?
it keeps telling me * The persistent “pool size must be > 0” error on Fly.io is a platform bug, not a code issue.
I wnt to say thank you so much for helping me! It means a lot as i gott get this working befoer a bit event next friday
(AI tools are probably doing you a disservice, since they’ve got you this far, then abandoned you. There’s no substitution for just learning the material, I’m afraid).
If I were repairing this, I would strip the TOML back to bare basics, with no checks. You can usually start with a TOML file that is, say, 10 lines long, plus lines for your env vars.
Also, have a look at your machines to see if they have started. I appreciate that your app is being reported as unhealthy, but if you have a machine that is still running, perhaps you can shell into it, and look at logs that are not visible at the Fly level.
Finally, the error about “pusher-auth” sounds like a Node app dependency, and I wonder if something is crashing your app (that would indeed cause the listener to fall over). You could start up an instance of your machine but get it to run a shell, and then start your app manually. If it fails in the same way, the machine won’t exit, and you’ll have better visibility as to what is failing.
Please note this is a community forum and not official support. It’s okay to ask questions here, and other Fly users can answer (and sometimes staff chimes in too); but we do offer paid support via email.
Since you are getting “Oops, something went wrong!”, this is likely a flyctl bug. Could you post the full output including stack trace so we can take a look?