aley
June 13, 2019, 8:21am
1
I upgraded from 6.3 to 7.0 and got the following errors. Any idea why this happens?
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.TotalStorageStat' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.TotalStorageStat' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.TotalStorageStat' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.TotalStorageStat' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.FileOpsStat' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.FileOpsStat' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.UserActivityStat' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.UserActivityStat' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.UserActivityStat' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.UserActivityStat' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.UserActivityStat' doesn't exist")
[WARNING] Failed to execute sql: (1051, "Unknown table 'seahub-db.UserTrafficStat'")
[WARNING] Failed to execute sql: (1091, "Can't DROP 'profile_profile_contact_email_0975e4bf_uniq'; check that column/key exists")
I can confirm these warnings, except for the last line.
A quick grep through the seahub and seafile-server sources does not show any mentions of the UserActivityStat table earlier than in the 6.3->7.0 migration, making it unlikely that this issue is due to me having missed out on a database migration in the past.
Iâm using the community edition btw.
Same problem:
Updating seafile/seahub database âŚ
[INFO] You are using MySQL
[INFO] updating ccnet databaseâŚ
[INFO] updating seafile databaseâŚ
[INFO] updating seahub databaseâŚ
[WARNING] Failed to execute sql: (1146, âTable âseafile_seahub-db.TotalStorageStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseafile_seahub-db.TotalStorageStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseafile_seahub-db.TotalStorageStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseafile_seahub-db.TotalStorageStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseafile_seahub-db.FileOpsStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseafile_seahub-db.FileOpsStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseafile_seahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseafile_seahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseafile_seahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseafile_seahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseafile_seahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1051, âUnknown table âseafile_seahub-db.UserTrafficStatââ)
[WARNING] Failed to execute sql: (1091, âCanât DROP âprofile_profile_contact_email_0975e4bf_uniqâ; check that column/key existsâ)
Done
Same Problem here when upgrading 6.3.4 to 7.0.2 (which is not marked beta )
This script would upgrade your seafile server from 6.3 to 7.0
Press [ENTER] to contiune
Updating seafile/seahub database âŚ
[INFO] You are using MySQL
[INFO] updating ccnet databaseâŚ
[INFO] updating seafile databaseâŚ
[INFO] updating seahub databaseâŚ
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.TotalStorageStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.TotalStorageStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.TotalStorageStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.TotalStorageStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.FileOpsStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.FileOpsStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1051, âUnknown table âseahub-db.UserTrafficStatââ)
[WARNING] Failed to execute sql: (1091, âCanât DROP âprofile_profile_contact_email_0975e4bf_uniqâ; check that column/key existsâ)
Done
Is this anything to be concerned about?
Gabri
June 14, 2019, 10:45am
5
Just updated from 6.3.4 to 7.0.2 and I have the same messages, but everything seems to be working fineâŚ
got the same warningsâŚ
everything seems to be working though
It was the same here. But everything is working fine here.
This is just warnings.
These tables are used in the pro edition. But the upgrade script for pro and community edition is the same.
5 Likes
aley
June 19, 2019, 12:27pm
10
I upgrade the live instance and got this additional warning
[WARNING] Failed to execute sql: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6) NOT NULL,\n
updated_atdatetime(6) NOT NULL,\n
usernamevarchar(255) NOT' at line 3")
MySQL Server Version is 5.5.58
This is just warnings.
These tables are used in the pro edition. But the upgrade script for pro and community edition is the same.
Thx @daniel.pan . Maybe it would better to add a hint to the update script so that people using CE are not getting confused during the update?
1 Like
It should be possible for the upgarede script to detect the server version (CE or Pro) and act accoringly instead of showing improper warnings.
2 Likes
I got the same error. here is my log
[INFO] updating seahub databaseâŚ
[WARNING] Failed to execute sql: (1064, âYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near â(6) NOT NULL,\n updated_at
datetime(6) NOT NULL,\n username
varchar(255) NOTâ at line 3â)
[WARNING] Failed to execute sql: (1005, âCanât create table âseahub-db.drafts_draftreviewerâ (errno: 150)â)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.TotalStorageStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.TotalStorageStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.TotalStorageStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.TotalStorageStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.FileOpsStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.FileOpsStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1146, âTable âseahub-db.UserActivityStatâ doesnât existâ)
[WARNING] Failed to execute sql: (1051, âUnknown table âUserTrafficStatââ)
[WARNING] Failed to execute sql: (1091, âCanât DROP âprofile_profile_contact_email_0975e4bf_uniqâ; check that column/key existsâ)
Done