Is it possible to increase the build timeout? I’m getting this error:
Container image 408027725192.dkr.ecr.us-east-1.amazonaws.com/z64d16bc3:16051326618033803529-34d6176a7feda28ff19784b671af66cb17d825c0
failed to be build: Cannot build Application "z64d16bc3" due to an error with docker:
Timeout
{ raw_error_message: "Killing process \"docker\" \"buildx\" \"build\" \"--progress=plain\" \"--network=host\" \"--output=type=registry\" \"--cache-from\" \"type=registry,
ref=408027725192.dkr.ecr.us-east-1.amazonaws.com/z64d16bc3:latest\" \"-f\" \"/home/qovery/.qovery-workspace/965b5581-b513-46a6-b677-816be6187405-1-1654874873/build/z64d16bc3/Dockerfile\"
\"--tag\" \"408027725192.dkr.ecr.us-east-1.amazonaws.com/z64d16bc3:16051326618033803529-34d6176a7feda28ff19784b671af66cb17d825c0\"
\"--tag\" \"408027725192.dkr.ecr.us-east-1.amazonaws.com/z64d16bc3:latest\"
\"/home/qovery/.qovery-workspace/965b5581-b513-46a6-b677-816be6187405-1-1654874873/build/z64d16bc3/\" due to timeout 1800s reached" }
Dockerfile content (if any)
FROM node:${NODE_VERSION} as installer
ARG BUILD_ENV=development
RUN echo "Build Environment: ${BUILD_ENV}"
RUN mkdir -p /usr/app
WORKDIR /usr/app
ADD package.json package-lock.json .npmrc ./
ADD lib lib
ENV NODE_ENV=${BUILD_ENV}
RUN npm i -g npm@8
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
RUN npm ci
# STAGE-2: Build the app (can leave this out if not running production)
FROM node:${NODE_VERSION} as builder
ARG BUILD_ENV=development
RUN echo "Build Environment: ${BUILD_ENV}"
WORKDIR /usr/app
COPY --from=installer /usr/app .
ADD . .
RUN npm run build
# STAGE-3: Finalize (TODO: We only really need a subset of these folders)
FROM node:${NODE_VERSION}
WORKDIR /usr/app
COPY --from=builder /usr/app .
# TODO: Clean up folders not in use, remove node_modules, reinstall production dependencies
EXPOSE 80
CMD ["npm", "start"]
Thanks, @rophilogene. That got me past the first timeout. I’m now seeing something else that I can’t quite figure out. Searching this forum, I see another user who had a similar issue, but I’m not sure what this means:
deployment error application z64d16bc3 : error => EngineError { tag: HelmChartUninstallError, event_details: EventDetails { provider_kind: None, organisation_id: QoveryIdentifier { raw_long_id: "z30070ce1", short: "z30070ce" }, cluster_id: QoveryIdentifier { raw_long_id: "9d6b1e5c-b449-4b44-ad67-b60134d78e51", short: "9d6b1e5c" }, execution_id: QoveryIdentifier { raw_long_id: "965b5581-b513-46a6-b677-816be6187405-2-1654897576", short: "965b5581" }, region: None, stage: Environment(Deploy), transmitter: Application("z64d16bc3", "z64d16bc3", "34d6176a7feda28ff19784b671af66cb17d825c0") }, user_log_message: "Helm timed out for release `application-z64d16bc3-z64d16bc3` during helm UPGRADE: Error: release application-z64d16bc3-z64d16bc3 failed, and has been uninstalled due to atomic being set: timed out waiting for the condition: Error while executing Helm command. / Full details: ExitStatusError(ExitStatus(unix_wait_status(256)))", underlying_error: None, link: None, hint_message: None }
Thanks, @rophilogene. How did you determine that from the error message above? Is there something I could have looked at so I don’t bother you with this next time?
That’s exactly why we are working on Qovery V3. It’s a complete rewrite of our web interface to give much more insights into what’s going on. It will be possible directly from the V3 web interface.
In the meantime, the only way is to connect to your Kubernetes cluster and debug manually why your application fails to start with this kind of error.
–
Note: I can put you in the loop for Qovery V3 - soft launch for the end of this month.