【问题标题】:Hasura Migration failed : Required privilege is not held by clientHasura 迁移失败:客户未持有所需的权限
【发布时间】:2020-10-05 10:02:22
【问题描述】:

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

hasura 迁移应用 --endpoint http://192.168.99.100:8080/

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

hasura 元数据应用 --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."

【问题讨论】:

    标签: postgresql graphql hasura database-metadata


    【解决方案1】:

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

    【讨论】:

    • 感谢它的工作。它也需要在 hasura 官方文档中更新。
    【解决方案2】:

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

    sudo hasura plugins install cli-ext
    

    然后

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

    【讨论】:

      猜你喜欢
      • 2015-09-08
      • 2014-10-21
      • 1970-01-01
      • 1970-01-01
      • 2012-01-03
      • 2015-09-01
      • 2021-05-09
      • 2019-04-13
      • 2012-03-28
      相关资源
      最近更新 更多