我正在尝试在ACI上部署一个映像。该图片包含用于在浏览器中打开URL的JS代码。我正在使用木偶师和铬来实现这一点。在本地,一切都很好,但当我在ACI上部署时,我在日志中收到以下错误。
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/command_modules/container/custom.py", line 912, in _stream_container_events_and_logs
_stream_logs(container_client, resource_group_name, name, container_name, container_group.restart_policy)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/command_modules/container/custom.py", line 866, in _stream_logs
lines = log.content.split('\n')
AttributeError: 'NoneType' object has no attribute 'split'
我的猜测是,这个错误与我的代码无关。但每次部署时都会出现此错误,而且浏览器也不会在容器中打开。
我试着删除我的整个代码,只在日志中打印“Hello World”,它工作得很好,但整个代码都失败了。我是Azure的新手,不确定部署或映像是否存在问题。