-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
ssh operations refrain to work since d409d3 #1501
Comments
@bkcsoft maybe you can take a look this. |
Interesting report, I reviewed the sanitization commit and there doesn't seem to be anything that could affect SSH at all, most if not all changes are template/HTML related. I might be able to upgrade one of my environments to the HEAD and see if I see any SSH issues. Thanks. |
seems to be worth a look - ok, wild guess, i don't speek go. |
I also couldn't use ssh on current HEAD. Went back to 21290d4 , the problem doesn't exist there. I turned on SSH/GIT verbose log, and it was hanging at |
I just built gitea based on 21290d4 and I'm seeing this error:
I am precisely on Gitea Version: 1.1.0+118-g21290d4 This might be some hint to whover has clue what broke with SSH recently. Other than the warning (and seemingly failing operations) - push/pull actually works. |
I reverted to d9db188 and that fixed it (that's one commit before #1466 (I didn't do a full bisect, simply reverted the commit that seemed like it could be causing issues when a SSH key is being used, the error message with the "WHERE" description clearly indicates it's related to some UPDATE operation when using SSH key... |
What database are you using @kubatyszko ? Can you enable statement logging and check the exact statement being sent ? |
sqlite in this case, the statement is:
It seems to missing a thing to set between SET and WHERE... Also, there is no specific field in the table that would store last-used of the key:
The only field that could fit the purpose would be updated_unix... |
^ Wrong reference. |
I actually migrated from sqlite to mysql (in a very very manual way) b/c I thought it was an error in the sqlite backend on my end. The error happens in both sqlite and mysql backends. Like @kubatyszko said above theres something missing after SET in the UPDATE query in both. I did not realize however that push/pull operations actually were successful despite this. |
@kubatyszko and @tbaschak I think both your issue has been reported via #1471 and has been fixed by #1474 and merged to master. Your issue is not related with this one. |
not sure is it same issue but I also face the ssh hang up like @gsantner reported
detail log
here is the log if it work (use older version of docker image e.g. tag 1.1)
|
Just remove this line https://github.com/go-gitea/gitea/blob/master/models/user.go#L166 will fix this issue. But don't know why. :( |
Find the reason, I will send a PR to fix this. |
[x]
):Description
since commit d409d3a Sanitation fix ssh actions hangs
Log
This behaviour is reproducible - just branch the current master and hard reset it to some commits before.
The text was updated successfully, but these errors were encountered: