Need some help. Windows Command Prompt error

I am trying to use the balenca push command and it keeps comming up with this error.

C:\WINDOWS\system32>balena push AdBlocker

  • Packaging the project source…You don’t have enough privileges to run this operation.
    Run a new Command Prompt as administrator and try running this command again.

If this is not the case, and you’re trying to burn an SDCard, check that the write lock is not set.

If you need help, don’t hesitate in contacting us at:

GitHub: https://github.com/balena-io/balena-cli/issues/new
Forums: https://forums.balena.io

  • Packaging the project source…

And I have already opened command prompt in admin mode.
Your help would greatly be apprecaited.

Thanks.

Hello @Silver,

Could you confirm that you downloaded the balena-cli from here: https://github.com/balena-io/balena-cli/releases/download/v9.12.0/balena-cli-v9.12.0-win32-x64.zip

  • Unzip the file to C:/balena-cli
  • Go to the folder where you have the Dockerfile
  • Run C:\balena-cli\balena login to authenticate to the service
  • Then run C:\balena-cli\balena push AdBlocker

Let me know if it helps or where you hit the roadblock and I will help you.

Cheers

Hello, thanks for your help, I did everying you said and it still didn’t work coming up with the same error as before. Also what is the Dockerfile?

This is everything the command prompt said.

C:\WINDOWS\system32>C:\balena-cli\balena login
_ _
| |__ __ _ | | ____ _ __ __ _
| '_ \ / || | / __ \| '_ \ / _ |
| |
) | () || || /| | | || () |
|
.
_/ _
,||| _/|| || _,_|

Logging in to balena-cloud.com
? How would you like to login? Web authorization (recommended)
Connecting to the web dashboard
Successfully logged in as: g_rahul_patel

Find out about the available commands by running:

$ balena help

If you need help, or just want to say hi, don’t hesitate in reaching out at:

GitHub: https://github.com/balena-io/balena-cli/issues/new
Forums: https://forums.balena.io

C:\WINDOWS\system32>C:\balena-cli\balena push AdBlocker
| Packaging the project source…You don’t have enough privileges to run this operation.
Run a new Command Prompt as administrator and try running this command again.

If this is not the case, and you’re trying to burn an SDCard, check that the write lock is not set.

If you need help, don’t hesitate in contacting us at:

GitHub: https://github.com/balena-io/balena-cli/issues/new
Forums: https://forums.balena.io

/ Packaging the project source…
C:\WINDOWS\system32>

Hey @Silver,

It looks like the packaging step is requiring special permissions in some systems, even though I’m not sure why that might be the case.

Have you tried running the same command on an Administrator cmd.exe instance?

Oh, I missed the bottom line were you mentioned that this was already an admin prompt. Let me take a closer look at the code.

@Silver By taking a closer look at your prompt, is seems that you are trying to run the command from C:\WINDOWS\system32>, which is of course not a Balena application. Can you cd to the directory of the Balena application and run the command there?