N8N Backup template to github not working

Describe the problem/error/question

Using the N8N backup workflow to github hits an error

N8N connection works and successfully returns outputs, Github connection is successful. I’ve created the repo called “n8n-backup”. However there is no folder in it. Apparently the workflow should create a folder in the github repo if it doesn’t exist.

What is the error message (if any)?

The resource you are requesting could not be found
Not Found

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:**1.39.1
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**docker
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

@pooria , the way I see it you have to create the folder yourself manually (and point to it in “Globals” node), the workflow you referenced won’t do it for you.

@ihortom I created the folder manually. Now “workflows” is in my github.

When running the workflow to test if it works there’s the same error:

“The resource you are requesting could not be found
Not Found”

This is the input/output of isDiffOrNew:

@pooria , I’m actually using this workflow myself (and it works fine). I do remember I had to change something after one of the n8n releases (can’t remember what exactly). If you wish, you can try my version, which has just a few minor differences/additions.

Thx for sharing @ihortom .

The last github node “Github Create” still has that error “The resource you are requesting could not be found”

I even made sure to hceck the github connection works and that repo owner, folder exist and are properly being referred to .

Also should the github repo be public or can it be private?

It can be private (mine is private). Perhaps you need to check your permissions - you might be not allowed to create new files (or generally update the repository)?

I’m using GitHub API token to authenticate. Here’s my token’s scope.

2 Likes

@ihortom Ihor, you’re the hero we didn’t know we want but desperately needed lol!!

Appreciate it. That worked like a charm.

I had first setup a Github App based on the n8n tutorial but the personal access token is so much easier in terms of permissions. Thank you so much!!!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.