-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Users/People broken, unable to see people or 500 error on specific user page #9974
Comments
Always nice to see you 😁 If you run |
Migrating: 2018_08_20_204842_add_depreciation_option_to_settings Illuminate\Database\QueryException : SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs (SQL: alter table at /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Database/Connection.php:669
Exception trace: 1 Doctrine\DBAL\Driver\PDO\Exception::("SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs") 2 Doctrine\DBAL\Driver\PDO\Exception::new() Please use the argument -v to see more details. Let me know if you need the verbose flag. |
Do you happen to have a buttload of custom fields or something? This is usually a DB thing. (The 500 on people is a red herring I think. It will fail until migrations have been able to run, but they're not currently able to run, so until we can get past this, it's going to be broken.) Are you running MySQL or MariaDB? And which version? I feel like I've seen this before, but only in Maria. |
Only one custom field for MAC addresses. But I went ahead and deleted it and any reference I could find in the UI. Reran Running MariaDB, |
One custom field should definitely not be an issue. It's a weird row format issue that we only see in certain versions of maria DB. Hang tight, we have a command we can give you that can (hopefully?!) fix the issue for you. We definitely need to get your migrations running. |
I still haven’t figured out exactly why yet, but for some strange reason certain versions of MariaDB will use a silly row format that’s a little too narrow for Snipe-IT. But if you change this row format setting, specifically on the Assets table if memory serves, you should find that migrations can continue. The thing is we don’t ever see this on MySQL, ever. I think some specific version of MariaDB changed what the default row format was, and then later changed it to something far more reasonable, but if you started while running the wrong version, then you are kinda screwed? But I’m not exactly sure. Regardless of the cause, the row format change seems to make this problem go away (and allows you to complete migrations).
|
Okay after changing the row format to dynamic for the affected tables and rerunning Thank you both again for helping resolve this so quickly! 😎 |
Always glad to help! |
Hi, me again!
Describe the bug
Users page results in 500 error
To Reproduce
Steps to reproduce the behavior:
Expected behavior
People page loads users
Specific user page loads correctly
Screenshots
If applicable, add screenshots to help explain your problem.
Server (please complete the following information):
Desktop (please complete the following information):
Details:
Debug:
Illuminate \ Database \ QueryException (42S22)
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'accessories_users.note' in 'field list' (SQL: select
accessories
.*,accessories_users
.assigned_to
aspivot_assigned_to
,accessories_users
.accessory_id
aspivot_accessory_id
,accessories_users
.id
aspivot_id
,accessories_users
.created_at
aspivot_created_at
,accessories_users
.note
aspivot_note
fromaccessories
inner joinaccessories_users
onaccessories
.id
=accessories_users
.accessory_id
whereaccessories_users
.assigned_to
in (1))Previous exceptions
The text was updated successfully, but these errors were encountered: