Aborting! Domain is not configured!

AI-generated summary

Aborting! Domain is not configured!

Jonathan5 encountered two error messages while rebuilding Discourse: “Aborting! Domain is not configured!” and “Aborting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts.” However, the rebuild did not abort, and the forum is still functional.

Pfaffman suggested that the errors can be ignored since the rebuild did not abort. Jonathan5 further investigated the errors and found that they are triggered by Ruby commands checking the DISCOURSE_HOSTNAME and DISCOURSE_CDN_URL environment variables. As the rebuild completed successfully, there is no cause for concern.

I don’t remember seeing the following before when rebuilding Discourse. The errors are “Aborting! Domain is not configured!” and “Aborting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts.”

Is is anything to be concerned about? Thanks.

I, [2022-06-19T22:14:38.676589 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
I, [2022-06-19T22:14:38.767947 #1]  INFO -- :
I, [2022-06-19T22:14:38.768752 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2022-06-19T22:14:38.858456 #1]  INFO -- :
I, [2022-06-19T22:14:38.859105 #1]  INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Aborting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts."; exit 1; end'
I, [2022-06-19T22:14:38.927528 #1]  INFO -- :

It didn’t abort, did it? If it did not abort, then yes, you should ignore it, which I guess explains your other topic.

I think you mean the Discourse rebuild. That definitely didn’t abort, and the forum still works.

Looking properly at the text, it looks like a line of Ruby at the command line which checks whether DISCOURSE_HOSTNAME is still “discourse.example.com” and would abort the rebuild if it were. The next line is similar. So, as you say, nothing to worry about.

Rightly or wrongly, I started four topics tonight. I think you mean this one: ERROR: Can't find Ruby library file or shared library pups, as it was the earliest one. What’s the connection? Thanks.