Open dipyamanroy opened 6 months ago
The error logs indicate two primary issues with your Railway deployment of Cal: a JSON syntax error and a domain matching warning. Here's how to address them:
JSON Syntax Error: This likely stems from improperly set or parsed environment variables. Verify that your DATABASE_URL
and other relevant environment variables are correctly configured in Railway, matching the format and values expected by Cal.
Domain Matching Warning: Add your Railway app's domain to the ALLOWED_HOSTNAMES
environment variable to resolve the domain matching warning. If your app's URL is https://cal-production-a4cb.up.railway.app
, include this in the ALLOWED_HOSTNAMES
.
Environment Variables: Double-check all required environment variables are set, including those for authentication, database connections, and any other services your deployment needs. For SSL connections with PostgreSQL, you might need to set PGSSLMODE
to no-verify
.
Database Migrations: Ensure you've run the necessary database migrations for Cal, as a mismatch between the database schema and the application's expectations can lead to errors.
Addressing these points should help resolve the issues you're encountering with your Railway deployment of Cal.
To continue the conversation, mention @dosu.
would love some help from the railway team
Looks like @brody192 owns the Cal template. Brody do you want to have a look to make sure that this works?
I’d bet it’s missing an envvar that was added or something
Alternatively, might be good for the Cal team to own the template itself. Got thousands of people on it so:
1) You’d control the health of that experience/deployment 2) You’d make $$$ for it
Thanks for the ping Cooper, Will be heading out on a trip with friends today and tomorrow, but will see what I can find out!
After deploying the template I set a ALLOWED_HOSTNAMES
variable to "${{RAILWAY_PUBLIC_DOMAIN}}"
(with the quotes) and without the scheme as the env.example file shows.
@calcom/web:start: 12:14:48:757 WARNorgDomains.ts Match of WEBAPP_URL with ALLOWED_HOSTNAME failed {
@calcom/web:start: WEBAPP_URL: 'https://cal-production-f5f0.up.railway.app';,
@calcom/web:start: ALLOWED_HOSTNAMES: [
@calcom/web:start: 'cal-production-f5f0.up.railway.app'
@calcom/web:start: ]
@calcom/web:start: }
I must be missing something because that hostname is definitely a match to the hostname in WEBAPP_URL
?
NEXT_PUBLIC_WEBAPP_URL
is set to https://${{RAILWAY_PUBLIC_DOMAIN}}
And for what it's worth, the Railway generated domain still opens and redirects to /auth/setup
without any error codes or white screens returned.
for what it's worth, you can make that error go away by either including the protocol in the value in ALLOWED_HOSTNAMES or excluding it from the value in NEXT_PUBLIC_WEBAPP_URL, however based on the documentation and examples these seem to be in conflict. I still haven't gotten it working with either method.
If you mean you are still seeing the white screen, then I think that means your GOOGLE_API_CREDENTIALS
key is wrong.
If you mean you are still seeing the white screen, then I think that means your
GOOGLE_API_CREDENTIALS
key is wrong.
What was happening for me is that the service would exit a few seconds after yarn start
with no error message. I did not configure GOOGLE_API_CREDENTIALS
because I do not have a google account and have no wish to connect one.
Would you mind opening a thread on our help station? - https://help.railway.app/questions
This seems like it's getting a little out of scope of the GitHub issues.
Issue still persists
However I was able to make it work. I'm gonna let y'all know soon.
Issue Summary
Deployment using Railway shows up as active, however the URL which points to Cal does not load, or loads briefly with error 500.
Steps to Reproduce
Expected result is a deployment of Cal with a login page.
Actual Results
Expected Results
Technical details
Logs from Railway:
Evidence
CAL-3737