Duplicate key name 'action_logs_action_date_index' #17617
Replies: 2 comments 5 replies
-
I realise I haven't given much info. I'm not sure what info I need to give though. I noticed the error last week but didn't have time to look into it until now. I'm running SnipeIT on docker with mariadb with automatic upgrades on both. Current version is v8.2.2-pre build 19319 (ga36afbcb2). I saw a similar issue (to me anyway) here https://snipe-it.readme.io/docs/database-issues , "Column already exists: 1060 Duplicate column name" but need some guidance before I attempt that solution.
|
Beta Was this translation helpful? Give feedback.
-
You'd want something like then run migrations again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. Several parts of SnipeIT is not available anymore. Searching for or clicking on assets generate 500 Server error. User list is empty. Checking in and out still works though.
SnipeIT log says the following:
INFO Running migrations.
2025_03_06_152922_copy_created_at_to_action_date_in_action_logs 10.74ms FAIL
Illuminate\Database\QueryException
SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'action_logs_action_date_index' (Connection: mysql, SQL: alter table
action_logs
add indexaction_logs_action_date_index
(action_date
))How can i fix this? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions