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

Add Team Repository error in SQLite3 #739

Closed
CaiCQ opened this issue Dec 13, 2014 · 20 comments
Closed

Add Team Repository error in SQLite3 #739

CaiCQ opened this issue Dec 13, 2014 · 20 comments
Labels
💊 bug Something isn't working status: needs feedback Tell me more about it 🤷 third-party It's someone else's shit

Comments

@CaiCQ
Copy link

CaiCQ commented Dec 13, 2014

[teams.go:141 TeamsRepoAction()] [E] Action(add): Team does not exist

@unknwon
Copy link
Member

unknwon commented Dec 13, 2014

What the version of your Gogs?

This happens only to organizations that are created by an old version of Gogs. Should be fine for newly created ones.

@CaiCQ
Copy link
Author

CaiCQ commented Dec 13, 2014

0.5.8.1211 Beta

@unknwon
Copy link
Member

unknwon commented Dec 13, 2014

This happens only to organizations that are created by an old version of Gogs. Should be fine for newly created ones.

@unknwon
Copy link
Member

unknwon commented Dec 13, 2014

Please help test on this and provide reproduce steps, thanks!

@CaiCQ
Copy link
Author

CaiCQ commented Dec 13, 2014

Download the latest binary package problem remains

@CaiCQ
Copy link
Author

CaiCQ commented Dec 13, 2014

1.New Organization XXX
2.New Repository YYY to XXX
3.Create New Team ZZZ to XXX
4.Add Team Repository YYY to ZZZ Error

@CaiCQ
Copy link
Author

CaiCQ commented Dec 13, 2014

System: Ubuntu 14.10 64 - bit
Go: v1.4 release
Gogs: 0.5.8.1211 Beta
DB:sqlite3
Run User:root
Repository Root Path:/opt/Repository

@unknwon
Copy link
Member

unknwon commented Dec 13, 2014

Thanks your info!

@CaiCQ
Copy link
Author

CaiCQ commented Dec 13, 2014

What time can solve, emergency

@unknwon
Copy link
Member

unknwon commented Dec 13, 2014

Sorry, I won't be able to reproduce this at: https://try.gogs.io/org/xxxx/teams/zzz/repositories .

@CaiCQ
Copy link
Author

CaiCQ commented Dec 13, 2014

I tried and experience the environment is no problem.
But I just download a binary package for you in the environment.

@CaiCQ
Copy link
Author

CaiCQ commented Dec 13, 2014

Go1.3.3 OK
Go1.4 final Error

@unknwon
Copy link
Member

unknwon commented Dec 13, 2014

try.gogs.io is running with Go1.4rc1 and my local runtime is Go1.4 both not having this error.

@unknwon
Copy link
Member

unknwon commented Dec 13, 2014

There must something else other than Go version.

@CaiCQ
Copy link
Author

CaiCQ commented Dec 13, 2014

I continue to check

@unknwon unknwon added the status: needs reproduce Wait, how did that happen? label Dec 13, 2014
@psmit
Copy link
Contributor

psmit commented Jan 20, 2015

I am also reproducing this problem at the moment.

Go 1.4, sqlite, current dev, all depencies updated with "go get -tags "sqlite" -u ./...". I am really at a loss, because when I execute the queries in xorm.log everything seems to be going ok.

This is a test instance, so I'm happy to send you any files/logs that might be helpful

@psmit
Copy link
Contributor

psmit commented Jan 20, 2015

I think this might be some bug with Sqlite and transactions.

In short, a session is started, team is updated, other queries are done outside the session including SELECTing the team. This somehow fails.

When the session is replaced by x, everything works. Not sure what the real solution is though. Probably not using sqlite.

@unknwon
Copy link
Member

unknwon commented Jan 21, 2015

SQLite driver has all strange session problem...

@unknwon unknwon changed the title Add Team Repository error Add Team Repository error in SQLite3 Feb 7, 2015
@unknwon unknwon added 💊 bug Something isn't working 🤷 third-party It's someone else's shit and removed status: needs reproduce Wait, how did that happen? labels Feb 11, 2015
@unknwon
Copy link
Member

unknwon commented Feb 11, 2015

Hi @CaiCQ , thanks your great patient!

It looks like SQLite3 driver has issues with both session and independent transaction operate on same table.

I've pushed code to dev branch to fix this particular issue, it's possible that somewhere else with very complicated process will appear same issue again with SQLite3, but we will catch at our best!

@unknwon unknwon added the status: needs feedback Tell me more about it label Feb 11, 2015
@unknwon
Copy link
Member

unknwon commented Feb 13, 2015

As new mirror release v0.5.13 is going to release, and this issue is labeled as feedback needed, so close it for assumed resolved, feel free to reopen this if you want to continue discussing. 🍺

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💊 bug Something isn't working status: needs feedback Tell me more about it 🤷 third-party It's someone else's shit
Projects
None yet
Development

No branches or pull requests

3 participants