Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAIL_PORT: Invalid number input: "" #790

Open
herzkerl opened this issue Jan 15, 2025 · 8 comments
Open

MAIL_PORT: Invalid number input: "" #790

herzkerl opened this issue Jan 15, 2025 · 8 comments

Comments

@herzkerl
Copy link

herzkerl commented Jan 15, 2025

I've just set up v3 from scratch and see the following error when starting for the first time:

> [email protected] migrate
> knex migrate:latest
================================
 Invalid environment variables:
    MAIL_PORT: Invalid number input: ""
================================
 Exiting with error code 1
@poeti8
Copy link
Member

poeti8 commented Jan 16, 2025

When you write MAIL_PORT= the value will becomes "" which is an empty string. And MAIL_PORT can't be empty.

Either remove MAIL_PORT or pass a number to it. Make sure to update other variables as well.

@herzkerl
Copy link
Author

I deleted everything regarding mail from .env, still seeing the same error. Then I set MAIL_PORT=465, still the same. Is there anything else I need to check?

@poeti8
Copy link
Member

poeti8 commented Jan 17, 2025

Weird. Did you set environment variables anywhere else? Can you also tell me on which platform and how are your running Kutt?

@chinna832
Copy link

chinna832 commented Jan 17, 2025

@poeti8 - same issue with me, trying to run app in local with env variables copied to .env, running in docker mac m3 machine

Image

@poeti8
Copy link
Member

poeti8 commented Jan 18, 2025

I just added a default value for MAIL_PORT on the.example.env file on the new version to avoid confusion. Please try again now.

@herzkerl
Copy link
Author

I started from scratch, i.e. deleted the container and volumes, and copied the values from .example.env to my .env and still see the same error.

@trgwii
Copy link
Member

trgwii commented Feb 6, 2025

Can't reproduce

@trgwii trgwii closed this as not planned Won't fix, can't repro, duplicate, stale Feb 6, 2025
@herzkerl
Copy link
Author

herzkerl commented Feb 8, 2025

I removed the containers, the volumes, the project folder, cloned the repo again, copied the .env file and changed a few values (port, site_name, default_domain, jwt_secret), changed the external port in docker-compose.yml, and ran docker compose up -d.

I'm still seeing the exact same issue in the logs.

2025-02-08T11:06:35.827642218Z 
2025-02-08T11:06:35.827676124Z > [email protected] migrate
2025-02-08T11:06:35.827679831Z > knex migrate:latest
2025-02-08T11:06:35.827681504Z 
2025-02-08T11:06:35.910998918Z ================================
2025-02-08T11:06:35.911038423Z  Invalid environment variables:
2025-02-08T11:06:35.911042471Z     MAIL_PORT: Invalid number input: ""
2025-02-08T11:06:35.911045626Z ================================
2025-02-08T11:06:35.911180865Z 
2025-02-08T11:06:35.911198588Z  Exiting with error code 1

@trgwii trgwii reopened this Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants