Skip to content
Troubleshooting

Troubleshooting

The first HTTPS deployment fails

The server cannot obtain a TLS certificate for a domain before the first site has been published on it.

For the first deployment, either use HTTP or pass --server with a hostname for which the server already has a certificate:

$ git-pages-cli https://www.example.org --server gitnet.page ...

Use the certified server hostname supplied by your administrator.

The deployment is unauthorized

Check that:

  • the password matches the one used to generate the DNS challenge
  • the TXT challenge record has been created exactly as printed by --challenge
  • for a Gitnet Forge wildcard-domain deployment, the access token has the required repository permissions
  • the token or password is being passed to the intended deployment target

You can test authorization without performing the operation by adding --dry-run.

The Forge access token does not work

For Forgejo, the upstream documentation specifies Read permission under user and Read and write permission under repository.

Keep the token secret. Anyone who obtains it may be able to modify data in your repositories.

Inspect the site manifest

For debugging, --debug-manifest prints the site manifest:

$ git-pages-cli https://www.example.org --password xyz --debug-manifest

The manifest schema is not versioned and may change without notice. Do not rely on it as a stable integration interface.

Remove a website

Delete a site with:

$ git-pages-cli https://www.example.org --password xyz --delete

You can check authorization first with --dry-run:

$ git-pages-cli https://www.example.org --password xyz \
    --delete \
	--dry-run