-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Random 500 error Invalid connection #5736
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
Comments
I have reinstalled vps and before gitea installing check into verbose log, random return 404 : my config nginx is :
} |
The http proxy isn't the connection that your errors are referring to. The problem appears to be with the communication between Gitea and the db. Does the xorm.log reveal anything? |
xorm.log not have errors. I started server gitea and this is log before first error invalid connection:
this is my db config app.ini
|
Ok your Gitea version doesn't make sense. We haven't released 1.8.3.1 that appears to be your git version which is quite old. I think that's the default version of git on centos 7 so it should be upgraded. If git has been upgraded Gitea doesn't appear to be using it. This was mentioned in another issue if you look for it. The MariaDB version you're reported also doesn't quite make sense. There's also no version 12 of Maria dB. |
I'm sorry , I have confused version, have fixed first comment. |
By 'random' errors, do you mean some queries work fine? Did it fail with some types of queries and work for others? |
That's an error from mysql driver. Maybe we should upgrade the driver library. |
@typeless |
May be there are dead connections in the pool? |
@lucableve I guess @lunny was right. You may try to upgrade the driver library and see if that works. Edit: probably this Edit2: also go-sql-driver/mysql#836 |
Ok, I try this solution, update you |
The same error and situation kept a long time. |
With 1.7.1 is much better, but we still do get them. |
I've been researching this over at #6804. I've tried Gitea 1.9-dev which should include the fix above, but still same issue. I think @zeripath is right, dead connections in the pool. Watch mysql processlist, error happens straight after connection timeout (60s in my mysql.cnf) But why did the update not work? |
Because I suspect the connections are timing out due to deadlocks |
[x]
):Description
Hi,
after gitea installation I have random 500 errors. The logs return this:
2019/01/15 01:59:48 [...itea/routers/home.go:138 RenderRepoSearch()] [E] SearchRepositoryByName: Count: invalid connection
2019/01/15 01:59:49 [...itea/routers/home.go:138 RenderRepoSearch()] [E] SearchRepositoryByName: Count: invalid connection
2019/01/15 02:00:25 [...itea/routers/home.go:138 RenderRepoSearch()] [E] SearchRepositoryByName: Count: invalid connection
2019/01/15 02:09:37 [.../gogits/cron/cron.go:92 Run()] [E] MirrorUpdate: invalid connection
I have this system: Nginx reverse proxy to gitea :3000 on Db mysql (engine : mariadb 12)
The text was updated successfully, but these errors were encountered: