1

I'm trying to apply migration, I'm able to successfully execute following command

hasura migrate apply --endpoint http://192.168.99.100:8080/

but when I try to execute next command, I get below mentioned error,, any idea ...

hasura metadata apply --endpoint http://192.168.99.100:8080/

INFO unable to install cli-ext plugin. execute the following commands to continu
e:

  hasura plugins install cli-ext
time="2020-06-16T01:31:18+04:00" level=fatal msg="failed to apply metadata: cann
ot apply metadata on the database: cannot build actions from metadata: cannot in
stall plugin cli-ext: install failed: failed to link installed plugin: failed to
 create a symlink from \"C:\\\\Users\\\\umar.farooq\\\\.hasura\\\\plugins\\\\sto
re\\\\cli-ext\\\\v1.2.2\\\\cli-ext-hasura-win.exe\" to \"C:\\\\Users\\\\umar.far
ooq\\\\.hasura\\\\plugins\\\\bin\\\\hasura-cli_ext.exe\": symlink C:\\Users\\uma
r.farooq\\.hasura\\plugins\\store\\cli-ext\\v1.2.2\\cli-ext-hasura-win.exe C:\\U
sers\\umar.farooq\\.hasura\\plugins\\bin\\hasura-cli_ext.exe: A required privile
ge is not held by the client."
oOXAam
  • 237
  • 1
  • 6
  • 20

2 Answers2

4

Open command line as administrator and retry the migrations. For reference: https://github.com/hasura/graphql-engine/issues/4852

Meera
  • 88
  • 9
0

run this as sudo before retry the migration (as non sudo):

sudo hasura plugins install cli-ext

then

hasura migrate apply --endpoint http://192.168.99.100:8080/
DevTheJo
  • 2,179
  • 2
  • 21
  • 25