It produced this output:
it tries to renew my other 3 existing domains that are already renewed
My web server is (include version):
Apache/2.4.18 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 16.04.6 LTS
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
certbot 0.31.0
Earlier after trying force renewing it it made a empty conf file for the domain in /etc/letsencrypt/renewal after that I tried certbot renew again where it showed that the conf file is broken!
There is another domain which like this one doesnt show up in certbot certificates command but the ssl is working for that since it hasn't expired unlike ogapp which expired last month!
Also something important, the pem files for both the domains that don't show up were missing so I restored that to keep the site working using this guide
I also had to remake the conf file for ogapp.club in sites-available and enable it manually as it didnt exist there either! This all happened right after the certificate expired!
In these lines you're saying everything has renewed already. I don't see a problem there.
The fact a certificate expires doesn't suddenly delete a file from sites-available.. Something else must have gone wrong there.
Could you please give us the output of certbot certificates? And if a renewal didn't work, please share the complete output and contents of letsencrypt.log.
Pardon my typo I mean the domain that I am trying to renew whose certificate expired is not showing up when in the existing certbot certificates so I could not renew it with certbot renew
So I removed the the folder for ogapp.club from /archives then ran
sudo certbot --apache -d ogapp.club
which issued a new certificate, now only had to reload apache config to get the ssl working again