I'm receiving ECONNREFUSED for heroku run any_command_here
. Heroku login is successful. Other heroku commands are successful as well (apps,releases, sharing). App is running. I can even access heroku logs. Ubuntu version is 14.04.
heroku ECONNREFUSED: connect ECONNREFUSED for all run command
Asked Answered
There may be an external firewall - a firewall between your computer and the internet (inside your network). Chances are that if the server_ip
begins with 192.168
, then that is the case.
how can i solve this problem? how can i disable such firewall? my address is 127.0.0.1 –
Consolatory
You can't disable the firewall, but see this answer. –
Rudolfrudolfo
Try running
heroku run:detached your command here
and it will fly, if the issue was the firewall.
Allows commands to execute, but
stdout
of these commands won't be attached to your terminal, so you can't open an interactive shell with heroku run bash
. –
Rudolfrudolfo There may be an external firewall - a firewall between your computer and the internet (inside your network). Chances are that if the server_ip
begins with 192.168
, then that is the case.
how can i solve this problem? how can i disable such firewall? my address is 127.0.0.1 –
Consolatory
You can't disable the firewall, but see this answer. –
Rudolfrudolfo
© 2022 - 2024 — McMap. All rights reserved.
heroku-run
plugin in the CLI is probably attaching to a non-standard port: github.com/heroku/heroku-run/blob/master/commands/run.js#L103 You probably have a firewall or something between you and that server that is blocking access. You could file an issue on that project. – Molecular:detach
) even when behind a firewall? – Diligent