Common error causes

Secrets error

R2G ERROR - Secrets error: R2G_EMAIL not found (or R2G_PASSWORD or R2G_GRAPH)

One of those secrets is blank or missing. Add it in Settings > Secrets

Login error

R2G ERROR - Login error. Roam says: "There is no user record corresponding to this identifier. The user may have been deleted." or R2G ERROR - Login error. Roam says: "The email address is badly formatted."

Your R2G_EMAIL secret is incorrect. Try updating it.

R2G ERROR - Login error. Roam says: "The password is invalid or the user does not have a password."

Your R2G_PASSWORD secret is incorrect. Try updating it.

Make sure you're not using a Google account login, as this is not supported. (If you are, sign out of Roam, and on the sign-in page, click "Forgot your password" to set a password.)

Bad Credentials error

Your 'personal access token' has expired. Go to your Personal Access Tokens, click on your token (possibly named 'Roam backup' or something similar), click 'Regenerate token,' change the expiration if you want to, then click the green 'Regenerate token' button. (Thanks Reid)

Timeout error - operation was canceled

Timed out with R2G astrolabe spinning... then Error: The operation was canceled. or "TimeoutError: waiting for selector .loading-astrolabe to be hidden failed: timeout 600000ms exceeded" Possible causes:

EDN formatting error

R2G ERROR - EDN formatting error: mismatch with original

The file integrity check to make sure the formatted version of the EDN file matches the downloaded EDN export failed. Please let me know if this were ever to happen.

Out of memory (after formatting EDN)

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

If this happens after the step: R2G - Formatting EDN (this can take a couple minutes for large graphs), then the Roam graph’s EDN is too large for the Action to parse it, because it runs out of memory. Unfortunately, this means you’ll have to disable the EDN backups for it to continue backing up the JSON and Markdown. Do this by going to main.yml and change this setting to false:

BACKUP_EDN: false

Error with retrieving the default branch name

Retrieving the default branch name Error: Not Found

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/15244147-5a86-46d6-8300-b6d18e3bcc88/Untitled.png

Your BACKUP_REPO Secret is incorrect.

Please try updating it with the format of *GitHub username*/*backup repo name*

For example, if the username is everruler12 and the backup repo name is roam2github:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/02842672-20f1-4f24-af0a-d76c616370a7/Untitled.png

Then the secret should be:

everruler12/roam2github


This is incorrect:

<everruler12>/<roam2github>

Fatal error - couldn't find remote ref

Error: fatal: couldn't find remote ref refs/heads/main Error: The process '/usr/bin/git' failed with exit code 128

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5bc9c79e-18dd-47ec-ab6d-b379f4d0741c/Untitled.png

You probably forgot to initialize your backup repository with a README file:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/302755e3-8ae9-411f-af94-90993f2a6e16/Untitled.png

To fix, you just need to add something to your backup repo to initialize it, like a README:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/fedcfe74-bd69-4284-a399-9eb384dab32e/2021.04.14_210150.gif