Skip to content
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

Can't clone wiki #5291

Closed
2 of 8 tasks
tadly opened this issue Nov 7, 2018 · 6 comments · Fixed by #5503
Closed
2 of 8 tasks

Can't clone wiki #5291

tadly opened this issue Nov 7, 2018 · 6 comments · Fixed by #5503
Assignees
Labels
Milestone

Comments

@tadly
Copy link

tadly commented Nov 7, 2018

  • 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:https://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.
@lafriks
Copy link
Member

lafriks commented Nov 8, 2018

What database are you using?

@tadly
Copy link
Author

tadly commented 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.

@lafriks
Copy link
Member

lafriks commented Nov 18, 2018

Does this error happens only when cloning wiki?

@tadly
Copy link
Author

tadly commented Nov 18, 2018

As mentioned in OP, yes.

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

@lafriks
Copy link
Member

lafriks commented Nov 18, 2018

Sorry for asking what you have already told :)

@tadly
Copy link
Author

tadly commented 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 :)

@lunny lunny added this to the 1.6.2 milestone Dec 9, 2018
@lunny lunny self-assigned this Dec 9, 2018
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants