log.log.4 99 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199
  1. 2024-11-18 14:51:41,624 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:52:41 CST)" raised an exception
  2. Traceback (most recent call last):
  3. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  4. retval = job.func(*job.args, **job.kwargs)
  5. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  6. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  7. asyncio.run(sync_knowledge())
  8. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  9. return runner.run(main)
  10. ^^^^^^^^^^^^^^^^
  11. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  12. return self._loop.run_until_complete(task)
  13. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  14. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  15. return future.result()
  16. ^^^^^^^^^^^^^^^
  17. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  18. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  19. ^^^^^^^^
  20. AttributeError: 'Depends' object has no attribute 'query'
  21. 2024-11-18 14:52:41,630 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:53:41 CST)" (scheduled at 2024-11-18 14:52:41.614880+08:00)
  22. 2024-11-18 14:52:41,631 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:53:41 CST)" raised an exception
  23. Traceback (most recent call last):
  24. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  25. retval = job.func(*job.args, **job.kwargs)
  26. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  27. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  28. asyncio.run(sync_knowledge())
  29. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  30. return runner.run(main)
  31. ^^^^^^^^^^^^^^^^
  32. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  33. return self._loop.run_until_complete(task)
  34. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  35. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  36. return future.result()
  37. ^^^^^^^^^^^^^^^
  38. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  39. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  40. ^^^^^^^^
  41. AttributeError: 'Depends' object has no attribute 'query'
  42. 2024-11-18 14:53:41,622 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:54:41 CST)" (scheduled at 2024-11-18 14:53:41.614880+08:00)
  43. 2024-11-18 14:53:41,623 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:54:41 CST)" raised an exception
  44. Traceback (most recent call last):
  45. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  46. retval = job.func(*job.args, **job.kwargs)
  47. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  48. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  49. asyncio.run(sync_knowledge())
  50. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  51. return runner.run(main)
  52. ^^^^^^^^^^^^^^^^
  53. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  54. return self._loop.run_until_complete(task)
  55. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  56. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  57. return future.result()
  58. ^^^^^^^^^^^^^^^
  59. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  60. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  61. ^^^^^^^^
  62. AttributeError: 'Depends' object has no attribute 'query'
  63. 2024-11-18 14:54:41,618 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:55:41 CST)" (scheduled at 2024-11-18 14:54:41.614880+08:00)
  64. 2024-11-18 14:54:41,619 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:55:41 CST)" raised an exception
  65. Traceback (most recent call last):
  66. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  67. retval = job.func(*job.args, **job.kwargs)
  68. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  69. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  70. asyncio.run(sync_knowledge())
  71. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  72. return runner.run(main)
  73. ^^^^^^^^^^^^^^^^
  74. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  75. return self._loop.run_until_complete(task)
  76. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  77. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  78. return future.result()
  79. ^^^^^^^^^^^^^^^
  80. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  81. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  82. ^^^^^^^^
  83. AttributeError: 'Depends' object has no attribute 'query'
  84. 2024-11-18 14:55:41,619 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:56:41 CST)" (scheduled at 2024-11-18 14:55:41.614880+08:00)
  85. 2024-11-18 14:55:41,620 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:56:41 CST)" raised an exception
  86. Traceback (most recent call last):
  87. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  88. retval = job.func(*job.args, **job.kwargs)
  89. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  90. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  91. asyncio.run(sync_knowledge())
  92. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  93. return runner.run(main)
  94. ^^^^^^^^^^^^^^^^
  95. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  96. return self._loop.run_until_complete(task)
  97. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  98. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  99. return future.result()
  100. ^^^^^^^^^^^^^^^
  101. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  102. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  103. ^^^^^^^^
  104. AttributeError: 'Depends' object has no attribute 'query'
  105. 2024-11-18 14:56:41,624 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:57:41 CST)" (scheduled at 2024-11-18 14:56:41.614880+08:00)
  106. 2024-11-18 14:56:41,625 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:57:41 CST)" raised an exception
  107. Traceback (most recent call last):
  108. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  109. retval = job.func(*job.args, **job.kwargs)
  110. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  111. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  112. asyncio.run(sync_knowledge())
  113. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  114. return runner.run(main)
  115. ^^^^^^^^^^^^^^^^
  116. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  117. return self._loop.run_until_complete(task)
  118. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  119. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  120. return future.result()
  121. ^^^^^^^^^^^^^^^
  122. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  123. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  124. ^^^^^^^^
  125. AttributeError: 'Depends' object has no attribute 'query'
  126. 2024-11-18 14:57:41,628 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:58:41 CST)" (scheduled at 2024-11-18 14:57:41.614880+08:00)
  127. 2024-11-18 14:57:41,629 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:58:41 CST)" raised an exception
  128. Traceback (most recent call last):
  129. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  130. retval = job.func(*job.args, **job.kwargs)
  131. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  132. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  133. asyncio.run(sync_knowledge())
  134. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  135. return runner.run(main)
  136. ^^^^^^^^^^^^^^^^
  137. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  138. return self._loop.run_until_complete(task)
  139. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  140. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  141. return future.result()
  142. ^^^^^^^^^^^^^^^
  143. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  144. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  145. ^^^^^^^^
  146. AttributeError: 'Depends' object has no attribute 'query'
  147. 2024-11-18 14:58:41,626 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:59:41 CST)" (scheduled at 2024-11-18 14:58:41.614880+08:00)
  148. 2024-11-18 14:58:41,627 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 14:59:41 CST)" raised an exception
  149. Traceback (most recent call last):
  150. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  151. retval = job.func(*job.args, **job.kwargs)
  152. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  153. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  154. asyncio.run(sync_knowledge())
  155. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  156. return runner.run(main)
  157. ^^^^^^^^^^^^^^^^
  158. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  159. return self._loop.run_until_complete(task)
  160. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  161. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  162. return future.result()
  163. ^^^^^^^^^^^^^^^
  164. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  165. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  166. ^^^^^^^^
  167. AttributeError: 'Depends' object has no attribute 'query'
  168. 2024-11-18 14:59:41,619 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:00:41 CST)" (scheduled at 2024-11-18 14:59:41.614880+08:00)
  169. 2024-11-18 14:59:41,620 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:00:41 CST)" raised an exception
  170. Traceback (most recent call last):
  171. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  172. retval = job.func(*job.args, **job.kwargs)
  173. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  174. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  175. asyncio.run(sync_knowledge())
  176. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  177. return runner.run(main)
  178. ^^^^^^^^^^^^^^^^
  179. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  180. return self._loop.run_until_complete(task)
  181. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  182. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  183. return future.result()
  184. ^^^^^^^^^^^^^^^
  185. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  186. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  187. ^^^^^^^^
  188. AttributeError: 'Depends' object has no attribute 'query'
  189. 2024-11-18 15:00:41,620 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:01:41 CST)" (scheduled at 2024-11-18 15:00:41.614880+08:00)
  190. 2024-11-18 15:00:41,621 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:01:41 CST)" raised an exception
  191. Traceback (most recent call last):
  192. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  193. retval = job.func(*job.args, **job.kwargs)
  194. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  195. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  196. asyncio.run(sync_knowledge())
  197. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  198. return runner.run(main)
  199. ^^^^^^^^^^^^^^^^
  200. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  201. return self._loop.run_until_complete(task)
  202. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  203. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  204. return future.result()
  205. ^^^^^^^^^^^^^^^
  206. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  207. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  208. ^^^^^^^^
  209. AttributeError: 'Depends' object has no attribute 'query'
  210. 2024-11-18 15:01:33,351 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  211. 2024-11-18 15:01:33,352 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  212. 2024-11-18 15:01:33,352 - base - start - line:181 - INFO -: Scheduler started
  213. 2024-11-18 15:02:33,364 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:03:33 CST)" (scheduled at 2024-11-18 15:02:33.351142+08:00)
  214. 2024-11-18 15:02:33,368 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:03:33 CST)" raised an exception
  215. Traceback (most recent call last):
  216. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  217. retval = job.func(*job.args, **job.kwargs)
  218. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  219. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  220. asyncio.run(sync_knowledge())
  221. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  222. return runner.run(main)
  223. ^^^^^^^^^^^^^^^^
  224. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  225. return self._loop.run_until_complete(task)
  226. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  227. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  228. return future.result()
  229. ^^^^^^^^^^^^^^^
  230. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  231. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  232. ^^^^^^^^
  233. AttributeError: 'Depends' object has no attribute 'query'
  234. 2024-11-18 15:02:46,291 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  235. 2024-11-18 15:02:46,292 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  236. 2024-11-18 15:02:46,292 - base - start - line:181 - INFO -: Scheduler started
  237. 2024-11-18 15:03:02,953 - user - edit_user_pwd - line:123 - ERROR -: AppRegister.__init__() missing 1 required positional argument: 'db'
  238. 2024-11-18 15:03:46,306 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:04:46 CST)" (scheduled at 2024-11-18 15:03:46.291994+08:00)
  239. 2024-11-18 15:03:46,309 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:04:46 CST)" raised an exception
  240. Traceback (most recent call last):
  241. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  242. retval = job.func(*job.args, **job.kwargs)
  243. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  244. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  245. asyncio.run(sync_knowledge())
  246. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  247. return runner.run(main)
  248. ^^^^^^^^^^^^^^^^
  249. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  250. return self._loop.run_until_complete(task)
  251. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  252. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  253. return future.result()
  254. ^^^^^^^^^^^^^^^
  255. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  256. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  257. ^^^^^^^^
  258. AttributeError: 'Depends' object has no attribute 'query'
  259. 2024-11-18 15:03:59,072 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  260. 2024-11-18 15:03:59,073 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  261. 2024-11-18 15:03:59,073 - base - start - line:181 - INFO -: Scheduler started
  262. 2024-11-18 15:04:01,013 - user - edit_user_pwd - line:123 - ERROR -: 'int' object has no attribute 'app_type'
  263. 2024-11-18 15:05:00,006 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  264. 2024-11-18 15:05:00,007 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  265. 2024-11-18 15:05:00,007 - base - start - line:181 - INFO -: Scheduler started
  266. 2024-11-18 15:05:51,077 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  267. 2024-11-18 15:05:51,347 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/login "HTTP/1.1 201 Created"
  268. 2024-11-18 15:05:51,686 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/login "HTTP/1.1 200 OK"
  269. 2024-11-18 15:06:00,010 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:07:00 CST)" (scheduled at 2024-11-18 15:06:00.006230+08:00)
  270. 2024-11-18 15:06:00,013 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:07:00 CST)" raised an exception
  271. Traceback (most recent call last):
  272. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  273. retval = job.func(*job.args, **job.kwargs)
  274. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  275. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  276. asyncio.run(sync_knowledge())
  277. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  278. return runner.run(main)
  279. ^^^^^^^^^^^^^^^^
  280. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  281. return self._loop.run_until_complete(task)
  282. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  283. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  284. return future.result()
  285. ^^^^^^^^^^^^^^^
  286. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  287. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  288. ^^^^^^^^
  289. AttributeError: 'Depends' object has no attribute 'query'
  290. 2024-11-18 15:07:00,018 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:08:00 CST)" (scheduled at 2024-11-18 15:07:00.006230+08:00)
  291. 2024-11-18 15:07:00,020 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:08:00 CST)" raised an exception
  292. Traceback (most recent call last):
  293. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  294. retval = job.func(*job.args, **job.kwargs)
  295. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  296. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  297. asyncio.run(sync_knowledge())
  298. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  299. return runner.run(main)
  300. ^^^^^^^^^^^^^^^^
  301. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  302. return self._loop.run_until_complete(task)
  303. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  304. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  305. return future.result()
  306. ^^^^^^^^^^^^^^^
  307. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  308. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  309. ^^^^^^^^
  310. AttributeError: 'Depends' object has no attribute 'query'
  311. 2024-11-18 15:08:00,019 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:09:00 CST)" (scheduled at 2024-11-18 15:08:00.006230+08:00)
  312. 2024-11-18 15:08:00,020 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:09:00 CST)" raised an exception
  313. Traceback (most recent call last):
  314. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  315. retval = job.func(*job.args, **job.kwargs)
  316. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  317. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  318. asyncio.run(sync_knowledge())
  319. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  320. return runner.run(main)
  321. ^^^^^^^^^^^^^^^^
  322. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  323. return self._loop.run_until_complete(task)
  324. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  325. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  326. return future.result()
  327. ^^^^^^^^^^^^^^^
  328. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  329. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  330. ^^^^^^^^
  331. AttributeError: 'Depends' object has no attribute 'query'
  332. 2024-11-18 15:09:00,018 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:10:00 CST)" (scheduled at 2024-11-18 15:09:00.006230+08:00)
  333. 2024-11-18 15:09:00,020 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:10:00 CST)" raised an exception
  334. Traceback (most recent call last):
  335. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  336. retval = job.func(*job.args, **job.kwargs)
  337. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  338. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  339. asyncio.run(sync_knowledge())
  340. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  341. return runner.run(main)
  342. ^^^^^^^^^^^^^^^^
  343. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  344. return self._loop.run_until_complete(task)
  345. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  346. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  347. return future.result()
  348. ^^^^^^^^^^^^^^^
  349. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  350. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  351. ^^^^^^^^
  352. AttributeError: 'Depends' object has no attribute 'query'
  353. 2024-11-18 15:10:00,011 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:11:00 CST)" (scheduled at 2024-11-18 15:10:00.006230+08:00)
  354. 2024-11-18 15:10:00,013 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:11:00 CST)" raised an exception
  355. Traceback (most recent call last):
  356. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  357. retval = job.func(*job.args, **job.kwargs)
  358. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  359. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  360. asyncio.run(sync_knowledge())
  361. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  362. return runner.run(main)
  363. ^^^^^^^^^^^^^^^^
  364. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  365. return self._loop.run_until_complete(task)
  366. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  367. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  368. return future.result()
  369. ^^^^^^^^^^^^^^^
  370. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  371. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  372. ^^^^^^^^
  373. AttributeError: 'Depends' object has no attribute 'query'
  374. 2024-11-18 15:11:00,017 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:12:00 CST)" (scheduled at 2024-11-18 15:11:00.006230+08:00)
  375. 2024-11-18 15:11:00,018 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:12:00 CST)" raised an exception
  376. Traceback (most recent call last):
  377. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  378. retval = job.func(*job.args, **job.kwargs)
  379. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  380. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  381. asyncio.run(sync_knowledge())
  382. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  383. return runner.run(main)
  384. ^^^^^^^^^^^^^^^^
  385. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  386. return self._loop.run_until_complete(task)
  387. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  388. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  389. return future.result()
  390. ^^^^^^^^^^^^^^^
  391. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  392. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  393. ^^^^^^^^
  394. AttributeError: 'Depends' object has no attribute 'query'
  395. 2024-11-18 15:11:24,039 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  396. 2024-11-18 15:11:24,040 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  397. 2024-11-18 15:11:24,040 - base - start - line:181 - INFO -: Scheduler started
  398. 2024-11-18 15:11:26,698 - user - edit_user_pwd - line:125 - ERROR -: BishengService.change_password_public() missing 1 required positional argument: 'new_password'
  399. 2024-11-18 15:11:58,671 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  400. 2024-11-18 15:11:58,672 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  401. 2024-11-18 15:11:58,672 - base - start - line:181 - INFO -: Scheduler started
  402. 2024-11-18 15:12:01,321 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  403. 2024-11-18 15:12:01,322 - ragflow - set_user_password - line:198 - INFO -: set_user_password:{}
  404. 2024-11-18 15:12:01,325 - user - edit_user_pwd - line:125 - ERROR -: BishengService.change_password_public() missing 1 required positional argument: 'new_password'
  405. 2024-11-18 15:12:58,686 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:13:58 CST)" (scheduled at 2024-11-18 15:12:58.671687+08:00)
  406. 2024-11-18 15:12:58,689 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:13:58 CST)" raised an exception
  407. Traceback (most recent call last):
  408. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  409. retval = job.func(*job.args, **job.kwargs)
  410. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  411. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  412. asyncio.run(sync_knowledge())
  413. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  414. return runner.run(main)
  415. ^^^^^^^^^^^^^^^^
  416. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  417. return self._loop.run_until_complete(task)
  418. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  419. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  420. return future.result()
  421. ^^^^^^^^^^^^^^^
  422. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  423. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  424. ^^^^^^^^
  425. AttributeError: 'Depends' object has no attribute 'query'
  426. 2024-11-18 15:13:04,079 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  427. 2024-11-18 15:13:04,079 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  428. 2024-11-18 15:13:04,080 - base - start - line:181 - INFO -: Scheduler started
  429. 2024-11-18 15:13:06,875 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  430. 2024-11-18 15:13:06,876 - ragflow - set_user_password - line:198 - INFO -: set_user_password:{}
  431. 2024-11-18 15:13:07,021 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/change_password_public "HTTP/1.1 500 Internal Server Error"
  432. 2024-11-18 15:13:07,021 - user - edit_user_pwd - line:125 - ERROR -: Failed to fetch data from Bisheng API: Internal Server Error
  433. 2024-11-18 15:14:02,085 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  434. 2024-11-18 15:14:02,086 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  435. 2024-11-18 15:14:02,087 - base - start - line:181 - INFO -: Scheduler started
  436. 2024-11-18 15:14:03,802 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  437. 2024-11-18 15:14:03,803 - ragflow - set_user_password - line:198 - INFO -: set_user_password:{}
  438. 2024-11-18 15:14:03,855 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/change_password_public "HTTP/1.1 500 Internal Server Error"
  439. 2024-11-18 15:14:03,855 - user - edit_user_pwd - line:125 - ERROR -: Failed to fetch data from Bisheng API: Internal Server Error
  440. 2024-11-18 15:15:02,086 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:16:02 CST)" (scheduled at 2024-11-18 15:15:02.085338+08:00)
  441. 2024-11-18 15:15:02,088 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:16:02 CST)" raised an exception
  442. Traceback (most recent call last):
  443. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  444. retval = job.func(*job.args, **job.kwargs)
  445. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  446. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  447. asyncio.run(sync_knowledge())
  448. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  449. return runner.run(main)
  450. ^^^^^^^^^^^^^^^^
  451. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  452. return self._loop.run_until_complete(task)
  453. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  454. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  455. return future.result()
  456. ^^^^^^^^^^^^^^^
  457. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  458. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  459. ^^^^^^^^
  460. AttributeError: 'Depends' object has no attribute 'query'
  461. 2024-11-18 15:16:02,086 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:17:02 CST)" (scheduled at 2024-11-18 15:16:02.085338+08:00)
  462. 2024-11-18 15:16:02,087 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:17:02 CST)" raised an exception
  463. Traceback (most recent call last):
  464. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  465. retval = job.func(*job.args, **job.kwargs)
  466. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  467. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  468. asyncio.run(sync_knowledge())
  469. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  470. return runner.run(main)
  471. ^^^^^^^^^^^^^^^^
  472. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  473. return self._loop.run_until_complete(task)
  474. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  475. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  476. return future.result()
  477. ^^^^^^^^^^^^^^^
  478. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  479. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  480. ^^^^^^^^
  481. AttributeError: 'Depends' object has no attribute 'query'
  482. 2024-11-18 15:17:02,097 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:18:02 CST)" (scheduled at 2024-11-18 15:17:02.085338+08:00)
  483. 2024-11-18 15:17:02,099 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:18:02 CST)" raised an exception
  484. Traceback (most recent call last):
  485. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  486. retval = job.func(*job.args, **job.kwargs)
  487. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  488. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  489. asyncio.run(sync_knowledge())
  490. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  491. return runner.run(main)
  492. ^^^^^^^^^^^^^^^^
  493. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  494. return self._loop.run_until_complete(task)
  495. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  496. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  497. return future.result()
  498. ^^^^^^^^^^^^^^^
  499. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  500. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  501. ^^^^^^^^
  502. AttributeError: 'Depends' object has no attribute 'query'
  503. 2024-11-18 15:18:02,088 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:19:02 CST)" (scheduled at 2024-11-18 15:18:02.085338+08:00)
  504. 2024-11-18 15:18:02,089 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:19:02 CST)" raised an exception
  505. Traceback (most recent call last):
  506. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  507. retval = job.func(*job.args, **job.kwargs)
  508. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  509. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  510. asyncio.run(sync_knowledge())
  511. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  512. return runner.run(main)
  513. ^^^^^^^^^^^^^^^^
  514. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  515. return self._loop.run_until_complete(task)
  516. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  517. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  518. return future.result()
  519. ^^^^^^^^^^^^^^^
  520. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  521. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  522. ^^^^^^^^
  523. AttributeError: 'Depends' object has no attribute 'query'
  524. 2024-11-18 15:19:02,097 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:20:02 CST)" (scheduled at 2024-11-18 15:19:02.085338+08:00)
  525. 2024-11-18 15:19:02,098 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:20:02 CST)" raised an exception
  526. Traceback (most recent call last):
  527. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  528. retval = job.func(*job.args, **job.kwargs)
  529. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  530. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  531. asyncio.run(sync_knowledge())
  532. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  533. return runner.run(main)
  534. ^^^^^^^^^^^^^^^^
  535. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  536. return self._loop.run_until_complete(task)
  537. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  538. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  539. return future.result()
  540. ^^^^^^^^^^^^^^^
  541. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  542. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  543. ^^^^^^^^
  544. AttributeError: 'Depends' object has no attribute 'query'
  545. 2024-11-18 15:20:02,089 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:21:02 CST)" (scheduled at 2024-11-18 15:20:02.085338+08:00)
  546. 2024-11-18 15:20:02,090 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:21:02 CST)" raised an exception
  547. Traceback (most recent call last):
  548. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  549. retval = job.func(*job.args, **job.kwargs)
  550. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  551. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  552. asyncio.run(sync_knowledge())
  553. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  554. return runner.run(main)
  555. ^^^^^^^^^^^^^^^^
  556. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  557. return self._loop.run_until_complete(task)
  558. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  559. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  560. return future.result()
  561. ^^^^^^^^^^^^^^^
  562. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  563. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  564. ^^^^^^^^
  565. AttributeError: 'Depends' object has no attribute 'query'
  566. 2024-11-18 15:20:41,344 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  567. 2024-11-18 15:20:41,345 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  568. 2024-11-18 15:20:41,346 - base - start - line:181 - INFO -: Scheduler started
  569. 2024-11-18 15:20:44,425 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  570. 2024-11-18 15:20:44,426 - ragflow - set_user_password - line:198 - INFO -: set_user_password:{}
  571. 2024-11-18 15:20:44,473 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  572. 2024-11-18 15:20:44,541 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/change_password_public "HTTP/1.1 200 OK"
  573. 2024-11-18 15:20:44,541 - user - edit_user_pwd - line:125 - ERROR -: Failed to fetch data from Bisheng API: {"status_code":10600,"status_message":"账号或密码错误","data":null}
  574. 2024-11-18 15:21:35,948 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  575. 2024-11-18 15:21:35,949 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  576. 2024-11-18 15:21:35,949 - base - start - line:181 - INFO -: Scheduler started
  577. 2024-11-18 15:21:37,778 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  578. 2024-11-18 15:21:37,779 - ragflow - set_user_password - line:198 - INFO -: set_user_password:{}
  579. 2024-11-18 15:21:37,829 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  580. 2024-11-18 15:21:37,897 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/change_password_public "HTTP/1.1 200 OK"
  581. 2024-11-18 15:21:37,897 - user - edit_user_pwd - line:125 - ERROR -: Failed to fetch data from Bisheng API: {"status_code":10600,"status_message":"账号或密码错误","data":null}
  582. 2024-11-18 15:22:35,687 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  583. 2024-11-18 15:22:35,688 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  584. 2024-11-18 15:22:35,688 - base - start - line:181 - INFO -: Scheduler started
  585. 2024-11-18 15:22:37,007 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  586. 2024-11-18 15:22:37,007 - ragflow - set_user_password - line:198 - INFO -: set_user_password:{}
  587. 2024-11-18 15:22:37,056 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  588. 2024-11-18 15:22:37,125 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/change_password_public "HTTP/1.1 200 OK"
  589. 2024-11-18 15:22:37,125 - user - edit_user_pwd - line:125 - ERROR -: Failed to fetch data from Bisheng API: {"status_code":10600,"status_message":"账号或密码错误","data":null}
  590. 2024-11-18 15:22:54,746 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  591. 2024-11-18 15:22:54,746 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  592. 2024-11-18 15:22:54,747 - base - start - line:181 - INFO -: Scheduler started
  593. 2024-11-18 15:22:56,269 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  594. 2024-11-18 15:22:56,270 - ragflow - set_user_password - line:198 - INFO -: set_user_password:{}
  595. 2024-11-18 15:22:56,318 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  596. 2024-11-18 15:22:56,390 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/change_password_public "HTTP/1.1 200 OK"
  597. 2024-11-18 15:22:56,391 - user - edit_user_pwd - line:125 - ERROR -: Failed to fetch data from Bisheng API: {"status_code":10600,"status_message":"账号或密码错误","data":null}
  598. 2024-11-18 15:23:50,794 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  599. 2024-11-18 15:23:50,795 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  600. 2024-11-18 15:23:50,795 - base - start - line:181 - INFO -: Scheduler started
  601. 2024-11-18 15:23:54,278 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  602. 2024-11-18 15:23:54,279 - ragflow - set_user_password - line:196 - INFO -: set_user_password:{}
  603. 2024-11-18 15:23:54,327 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  604. 2024-11-18 15:23:54,395 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/change_password_public "HTTP/1.1 200 OK"
  605. 2024-11-18 15:23:54,395 - user - edit_user_pwd - line:125 - ERROR -: Failed to fetch data from Bisheng API: {"status_code":10600,"status_message":"账号或密码错误","data":null}
  606. 2024-11-18 15:24:50,808 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:25:50 CST)" (scheduled at 2024-11-18 15:24:50.794246+08:00)
  607. 2024-11-18 15:24:50,810 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:25:50 CST)" raised an exception
  608. Traceback (most recent call last):
  609. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  610. retval = job.func(*job.args, **job.kwargs)
  611. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  612. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  613. asyncio.run(sync_knowledge())
  614. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  615. return runner.run(main)
  616. ^^^^^^^^^^^^^^^^
  617. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  618. return self._loop.run_until_complete(task)
  619. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  620. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  621. return future.result()
  622. ^^^^^^^^^^^^^^^
  623. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  624. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  625. ^^^^^^^^
  626. AttributeError: 'Depends' object has no attribute 'query'
  627. 2024-11-18 15:25:02,352 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  628. 2024-11-18 15:25:02,353 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  629. 2024-11-18 15:25:02,353 - base - start - line:181 - INFO -: Scheduler started
  630. 2024-11-18 15:25:04,412 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  631. 2024-11-18 15:25:04,413 - ragflow - set_user_password - line:196 - INFO -: set_user_password:{}
  632. 2024-11-18 15:25:04,458 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  633. 2024-11-18 15:25:04,527 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/change_password_public "HTTP/1.1 200 OK"
  634. 2024-11-18 15:25:04,527 - user - edit_user_pwd - line:126 - ERROR -: Failed to fetch data from Bisheng API: {"status_code":10600,"status_message":"账号或密码错误","data":null}
  635. 2024-11-18 15:26:02,361 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:26:02 CST)" (scheduled at 2024-11-18 15:26:02.352080+08:00)
  636. 2024-11-18 15:26:02,388 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:27:02 CST)" raised an exception
  637. Traceback (most recent call last):
  638. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  639. retval = job.func(*job.args, **job.kwargs)
  640. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  641. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  642. asyncio.run(sync_knowledge())
  643. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  644. return runner.run(main)
  645. ^^^^^^^^^^^^^^^^
  646. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  647. return self._loop.run_until_complete(task)
  648. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  649. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  650. return future.result()
  651. ^^^^^^^^^^^^^^^
  652. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  653. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  654. ^^^^^^^^
  655. AttributeError: 'Depends' object has no attribute 'query'
  656. 2024-11-18 15:26:06,332 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  657. 2024-11-18 15:26:06,333 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  658. 2024-11-18 15:26:06,333 - base - start - line:181 - INFO -: Scheduler started
  659. 2024-11-18 15:26:12,542 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  660. 2024-11-18 15:26:12,543 - ragflow - set_user_password - line:198 - INFO -: set_user_password:{}
  661. 2024-11-18 15:26:12,590 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  662. 2024-11-18 15:26:12,663 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/change_password_public "HTTP/1.1 200 OK"
  663. 2024-11-18 15:26:12,663 - user - edit_user_pwd - line:126 - ERROR -: Failed to fetch data from Bisheng API: {"status_code":10600,"status_message":"账号或密码错误","data":null}
  664. 2024-11-18 15:27:06,343 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:28:06 CST)" (scheduled at 2024-11-18 15:27:06.332248+08:00)
  665. 2024-11-18 15:27:06,345 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:28:06 CST)" raised an exception
  666. Traceback (most recent call last):
  667. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  668. retval = job.func(*job.args, **job.kwargs)
  669. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  670. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  671. asyncio.run(sync_knowledge())
  672. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  673. return runner.run(main)
  674. ^^^^^^^^^^^^^^^^
  675. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  676. return self._loop.run_until_complete(task)
  677. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  678. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  679. return future.result()
  680. ^^^^^^^^^^^^^^^
  681. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  682. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  683. ^^^^^^^^
  684. AttributeError: 'Depends' object has no attribute 'query'
  685. 2024-11-18 15:27:15,295 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  686. 2024-11-18 15:27:15,296 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  687. 2024-11-18 15:27:15,296 - base - start - line:181 - INFO -: Scheduler started
  688. 2024-11-18 15:27:17,403 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  689. 2024-11-18 15:27:17,404 - ragflow - set_user_password - line:198 - INFO -: set_user_password:{}
  690. 2024-11-18 15:27:17,450 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  691. 2024-11-18 15:27:17,599 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/change_password_public "HTTP/1.1 200 OK"
  692. 2024-11-18 15:27:36,584 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  693. 2024-11-18 15:27:36,649 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/login "HTTP/1.1 201 Created"
  694. 2024-11-18 15:28:15,303 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:29:15 CST)" (scheduled at 2024-11-18 15:28:15.295491+08:00)
  695. 2024-11-18 15:28:15,305 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:29:15 CST)" raised an exception
  696. Traceback (most recent call last):
  697. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  698. retval = job.func(*job.args, **job.kwargs)
  699. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  700. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  701. asyncio.run(sync_knowledge())
  702. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  703. return runner.run(main)
  704. ^^^^^^^^^^^^^^^^
  705. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  706. return self._loop.run_until_complete(task)
  707. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  708. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  709. return future.result()
  710. ^^^^^^^^^^^^^^^
  711. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  712. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  713. ^^^^^^^^
  714. AttributeError: 'Depends' object has no attribute 'query'
  715. 2024-11-18 15:29:15,296 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:30:15 CST)" (scheduled at 2024-11-18 15:29:15.295491+08:00)
  716. 2024-11-18 15:29:15,297 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:30:15 CST)" raised an exception
  717. Traceback (most recent call last):
  718. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  719. retval = job.func(*job.args, **job.kwargs)
  720. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  721. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  722. asyncio.run(sync_knowledge())
  723. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  724. return runner.run(main)
  725. ^^^^^^^^^^^^^^^^
  726. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  727. return self._loop.run_until_complete(task)
  728. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  729. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  730. return future.result()
  731. ^^^^^^^^^^^^^^^
  732. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  733. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  734. ^^^^^^^^
  735. AttributeError: 'Depends' object has no attribute 'query'
  736. 2024-11-18 15:29:39,898 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  737. 2024-11-18 15:29:39,899 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  738. 2024-11-18 15:29:39,899 - base - start - line:181 - INFO -: Scheduler started
  739. 2024-11-18 15:29:41,589 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  740. 2024-11-18 15:29:41,984 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/login "HTTP/1.1 201 Created"
  741. 2024-11-18 15:29:42,275 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/login "HTTP/1.1 200 OK"
  742. 2024-11-18 15:30:39,912 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:31:39 CST)" (scheduled at 2024-11-18 15:30:39.898188+08:00)
  743. 2024-11-18 15:30:39,914 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:31:39 CST)" raised an exception
  744. Traceback (most recent call last):
  745. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  746. retval = job.func(*job.args, **job.kwargs)
  747. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  748. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  749. asyncio.run(sync_knowledge())
  750. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  751. return runner.run(main)
  752. ^^^^^^^^^^^^^^^^
  753. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  754. return self._loop.run_until_complete(task)
  755. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  756. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  757. return future.result()
  758. ^^^^^^^^^^^^^^^
  759. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  760. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  761. ^^^^^^^^
  762. AttributeError: 'Depends' object has no attribute 'query'
  763. 2024-11-18 15:31:39,913 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:32:39 CST)" (scheduled at 2024-11-18 15:31:39.898188+08:00)
  764. 2024-11-18 15:31:39,915 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:32:39 CST)" raised an exception
  765. Traceback (most recent call last):
  766. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  767. retval = job.func(*job.args, **job.kwargs)
  768. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  769. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  770. asyncio.run(sync_knowledge())
  771. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  772. return runner.run(main)
  773. ^^^^^^^^^^^^^^^^
  774. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  775. return self._loop.run_until_complete(task)
  776. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  777. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  778. return future.result()
  779. ^^^^^^^^^^^^^^^
  780. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  781. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  782. ^^^^^^^^
  783. AttributeError: 'Depends' object has no attribute 'query'
  784. 2024-11-18 15:32:39,910 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:33:39 CST)" (scheduled at 2024-11-18 15:32:39.898188+08:00)
  785. 2024-11-18 15:32:39,912 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:33:39 CST)" raised an exception
  786. Traceback (most recent call last):
  787. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  788. retval = job.func(*job.args, **job.kwargs)
  789. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  790. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  791. asyncio.run(sync_knowledge())
  792. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  793. return runner.run(main)
  794. ^^^^^^^^^^^^^^^^
  795. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  796. return self._loop.run_until_complete(task)
  797. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  798. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  799. return future.result()
  800. ^^^^^^^^^^^^^^^
  801. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  802. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  803. ^^^^^^^^
  804. AttributeError: 'Depends' object has no attribute 'query'
  805. 2024-11-18 15:33:01,475 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  806. 2024-11-18 15:33:01,476 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  807. 2024-11-18 15:33:01,476 - base - start - line:181 - INFO -: Scheduler started
  808. 2024-11-18 15:33:10,204 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  809. 2024-11-18 15:33:10,569 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/regist "HTTP/1.1 201 Created"
  810. 2024-11-18 15:33:11,546 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/register "HTTP/1.1 200 OK"
  811. 2024-11-18 15:33:20,854 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  812. 2024-11-18 15:33:20,913 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/login "HTTP/1.1 201 Created"
  813. 2024-11-18 15:33:27,032 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  814. 2024-11-18 15:33:27,307 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/login "HTTP/1.1 201 Created"
  815. 2024-11-18 15:33:27,911 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/login "HTTP/1.1 200 OK"
  816. 2024-11-18 15:33:38,908 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  817. 2024-11-18 15:33:38,910 - ragflow - set_user_password - line:200 - INFO -: set_user_password:{}
  818. 2024-11-18 15:33:38,956 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  819. 2024-11-18 15:33:39,201 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/change_password_public "HTTP/1.1 200 OK"
  820. 2024-11-18 15:33:47,384 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  821. 2024-11-18 15:33:47,489 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/login "HTTP/1.1 201 Created"
  822. 2024-11-18 15:33:52,948 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  823. 2024-11-18 15:33:53,151 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/login "HTTP/1.1 201 Created"
  824. 2024-11-18 15:33:53,402 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/login "HTTP/1.1 200 OK"
  825. 2024-11-18 15:34:01,476 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:35:01 CST)" (scheduled at 2024-11-18 15:34:01.475933+08:00)
  826. 2024-11-18 15:34:01,478 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:35:01 CST)" raised an exception
  827. Traceback (most recent call last):
  828. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  829. retval = job.func(*job.args, **job.kwargs)
  830. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  831. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  832. asyncio.run(sync_knowledge())
  833. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  834. return runner.run(main)
  835. ^^^^^^^^^^^^^^^^
  836. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  837. return self._loop.run_until_complete(task)
  838. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  839. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  840. return future.result()
  841. ^^^^^^^^^^^^^^^
  842. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  843. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  844. ^^^^^^^^
  845. AttributeError: 'Depends' object has no attribute 'query'
  846. 2024-11-18 15:35:01,488 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:36:01 CST)" (scheduled at 2024-11-18 15:35:01.475933+08:00)
  847. 2024-11-18 15:35:01,489 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:36:01 CST)" raised an exception
  848. Traceback (most recent call last):
  849. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  850. retval = job.func(*job.args, **job.kwargs)
  851. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  852. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  853. asyncio.run(sync_knowledge())
  854. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  855. return runner.run(main)
  856. ^^^^^^^^^^^^^^^^
  857. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  858. return self._loop.run_until_complete(task)
  859. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  860. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  861. return future.result()
  862. ^^^^^^^^^^^^^^^
  863. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  864. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  865. ^^^^^^^^
  866. AttributeError: 'Depends' object has no attribute 'query'
  867. 2024-11-18 15:36:01,491 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:37:01 CST)" (scheduled at 2024-11-18 15:36:01.475933+08:00)
  868. 2024-11-18 15:36:01,492 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:37:01 CST)" raised an exception
  869. Traceback (most recent call last):
  870. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  871. retval = job.func(*job.args, **job.kwargs)
  872. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  873. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  874. asyncio.run(sync_knowledge())
  875. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  876. return runner.run(main)
  877. ^^^^^^^^^^^^^^^^
  878. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  879. return self._loop.run_until_complete(task)
  880. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  881. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  882. return future.result()
  883. ^^^^^^^^^^^^^^^
  884. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  885. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  886. ^^^^^^^^
  887. AttributeError: 'Depends' object has no attribute 'query'
  888. 2024-11-18 15:37:01,476 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:38:01 CST)" (scheduled at 2024-11-18 15:37:01.475933+08:00)
  889. 2024-11-18 15:37:01,477 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:38:01 CST)" raised an exception
  890. Traceback (most recent call last):
  891. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  892. retval = job.func(*job.args, **job.kwargs)
  893. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  894. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  895. asyncio.run(sync_knowledge())
  896. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  897. return runner.run(main)
  898. ^^^^^^^^^^^^^^^^
  899. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  900. return self._loop.run_until_complete(task)
  901. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  902. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  903. return future.result()
  904. ^^^^^^^^^^^^^^^
  905. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  906. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  907. ^^^^^^^^
  908. AttributeError: 'Depends' object has no attribute 'query'
  909. 2024-11-18 15:38:01,491 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:39:01 CST)" (scheduled at 2024-11-18 15:38:01.475933+08:00)
  910. 2024-11-18 15:38:01,493 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:39:01 CST)" raised an exception
  911. Traceback (most recent call last):
  912. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  913. retval = job.func(*job.args, **job.kwargs)
  914. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  915. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  916. asyncio.run(sync_knowledge())
  917. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  918. return runner.run(main)
  919. ^^^^^^^^^^^^^^^^
  920. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  921. return self._loop.run_until_complete(task)
  922. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  923. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  924. return future.result()
  925. ^^^^^^^^^^^^^^^
  926. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  927. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  928. ^^^^^^^^
  929. AttributeError: 'Depends' object has no attribute 'query'
  930. 2024-11-18 15:39:01,487 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:40:01 CST)" (scheduled at 2024-11-18 15:39:01.475933+08:00)
  931. 2024-11-18 15:39:01,488 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:40:01 CST)" raised an exception
  932. Traceback (most recent call last):
  933. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  934. retval = job.func(*job.args, **job.kwargs)
  935. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  936. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  937. asyncio.run(sync_knowledge())
  938. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  939. return runner.run(main)
  940. ^^^^^^^^^^^^^^^^
  941. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  942. return self._loop.run_until_complete(task)
  943. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  944. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  945. return future.result()
  946. ^^^^^^^^^^^^^^^
  947. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  948. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  949. ^^^^^^^^
  950. AttributeError: 'Depends' object has no attribute 'query'
  951. 2024-11-18 15:40:01,478 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:41:01 CST)" (scheduled at 2024-11-18 15:40:01.475933+08:00)
  952. 2024-11-18 15:40:01,480 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:41:01 CST)" raised an exception
  953. Traceback (most recent call last):
  954. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  955. retval = job.func(*job.args, **job.kwargs)
  956. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  957. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  958. asyncio.run(sync_knowledge())
  959. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  960. return runner.run(main)
  961. ^^^^^^^^^^^^^^^^
  962. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  963. return self._loop.run_until_complete(task)
  964. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  965. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  966. return future.result()
  967. ^^^^^^^^^^^^^^^
  968. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  969. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  970. ^^^^^^^^
  971. AttributeError: 'Depends' object has no attribute 'query'
  972. 2024-11-18 15:41:01,488 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:42:01 CST)" (scheduled at 2024-11-18 15:41:01.475933+08:00)
  973. 2024-11-18 15:41:01,490 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:42:01 CST)" raised an exception
  974. Traceback (most recent call last):
  975. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  976. retval = job.func(*job.args, **job.kwargs)
  977. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  978. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  979. asyncio.run(sync_knowledge())
  980. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  981. return runner.run(main)
  982. ^^^^^^^^^^^^^^^^
  983. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  984. return self._loop.run_until_complete(task)
  985. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  986. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  987. return future.result()
  988. ^^^^^^^^^^^^^^^
  989. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  990. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  991. ^^^^^^^^
  992. AttributeError: 'Depends' object has no attribute 'query'
  993. 2024-11-18 15:41:55,398 - base - add_job - line:454 - INFO -: Adding job tentatively -- it will be properly scheduled when the scheduler starts
  994. 2024-11-18 15:41:55,399 - base - _real_add_job - line:895 - INFO -: Added job "sync_resource" to job store "default"
  995. 2024-11-18 15:41:55,399 - base - start - line:181 - INFO -: Scheduler started
  996. 2024-11-18 15:42:06,068 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  997. 2024-11-18 15:42:06,440 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/regist "HTTP/1.1 201 Created"
  998. 2024-11-18 15:42:07,880 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/register "HTTP/1.1 200 OK"
  999. 2024-11-18 15:42:21,109 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  1000. 2024-11-18 15:42:21,291 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/login "HTTP/1.1 201 Created"
  1001. 2024-11-18 15:42:21,826 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/login "HTTP/1.1 200 OK"
  1002. 2024-11-18 15:42:55,403 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:43:55 CST)" (scheduled at 2024-11-18 15:42:55.398192+08:00)
  1003. 2024-11-18 15:42:55,405 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:43:55 CST)" raised an exception
  1004. Traceback (most recent call last):
  1005. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  1006. retval = job.func(*job.args, **job.kwargs)
  1007. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1008. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  1009. asyncio.run(sync_knowledge())
  1010. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  1011. return runner.run(main)
  1012. ^^^^^^^^^^^^^^^^
  1013. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  1014. return self._loop.run_until_complete(task)
  1015. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1016. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  1017. return future.result()
  1018. ^^^^^^^^^^^^^^^
  1019. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  1020. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  1021. ^^^^^^^^
  1022. AttributeError: 'Depends' object has no attribute 'query'
  1023. 2024-11-18 15:43:55,407 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:44:55 CST)" (scheduled at 2024-11-18 15:43:55.398192+08:00)
  1024. 2024-11-18 15:43:55,409 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:44:55 CST)" raised an exception
  1025. Traceback (most recent call last):
  1026. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  1027. retval = job.func(*job.args, **job.kwargs)
  1028. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1029. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  1030. asyncio.run(sync_knowledge())
  1031. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  1032. return runner.run(main)
  1033. ^^^^^^^^^^^^^^^^
  1034. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  1035. return self._loop.run_until_complete(task)
  1036. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1037. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  1038. return future.result()
  1039. ^^^^^^^^^^^^^^^
  1040. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  1041. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  1042. ^^^^^^^^
  1043. AttributeError: 'Depends' object has no attribute 'query'
  1044. 2024-11-18 15:44:55,409 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:45:55 CST)" (scheduled at 2024-11-18 15:44:55.398192+08:00)
  1045. 2024-11-18 15:44:55,410 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:45:55 CST)" raised an exception
  1046. Traceback (most recent call last):
  1047. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  1048. retval = job.func(*job.args, **job.kwargs)
  1049. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1050. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  1051. asyncio.run(sync_knowledge())
  1052. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  1053. return runner.run(main)
  1054. ^^^^^^^^^^^^^^^^
  1055. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  1056. return self._loop.run_until_complete(task)
  1057. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1058. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  1059. return future.result()
  1060. ^^^^^^^^^^^^^^^
  1061. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  1062. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  1063. ^^^^^^^^
  1064. AttributeError: 'Depends' object has no attribute 'query'
  1065. 2024-11-18 15:45:55,411 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:46:55 CST)" (scheduled at 2024-11-18 15:45:55.398192+08:00)
  1066. 2024-11-18 15:45:55,412 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:46:55 CST)" raised an exception
  1067. Traceback (most recent call last):
  1068. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  1069. retval = job.func(*job.args, **job.kwargs)
  1070. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1071. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  1072. asyncio.run(sync_knowledge())
  1073. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  1074. return runner.run(main)
  1075. ^^^^^^^^^^^^^^^^
  1076. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  1077. return self._loop.run_until_complete(task)
  1078. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1079. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  1080. return future.result()
  1081. ^^^^^^^^^^^^^^^
  1082. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  1083. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  1084. ^^^^^^^^
  1085. AttributeError: 'Depends' object has no attribute 'query'
  1086. 2024-11-18 15:45:58,191 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/setting "HTTP/1.1 200 OK"
  1087. 2024-11-18 15:45:58,191 - ragflow - set_user_password - line:200 - INFO -: set_user_password:{}
  1088. 2024-11-18 15:45:58,239 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  1089. 2024-11-18 15:45:58,402 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/change_password_public "HTTP/1.1 200 OK"
  1090. 2024-11-18 15:46:07,462 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  1091. 2024-11-18 15:46:07,536 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/login "HTTP/1.1 201 Created"
  1092. 2024-11-18 15:46:12,627 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: GET http://192.168.20.119:13001/api/v1/user/public_key "HTTP/1.1 200 OK"
  1093. 2024-11-18 15:46:12,817 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:13001/api/v1/user/login "HTTP/1.1 201 Created"
  1094. 2024-11-18 15:46:13,082 - _client - _send_single_request - line:1786 - INFO -: HTTP Request: POST http://192.168.20.119:11080/v1/user/login "HTTP/1.1 200 OK"
  1095. 2024-11-18 15:46:55,408 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:47:55 CST)" (scheduled at 2024-11-18 15:46:55.398192+08:00)
  1096. 2024-11-18 15:46:55,409 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:47:55 CST)" raised an exception
  1097. Traceback (most recent call last):
  1098. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  1099. retval = job.func(*job.args, **job.kwargs)
  1100. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1101. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  1102. asyncio.run(sync_knowledge())
  1103. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  1104. return runner.run(main)
  1105. ^^^^^^^^^^^^^^^^
  1106. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  1107. return self._loop.run_until_complete(task)
  1108. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1109. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  1110. return future.result()
  1111. ^^^^^^^^^^^^^^^
  1112. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  1113. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  1114. ^^^^^^^^
  1115. AttributeError: 'Depends' object has no attribute 'query'
  1116. 2024-11-18 15:47:55,413 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:48:55 CST)" (scheduled at 2024-11-18 15:47:55.398192+08:00)
  1117. 2024-11-18 15:47:55,414 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:48:55 CST)" raised an exception
  1118. Traceback (most recent call last):
  1119. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  1120. retval = job.func(*job.args, **job.kwargs)
  1121. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1122. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  1123. asyncio.run(sync_knowledge())
  1124. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  1125. return runner.run(main)
  1126. ^^^^^^^^^^^^^^^^
  1127. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  1128. return self._loop.run_until_complete(task)
  1129. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1130. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  1131. return future.result()
  1132. ^^^^^^^^^^^^^^^
  1133. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  1134. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  1135. ^^^^^^^^
  1136. AttributeError: 'Depends' object has no attribute 'query'
  1137. 2024-11-18 15:48:55,401 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:49:55 CST)" (scheduled at 2024-11-18 15:48:55.398192+08:00)
  1138. 2024-11-18 15:48:55,402 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:49:55 CST)" raised an exception
  1139. Traceback (most recent call last):
  1140. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  1141. retval = job.func(*job.args, **job.kwargs)
  1142. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1143. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  1144. asyncio.run(sync_knowledge())
  1145. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  1146. return runner.run(main)
  1147. ^^^^^^^^^^^^^^^^
  1148. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  1149. return self._loop.run_until_complete(task)
  1150. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1151. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  1152. return future.result()
  1153. ^^^^^^^^^^^^^^^
  1154. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  1155. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  1156. ^^^^^^^^
  1157. AttributeError: 'Depends' object has no attribute 'query'
  1158. 2024-11-18 15:49:55,399 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:50:55 CST)" (scheduled at 2024-11-18 15:49:55.398192+08:00)
  1159. 2024-11-18 15:49:55,400 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:50:55 CST)" raised an exception
  1160. Traceback (most recent call last):
  1161. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  1162. retval = job.func(*job.args, **job.kwargs)
  1163. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1164. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  1165. asyncio.run(sync_knowledge())
  1166. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  1167. return runner.run(main)
  1168. ^^^^^^^^^^^^^^^^
  1169. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  1170. return self._loop.run_until_complete(task)
  1171. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1172. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  1173. return future.result()
  1174. ^^^^^^^^^^^^^^^
  1175. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  1176. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  1177. ^^^^^^^^
  1178. AttributeError: 'Depends' object has no attribute 'query'
  1179. 2024-11-18 15:50:55,408 - base - run_job - line:123 - INFO -: Running job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:51:55 CST)" (scheduled at 2024-11-18 15:50:55.398192+08:00)
  1180. 2024-11-18 15:50:55,409 - base - run_job - line:131 - ERROR -: Job "sync_resource (trigger: interval[0:01:00], next run at: 2024-11-18 15:51:55 CST)" raised an exception
  1181. Traceback (most recent call last):
  1182. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
  1183. retval = job.func(*job.args, **job.kwargs)
  1184. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1185. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 15, in sync_resource
  1186. asyncio.run(sync_knowledge())
  1187. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 188, in run
  1188. return runner.run(main)
  1189. ^^^^^^^^^^^^^^^^
  1190. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 120, in run
  1191. return self._loop.run_until_complete(task)
  1192. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1193. File "C:\Users\stone\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  1194. return future.result()
  1195. ^^^^^^^^^^^^^^^
  1196. File "C:\Users\stone\Desktop\workfile\rag-gateway\app\task\sync_resources.py", line 25, in sync_knowledge
  1197. register_app = db.query(AppRegisterModel).filter(AppRegisterModel.status.__eq__(1)).all()
  1198. ^^^^^^^^
  1199. AttributeError: 'Depends' object has no attribute 'query'