Project

General

Profile

Actions

Bug #693

closed

[WORKER] investigate bug

Added by Trịnh Thế Định 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/27/2024
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

select date(created_at) as dates, count(*) from translate_histories where status=3 and type='translate-document' and status_desc !='NotEnoughToken' group by date(created_at) order by dates desc;
e chạy sql này thấy ngày 25 số lượng file lỗi nhiều bất thường.
  • ngày 26 lỗi chưa lên là vì 11h Vn nó mới chạy batch để cập nhật những file dịch lỗi ngày hôm trc để từ status (started)1->eror(3).
    e ko rõ có liên quan gì đến cái mới deploy của a
    @Trịnh Thế Định
    hay ko.
    a ĐỊnh check hộ e dc ko, or bận thì HO sơ qua cho a Hữu rồi nhờ a Hữu.

Files

image-init-container.png (233 KB) image-init-container.png init-container failed Trịnh Thế Định, 04/27/2024 09:59 AM
image-dns-issue.png (155 KB) image-dns-issue.png dns-issue Trịnh Thế Định, 04/27/2024 09:59 AM
fail init container by nodejs code.png (190 KB) fail init container by nodejs code.png fail init container by nodejs code Trịnh Thế Định, 04/27/2024 10:07 AM

Updated by Trịnh Thế Định 5 months ago

@Trần Phước Ngọc
lỗi dns này hôm trước cty anh cũng bị, đổi dns về 1.1.1.1 thì nó ko bị, Ngọc xem mình đang ưu tiên dns 1.1.1.1 của cloudflare ko?

translate-46580-20240425-053814-486518
translate-46565-20240425-043853-306229
translate-46561-20240425-041928-740667
job name này anh tìm ko thấy trong lens.

@Nguyen Trong
7/23 job lỗi INVALID_PASSWORD

@Nguyen Trong
3/23 là job anh test , xong đang chạy thì anh tắt worker

Actions #3

Updated by Trịnh Thế Định 5 months ago

  • Assignee changed from Trịnh Thế Định to Mai QuocHuu
Actions #4

Updated by Trịnh Thế Định 5 months ago

INFO:__main__:Worker started.
INFO:__main__:Parameters: Namespace(history_uuid='900adff2-03f3-11ef-9d87-62b7c935b88e', limit_vcpu='4', limit_ram='4096')
INFO:__main__:translation_history
INFO:__main__:None
ERROR:root:Traceback (most recent call last):
  File "/app/app/translate_gpt_back_common/core/deps.py", line 40, in get_db
    yield db
  File "/app/worker.py", line 91, in main
    current_user = crud.user.get_user_with_relation(db=db, id=translation_history.user_id)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'user_id'
Traceback (most recent call last):
  File "/app/app/translate_gpt_back_common/core/deps.py", line 40, in get_db
    yield db
  File "/app/worker.py", line 91, in main
    current_user = crud.user.get_user_with_relation(db=db, id=translation_history.user_id)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'user_id'
ERROR:root:'NoneType' object has no attribute 'user_id'
Traceback (most recent call last):
  File "/app/app/translate_gpt_back_common/core/deps.py", line 40, in get_db
    yield db
  File "/app/worker.py", line 91, in main
    current_user = crud.user.get_user_with_relation(db=db, id=translation_history.user_id)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Actions #5

Updated by Nguyen Trong 5 months ago

Trừ cái user_id=7 là do a ĐỊnh test nên bỏ qua

Actions #6

Updated by Mai QuocHuu 4 months ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF