Python 无法在Ubuntu服务器16.04中运行Django测试服务器

Python 无法在Ubuntu服务器16.04中运行Django测试服务器,python,django,jenkins,geckodriver,Python,Django,Jenkins,Geckodriver,我有两台服务器。我正在尝试为我的主网站服务器设置一个持续集成 Web server 1(cloud-hosting): Python3.6 Django3.1 Ubuntu16.04 Webserver 2(VPS): Python3.7 Django3.1 Ubuntu16.04 Jenkins --ShiningPanda(plugin) 在硬编码主机之后 Traceback (most recent call last): File "/var/lib/jenkins/wo

我有两台服务器。我正在尝试为我的主网站服务器设置一个持续集成

Web server 1(cloud-hosting): Python3.6 Django3.1 Ubuntu16.04 Webserver 2(VPS): Python3.7 Django3.1 Ubuntu16.04 Jenkins --ShiningPanda(plugin) 在硬编码主机之后

Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/Superlists/functional_tests/base.py", line 47, in setUp
    self.browser = webdriver.Firefox()
  File "/var/lib/jenkins/shiningpanda/jobs/ddc1aed1/virtualenvs/d41d8cd9/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 164, in __init__
    self.service.start()
  File "/var/lib/jenkins/shiningpanda/jobs/ddc1aed1/virtualenvs/d41d8cd9/lib/python3.7/site-packages/selenium/webdriver/common/service.py", line 100, in start
    self.assert_process_still_running()
  File "/var/lib/jenkins/shiningpanda/jobs/ddc1aed1/virtualenvs/d41d8cd9/lib/python3.7/site-packages/selenium/webdriver/common/service.py", line 113, in assert_process_still_running
    % (self.path, return_code)
selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: 69
geckodriver.log,带有LiveTestServer中硬编码的主机ip

eckodriver: error: Address not available (os error 99)
geckodriver 0.27.0 (7b8c4f32cdde 2020-07-28 18:16 +0000) 
WebDriver implementation for Firefox

USAGE:
    geckodriver [FLAGS] [OPTIONS]

[...]
希望上面的回溯不会太混乱。另外,我注意到当im在webserver 2中时,我访问了Django testcases.py模块,该模块具有LiverServerThread和hardcode
host=0.0.0
,而不是
host=localhost
(第一次回溯)。然后建立连接,尽管问题在于geckodriver和同样的东西(第二次回溯)。我需要硬编码IP0.0.0.0才能建立连接,但是geckodriver只是在一个完全不同的位置(这里没有显示error.log)侦听,我假设是这样

因此,我希望至少能够建立一个连接来正确运行LiveServerThread类。然后试着用geckodriver解决这个问题。我也不确定我运行的服务器类型是否构成问题

eckodriver: error: Address not available (os error 99)
geckodriver 0.27.0 (7b8c4f32cdde 2020-07-28 18:16 +0000) 
WebDriver implementation for Firefox

USAGE:
    geckodriver [FLAGS] [OPTIONS]

[...]