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

The latest version of gitea installed with docker is often blocked in Alibaba cloud 1 core 1g service) #11430

Closed
mimicode opened this issue May 16, 2020 · 14 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail issue/stale

Comments

@mimicode
Copy link

使用docker安装的gitea 最新版本 在阿里云1核1g服务经常被卡死.
最新版的gitea

@mimicode mimicode changed the title 使用docker安装的gitea 最新版本 在阿里云1核1g服务经常被卡死 使用docker安装的gitea 最新版本 在阿里云1核1g服务经常被卡死(The latest version of gitea installed with docker is often blocked in Alibaba cloud 1 core 1g service) May 16, 2020
@mimicode
Copy link
Author

The latest version of gitea installed with docker is often blocked in Alibaba cloud 1 core 1g service

@techknowlogick
Copy link
Member

We run the latest docker image (auto-updating) on https://try.gitea.io using a 1core 1gb server. Are you able to provide any logs of when it stops?

@lafriks lafriks changed the title 使用docker安装的gitea 最新版本 在阿里云1核1g服务经常被卡死(The latest version of gitea installed with docker is often blocked in Alibaba cloud 1 core 1g service) The latest version of gitea installed with docker is often blocked in Alibaba cloud 1 core 1g service) May 16, 2020
@techknowlogick techknowlogick added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label May 16, 2020
@mimicode
Copy link
Author

mimicode commented Jun 2, 2020

Now it is more frequent, I have to restart the server every day, but I can't find the stopped log. How can I find the error log?

现在更加频繁了,每天都要重启服务器,但我找不到停止的日志 , 请问我该如何找到错误日志?

@mimicode
Copy link
Author

mimicode commented Jun 2, 2020

image

@mimicode
Copy link
Author

mimicode commented Jun 2, 2020

应该说并没有停止,而是无法响应请求,包括网页,git pull , git push

It should be said that it did not stop, but could not respond to requests, including web pages,git pull,git push

@mimicode
Copy link
Author

mimicode commented Jun 2, 2020

cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz
stepping : 1
microcode : 0x1
cpu MHz : 2500.032
cache size : 40960 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit
bogomips : 5000.06
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:

@mimicode
Copy link
Author

mimicode commented Jun 2, 2020

docker version
Client:
Version: 1.13.1
API version: 1.26
Package version: docker-1.13.1-109.gitcccb291.el7.centos.x86_64
Go version: go1.10.3
Git commit: cccb291/1.13.1
Built: Tue Mar 3 17:21:24 2020
OS/Arch: linux/amd64

Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Package version: docker-1.13.1-109.gitcccb291.el7.centos.x86_64
Go version: go1.10.3
Git commit: cccb291/1.13.1
Built: Tue Mar 3 17:21:24 2020
OS/Arch: linux/amd64
Experimental: false

@mimicode
Copy link
Author

mimicode commented Jun 2, 2020

REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/gitea/gitea latest 6c5b484d7c31 4 weeks ago 118 MB

@mimicode
Copy link
Author

mimicode commented Jun 2, 2020

grep MemTotal /proc/meminfo
MemTotal: 1006756 kB

uname -a
Linux 5.6.7-1.el7.elrepo.x86_64 #1 SMP Wed Apr 22 18:05:11 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux

@lanybass
Copy link

lanybass commented Jun 3, 2020

一样,卡死:
环境:windows2012 server ,最新版, sqlite数据库


2020/06/03 16:09:48 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme` FROM `user` WHERE `id`=? LIMIT 1 [1] - 963.9µs
2020/06/03 16:09:50 ...c/net/http/server.go:3061:logf() [I] http: TLS handshake error from 172.0.5.231:41583: tls: client offered only unsupported versions: []
2020/06/03 16:09:50 ...c/net/http/server.go:3061:logf() [I] http: TLS handshake error from 172.0.5.231:41584: remote error: tls: unknown certificate
2020/06/03 16:09:50 ...c/net/http/server.go:3061:logf() [I] http: TLS handshake error from 172.0.5.231:41585: remote error: tls: unknown certificate
2020/06/03 16:09:50 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme` FROM `user` WHERE `id`=? LIMIT 1 [1] - 999.6µs
2020/06/03 16:09:52 ...c/net/http/server.go:3061:logf() [I] http: TLS handshake error from 172.0.5.231:41587: tls: client offered only unsupported versions: []
2020/06/03 16:09:52 ...c/net/http/server.go:3061:logf() [I] http: TLS handshake error from 172.0.5.231:41588: remote error: tls: unknown certificate
2020/06/03 16:09:52 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme` FROM `user` WHERE `id`=? LIMIT 1 [1] - 1.0001ms
2020/06/03 16:09:54 ...c/net/http/server.go:3061:logf() [I] http: TLS handshake error from 172.0.5.231:41591: tls: client offered only unsupported versions: []
2020/06/03 16:09:54 ...c/net/http/server.go:3061:logf() [I] http: TLS handshake error from 172.0.5.231:41592: remote error: tls: unknown certificate
2020/06/03 16:09:54 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme` FROM `user` WHERE `id`=? LIMIT 1 [1] - 972.9µs
2020/06/03 16:09:56 ...c/net/http/server.go:3061:logf() [I] http: TLS handshake error from 172.0.5.231:41594: tls: client offered only unsupported versions: []
2020/06/03 16:09:56 ...c/net/http/server.go:3061:logf() [I] http: TLS handshake error from 172.0.5.231:41595: remote error: tls: unknown certificate
2020/06/03 16:09:56 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme` FROM `user` WHERE `id`=? LIMIT 1 [1] - 966.2µs
2020/06/03 16:09:57 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1591171785 1591171795 1]
2020/06/03 16:10:07 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1591171795 1591171805 1]
2020/06/03 16:10:17 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1591171805 1591171815 1]
2020/06/03 16:10:27 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1591171815 1591171825 1]
2020/06/03 16:10:37 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1591171825 1591171835 1]
2020/06/03 16:10:47 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1591171835 1591171845 1]
2020/06/03 16:10:57 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1591171845 1591171855 1]
2020/06/03 16:11:07 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1591171855 1591171865 1]

日志无错误。卡死之后依然有sql的日志在生成,但是页面就是没任何反应。转圈、pending
重启gitea进程之后就恢复

@techknowlogick
Copy link
Member

When you say latest version, do you mean version 1.11.6, or 1.13.0-dev?

@lanybass
Copy link

lanybass commented Jun 8, 2020

版本无所谓了,多个版本都这样。
最后我的问题找到了,用https就会这样(域名我还Let's Encrypt了的)。用http就不卡。
现在就http先用着,但https卡的原因还没找到

@stale
Copy link

stale bot commented Aug 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale stale bot added the issue/stale label Aug 8, 2020
@stale
Copy link

stale bot commented Sep 2, 2020

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale stale bot closed this as completed Sep 2, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail issue/stale
Projects
None yet
Development

No branches or pull requests

3 participants