G4bri3l
G4bri3l

Reputation: 5146

Heroku Permission denied @ rb_sysopen

I was following the starter guide on the Heroku website, I installed the Heroku Toolbet. Then whichever heroku command I run I always get the same error.

Heroku client internal error.
Permission denied @ rb_sysopen - C:\Users\{{UserName}}\AppData\Local/heroku/heroku-cli.exe
C:/Program Files (x86)/Heroku/lib/heroku/jsplugin.rb:140:in `initialize'
C:/Program Files (x86)/Heroku/lib/heroku/jsplugin.rb:140:in `open'
C:/Program Files (x86)/Heroku/lib/heroku/jsplugin.rb:140:in `setup'
C:/Program Files (x86)/Heroku/lib/heroku/cli.rb:27:in `start'
C:/Program Files (x86)/Heroku/bin/heroku:29:in `<main>'

I tried uninstalling everything and installing as admin, also running the cmd as admin but nothing worked so far. I researched around but could not find a solution.

The first thing to appear on the cmd when I type any heroku command is

heroku-cli: Installing Toolbelt v4... ! Heroku client internal error.

If you need any additional info let me know. I really have no idea how to proceed in order to fix this.

Upvotes: 2

Views: 414

Answers (1)

G4bri3l
G4bri3l

Reputation: 5146

I ended up finding what was going on. Inside the folder mentioned in the error message I could not find the 'heroku-cli.exe' file. So something must have blocked it from even being copied there. I checked my Antivirus and found out that it was blocking heroku from installing in that folder, I created an exception (I am using BitDefender) so that it would allow writing in that path and now everything works great!

So I would recommend checking your antivirus report if you face the same issue.

Upvotes: 1

Related Questions