V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
DanShu
V2EX  ›  git

Gitea 上项目钩子失效

  •  
  •   DanShu · 2021-08-18 17:12:53 +08:00 · 1443 次点击
    这是一个创建于 974 天前的主题,其中的信息可能已经有所发展或是发生改变。

    公司内网用的 gitea1.11+drone1.6 构建的 CI/CD 平台。

    今天不知道为什么其中一个项目推送改动推送上去没有触发部署。项目-》管理 Web 钩子里面的推送记录是 500,报错{"message":"client is not authorized"}。网上也没找到相关的解决方案,有没有了解的大佬指点下。

    [img]https://i.imgur.com/RABsLaS.png[/img]

    [img]https://i.imgur.com/CdUXEdS.png[/img]

    第 1 条附言  ·  2021-08-19 13:38:51 +08:00

    docker logs drone --tail=20

    "error":"client is not authorized","event":"push","level":"warning","msg":"trigger: cannot find yaml","ref":"refs/heads/master",
    
    1 条回复    2021-08-19 15:30:49 +08:00
    DanShu
        1
    DanShu  
    OP
       2021-08-19 15:30:49 +08:00
    用管理员账号在 drone 对应的项目 settings 里面关闭然后重启项目,对应的 gitea 仓库里面的 web 钩子就更新了~目前只找到这个方法~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1355 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:31 · PVG 01:31 · LAX 10:31 · JFK 13:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.