-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error on startup 1.5 #4360
Comments
The CI for MSSQL could be added by #4282 |
@lafriks I'm seeing a similar problem after updating from 1.4.1 to git-master, but with mysql.
|
@lafriks I guess commit e95417e fixes an issue for MSSQL but introduces an issue for MySQL. I do see a similar problem as @bjoe2k4 but with migrating db v69 -> 70 as it seems that I'm already on a newer DB Version. Error Message I get on first Start:
Subsequent Starts will log (just in case anyone is googling for this error):
My first guess is that we simply need to open a new session: Insert (after committing session):
|
If PR #4459 get's accepted and you still get the following error:
you may simply "drop table team_unit" and restart gitea. |
Getting this too.. However, we're using postgres |
I manually applied PR #4459 and it worked wonderfully! |
@johanhugg could you try #4473 if it works? |
I attempted updating today from 1.4.1 and had the same issue #4473 doesn't seem to fix it (Running on windows 10 pro box) |
Hi , I attempted updating today from 1.4.3 to 1.5 and had the same issue #4360
( Windows Server 2008R2 , MSSQL 2012 ) thx for your help |
Were you using final 1.5.0 release? |
I have just updated from 1.4.1 to 1.5.0. Worked fine for me. So the error I received earlier (same as the one of @aurel-appsthru) seems to be resolved for me. Edit: However there are a bunch of logs emitted on every restart, How to get rid of them?
|
@lafriks : yes I tried with 1.5.0. The service start but stop on first refresh of a page. ( Windows Server 2008R2 , MSSQL 2012 ) 1.5.0 log :
1.5 and master log :
|
@lafriks I'm still getting the migration issue with the new 1.5.0 binary as well
Tried running the alter drop column manually in mssql to see if I got a more descriptive error. Turns out we've got an index
Manually deleting the index and rerunning the upgrade finished successfully |
@lafriks @tenacubus
thx a lot |
@lafriks I received the same error as @aurel-appsthru and @tenacubus Dropping the index Maybe this should be treated as separate issue as this original error in this issue seems to be different |
@leepfrog-ger I'd say we should reopen this issue as the initial error was the exact one I had. Additionally the initial poster never confirmed it fixed their problem. Hey @ymabispo did you ever try it? What do you think @lafriks? I don't know the policy as far as reopening issues or creating a new one. I see the mssql code in gitea/models/migrations/migrations.go Lines 269 to 298 in 6e64f9d
|
@tenacubus you are right, I mixed up something, I've also got the same errors as in the initial issue. so the reopening is fine with me. |
Hi guys, sorry about the late response. Thanks |
is there any update on 1.5.2 issues? E.g. this issue looks like critical and I'm scaring of upgrading to latest 1.5 version (from 1.4) Thanks in advance |
@davydov-vyacheslav it only affects instamces running mssql database |
ok. thank you |
I'm on version 1.4.3 and i tried to delete manually using DROP INDEX [IDX_issue_assignee_id] ON [dbo].[issue] i've tried to migrate from 1.4.3 to 1.5, 1.5.1, 1.5.3 and 1.6 allways restoring the database and runing all the way through. |
I think there was some mssql fixes for migrations. Is this still an unresolved issue? |
i just tried update from 1.4.3 to 1.6.2 and i got: 2018/12/27 14:02:34 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Drop table and i droped the index on issue table: then i got more migrations applied: and got a timeout... Still can't evolve my version... |
As i said in my last comment here, after i dropped the index on issue table i got a timeout. Watching a more detailed log i saw the timeout in this statement: SELECT * FROM "watch" WHERE (id NOT IN (SELECT TOP 50 id FROM "watch")) So i decided to delete all the data in the watch table and tried to update from 1.4.3 to 1.7.1 and it was ok in my test environment, i'll do it in production environment tomorrow morning and send an e-mail telling everyone to click watch button in the repository they want to follow. The problem with the update has something to do with the data that was in this table... |
Some migrations depends on how many rows of that table. It may timeout on some situations. |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. You can re-open it if needed. |
[x]
):Description
Guys, a few minutes ago a tried to update 1.4.3 to 1.5 and the windows service doesn't start up.
log error:
2018/07/04 07:56:23 [I] Log Mode: File(Trace)
2018/07/04 07:56:23 [I] XORM Log Mode: File(Trace)
2018/07/04 07:56:23 [I] Cache Service Enabled
2018/07/04 07:56:23 [I] Session Service Enabled
2018/07/04 07:56:23 [I] Migration: add multiple assignees
2018/07/04 07:56:23 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Drop table
issue
columns [assignee_id]: mssql: ALTER TABLE DROP COLUMN assignee_id failed because one or more objects access this column....
Screenshots
The text was updated successfully, but these errors were encountered: