遠程服務器時,我得到了下面的堆棧跟蹤上運行的面料任務:爲什麼Fabric會拋出'TypeError:參數必須是int,或者有fileno()方法'?
[x.x.x.x] run: git fetch && git reset --hard origin/develop
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/var/lib/jenkins/jobs/deploy/workspace/.pyenv/lib/python2.6/site-packages/ssh/agent.py", line 115, in run
self._communicate()
File "/var/lib/jenkins/jobs/deploy/workspace/.pyenv/lib/python2.6/site-packages/ssh/agent.py", line 125, in _communicate
events = select([self._agent._conn, self.__inr], [], [], 0.5)
TypeError: argument must be an int, or have a fileno() method.
使織物任務試圖執行一個混帳取和例外SSH的上升的事實/劑.py讓我覺得SSH認證有問題。
相同的用戶可以在Fabric之外運行git fetch,並且該任務可以在我的筆記本電腦上正常運行。
這是怎麼回事嗎?我該如何解決這個問題?