Can't clone wiki #2502

Closed
opened 2025-11-02 04:38:43 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @tadly on GitHub (Nov 7, 2018).

Originally assigned to: @lunny on GitHub.

  • Gitea version (or commit ref): 1.5.3
  • Git version: 2.19.1
  • Operating system: archlinux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
    • Not gonna creating an account (sorry)
  • Log gist:

Description

I'm unable to clone a projects wiki. Cloning the repo itself works just fine though.
Oh and, I'm using the official docker image.

git client error:

$ git clone ssh://git@<host>:23/tadly/test.wiki.git
Cloning into 'test.wiki'...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x8d7b78]

goroutine 1 [running]:
code.gitea.io/gitea/vendor/github.com/go-xorm/xorm.(*Engine).Quote(0x0, 0x15731e6, 0x4, 0x1, 0xc00057c570)
        /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/engine.go:187 +0x78
code.gitea.io/gitea/vendor/github.com/go-xorm/xorm.(*Statement).colmap2NewColsWithQuote(0xc0000c4518, 0x15731e6, 0x4, 0xc00057c501)
        /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/statement.go:602 +0x121
code.gitea.io/gitea/vendor/github.com/go-xorm/xorm.(*Statement).Cols(0xc0000c4518, 0xc0005bb320, 0x1, 0x1, 0xc0000c4500)
        /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/statement.go:633 +0xc2
code.gitea.io/gitea/vendor/github.com/go-xorm/xorm.(*Session).Cols(0xc0000c4500, 0xc0005bb320, 0x1, 0x1, 0x18)
        /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_cols.go:148 +0x4f
code.gitea.io/gitea/models.(*Repository).getOwnerName(0xc000087980, 0x173f320, 0x0, 0xc0000de4e0, 0x1ed)
        /go/src/code.gitea.io/gitea/models/repo.go:502 +0x136
code.gitea.io/gitea/models.(*Repository).mustOwnerName(0xc000087980, 0x173f320, 0x0, 0x0, 0x0)
        /go/src/code.gitea.io/gitea/models/repo.go:518 +0x43
code.gitea.io/gitea/models.(*Repository).MustOwnerName(0xc000087980, 0x1, 0x4)
        /go/src/code.gitea.io/gitea/models/repo.go:234 +0x43
code.gitea.io/gitea/models.(*Repository).WikiPath(0xc000087980, 0xf, 0xc0005bb4a8)
        /go/src/code.gitea.io/gitea/models/wiki.go:70 +0x2b
code.gitea.io/gitea/models.(*Repository).HasWiki(0xc000087980, 0xc00058a520)
        /go/src/code.gitea.io/gitea/models/wiki.go:75 +0x2b
code.gitea.io/gitea/models.(*Repository).InitWiki(0xc000087980, 0xf, 0xc0005bb6d0)
        /go/src/code.gitea.io/gitea/models/wiki.go:81 +0x2f
code.gitea.io/gitea/cmd.runServ(0xc0000fd2c0, 0x0, 0x0)
        /go/src/code.gitea.io/gitea/cmd/serv.go:317 +0xd0f
code.gitea.io/gitea/vendor/github.com/urfave/cli.HandleAction(0x13cc700, 0x15eb488, 0xc0000fd2c0, 0xc000078700, 0x0)
        /go/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:471 +0xad
code.gitea.io/gitea/vendor/github.com/urfave/cli.Command.Run(0x1573376, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x15c9a64, 0x2f, 0x0, ...)
        /go/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/command.go:191 +0x96d
code.gitea.io/gitea/vendor/github.com/urfave/cli.(*App).Run(0xc000128820, 0xc0000300c0, 0x4, 0x4, 0x0, 0x0)
        /go/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:241 +0x5a2
main.main()
        /go/src/code.gitea.io/gitea/main.go:56 +0x42f
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Originally created by @tadly on GitHub (Nov 7, 2018). Originally assigned to: @lunny on GitHub. <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.5.3 - Git version: 2.19.1 - Operating system: archlinux - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - [x] Not gonna creating an account (sorry) - Log gist: ## Description I'm unable to clone a projects wiki. Cloning the repo itself works just fine though. Oh and, I'm using the official docker image. git client error: ``` $ git clone ssh://git@<host>:23/tadly/test.wiki.git Cloning into 'test.wiki'... panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x8d7b78] goroutine 1 [running]: code.gitea.io/gitea/vendor/github.com/go-xorm/xorm.(*Engine).Quote(0x0, 0x15731e6, 0x4, 0x1, 0xc00057c570) /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/engine.go:187 +0x78 code.gitea.io/gitea/vendor/github.com/go-xorm/xorm.(*Statement).colmap2NewColsWithQuote(0xc0000c4518, 0x15731e6, 0x4, 0xc00057c501) /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/statement.go:602 +0x121 code.gitea.io/gitea/vendor/github.com/go-xorm/xorm.(*Statement).Cols(0xc0000c4518, 0xc0005bb320, 0x1, 0x1, 0xc0000c4500) /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/statement.go:633 +0xc2 code.gitea.io/gitea/vendor/github.com/go-xorm/xorm.(*Session).Cols(0xc0000c4500, 0xc0005bb320, 0x1, 0x1, 0x18) /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_cols.go:148 +0x4f code.gitea.io/gitea/models.(*Repository).getOwnerName(0xc000087980, 0x173f320, 0x0, 0xc0000de4e0, 0x1ed) /go/src/code.gitea.io/gitea/models/repo.go:502 +0x136 code.gitea.io/gitea/models.(*Repository).mustOwnerName(0xc000087980, 0x173f320, 0x0, 0x0, 0x0) /go/src/code.gitea.io/gitea/models/repo.go:518 +0x43 code.gitea.io/gitea/models.(*Repository).MustOwnerName(0xc000087980, 0x1, 0x4) /go/src/code.gitea.io/gitea/models/repo.go:234 +0x43 code.gitea.io/gitea/models.(*Repository).WikiPath(0xc000087980, 0xf, 0xc0005bb4a8) /go/src/code.gitea.io/gitea/models/wiki.go:70 +0x2b code.gitea.io/gitea/models.(*Repository).HasWiki(0xc000087980, 0xc00058a520) /go/src/code.gitea.io/gitea/models/wiki.go:75 +0x2b code.gitea.io/gitea/models.(*Repository).InitWiki(0xc000087980, 0xf, 0xc0005bb6d0) /go/src/code.gitea.io/gitea/models/wiki.go:81 +0x2f code.gitea.io/gitea/cmd.runServ(0xc0000fd2c0, 0x0, 0x0) /go/src/code.gitea.io/gitea/cmd/serv.go:317 +0xd0f code.gitea.io/gitea/vendor/github.com/urfave/cli.HandleAction(0x13cc700, 0x15eb488, 0xc0000fd2c0, 0xc000078700, 0x0) /go/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:471 +0xad code.gitea.io/gitea/vendor/github.com/urfave/cli.Command.Run(0x1573376, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x15c9a64, 0x2f, 0x0, ...) /go/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/command.go:191 +0x96d code.gitea.io/gitea/vendor/github.com/urfave/cli.(*App).Run(0xc000128820, 0xc0000300c0, 0x4, 0x4, 0x0, 0x0) /go/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:241 +0x5a2 main.main() /go/src/code.gitea.io/gitea/main.go:56 +0x42f fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ```
GiteaMirror added the type/bug label 2025-11-02 04:38:43 -06:00
Author
Owner

@lafriks commented on GitHub (Nov 8, 2018):

What database are you using?

@lafriks commented on GitHub (Nov 8, 2018): What database are you using?
Author
Owner

@tadly commented on GitHub (Nov 8, 2018):

As mentioned above, mysql. This docker image actually (always latest)

Did some more testing and cloning the wiki via https (after disabling 2FA) works without the above error.

@tadly commented on GitHub (Nov 8, 2018): As mentioned above, mysql. [This docker image](https://hub.docker.com/_/mariadb/) actually (always latest) Did some more testing and cloning the wiki via https (after disabling 2FA) works without the above error.
Author
Owner

@lafriks commented on GitHub (Nov 18, 2018):

Does this error happens only when cloning wiki?

@lafriks commented on GitHub (Nov 18, 2018): Does this error happens only when cloning wiki?
Author
Owner

@tadly commented on GitHub (Nov 18, 2018):

As mentioned in OP, yes.

I'm unable to clone a projects wiki. Cloning the repo itself works just fine though.

@tadly commented on GitHub (Nov 18, 2018): As mentioned in OP, yes. > I'm unable to clone a projects wiki. Cloning the repo itself works just fine though.
Author
Owner

@lafriks commented on GitHub (Nov 18, 2018):

Sorry for asking what you have already told :)

@lafriks commented on GitHub (Nov 18, 2018): Sorry for asking what you have already told :)
Author
Owner

@tadly commented on GitHub (Nov 18, 2018):

Didn't mean to sound like a prick, sorry.
I just like efficiency and hate repeating myself.
If I say/write something I don't do it out of boredom. I do it for a reason :)

@tadly commented on GitHub (Nov 18, 2018): Didn't mean to sound like a prick, sorry. I just like efficiency and hate repeating myself. If I say/write something I don't do it out of boredom. I do it for a reason :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2502