ActiveRecord::StatementInvalid: Mysql2::Error: Unknown column 'users.ispring_user_id' in 'field list'
Service
cupixworks-api
Occurrences
710
Status
Reported
Confidence
85%
Actionability
40%
Cluster ID
4b1f8e9b-13ca-49d5-b694-0518ca764e4e
First Seen
2025-11-17 02:25 UTC
Last Seen
2026-08-06 05:51 UTC
Actions
ActiveRecord::StatementInvalid: Mysql2::Error: Unknown column 'users.ispring_user_id' in 'field list'
What Happened#
cupixworks-api (tesla) 에서 SELECT ... users.ispring_user_id ... 쿼리가 이미 삭제된 컬럼을 참조해 Mysql2::Error: Unknown column 'users.ispring_user_id' in 'field list' 를 발생시켰다. users.ispring_user_id 컬럼은 2025-11-12 커밋 89883f361 (TSLA-10903, iSpring user 테이블 분리)에서 remove_column :users, :ispring_user_id 마이그레이션으로 삭제되고 별도 ispring_users 테이블로 옮겨졌다. 현재 코드베이스(master/develop)는 이 컬럼을 직접 SELECT 하지 않으며(User has_one :ispring_user association 사용), 에러는 deploy 시점의 schema/code 불일치로만 발생한다. Datadog ET 의 regression 필드가 2025-12-01 resolved → 2026-02-03 regressed 를 보여주고, last_seen version 이 production-...20260806t0214z0 배포판이라는 점이 이를 뒷받침한다.
Quick Facts#
| Field | Value |
|---|---|
| exception.class | ActiveRecord::StatementInvalid |
| exception.message | Mysql2::Error: Unknown column 'users.ispring_user_id' in 'field list' |
| top_frame | vendor/bundle/ruby/3.3.0/gems/mysql2-0.5.4/lib/mysql2/client.rb (_query) |
| runtime | Ruby 3.3.0, Rails 7.2, mysql2 0.5.4 |
| deploy (first_seen) | qa-us-west-2-20251114t0816z0-d37346b4-cupixworks |
| deploy (last_seen) | production-us-west-2-20260806t0214z0-c1c2bbd4-cupixworks |
| is_crash | false |
| env | QA + production (us-west-2) |
Affected Teams#
| Team / Domain | Error Count | Impact |
|---|---|---|
| cupixworks-api (tesla) | 710 (ET 누적) | 배포 cutover 중 일부 User 관련 쿼리 실패. is_crash:false, 프로세스 drain 후 자가 해소 |
영향은 배포 전환(blue/green cutover) 시간창에 국한된다. 정상 운영 시간대에는 발생하지 않는다.
Timeline#
- 2025-11-05 13:13 KST — 커밋
b32de125b(TSLA-10903) User iSpring 연동,users.ispring_user_id컬럼 도입 (migration20251104070045). - 2025-11-12 08:48 KST — 커밋
89883f361(TSLA-10903) iSpring user 테이블 분리.remove_column :users, :ispring_user_id(migration20251112084437) +has_one :ispring_userassociation 전환. - 2025-11-14 15:37 KST — 커밋
59c393e54(TSLA-10903) class scope error 수정. 이 배포판(qa-...20251114t0816z0)이 ET first_seen version. - 2025-11-17 11:25 KST — 최초 발생(ET first_seen).
- 2025-12-01 16:39 KST — ET regression 상 resolved.
- 2026-02-03 13:17 KST — regressed (
qa-...20260203t0144z0). - 2026-08-06 14:51 KST — 최근 발생(ET last_seen,
production-...20260806t0214z0배포판). 동일 배포 시간창(05:42-05:53 UTC)에43464ba9service_jwt 회귀와 함께 status-board 인시던트2026-08-06-svc-cupixworks-api--unknown-1로 묶임.
Scoring#
Confidence 85% · Actionability 40%
Confidence#
| Dimension | Score | Detail |
|---|---|---|
| Evidence completeness | 5/5 | 5 code refs, 8 log queries |
| Code path explicitness | 3/3 | 5 file:line refs |
| Log evidence | 3/3 | section, query, pattern |
| RCA structure | 3/3 | 3/3 sections |
| Revision history | 0/3 | 0 revision(s) |
| Agent execution | 3/3 | success |
Actionability#
| Dimension | Score | Detail |
|---|---|---|
| Fix complexity | 5/5 | trivial |
| Affected files | 1/5 | 16 file(s) |
| Single repo | 1/3 | 3 service(s) |
| Immediate actions | 0/3 | absent |
| Testability | 0/3 | no test info |
| External dependency | 3/3 | no external deps |
| Data migration | 0/3 | migration needed |