Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking gist "Revisions" tab causing 502 Bad Gateway #116

Closed
Aetherinox opened this issue Sep 27, 2023 · 3 comments · Fixed by #122
Closed

Clicking gist "Revisions" tab causing 502 Bad Gateway #116

Aetherinox opened this issue Sep 27, 2023 · 3 comments · Fixed by #122
Labels
bug Something isn't working

Comments

@Aetherinox
Copy link

Aetherinox commented Sep 27, 2023

I am currently on the latest version of Opengist (v1.5.0). I was testing out private gists today and noticed the revisions tab which says I have two.

meuAF11

As soon as I click that link, the website automatically loads a 502 Bad Gateway for the url https://gist.domain.com/username/0e36f42c247a56c1b224a4c2b16fd2ed/revisions (this is all from a user computer).

I then connected to my server box using Remote Desktop and went to the website via http:https://localhost:6157/, signed in, went to the revisions tab and the server's browser leads me to a "This page cannot be reached" error.

CfdG3dU

Not sure what's going on, but the rest of the site seems to work fine. Only page I'm having issues with is the revisions tab.

@thomiceli thomiceli added the bug Something isn't working label Sep 28, 2023
@thomiceli
Copy link
Owner

Hi, it's most likely Opengist could not parse the git log command.

Could you please cd into the opengist home in your filesystem (most likely ~/.opengist or /opengist on Docker), then in repos, find the repository where you have this problem, and please paste the result of this command

git --no-pager log --no-color -p --format="format:c %H%na %aN%nm %ae%nt %at" --shortstat HEAD

@Aetherinox
Copy link
Author

Aetherinox commented Sep 28, 2023

fatal: detected dubious ownership in repository at '/home/git/gist/repos/aetherinox/0a36f42c25f841b7a401e5c4c97fd2ea'
To add an exception for this directory, call:

	git config --global --add safe.directory /home/git/gist/repos/aetherinox/0a36f42c25f841b7a401e5c4c97fd2ea

If I run that -add safe.directory command and execute your command again, I get

c 608ac245996c1ae9c6f05022de418a481c5ae411
a Aetherinox
m aeth***@***.com
t 1695793621
c 254411b8725ddbcdb6bb37b0e21c6ea61201d2aa
a Aetherinox
m aeth***@***.com
t 1695538599
 1 file changed, 1 insertion(+)

diff --git a/keyfile b/keyfile
new file mode 100644
index 0000000..a56d51f
--- /dev/null
+++ b/keyfile
@@ -0,0 +1 @@

Decided to go try out the gist revision tab again just to see, and it still says Bad Gateway.

Sidenote (if it makes any difference). I have Opengist and Gitea volumes under /home/git running as the git user.

@thomiceli
Copy link
Owner

Actually there is nothing wrong with the log (even tho I'm confident the log parser does not cover every edge cases and is not really that stable), just forgot to add some $ in the templates... pretty dumb by me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants