-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
404 Not Found when doing git push ( return code 22 ) #7379
Comments
is it possible to update to a newer version of gitea? |
Please do not use Gitea <1.7.6 as there are serious security vulnerabilities in those early versions |
Upgraded to 1.10.0+dev built with GNU Make 4.1, go1.12.6 : bindata, sqlite, sqlite_unlock_notify |
You've provided the nginx log, but what does Gitea say? |
Maybe you should check your file system permission on this repository because |
The nGNIX run as the same git user to avoid permissions issues:
Here the gita in debug mode when trying to push
|
Any help ? |
Have you checked your filesystem permissions? |
The nginx service and gita run on the same user Here permissions on the folder
|
Ah. Ok so I see you're sending propfind messages - that makes me suspicious. What version of git is your client and on the server? |
Client: 1.7.0.4 |
Ok if you're sure you have the URLs correct could you try with a more up to date version of git. PROPFIND implies that you're trying to use WebDAV to get over http rather than smart git. |
Upgraded the Git client to : 2.3.7 Working like a charme.. Thanks to all. |
[x]
):Description
I have created the first repository but when i want to push the nginx return a 404
NgInx events:
176.187.150.8 - - [08/Jul/2019:13:58:37 +0000] "GET /ArticaTech/artica3x.git/info/refs?service=git-receive-pack HTTP/1.1" 401 0 "-" "git/1.7.0.4"
176.187.150.8 - - [08/Jul/2019:13:58:38 +0000] "GET /ArticaTech/artica3x.git/info/refs HTTP/1.1" 200 59 "-" "git/1.7.0.4"
176.187.150.8 - - [08/Jul/2019:13:58:38 +0000] "GET /ArticaTech/artica3x.git/HEAD HTTP/1.1" 404 8146 "-" "git/1.7.0.4"
176.187.150.8 - - [08/Jul/2019:13:58:38 +0000] "PROPFIND /ArticaTech/artica3x.git/ HTTP/1.1" 404 8058 "-" "git/1.7.0.4"
Log on Client :
GIT_CURL_VERBOSE=1 git push origin master --force
< HTTP/1.1 200 OK
< Server: nginx
< Date: Mon, 08 Jul 2019 14:04:42 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 59
< Connection: keep-alive
< Accept-Ranges: bytes
< Cache-Control: no-cache, max-age=0, must-revalidate
< Expires: Fri, 01 Jan 1980 00:00:00 GMT
< Last-Modified: Mon, 08 Jul 2019 14:04:42 GMT
< Pragma: no-cache
< Set-Cookie: lang=en-US; Path=/; Max-Age=2147483647
< Set-Cookie: i_like_gitea=165a249097ea918c; Path=/; HttpOnly
< Set-Cookie: _csrf=W9W7ymz6Lm9poyvkQ9BluxMyNNM6MTU2MjU5NDY4Mjk4NjEzNjU4MA%3D%3D; Path=/; Expires=Tue, 09 Jul 2019 14:04:42 GMT; HttpOnly
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
<
< HTTP/1.1 100 Continue
error: Cannot access URL https://git.artica.center/ArticaTech/artica3x.git/, return code 22
fatal: git-http-push failed
The text was updated successfully, but these errors were encountered: