Skip to content

Can't deploy convex config under linux with node >= v20 #52

Closed
@jedimonkey

Description

@jedimonkey

There is an issue under linux and node greater than v19. The convex deploy command can't seem to connect to the convex ecosystem to deploy. This works fine under v18 and v19, however if you are using more modern node functionality in the project (not necessarily deployed to convex) this fails. Note this works under mac (any node versions AFAIK), haven't tested windows.

node -v
v19.9.0
pnpm convex deploy

[email protected] convex /home/marcus/dev/proj
convex deploy

You're currently developing against your dev deployment

dev-project-233 (set in CONVEX_DEPLOYMENT)

Your prod deployment your-prod-292 serves traffic at:

CONVEX_URL=https://your-prod-292.convex.cloud

Make sure that your published client is configured with this URL (for instructions see https://docs.convex.dev/hosting)

? Do you want to push your code to your prod deployment your-prod-292 now? Yes
✔ Deployed Convex functions to https://your-prod-292.convex.cloud

However, under newer versions node v20 (also tested under v22 & v24):

nvm use 20
Now using node v20.19.2 (npm v10.8.2)
pnpm convex deploy

[email protected] convex /home/marcus/dev/proj
convex deploy

You're currently developing against your dev deployment

dev-project-233 (set in CONVEX_DEPLOYMENT)

Your prod deployment your-prod-292 serves traffic at:

CONVEX_URL=https://your-prod-292.convex.cloud

Make sure that your published client is configured with this URL (for instructions see https://docs.convex.dev/hosting)

? Do you want to push your code to your prod deployment your-prod-292 now? Yes
Retrying request (attempt 3/6)...
Retrying request (attempt 4/6)...
Retrying request (attempt 5/6)...
Retrying request (attempt 6/6)...
✖ Error: Unable to run schema validation on https://your-prod-292.convex.cloud
✖ TypeError: fetch failed
 ELIFECYCLE  Command failed with exit code 1.

Quite frustrating, as this means this is difficult to integrate with github actions.

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