# TagBot Github Action runs successfully but a new release does not show up on github Releases

**URL:** <https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770>\
**Category:** Tooling\
**Tags:** tagbot\
**Created:** [May 9, 2022, 5:25pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770 "2022-05-09T17:25:22Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gus\_Hart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gus_hart/32/6987_2.png) [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)\
**Post date:** [May 9, 2022, 5:25pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/1 "2022-05-09T17:25:22Z")

</div>

I’m developing a new package `Spacey.jl`. Unit tests and coverage tests are running fine as Github Actions. I copied a `Tagbot.yml` from another registered packaged I have on github (`MinkowksiReduction.jl`) where it works fine. But on this repo, new releases are not getting tagged, even though the github action report claims Tagbot ran fine.

I’ve released v0.1.0 which I tagged by hand because tagbot didn’t work. I just released v0.2.0 and it hasn’t been tagged.

Here’s the tagbot.yml file:

```julia
name: TagBot
on:
  issue_comment:
    types:
      - created
  workflow_dispatch:
    inputs:
        lookback:
          default: 3
jobs:
  TagBot:
    if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
    runs-on: ubuntu-latest
    steps:
      - uses: JuliaRegistries/TagBot@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          ssh: ${{ secrets.DOCUMENTER_KEY }}

```

Although the Github action is “green” and indicates success, inside it says that there was an internal error with tagbot…

 ![image](https://global.discourse-cdn.com/julialang/original/3X/5/d/5d965b4f82fa380e74c2c8aa05c80cd0415a69fa.jpeg)

Perhaps there is some setting I need to turn on? I’ve poked around for a few days, but I’ve exhausted my limited understanding of how tagbot works…

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [May 9, 2022, 6:07pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/2 "2022-05-09T18:07:13Z")

</div>

CC: @christopher-dG

---

<div class="post-metadata">

**Author:** ![christopher-dG](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher-dg/32/7387_2.png) [@christopher-dG](https://discourse.julialang.org/u/christopher-dG)\
**Post date:** [May 11, 2022, 12:47pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/3 "2022-05-11T12:47:13Z")

</div>

Would be useful to see a link to the run as the screenshot doesn’t contain the stacktrace.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [May 11, 2022, 1:31pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/4 "2022-05-11T13:31:20Z")

</div>

[https://github.com/glwhart/Spacey.jl/runs/6353273364?check\_suite\_focus=true](https://github.com/glwhart/Spacey.jl/runs/6353273364?check_suite_focus=true)

```julia
Error: TagBot experienced an unexpected internal failure
Traceback (most recent call last):
  File "/root/tagbot/action/ __main__.py", line 94, in <module>
    repo.create_release(version, sha)
  File "/root/tagbot/action/repo.py", line 536, in create_release
    tag = self._repo.create_git_tag(
  File "/usr/local/lib/python3.8/site-packages/github/Repository.py", line 1093, in create_git_tag
    headers, data = self._requester.requestJsonAndCheck(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 315, in requestJsonAndCheck
    return self.__check(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 340, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 403 {"message": "Resource not accessible by integration", "documentation_url": "https://docs.github.com/rest/reference/git#create-a-tag-object"}

```

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [May 11, 2022, 2:23pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/5 "2022-05-11T14:23:04Z")

</div>

You are not alone.

> [@Slow TagBot. No repo update after 16 hours](https://discourse.julialang.org/t/slow-tagbot-no-repo-update-after-16-hours/80870/2):
>
> [https://github.com/ctkelley/SIAMFANLEquations.jl/runs/6375100102?check\_suite\_focus=true](https://github.com/ctkelley/SIAMFANLEquations.jl/runs/6375100102?check_suite_focus=true) Warning: GitHub returned a 5xx error code Sounds like a GitHub issue. If you go to [TagBot · Workflow runs · ctkelley/SIAMFANLEquations.jl · GitHub](https://github.com/ctkelley/SIAMFANLEquations.jl/actions/workflows/tagbot.yml) you should have a button to manually trigger the workflow again.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [May 11, 2022, 2:35pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/6 "2022-05-11T14:35:16Z")

</div>

> [@ctkelley](#):
>
> You are not alone.

The error is completely different though

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [May 11, 2022, 2:50pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/7 "2022-05-11T14:50:55Z")

</div>

It is? The title “runs successfully but a new release does not show up …” describes my problem better than I did.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [May 11, 2022, 3:01pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/8 "2022-05-11T15:01:08Z")

</div>

> [@ctkelley](#):
>
> It is?

It is. Unless I can’t read

```julia
Error: TagBot experienced an unexpected internal failure
Traceback (most recent call last):
  File "/root/tagbot/action/ __main__.py", line 94, in <module>
    repo.create_release(version, sha)
  File "/root/tagbot/action/repo.py", line 536, in create_release
    tag = self._repo.create_git_tag(
  File "/usr/local/lib/python3.8/site-packages/github/Repository.py", line 1093, in create_git_tag
    headers, data = self._requester.requestJsonAndCheck(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 315, in requestJsonAndCheck
    return self.__check(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 340, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 403 {"message": "Resource not accessible by integration", "documentation_url": "https://docs.github.com/rest/reference/git#create-a-tag-object"}

```

in [https://github.com/glwhart/Spacey.jl/runs/6353273364?check\_suite\_focus=true](https://github.com/glwhart/Spacey.jl/runs/6353273364?check_suite_focus=true) is very much different from

```julia
Warning: GitHub returned a 5xx error code
Traceback (most recent call last):
  File "/root/tagbot/action/ __main__.py", line 74, in <module>
    versions = repo.new_versions()
  File "/root/tagbot/action/repo.py", line 432, in new_versions
    return self._filter_map_versions(versions)
  File "/root/tagbot/action/repo.py", line 271, in _filter_map_versions
    expected = self._commit_sha_from_registry_pr(version, tree)
  File "/root/tagbot/action/repo.py", line 205, in _commit_sha_from_registry_pr
    pr = self._registry_pr(version)
  File "/root/tagbot/action/repo.py", line 196, in _registry_pr
    for pr in prs:
  File "/usr/local/lib/python3.8/site-packages/github/PaginatedList.py", line 56, in __iter__
    newElements = self._grow()
  File "/usr/local/lib/python3.8/site-packages/github/PaginatedList.py", line 67, in _grow
    newElements = self._fetchNextPage()
  File "/usr/local/lib/python3.8/site-packages/github/PaginatedList.py", line 199, in _fetchNextPage
    headers, data = self.__requester.requestJsonAndCheck(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 315, in requestJsonAndCheck
    return self.__check(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 340, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 500 null

```

in [https://github.com/ctkelley/SIAMFANLEquations.jl/runs/6375100102?check\_suite\_focus=true](https://github.com/ctkelley/SIAMFANLEquations.jl/runs/6375100102?check_suite_focus=true)

---

<div class="post-metadata">

**Author:** ![neelsmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/neelsmith/32/22638_2.png) [@neelsmith](https://discourse.julialang.org/u/neelsmith)\
**Post date:** [May 11, 2022, 3:04pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/9 "2022-05-11T15:04:54Z")

</div>

I’m seeing a similar error in a couple of different repositories. Published a new version of a package to juliahub and same tagbot configuration that has worked for previous versions failed with 502 “Server Error”:

```julia
Warning: GitHub returned a 5xx error code
41
Traceback (most recent call last):
42
  File "/root/tagbot/action/ __main__.py", line 74, in <module>
43
    versions = repo.new_versions()
44
  File "/root/tagbot/action/repo.py", line 432, in new_versions
45
    return self._filter_map_versions(versions)
46
  File "/root/tagbot/action/repo.py", line 271, in _filter_map_versions
47
    expected = self._commit_sha_from_registry_pr(version, tree)
48
  File "/root/tagbot/action/repo.py", line 205, in _commit_sha_from_registry_pr
49
    pr = self._registry_pr(version)
50
  File "/root/tagbot/action/repo.py", line 196, in _registry_pr
51
    for pr in prs:
52
  File "/usr/local/lib/python3.8/site-packages/github/PaginatedList.py", line 56, in __iter__
53
    newElements = self._grow()
54
  File "/usr/local/lib/python3.8/site-packages/github/PaginatedList.py", line 67, in _grow
55
    newElements = self._fetchNextPage()
56
  File "/usr/local/lib/python3.8/site-packages/github/PaginatedList.py", line 199, in _fetchNextPage
57
    headers, data = self.__requester.requestJsonAndCheck(
58
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 315, in requestJsonAndCheck
59
    return self.__check(
60
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 340, in __check
61
    raise self.__createException(status, responseHeaders, output)
62
github.GithubException.GithubException: 502 {"message": "Server Error"}
63

```

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [May 11, 2022, 3:07pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/10 "2022-05-11T15:07:26Z")

</div>

> [@neelsmith](#):
>
> I’m seeing a similar error in a couple of different repositories.

You’re seeing a similar error to what was reported in [Slow TagBot. No repo update after 16 hours](https://discourse.julialang.org/t/slow-tagbot-no-repo-update-after-16-hours/80870), not this thread. Unless someone can prove they’re ultimately caused by the same problem, please let’s keep the threads separate to avoid confusion.

---

<div class="post-metadata">

**Author:** ![Gus\_Hart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gus_hart/32/6987_2.png) [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)\
**Post date:** [May 17, 2022, 4:09pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/11 "2022-05-17T16:09:54Z")

</div>

For now, I’m tagging releases by hand until TagBot gets fixed. (@christopher-dG do you need any more information to debug this?) Mose gave a link (above) so you can see the full output.

---

<div class="post-metadata">

**Author:** ![krcools](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krcools/32/10212_2.png) [@krcools](https://discourse.julialang.org/u/krcools)\
**Post date:** [October 6, 2022, 8:19am UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/12 "2022-10-06T08:19:50Z")

</div>

Are there any new insights on this?

---

<div class="post-metadata">

**Author:** ![digital\_carver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/digital_carver/32/33818_2.png) [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Post date:** [October 6, 2022, 4:15pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/13 "2022-10-06T16:15:08Z")

</div>

Since this started occurring around the same time, the cause of this may actually be the same as in the other linked thread:

> [@Slow TagBot. No repo update after 16 hours](https://discourse.julialang.org/t/slow-tagbot-no-repo-update-after-16-hours/80870/17):
>
> For anyone still experiencing this issue, it may be due to a permission change that Github implemented some time early May (credit to @mfiano for figuring this out). The default permission for GITHUB\_TOKEN was changed from “read and write” to “read only”. The TagBot [README](https://github.com/JuliaRegistries/TagBot#setup) and the [example.yml](https://github.com/JuliaRegistries/TagBot/blob/master/example.yml) show the way to restore the required permissions at the YAML file level. ([This comment](https://github.com/JuliaRegistries/CompatHelper.jl/issues/416#issue-1232165557) describes the issue and shows a way to fix it via Github UI, on a per-repository level.) The YAML change just involve…

even though the error message is different here. You could try giving the ` contents: write` permission in the tag bot YAML and see if it fixes the issue.

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [October 6, 2022, 4:42pm UTC](https://discourse.julialang.org/t/tagbot-github-action-runs-successfully-but-a-new-release-does-not-show-up-on-github-releases/80770/14 "2022-10-06T16:42:00Z")

</div>

I made the change to TagBot.yml and it did not seem to help.
