Skip to content

404 Not Found when doing git push ( return code 22 ) #7379

Closed
@dtouzeau

Description

@dtouzeau
  • Gitea version (or commit ref): 1.5.3
  • Git version: 1.7.0.4
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • [X ] SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • [ X] No
    • Not relevant
  • Log gist:

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

  • Couldn't find host git.artica.center in the .netrc file; using defaults
  • About to connect() to git.artica.center port 443 (#0)
  • Trying 46.105.190.45... * Connected to git.artica.center (46.105.190.45) port 443 (#0)
  • found 173 certificates in /etc/ssl/certs/ca-certificates.crt
  • server certificate verification OK
  • common name: git.artica.center (matched)
  • server certificate expiration date OK
  • server certificate activation date OK
  • certificate public key: RSA
  • certificate version: Use proper url for libravatar dep #3
  • subject: CN=git.artica.center
  • start date: Sun, 07 Jul 2019 18:26:00 GMT
  • expire date: Sat, 05 Oct 2019 18:26:00 GMT
  • issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3
  • compression: NULL
  • cipher: AES-128-CBC
  • MAC: SHA1

GET /ArticaTech/artica3x.git/info/refs?service=git-receive-pack HTTP/1.1
User-Agent: git/1.7.0.4
Host: git.artica.center
Accept: /
Pragma: no-cache

  • The requested URL returned error: 401
  • Closing connection #0
  • Couldn't find host git.artica.center in the .netrc file; using defaults
  • About to connect() to git.artica.center port 443 (#0)
  • Trying 46.105.190.45... * Connected to git.artica.center (46.105.190.45) port 443 (#0)
  • found 173 certificates in /etc/ssl/certs/ca-certificates.crt
  • SSL re-using session ID
  • server certificate verification OK
  • common name: git.artica.center (matched)
  • server certificate expiration date OK
  • server certificate activation date OK
  • certificate public key: RSA
  • certificate version: Use proper url for libravatar dep #3
  • subject: CN=git.artica.center
  • start date: Sun, 07 Jul 2019 18:26:00 GMT
  • expire date: Sat, 05 Oct 2019 18:26:00 GMT
  • issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3
  • compression: NULL
  • cipher: AES-128-CBC
  • MAC: SHA1

GET /ArticaTech/artica3x.git/info/refs HTTP/1.1
User-Agent: git/1.7.0.4
Host: git.artica.center
Accept: /
Pragma: no-cache

< 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
<

  • Expire cleared
  • Connection #0 to host git.artica.center left intact
  • Couldn't find host git.artica.center in the .netrc file; using defaults
  • Re-using existing connection! (#0) with host git.artica.center
  • Connected to git.artica.center (46.105.190.45) port 443 (#0)

GET /ArticaTech/artica3x.git/HEAD HTTP/1.1
User-Agent: git/1.7.0.4
Host: git.artica.center
Accept: /
Pragma: no-cache

  • The requested URL returned error: 404
  • Expire cleared
  • Closing connection #0
  • Couldn't find host git.artica.center in the .netrc file; using defaults
  • About to connect() to git.artica.center port 443 (#0)
  • Trying 46.105.190.45... * Connected to git.artica.center (46.105.190.45) port 443 (#0)
  • found 173 certificates in /etc/ssl/certs/ca-certificates.crt
  • server certificate verification OK
  • common name: git.artica.center (matched)
  • server certificate expiration date OK
  • server certificate activation date OK
  • certificate public key: RSA
  • certificate version: Use proper url for libravatar dep #3
  • subject: CN=git.artica.center
  • start date: Sun, 07 Jul 2019 18:26:00 GMT
  • expire date: Sat, 05 Oct 2019 18:26:00 GMT
  • issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3
  • compression: NULL
  • cipher: AES-128-CBC
  • MAC: SHA1

PROPFIND /ArticaTech/artica3x.git/ HTTP/1.1
User-Agent: git/1.7.0.4
Host: git.artica.center
Accept: /
Depth: 0
Content-Type: text/xml
Content-Length: 180
Expect: 100-continue

< HTTP/1.1 100 Continue

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions