thomiceli / opengist

Self-hosted pastebin powered by Git, open-source alternative to Github Gist.
https://opengist.io
GNU Affero General Public License v3.0
1.7k stars 90 forks source link

On version 1.7 the revision link times out #245

Closed f8dca closed 5 months ago

f8dca commented 6 months ago

Hi,

Just updated to 1.7 from 1.6 by pulling the latest docker image. After the update the link to show file revisions is no longer working - errors out with a time.

Cheers

G.

thomiceli commented 6 months ago

Hi, what is the error returned in the logs ?

Can you upload your git repository here ? https://demo.opengist.io It's maybe git related but it seems i can't reproduce

f8dca commented 6 months ago
Opengist v1.7.0  
Using YAML config file: /config.yml  
Using environment variables config: OG_OPENGIST_HOME, OG_SSH_GIT_ENABLED  
usermod: no changes  
Opengist v1.7.0    
Using YAML config file: /config.yml  
Using environment variables config: OG_OPENGIST_HOME, OG_SSH_GIT_ENABLED  
usermod: no changes  
Opengist v1.7.0  
Using YAML config file: /config.yml  
Using environment variables config: OG_OPENGIST_HOME, OG_SSH_GIT_ENABLED  

This is the log in docker - Not sure where can I find the log files inside the docker container /var/log folder is empty and there is nothing in the /opengist folder

thomiceli commented 6 months ago

The logs of Opengist in the Docker image are in /opengist/log/opengist.log

Did you restarted manually the image or it crashes after the usermod ?

f8dca commented 6 months ago
total 8
drwxr-xr-x    2 opengist opengist      4096 Apr  4 18:31 .
drwxr-xr-x   10 opengist opengist      4096 Apr  3 03:30 ..
-rw-r--r--    1 opengist opengist         0 Apr  4 18:31 opengist.log

opengist times out after clicking on the revisions link without writing anything into the log file.

also this happens only for one particular gist which gets a push from my local git. Normal gists created on the GUI are working fine

f8dca commented 6 months ago

Do you want me to run any commands inside the repo to get the git status?

opengist/repos/admin/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # ls
HEAD                  git-daemon-export-ok  packed-refs
branches              hooks                 refs
config                info
description           objects
thomiceli commented 5 months ago

Sorry for the delay, weird that the log file is empty. Can you please try to push your git repository here https://demo.opengist.io ?

f8dca commented 5 months ago

Hello,

I do not mind sharing that gist with you, but I prefer not to upload it to a public server. ( it is our internal network diagram)

On Thu, Apr 11, 2024, at 3:49 AM, Thomas Miceli wrote:

Sorry for the delay, weird that the log file is empty. Can you please try to push your git repository here https://demo.opengist.io ?

— Reply to this email directly, view it on GitHub https://github.com/thomiceli/opengist/issues/245#issuecomment-2049127679, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4U4XWJ5GKDJNHQ4JK23KLY4Y6B3AVCNFSM6AAAAABFVXBJJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBZGEZDONRXHE. You are receiving this because you authored the thread.Message ID: @.***>

f8dca commented 5 months ago

https://send.bitwarden.com/#2s4foILksk6kS7FQADOGOA/6GCEhlhN2wjOj6gzIAtESg

password is the city you live in (starts with a capital letter) This link is only valid for 48 hours

Thank you G.

thomiceli commented 5 months ago

Okay no problem, i will check the repository

thomiceli commented 5 months ago

I see, it's because in the git log diff, we have a token too large for the buffer to be parsed (the line containing your svg file)