Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"heroku run" gives error "CERT_HAS_EXPIRED: certificate has expired"

Tags:

heroku

I get this error trying to run commands on Heroku:

$ heroku run pwd -r heroku
Running pwd on ⬢ my-app-name... !
 ▸    CERT_HAS_EXPIRED: certificate has expired

I also get this error attempting to open a console with heroku run rails console.

Any ideas? It did not help to update the CLI, or to log out from the CLI and back in.

like image 419
Henrik N Avatar asked Jul 31 '17 12:07

Henrik N


2 Answers

Seems Heroku have an ongoing incident related to this: https://status.heroku.com/incidents/1236

Presumably they will fix it.

like image 181
Henrik N Avatar answered Nov 16 '22 03:11

Henrik N


I am also getting CERT_HAS_EXPIRED: certificate has expired on running heroku run rails console

I tried with following lines, now its fixed.

heroku run:detached "heroku run rails c" -a app_name

heroku run rails c --app app_name

Now the issue https://status.heroku.com/incidents/1236 has been resolved.

like image 36
puneet18 Avatar answered Nov 16 '22 04:11

puneet18