-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Gogs page load very slow. #2838
Comments
Duplicated to #1518? |
Not sure is this the same as #1518 This is a very small repo But still
|
How long for you to execute |
Same machine, under the gogs's repo dir
|
How about other pages? |
Other page is normal, the sub dir of repo is also slow,but better than the repo home page. |
Can you change |
|
Thanks, can you try some of the commands in the log, see if they are slow? Such as at directory |
I extract all commands to
BTW, the git show need a |
What is your definition of |
How did you install Gogs? |
|
Can you try MySQL as backend? |
I don't have MySQL now,this is company internal server. |
OK.... then try install from source code with SQLite3: https://gogs.io/docs/installation/install_from_source |
ping @wenerme |
Use gogs installed from source will look template and conf from
After I copy the templates to # ls
custom gogs log public README_ZH.md scripts templates
data LICENSE nohup.out README.md repositories source I can start the server by
but the web page is broker. event
|
You did not copy |
Event started with
|
Because you did not set config point to right path for Regardless of this error, how long it takes to open repository home page? |
4 commits, dev mode , trace log
277 commits
|
I think it's more or less the problem with the system and Go, even templating takes so long. |
Should I try to upgrade my git ?
|
I suggest you change a machine with same system and try again. |
Home page is fast when there is no other page request
|
Move to a new server ,save git version, it's way more faster 277 commits
|
Still don't know why this happen, but I will move on, thanks. |
Exact same system version? |
Yes, centos 6.5 |
OK, sounds like environment issue. We can move discussion to https://discuss.gogs.io/ and I'm closing this one. |
Ok, thanks for your patient. |
i have also the problem that gogs web und git push are very slow (waiting of something) on fresh debian 8.8 jessie i started ./gogs from the extracted .tar.gz than i open the regular link http://:3000 gogs needs Page: 40071ms Template: 30031ms i can not solve the issue with the performance. debian and gogs are fresh installed (nothing else) all settings are by default. |
i solved my issue by looking logs. gogs try to solve the avatar/gravatar against (@gmail or what else you type) and hangs :-) on first gogs installation i disabled the avatar. now it is very quickly ;-) thanks a lot for all gogs developers that i can use so nice open source solution. |
I had the same issue as AysadKozanoglu
Any idea why it would be loading at a 172.16.0.0/14 address? Or is this something I should open a new issue for? |
@AysadKozanoglu I think you can disable this option to solve this problem. |
Just an update for anyone else with "slow page loading" on initial install. |
* Translator pt-BR * rectification translators pt-BR
It's a fun feature but `ENABLE_FEDERATED_AVATAR` being true by default leads to confusion and huge slowdowns (see gogs#2838, gogs#980, gogs#914) --- it's unexpected that Gogs requires DNS configured (?) for avatars. Avatar lookup is a niche feature that I don't believe should be enabled by default given how prone it is to causing problems.
It's a fun feature but `ENABLE_FEDERATED_AVATAR` being true by default leads to confusion and huge slowdowns (see gogs#2838, gogs#980, gogs#914) --- it's unexpected that Gogs requires DNS configured (?) for avatars. Avatar lookup is a niche feature that I don't believe should be enabled by default given how prone it is to causing problems.
It's a fun feature but `ENABLE_FEDERATED_AVATAR` being true by default leads to confusion and huge slowdowns (see #2838, #980, #914) --- it's unexpected that Gogs requires DNS configured (?) for avatars. Avatar lookup is a niche feature that I don't believe should be enabled by default given how prone it is to causing problems.
@u571kills can you explain more how broken? I'm using the default settings. |
Same issue with the latest docker: Pages working ok, but sometimes stop loading (ERR_TIMED_OUT) or take ~1 min to load. it can be any page (home, admin settings, repo) gogs: Version 0.13.0+dev 2021-05-19 07:16:50 UTC
update docker updated to 2022-01-05 02:04:04 UTC build - the same issue CPU loads: 0% some logs
update2.
conclusion. migrated to gitea docker - work fine out of a box. |
Problem
Config
Download from main site.
System status
Request log
The text was updated successfully, but these errors were encountered: