Hi,
I am trying to run a streamlit app on an EKS cluster pod which has no direct connection to the internet. The app fails to start and I see the following error:
Did not auto detect external IP.
Please go to https://docs.streamlit.io/ for debugging hints.
Please report this bug at https://github.com/streamlit/streamlit/issues.
EXCEPTION! 'NoneType' object has no attribute 'strip'
File "/usr/local/bin/streamlit", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/streamlit/cli.py", line 188, in main_hello
_main_run(filename)
File "/usr/local/lib/python3.7/site-packages/streamlit/cli.py", line 257, in _main_run
bootstrap.run(file, command_line, args)
File "/usr/local/lib/python3.7/site-packages/streamlit/bootstrap.py", line 241, in run
ioloop.start()
File "/usr/local/lib/python3.7/site-packages/tornado/platform/asyncio.py", line 132, in start
self.asyncio_loop.run_forever()
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 523, in run_forever
self._run_once()
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1758, in _run_once
handle._run()
File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/site-packages/tornado/ioloop.py", line 758, in _run_callback
ret = callback()
File "/usr/local/lib/python3.7/site-packages/tornado/stack_context.py", line 300, in null_wrapper
return fn(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/tornado/gen.py", line 326, in wrapper
yielded = next(result)
File "/usr/local/lib/python3.7/site-packages/streamlit/server/Server.py", line 402, in _loop_coroutine
traceback.print_stack(file=sys.stdout)
Looking at the streamlit code, this appears to happen in: https://github.com/streamlit/streamlit/blob/018f49f5ddb0fa0119c17aaf2bff1bc7f25f70e1/lib/streamlit/net_util.py
Is it possible to bypass this check through a config setting? Maybe provide a dummy external IP through the command line option? Or is the external access critical for some functionality?
Thanks,
Ashutosh