-
Notifications
You must be signed in to change notification settings - Fork 1
/
nohup.out
151 lines (148 loc) · 17.3 KB
/
nohup.out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
INFO: Will watch for changes in these directories: ['/home/ec2-user/befastapi/Moodle_VirtualAssistant_BE']
INFO: Uvicorn running on http://0.0.0.0:5001 (Press CTRL+C to quit)
INFO: Started reloader process [320180] using StatReload
postgresql+psycopg2://postgres:1307x2Npk@moodle.cd2wy4iagdv9.ap-southeast-1.rds.amazonaws.com:5432/moodle
INFO: Started server process [320182]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: 14.169.215.163:56358 - "OPTIONS /api/v2/chat HTTP/1.1" 200 OK
AUTH: scheme='Bearer' credentials='75921f4e01b6caad0dc2d0f966b876da'
[{"id":2,"username":"admin","firstname":"Admin","lastname":"User","fullname":"Admin User","email":"nguyentienphatbl123@gmail.com","department":"","firstaccess":1727288011,"lastaccess":1729539661,"auth":"manual","suspended":false,"confirmed":true,"lang":"en","theme":"","timezone":"Asia\/Ho_Chi_Minh","mailformat":1,"description":"","descriptionformat":1,"country":"VN","profileimageurlsmall":"http:\/\/ec2-54-254-161-50.ap-southeast-1.compute.amazonaws.com\/theme\/image.php\/boost\/core\/1729323866\/u\/f2","profileimageurl":"http:\/\/ec2-54-254-161-50.ap-southeast-1.compute.amazonaws.com\/theme\/image.php\/boost\/core\/1729323866\/u\/f1","preferences":[{"name":"core_message_migrate_data","value":"1"},{"name":"auth_manual_passwordupdatetime","value":"1727288090"},{"name":"email_bounce_count","value":"1"},{"name":"email_send_count","value":"1"},{"name":"core_user_welcome","value":"1727288626"},{"name":"tool_usertours_tour_completion_time_3","value":"1727288636"},{"name":"tool_usertours_tour_completion_time_4","value":"1727288653"},{"name":"tool_usertours_tour_completion_time_2","value":"1727288704"},{"name":"last_time_enrolments_synced","value":"1729608017"},{"name":"filepicker_recentrepository","value":"5"},{"name":"coursesectionspreferences_3","value":"{\"contentcollapsed\":{\"1\":8,\"2\":9,\"3\":10,\"4\":11,\"5\":12,\"6\":13,\"8\":16,\"9\":17}}"},{"name":"filepicker_recentlicense","value":"unknown"},{"name":"drawer-open-index","value":"0"},{"name":"drawer-open-block","value":"0"},{"name":"block_myoverview_user_view_preference","value":"list"},{"name":"block_myoverview_user_sort_preference","value":"title"},{"name":"ifirst","value":""},{"name":"ilast","value":""},{"name":"coursesectionspreferences_4","value":"{\"contentcollapsed\":{\"1\":21,\"2\":22,\"3\":23}}"},{"name":"login_failed_count_since_success","value":"0"},{"name":"coursesectionspreferences_2","value":"{\"contentcollapsed\":[]}"},{"name":"_lastloaded","value":1729608017}]}]
200
USER ID: 2
INFO: 14.169.215.163:56359 - "POST /api/v2/chat HTTP/1.1" 200 OK
MESSAGE AFTER IMPROVE: Tôi nên học khóa học lịch sử nào?
FIX BUG SQL: SELECT c.fullname
FROM courses c
WHERE c.category = 'Lịch sử';
SQL: SELECT c.id AS course_id, c.fullname AS course_name, c.summary AS course_summary
FROM courses c
WHERE c.category = 'Lịch sử' AND c.visible = 1
ORDER BY c.startdate DESC;
FIX BUG SQL: SELECT c.name
FROM courses c
JOIN course_history ch ON c.id = ch.course_id
WHERE ch.user_id = 3;
SQL: SELECT c.id AS course_id, c.fullname AS course_name
FROM users u
JOIN course_history ch ON u.id = ch.user_id
JOIN courses c ON ch.course_id = c.id
WHERE u.id = 3 AND c.fullname ILIKE '%lịch sử%'
ORDER BY ch.last_accessed DESC
LIMIT 1;
FIX BUG SQL: SELECT * FROM courses WHERE history = 1;
SQL: SELECT c.id AS course_id, c.fullname AS course_name, c.startdate AS course_start_date
FROM mdl_course c
WHERE c.fullname ILIKE '%lịch sử%'
ORDER BY c.startdate DESC
LIMIT 5;
QUERY RESULT: [(4, 'Lịch sử và văn hóa của Việt Phục qua các thời kỳ', 1713632400), (3, 'Tìm Hiểu Lịch Sử 10 Triều Đại Phong Kiến Việt Nam', 1713546000)]
BOT_MESSAGE_CONTENT: Tìm kiếm thông tin
Bạn chịu khó đợi một tí nhé!
Thông tin đang được xử lý rồi!
&start&
Tôi đã tìm thấy hai khóa học lịch sử phù hợp với bạn:
1. "Lịch sử và văn hóa của Việt Phục qua các thời kỳ"
2. "Tìm Hiểu Lịch Sử 10 Triều Đại Phong Kiến Việt Nam"
Bạn có thể xem xét nội dung của từng khóa học để quyết định khóa học nào phản ánh đúng nhất sự quan tâm của bạn. 📚🌍
Tôi đã tìm thấy hai khóa học lịch sử phù hợp với bạn:
1. "Lịch sử và văn hóa của Việt Phục qua các thời kỳ"
2. "Tìm Hiểu Lịch Sử 10 Triều Đại Phong Kiến Việt Nam"
Bạn có thể xem xét nội dung của từng khóa học để quyết định khóa học nào phản ánh đúng nhất sự quan tâm của bạn. 📚🌍
INFO: 14.169.215.163:56976 - "OPTIONS /api/v2/chat HTTP/1.1" 200 OK
AUTH: scheme='Bearer' credentials='75921f4e01b6caad0dc2d0f966b876da'
[{"id":2,"username":"admin","firstname":"Admin","lastname":"User","fullname":"Admin User","email":"nguyentienphatbl123@gmail.com","department":"","firstaccess":1727288011,"lastaccess":1729539661,"auth":"manual","suspended":false,"confirmed":true,"lang":"en","theme":"","timezone":"Asia\/Ho_Chi_Minh","mailformat":1,"description":"","descriptionformat":1,"country":"VN","profileimageurlsmall":"http:\/\/ec2-54-254-161-50.ap-southeast-1.compute.amazonaws.com\/theme\/image.php\/boost\/core\/1729323866\/u\/f2","profileimageurl":"http:\/\/ec2-54-254-161-50.ap-southeast-1.compute.amazonaws.com\/theme\/image.php\/boost\/core\/1729323866\/u\/f1","preferences":[{"name":"core_message_migrate_data","value":"1"},{"name":"auth_manual_passwordupdatetime","value":"1727288090"},{"name":"email_bounce_count","value":"1"},{"name":"email_send_count","value":"1"},{"name":"core_user_welcome","value":"1727288626"},{"name":"tool_usertours_tour_completion_time_3","value":"1727288636"},{"name":"tool_usertours_tour_completion_time_4","value":"1727288653"},{"name":"tool_usertours_tour_completion_time_2","value":"1727288704"},{"name":"filepicker_recentrepository","value":"5"},{"name":"last_time_enrolments_synced","value":"1729608017"},{"name":"coursesectionspreferences_3","value":"{\"contentcollapsed\":{\"1\":8,\"2\":9,\"3\":10,\"4\":11,\"5\":12,\"6\":13,\"8\":16,\"9\":17}}"},{"name":"filepicker_recentlicense","value":"unknown"},{"name":"drawer-open-index","value":"0"},{"name":"drawer-open-block","value":"0"},{"name":"block_myoverview_user_view_preference","value":"list"},{"name":"block_myoverview_user_sort_preference","value":"title"},{"name":"ifirst","value":""},{"name":"ilast","value":""},{"name":"coursesectionspreferences_4","value":"{\"contentcollapsed\":{\"1\":21,\"2\":22,\"3\":23}}"},{"name":"login_failed_count_since_success","value":"0"},{"name":"coursesectionspreferences_2","value":"{\"contentcollapsed\":[]}"},{"name":"_lastloaded","value":1729608163}]}]
200
USER ID: 2
INFO: 14.169.215.163:56977 - "POST /api/v2/chat HTTP/1.1" 200 OK
INFO: Will watch for changes in these directories: ['/home/ec2-user/befastapi/Moodle_VirtualAssistant_BE']
INFO: Uvicorn running on http://0.0.0.0:5001 (Press CTRL+C to quit)
INFO: Started reloader process [320399] using StatReload
postgresql+psycopg2://postgres:1307x2Npk@moodle.cd2wy4iagdv9.ap-southeast-1.rds.amazonaws.com:5432/moodle
INFO: Started server process [320401]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: 14.169.215.163:58252 - "OPTIONS /api/v2/chat HTTP/1.1" 200 OK
AUTH: scheme='Bearer' credentials='75921f4e01b6caad0dc2d0f966b876da'
[{"id":2,"username":"admin","firstname":"Admin","lastname":"User","fullname":"Admin User","email":"nguyentienphatbl123@gmail.com","department":"","firstaccess":1727288011,"lastaccess":1729539661,"auth":"manual","suspended":false,"confirmed":true,"lang":"en","theme":"","timezone":"Asia\/Ho_Chi_Minh","mailformat":1,"description":"","descriptionformat":1,"country":"VN","profileimageurlsmall":"http:\/\/ec2-54-254-161-50.ap-southeast-1.compute.amazonaws.com\/theme\/image.php\/boost\/core\/1729323866\/u\/f2","profileimageurl":"http:\/\/ec2-54-254-161-50.ap-southeast-1.compute.amazonaws.com\/theme\/image.php\/boost\/core\/1729323866\/u\/f1","preferences":[{"name":"core_message_migrate_data","value":"1"},{"name":"auth_manual_passwordupdatetime","value":"1727288090"},{"name":"email_bounce_count","value":"1"},{"name":"email_send_count","value":"1"},{"name":"core_user_welcome","value":"1727288626"},{"name":"tool_usertours_tour_completion_time_3","value":"1727288636"},{"name":"tool_usertours_tour_completion_time_4","value":"1727288653"},{"name":"tool_usertours_tour_completion_time_2","value":"1727288704"},{"name":"filepicker_recentrepository","value":"5"},{"name":"last_time_enrolments_synced","value":"1729608017"},{"name":"coursesectionspreferences_3","value":"{\"contentcollapsed\":{\"1\":8,\"2\":9,\"3\":10,\"4\":11,\"5\":12,\"6\":13,\"8\":16,\"9\":17}}"},{"name":"filepicker_recentlicense","value":"unknown"},{"name":"drawer-open-index","value":"0"},{"name":"drawer-open-block","value":"0"},{"name":"block_myoverview_user_view_preference","value":"list"},{"name":"block_myoverview_user_sort_preference","value":"title"},{"name":"ifirst","value":""},{"name":"ilast","value":""},{"name":"coursesectionspreferences_4","value":"{\"contentcollapsed\":{\"1\":21,\"2\":22,\"3\":23}}"},{"name":"login_failed_count_since_success","value":"0"},{"name":"coursesectionspreferences_2","value":"{\"contentcollapsed\":[]}"},{"name":"_lastloaded","value":1729608467}]}]
200
USER ID: 2
INFO: 14.169.215.163:58254 - "POST /api/v2/chat HTTP/1.1" 200 OK
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [320401]
INFO: Stopping reloader process [320399]
INFO: Will watch for changes in these directories: ['/home/ec2-user/befastapi/Moodle_VirtualAssistant_BE']
INFO: Uvicorn running on http://0.0.0.0:5001 (Press CTRL+C to quit)
INFO: Started reloader process [321199] using StatReload
postgresql+psycopg2://postgres:1307x2Npk@moodle.cd2wy4iagdv9.ap-southeast-1.rds.amazonaws.com:5432/moodle
INFO: Started server process [321201]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [321201]
INFO: Stopping reloader process [321199]
INFO: Will watch for changes in these directories: ['/home/ec2-user/befastapi/Moodle_VirtualAssistant_BE']
INFO: Uvicorn running on http://0.0.0.0:5001 (Press CTRL+C to quit)
INFO: Started reloader process [321443] using StatReload
postgresql+psycopg2://postgres:1307x2Npk@moodle.cd2wy4iagdv9.ap-southeast-1.rds.amazonaws.com:5432/moodle
INFO: Started server process [321445]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [321445]
INFO: Stopping reloader process [321443]
postgresql+psycopg2://postgres:1307x2Npk@moodle.cd2wy4iagdv9.ap-southeast-1.rds.amazonaws.com:5432/moodle
INFO: Started server process [323782]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:5001 (Press CTRL+C to quit)
postgresql+psycopg2://postgres:1307x2Npk@moodle.cd2wy4iagdv9.ap-southeast-1.rds.amazonaws.com:5432/moodle
INFO: Started server process [341814]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:5001 (Press CTRL+C to quit)
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [341814]
postgresql+psycopg2://postgres:1307x2Npk@moodle.cd2wy4iagdv9.ap-southeast-1.rds.amazonaws.com:5432/moodle
INFO: Started server process [341967]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:5001 (Press CTRL+C to quit)
INFO: 210.245.32.84:44145 - "OPTIONS /api/v2/gettime HTTP/1.1" 200 OK
INFO: 210.245.32.84:44145 - "GET /api/v2/gettime HTTP/1.1" 404 Not Found
INFO: 210.245.32.84:55480 - "OPTIONS /api/v2/gettime HTTP/1.1" 200 OK
INFO: 210.245.32.84:55480 - "GET /api/v2/gettime HTTP/1.1" 404 Not Found
INFO: 210.245.32.84:55490 - "OPTIONS /api/v2/chat?chatid=3 HTTP/1.1" 200 OK
INFO: 210.245.32.84:55490 - "GET /api/v2/chat?chatid=3 HTTP/1.1" 403 Forbidden
INFO: 210.245.32.84:55520 - "OPTIONS /api/v2/chat?chatid=3 HTTP/1.1" 200 OK
AUTH: scheme='Bearer' credentials='75921f4e01b6caad0dc2d0f966b876da'
[{"id":2,"username":"admin","firstname":"Admin","lastname":"User","fullname":"Admin User","email":"nguyentienphatbl123@gmail.com","department":"","firstaccess":1727288011,"lastaccess":1729622610,"auth":"manual","suspended":false,"confirmed":true,"lang":"en","theme":"","timezone":"Asia\/Ho_Chi_Minh","mailformat":1,"description":"","descriptionformat":1,"country":"VN","profileimageurlsmall":"http:\/\/ec2-54-254-161-50.ap-southeast-1.compute.amazonaws.com\/theme\/image.php\/boost\/core\/1729323866\/u\/f2","profileimageurl":"http:\/\/ec2-54-254-161-50.ap-southeast-1.compute.amazonaws.com\/theme\/image.php\/boost\/core\/1729323866\/u\/f1","preferences":[{"name":"core_message_migrate_data","value":"1"},{"name":"auth_manual_passwordupdatetime","value":"1727288090"},{"name":"email_bounce_count","value":"1"},{"name":"email_send_count","value":"1"},{"name":"core_user_welcome","value":"1727288626"},{"name":"tool_usertours_tour_completion_time_3","value":"1727288636"},{"name":"tool_usertours_tour_completion_time_4","value":"1727288653"},{"name":"tool_usertours_tour_completion_time_2","value":"1727288704"},{"name":"filepicker_recentrepository","value":"5"},{"name":"coursesectionspreferences_3","value":"{\"contentcollapsed\":{\"1\":8,\"2\":9,\"3\":10,\"4\":11,\"5\":12,\"6\":13,\"8\":16,\"9\":17}}"},{"name":"filepicker_recentlicense","value":"unknown"},{"name":"drawer-open-index","value":"0"},{"name":"drawer-open-block","value":"0"},{"name":"block_myoverview_user_view_preference","value":"list"},{"name":"block_myoverview_user_sort_preference","value":"title"},{"name":"last_time_enrolments_synced","value":"1729648982"},{"name":"ifirst","value":""},{"name":"ilast","value":""},{"name":"coursesectionspreferences_4","value":"{\"contentcollapsed\":{\"1\":21,\"2\":22,\"3\":23}}"},{"name":"login_failed_count_since_success","value":"0"},{"name":"coursesectionspreferences_2","value":"{\"contentcollapsed\":[]}"},{"name":"_lastloaded","value":1729648982}]}]
200
USER ID: 2
GET HISTORY OF 3
INFO: 210.245.32.84:55520 - "GET /api/v2/chat?chatid=3 HTTP/1.1" 200 OK
INFO: 210.245.32.84:55541 - "OPTIONS /api/v2/settime HTTP/1.1" 200 OK
INFO: 210.245.32.84:55541 - "POST /api/v2/settime HTTP/1.1" 422 Unprocessable Entity
INFO: 210.245.32.84:55542 - "OPTIONS /api/v2/gettime HTTP/1.1" 200 OK
INFO: 210.245.32.84:55542 - "GET /api/v2/gettime HTTP/1.1" 404 Not Found
INFO: 210.245.32.84:55542 - "OPTIONS /api/v2/chat?chatid=3 HTTP/1.1" 200 OK
INFO: 210.245.32.84:55542 - "GET /api/v2/chat?chatid=3 HTTP/1.1" 403 Forbidden
INFO: 210.245.32.84:55616 - "OPTIONS /api/v2/chat?chatid=3 HTTP/1.1" 200 OK
AUTH: scheme='Bearer' credentials='75921f4e01b6caad0dc2d0f966b876da'
[{"id":2,"username":"admin","firstname":"Admin","lastname":"User","fullname":"Admin User","email":"nguyentienphatbl123@gmail.com","department":"","firstaccess":1727288011,"lastaccess":1729622610,"auth":"manual","suspended":false,"confirmed":true,"lang":"en","theme":"","timezone":"Asia\/Ho_Chi_Minh","mailformat":1,"description":"","descriptionformat":1,"country":"VN","profileimageurlsmall":"http:\/\/ec2-54-254-161-50.ap-southeast-1.compute.amazonaws.com\/theme\/image.php\/boost\/core\/1729323866\/u\/f2","profileimageurl":"http:\/\/ec2-54-254-161-50.ap-southeast-1.compute.amazonaws.com\/theme\/image.php\/boost\/core\/1729323866\/u\/f1","preferences":[{"name":"core_message_migrate_data","value":"1"},{"name":"auth_manual_passwordupdatetime","value":"1727288090"},{"name":"email_bounce_count","value":"1"},{"name":"email_send_count","value":"1"},{"name":"core_user_welcome","value":"1727288626"},{"name":"tool_usertours_tour_completion_time_3","value":"1727288636"},{"name":"tool_usertours_tour_completion_time_4","value":"1727288653"},{"name":"tool_usertours_tour_completion_time_2","value":"1727288704"},{"name":"filepicker_recentrepository","value":"5"},{"name":"coursesectionspreferences_3","value":"{\"contentcollapsed\":{\"1\":8,\"2\":9,\"3\":10,\"4\":11,\"5\":12,\"6\":13,\"8\":16,\"9\":17}}"},{"name":"filepicker_recentlicense","value":"unknown"},{"name":"drawer-open-index","value":"0"},{"name":"drawer-open-block","value":"0"},{"name":"block_myoverview_user_view_preference","value":"list"},{"name":"block_myoverview_user_sort_preference","value":"title"},{"name":"last_time_enrolments_synced","value":"1729648982"},{"name":"ifirst","value":""},{"name":"ilast","value":""},{"name":"coursesectionspreferences_4","value":"{\"contentcollapsed\":{\"1\":21,\"2\":22,\"3\":23}}"},{"name":"login_failed_count_since_success","value":"0"},{"name":"coursesectionspreferences_2","value":"{\"contentcollapsed\":[]}"},{"name":"_lastloaded","value":1729649103}]}]
200
USER ID: 2
GET HISTORY OF 3
INFO: 210.245.32.84:55616 - "GET /api/v2/chat?chatid=3 HTTP/1.1" 200 OK
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [341967]