Codeberg/Community
54
325
Fork
You've already forked Community
12

"Internal server error" on project wiki #1566

Open
opened 2024年05月14日 18:26:49 +02:00 by lucasaiu · 8 comments

Comment

The wiki at https://codeberg.org/pEp/pEpEngine/wiki is no longer usable. After I committed a change to the wiki via git the system could no longer display any page, showing an Internal server error message instead.

### Comment The wiki at https://codeberg.org/pEp/pEpEngine/wiki is no longer usable. After I committed a change to the wiki via git the system could no longer display any page, showing an *Internal server error* message instead.

Regarding a change, since when did this start happening exactly?

62c55adc97e2f02b0c345e3cee048bb5967d2c68 (HEAD -> master, origin/master, origin/HEAD) some changes by positron without a comment
66ad8e80c81d0a8bf87faf9477e41ff8e819fb1d some changes by positron without a comment
193ebff651d723174ccf3db0b470adea6757dd06 some changes by positron without a comment
dc6940c54fc0ee689b4bef4bf8e7100c99b8bd71 some changes by positron without a comment
9b6604f453c5bb2ac4f2d2a5b803287f9204be8d some changes by positron without a comment
2179243ec2df0b6fc92f36cd0ed6cdb65f740465 some changes by positron without a comment
c0170146c1536024d75e9f04d9487f87a1591278 some changes by positron without a comment
6f7a51bef8f4b454461ff5a88061970123845a60 some changes by positron without a comment
b60bf0b5ffd7af1f7a14e9ec0a2820291549b3c5 some changes by positron without a comment
de8def9df4e8f7531e70851ac3e0f9830397b8b4 some changes by positron without a comment
27485b0f7c4cc947b4644eb3b6df187a2ee77708 some changes by positron without a comment
95335c3c0c0592c642fdc52d5d17e07727180ddc typo fixed
4ed894b9aac8e1f5158ddddd52d9d391e1cfeded Update mixnet
5287fb1f055ec5828e6b71675a23a515eb2c8985 Update mixnet
8ae5b55980688f3149122d5d2271c451d38e2692 Update mixnet
a61f0466f212cd0569588a27c0cf4bea0eb2715e Update mixnet
b876ddb14c64405556048f0e5e4f2a8108c8f8fc Update mixnet
ce1242c313a64eb10bcafb97dda94d2c2577bc9f link to Sequoia PGP
7ff234f95c4569f821684cf3ab2f42106ec0503a Update mixnet
5cbebd6f432e1deeca2cea6b49c987fe57d5895a add intro
c654ac4563ef2354abbba85dd2cd4ae27d64369b Update mixnet
commit 62c55adc97e2f02b0c345e3cee048bb5967d2c68 (HEAD -> master, origin/master, origin/HEAD)
Author: [redacted]
Date: Tue May 14 18:21:18 2024 +0200
 some changes by positron without a comment
diff --git a/foo b/foo
deleted file mode 100644
index e69de29..0000000
commit 66ad8e80c81d0a8bf87faf9477e41ff8e819fb1d
Author: [redacted]
Date: Tue May 14 18:21:03 2024 +0200
 some changes by positron without a comment
diff --git a/foo b/foo
new file mode 100644
index 0000000..e69de29
Regarding `a change`, since when did this start happening exactly? ``` 62c55adc97e2f02b0c345e3cee048bb5967d2c68 (HEAD -> master, origin/master, origin/HEAD) some changes by positron without a comment 66ad8e80c81d0a8bf87faf9477e41ff8e819fb1d some changes by positron without a comment 193ebff651d723174ccf3db0b470adea6757dd06 some changes by positron without a comment dc6940c54fc0ee689b4bef4bf8e7100c99b8bd71 some changes by positron without a comment 9b6604f453c5bb2ac4f2d2a5b803287f9204be8d some changes by positron without a comment 2179243ec2df0b6fc92f36cd0ed6cdb65f740465 some changes by positron without a comment c0170146c1536024d75e9f04d9487f87a1591278 some changes by positron without a comment 6f7a51bef8f4b454461ff5a88061970123845a60 some changes by positron without a comment b60bf0b5ffd7af1f7a14e9ec0a2820291549b3c5 some changes by positron without a comment de8def9df4e8f7531e70851ac3e0f9830397b8b4 some changes by positron without a comment 27485b0f7c4cc947b4644eb3b6df187a2ee77708 some changes by positron without a comment 95335c3c0c0592c642fdc52d5d17e07727180ddc typo fixed 4ed894b9aac8e1f5158ddddd52d9d391e1cfeded Update mixnet 5287fb1f055ec5828e6b71675a23a515eb2c8985 Update mixnet 8ae5b55980688f3149122d5d2271c451d38e2692 Update mixnet a61f0466f212cd0569588a27c0cf4bea0eb2715e Update mixnet b876ddb14c64405556048f0e5e4f2a8108c8f8fc Update mixnet ce1242c313a64eb10bcafb97dda94d2c2577bc9f link to Sequoia PGP 7ff234f95c4569f821684cf3ab2f42106ec0503a Update mixnet 5cbebd6f432e1deeca2cea6b49c987fe57d5895a add intro c654ac4563ef2354abbba85dd2cd4ae27d64369b Update mixnet ``` ``` commit 62c55adc97e2f02b0c345e3cee048bb5967d2c68 (HEAD -> master, origin/master, origin/HEAD) Author: [redacted] Date: Tue May 14 18:21:18 2024 +0200 some changes by positron without a comment diff --git a/foo b/foo deleted file mode 100644 index e69de29..0000000 commit 66ad8e80c81d0a8bf87faf9477e41ff8e819fb1d Author: [redacted] Date: Tue May 14 18:21:03 2024 +0200 some changes by positron without a comment diff --git a/foo b/foo new file mode 100644 index 0000000..e69de29 ```

Before I added (and then removed) foo, which was a test to see if by making any change I could work around the issue. So I think that the commit that broke the system was 193ebff651d723174ccf3db0b470adea6757dd06

By the way, I am noticing now some file renames that happened by mistake. I will undo those:

  • engine%3A%3Aoffline-transport.md => engine%3-a%3-aoffline-transport.md
  • engine%3A%3Aonline-transport.md => engine%3-a%3-aonline-transport.md
  • engine%3A%3Auncategorised-development-themes%3A%3Aextracting-keys.md => engine%3-a%3-auncategorised-development-themes%3-a%3-aextracting-keys.md
  • mixnet--old-document.md => mixnet-old-document.md
Before I added (and then removed) foo, which was a test to see if by making any change I could work around the issue. So I think that the commit that broke the system was 193ebff651d723174ccf3db0b470adea6757dd06 By the way, I am noticing now some file renames that happened by mistake. I will undo those: * engine%3A%3Aoffline-transport.md => engine%3-a%3-aoffline-transport.md * engine%3A%3Aonline-transport.md => engine%3-a%3-aonline-transport.md * engine%3A%3Auncategorised-development-themes%3A%3Aextracting-keys.md => engine%3-a%3-auncategorised-development-themes%3-a%3-aextracting-keys.md * mixnet--old-document.md => mixnet-old-document.md

It turns out that undoing those renaming did solve the issue.

I believe that there is a bug, but it is not what I initially though: it has to do with files containing % characters (or escapes) in their names.

It turns out that undoing those renaming did solve the issue. I believe that there is a bug, but it is not what I initially though: it has to do with files containing `%` characters (or escapes) in their names.

You may close the issue if you want: the problem is not urgent for me; however you may want to look into it for the future.

Thanks a lot for your work.

You may close the issue if you want: the problem is not urgent for me; however you may want to look into it for the future. Thanks a lot for your work.

@lucasaiu Sorry for the late reply, but I find this information immensely helpful and this should definitely be looked at.

@lucasaiu Sorry for the late reply, but I find this information immensely helpful and this should definitely be looked at.

This was pretty easy to reproduce. If Forgejo can't decode the filename, it will 500 out. Not sure what the best way to handle the situation would be, but 500ing out is most definitely not the best way.

This was pretty easy to reproduce. If Forgejo can't decode the filename, it will 500 out. Not sure what the best way to handle the situation would be, but 500ing out is most definitely not the best way.

Hello, I'm having a similar 500 Internal Server Error problem with my wiki at https://codeberg.org/flytek/flytek-bot.wiki

Every time I try to add a page from the web UI, it faults with a code 500 error. I tried to clone the wiki repo (flytek-bot.wiki.git), but every time I push some changes, the wiki breaks. The only way to make it "work" (that is, load the page without erroring) is to delete all files and commit the deletion. No matter how I call my files or what I write into them, every time I push a change, it breaks the wiki.

I think the problem is that I have two remote branches, main and master, and I cannot figure out how to get rid of one of them (preferably master). Every time I issue a git command that is supposed to delete the branch, git answers me:

remote: error: By default, deleting the current branch is denied, because the next
remote: 'git clone' won't result in any file checked out, causing confusion.
remote:
remote: You can set 'receive.denyDeleteCurrent' configuration variable to
remote: 'warn' or 'ignore' in the remote repository to allow deleting the
remote: current branch, with or without a warning message.
remote:
remote: To squelch this message, you can set it to 'refuse'.
remote: error: refusing to delete the current branch: refs/heads/master
To https://codeberg.org/flytek/flytek-bot.wiki.git
 ! [remote rejected] master (deletion of the current branch prohibited)
error: failed to push some refs to 'https://codeberg.org/flytek/flytek-bot.wiki.git'

I tried to google the error, but it looks like everyone is suggesting to use the remote's web interface (which for this repo doesn't exist (right?)) to change the main/protected branch so I can freely delete one of them

Edit: apparently I can edit the home file Home.md and the wiki homepage will display just fine, but if I create a new page (eg. custom commands.md), it faults with an error 500. Maybe it is not related to the branches, but to something else. Either way, I can't figure out how to use the wiki without breaking it :p

Hello, I'm having a similar `500 Internal Server Error` problem with my wiki at https://codeberg.org/flytek/flytek-bot.wiki Every time I try to add a page from the web UI, it faults with a code 500 error. I tried to clone the wiki repo (`flytek-bot.wiki.git`), but every time I push some changes, the wiki breaks. The only way to make it "work" (that is, load the page without erroring) is to delete all files and commit the deletion. No matter how I call my files or what I write into them, every time I push a change, it breaks the wiki. I think the problem is that I have two remote branches, `main` and `master`, and I cannot figure out how to get rid of one of them (preferably `master`). Every time I issue a git command that is supposed to delete the branch, git answers me: ```git remote: error: By default, deleting the current branch is denied, because the next remote: 'git clone' won't result in any file checked out, causing confusion. remote: remote: You can set 'receive.denyDeleteCurrent' configuration variable to remote: 'warn' or 'ignore' in the remote repository to allow deleting the remote: current branch, with or without a warning message. remote: remote: To squelch this message, you can set it to 'refuse'. remote: error: refusing to delete the current branch: refs/heads/master To https://codeberg.org/flytek/flytek-bot.wiki.git ! [remote rejected] master (deletion of the current branch prohibited) error: failed to push some refs to 'https://codeberg.org/flytek/flytek-bot.wiki.git' ``` I tried to google the error, but it looks like everyone is suggesting to use the remote's web interface (which for this repo doesn't exist (right?)) to change the main/protected branch so I can freely delete one of them **Edit**: apparently I can edit the home file `Home.md` and the [wiki homepage](https://codeberg.org/flytek/flytek-bot/wiki) will display just fine, but if I create a new page (eg. [custom commands.md](https://codeberg.org/flytek/flytek-bot/wiki/custom-commands)), it faults with an error 500. Maybe it is not related to the branches, but to something else. Either way, I can't figure out how to use the wiki without breaking it :p

I also experience this problem. Any page I created hits an error 500. There was an issue with a file that had a ':' in it's name. However, even with it removed or renamed, I can't add new pages (via web interface or via git).

Edit: I also have an issue with having a 'main' and 'master' branch.

I also experience this problem. Any page I created hits an error 500. There was an issue with a file that had a ':' in it's name. However, even with it removed or renamed, I can't add new pages (via web interface or via git). Edit: I also have an issue with having a 'main' and 'master' branch.
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Labels
Clear labels
accessibility

Reduces accessibility and is thus a "bug" for certain user groups on Codeberg.
bug

Something is not working the way it should. Does not concern outages.
bug
infrastructure

Errors evidently caused by infrastructure malfunctions or outages
Codeberg

This issue involves Codeberg's downstream modifications and settings and/or Codeberg's structures.
contributions welcome

Please join the discussion and consider contributing a PR!
docs

No bug, but an improvement to the docs or UI description will help
duplicate

This issue or pull request already exists
enhancement

New feature
infrastructure

Involves changes to the server setups, use `bug/infrastructure` for infrastructure-related user errors.
legal

An issue directly involving legal compliance
licence / ToS

involving questions about the ToS, especially licencing compliance
please chill
we are volunteers

Please consider editing your posts and remember that there is a human on the other side. We get that you are frustrated, but it's harder for us to help you this way.
public relations

Things related to Codeberg's external communication
question

More information is needed
question
user support

This issue contains a clearly stated problem. However, it is not clear whether we have to fix anything on Codeberg's end, but we're helping them fix it and/or find the cause.
s/Forgejo

Related to Forgejo. Please also check Forgejo's issue tracker.
s/Forgejo/migration

Migration related issues in Forgejo
s/Pages

Issues related to the Codeberg Pages feature
s/Weblate

Issue is related to the Weblate instance at https://translate.codeberg.org
s/Woodpecker

Woodpecker CI related issue
security

involves improvements to the sites security
service

Add a new service to the Codeberg ecosystem (instead of implementing into Gitea)
upstream

An open issue or pull request to an upstream repository to fix this issue (partially or completely) exists (i.e. Gitea, Forgejo, etc.)
wontfix

Codeberg's current set of contributors are not planning to spend time on delegating this issue.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Community#1566
Reference in a new issue
Codeberg/Community
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?