Sidekiq not running. Sidekiq heartbeat test failed, restarting

Did you install following the Discourse official Standard Installation guide or some other way? If you have a standard installation, then yes, doing a ./launcher rebuild app will likely solve whatever your problem is.