#Error Running novu on Ubuntu 22.04: API Server Issue
1 messages · Page 1 of 1 (latest)
While I generate an answer, here are some sources that might be helpful:
Answer
The error you're seeing indicates a problem with the environment variable FRONT_BASE_URL in your Novu setup. It seems like the value $HOST_NAME:4200 isn't being correctly interpreted.
Environment variables are crucial for configuring Novu correctly, especially when running it in different environments or deploying it to a server. The FRONT_BASE_URL should be set to the base URL where your front-end application is accessible. If the variable includes $HOST_NAME, this should be replaced with the actual hostname or IP address of your server where Novu's front end is running.
Make sure to review and correctly set your .env files for both the API and web applications as part of your Novu deployment. For example, if Novu's front-end is accessible at http://example.com:4200, you should set FRONT_BASE_URL=http://example.com:4200 in your environment variables.
If you're running Novu locally and setting it up using Docker, ensure you've copied the example .env file and modified it with your specific configurations, as outlined in the documentation (1) . Also, it's essential to restart your services after making changes to environment variables to ensure the new configurations are applied.
Ensure you're following the official documentation for setting up your environment variables and configuring Novu correctly. If you continue to encounter issues, reviewing the setup steps and ensuring all services are correctly configured with valid URLs in their respective .env files is crucial.
Sources
[1] Run Novu in local machine
Even when I set $HOST_NAME to a reachable IP address, the same problem occurs.
@sinful citrus
Did you use correct format for this value?
Example:-
http://172.34.56.78
Yes, that's right. I set it up that way and opened the network. I also confirmed that it was actually connected.