FAILED to rebuild discourse -- OpenURI::HTTPError: 401 Error: Invalid license key

This error message says the Redis is not available. Can you share earlier error messages? Maybe on the Redis startup we can know why it couldn’t start.