Hasura 迁移失败:客户端不持有所需的特权

Hasura Migration failed : Required privilege is not held by client

我正在尝试应用迁移,我能够成功执行以下命令

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

但是当我尝试执行下一个命令时,出现下面提到的错误,任何想法...

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."

管理员 身份打开命令行并重试迁移。 供参考:https://github.com/hasura/graphql-engine/issues/4852

运行 在重试迁移之前将其作为 sudo(作为非 sudo):

sudo hasura plugins install cli-ext

然后

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