2021-04-03 13:29:01 -07:00
---
eleventyNavigation:
2022-02-14 13:15:05 -08:00
key: Troubleshooting
2021-04-03 13:29:01 -07:00
title: Troubleshooting
parent: CodebergPages
order: 99
---
2025-06-14 06:39:01 -07:00
## My web browser displays a security warning when I try to access my Codeberg Pages
2022-08-04 19:27:57 -07:00
2025-06-14 02:38:21 -07:00
If your user name or repository name contains a dot, your Codeberg Pages URL (< https: / / user . name . codeberg . page >
or < https: / / repo . sitory . username . codeberg . page > )
contains a sub-sub-domain which does not work with Let's Encrypt wildcard certificates.
Use the alternative URL < https: / / pages . codeberg . org / user . name / > as a workaround or rename you repository
(e.g. replace `.` by `_` ).
2022-01-21 02:36:38 -08:00
## My content is not updated
2026-02-13 11:35:53 -08:00
The Codeberg Pages v2 server caches files under a certain size (currently 1 MiB).
2022-08-04 19:27:57 -07:00
Please wait a few minutes until the cache has been invalidated.
This is done to improve performance, reduce cost and server load, and save energy.
2023-11-10 03:24:40 -08:00
## Cloudflare and Codeberg Pages
2025-06-14 02:38:21 -07:00
It is important that when you use [Cloudflare ](https://cloudflare.com ) to manage your Domain's DNS records,
that every DNS record used for Codeberg Pages needs to be set to **DNS only** (Have a gray cloud).
This ensures that Codeberg pages can properly handle everything necessary for your site such as SSL-Certificate and
redirects from other (sub-)domains.
2026-07-25 10:04:41 -07:00
## Troubleshooting post-git-pages errors
Given that Codeberg has moved to [git-pages ](https://git-pages.org/ ) entirely, some behaviors changed.
Some things broke.
Including some undocumented behaviors website authors depended on.
This needs troubleshooting.
Luckily, git-pages allows troubleshooting.
Say, we add this (broken) [redirect rule ](/codeberg-pages/advanced-usage/#redirects ) to simulate old pages server redirection to `.html` pages:
```
/*/ /:splat.html 301
```
After committing it and opening a page like `https://example.org/hello` , we are redirected to a 404 page.
2026-07-25 12:17:20 -07:00
Something must be broken in redirects.
2026-07-25 10:04:41 -07:00
However, we don’ t know that for sure.
Need to check.
There are two ways to find out what’ s broken in the website:
```
# Plain web request
curl https://example.org/.git-pages/manifest.json
# Or a dedicated tool from git-pages
git-pages-cli --debug-manifest https://example.org
```
In either case, you get huge JSONs with meta-information about the website.
The structure is roughly:
2026-07-25 12:17:20 -07:00
```json
2026-07-25 10:04:41 -07:00
{
"repoUrl": "https://codeberg.org/.../pages.git",
"branch": "pages",
"commit": "abcdef...",
"contents": {
"": {
"type": "Directory"
},
".domains": {
// ...
},
".gitignore": {
// ...
},
"assets": {
"type": "Directory"
},
"assets/...png": {
"type": "ExternalFile",
"originalSize": "...",
"compressedSize": "...",
"data": "...",
"transform": "Identity",
"contentType": "image/png",
"gitHash": "..."
},
"index.html": {
"type": "ExternalFile",
"originalSize": "...",
"compressedSize": "...",
"data": "...",
"transform": "Zstd",
"contentType": "text/html; charset=utf-8",
"gitHash": "..."
}
// ...
},
"originalSize": "...",
"compressedSize": "...",
"storedSize": "...",
"redirects": [
{
"from": "/foo",
"to": "/bar",
"status": 301,
"force": false
2026-07-25 12:17:20 -07:00
}
2026-07-25 10:04:41 -07:00
// ...
],
"headers": [],
"basicAuth": [],
"problems": [
{
"path": "_redirects",
"cause": "rule #1 \"/*/ /:splat.html 301\": splat * must be its own final segment of the path"
}
]
}
```
And here’ s the problem, under the `"problems"` key: the redirect is malformed!
In the end, this is one of the [changes and deprecations ](/codeberg-pages/migrating-from-pages-v2/#breaking-changes-and-deprecations ) that happened in migration.
But lamenting that is a story for another time.
Problem diagnosed through the useful git-pages manifest!
Use it to diagnose errors from now on!