我有一個問題,一個評論關於VOLTTRON 4.1:VOLTTRON 4.1歷史學家主題定位和權限評論
問題:在新的4.1歷史學家,有沒有辦法來限制由拾起話題歷史學家?此前,有配置選項「topic_list」和「all_data」,並利用他們讓我到歷史數據庫限制爲僅記錄來自某些設備的主題。我們在這裏最終目標是具有幾個單獨的數據庫,從一個不同的類特定裝置(即一建築物溫度數據庫,太陽能測量數據庫,等等)的每個記錄的數據。我目前關於如何實現這一目標的計劃是啓動多個歷史記錄代理,每個代理都配置爲特定數據庫並針對特定主題。
評論:當我們啓動新的VOLTTRON 4.1 MySQL歷史記錄時,我們最初在我們的配置文件中有不正確的用戶/密碼憑據。然而,我們看到的錯誤並沒有通知我們這的:不是,我們在mysqlfuncts.init_microsecond_support()爲展開劑正試圖在數據庫中查詢其版本之前通知我們,憑據是不正確的得到了一個錯誤。查詢失敗,因爲它沒有權限,但調試問題需要相當長的時間。我只是想告訴你這一點,因爲接收「拒絕訪問」會很有幫助。
這是我們的錯誤日誌:
ERROR: Exception in thread Thread-2:
ERROR: Traceback (most recent call last):
ERROR: File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
ERROR: self.run()
ERROR: File "/usr/lib/python2.7/threading.py", line 763, in run
ERROR: self.__target(*self.__args, **self.__kwargs)
ERROR: File "/home/uw/volttron_new/volttron/platform/agent/base_historian.py", line 707, in _process_loop
ERROR: self.historian_setup()
ERROR: File "/home/uw/volttron_new/volttron/utils/docs.py", line 47, in f
ERROR: return self.mthd(obj, *args, **kwargs)
ERROR: File "/home/uw/.volttron/agents/c05aba11-24da-4bf5-bc1a-3561da4f30bf/sqlhistorianagent-3.6.1/sqlhistorian/historian.py", line 355, in historian_setup
ERROR: self.writer.setup_historian_tables()
ERROR: File "/home/uw/volttron_new/volttron/platform/dbutils/mysqlfuncts.py", line 113, in setup_historian_tables
ERROR: self.init_microsecond_support()
ERROR: File "/home/uw/volttron_new/volttron/platform/dbutils/mysqlfuncts.py", line 101, in init_microsecond_support
ERROR: version_nums = p.match(rows[0][0]).groups()
ERROR: IndexError: list index out of range
感謝您的答覆。在這種情況下,我可能會編輯歷史記錄代理程序代碼,以便我可以製作專用數據庫來訂閱特定主題。 如何提交錯誤作爲一個問題?這是在這個網站或GitHub? –