Hello all. I am new to Streamlit and am trying to deploy an app. When I first tried deploying, the app attempted to load and I ran into an error about a missing openai key. I added that key to the secrets, and now I can’t seem to deploy it at all.
Public URL: https://pure-news.streamlit.app/
Github Repo: GitHub - DeanPhillipsOKC/pure-news
Python version: 3.12
Streamlit version: 1.38
Full text of the error message:
[ UTC ] Logs for pure-news.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[14:13:47] 🖥 Provisioning machine...
[14:13:47] 🎛 Preparing system...
[14:13:47] ⛓ Spinning up manager process...
[14:13:43] 🚀 Starting up repository: 'pure-news', branch: 'main', main module: 'app.py'
[14:13:43] 🐙 Cloning repository...
[14:13:43] 🐙 Cloning into '/mount/src/pure-news'...
[14:13:43] 🐙 Cloned repository!
[14:13:43] 🐙 Pulling code changes from Github...
[14:13:43] 📦 Processing dependencies...
─────────────────────────────────────── pipenv ─────────────────────────────────────────
/mount/src/pure-news /mount/src/pure-news
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Installing dependencies from Pipfile.lock (64719f)...
/mount/src/pure-news
────────────────────────────────────────────────────────────────────────────────────────
[14:14:25] 🐍 Python dependencies were installed from /mount/src/pure-news/Pipfile using pipenv.
Check if streamlit is installed
Streamlit is already installed
[14:14:26] 📦 Processed dependencies!
Traceback (most recent call last):
File "/home/adminuser/venv/bin/streamlit", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/cli.py", line 238, in main_run
_main_run(target, args, flag_options=kwargs)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/cli.py", line 274, in _main_run
bootstrap.run(file, is_hello, args, flag_options)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/bootstrap.py", line 326, in run
asyncio.run(run_server())
File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/bootstrap.py", line 314, in run_server
await server.start()
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/server/server.py", line 270, in start
start_listening(app)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/server/server.py", line 130, in start_listening
start_listening_tcp_socket(http_server)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/server/server.py", line 197, in start_listening_tcp_socket
http_server.listen(port, address)
File "/home/adminuser/venv/lib/python3.12/site-packages/tornado/tcpserver.py", line 183, in listen
sockets = bind_sockets(
^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/tornado/netutil.py", line 162, in bind_sockets
sock.bind(sockaddr)
PermissionError: [Errno 13] Permission denied
[14:14:27] ❗️ error restarting streamlit: exit status 7: output: streamlit: ERROR (not running)
streamlit: ERROR (spawn error)
[14:14:27] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
Traceback (most recent call last):
File "/home/adminuser/venv/bin/streamlit", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/cli.py", line 238, in main_run
_main_run(target, args, flag_options=kwargs)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/cli.py", line 274, in _main_run
bootstrap.run(file, is_hello, args, flag_options)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/bootstrap.py", line 326, in run
asyncio.run(run_server())
File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/bootstrap.py", line 314, in run_server
await server.start()
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/server/server.py", line 270, in start
start_listening(app)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/server/server.py", line 130, in start_listening
start_listening_tcp_socket(http_server)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/server/server.py", line 197, in start_listening_tcp_socket
http_server.listen(port, address)
File "/home/adminuser/venv/lib/python3.12/site-packages/tornado/tcpserver.py", line 183, in listen
sockets = bind_sockets(
^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/tornado/netutil.py", line 162, in bind_sockets
sock.bind(sockaddr)
PermissionError: [Errno 13] Permission denied
Traceback (most recent call last):
File "/home/adminuser/venv/bin/streamlit", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/cli.py", line 238, in main_run
_main_run(target, args, flag_options=kwargs)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/cli.py", line 274, in _main_run
bootstrap.run(file, is_hello, args, flag_options)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/bootstrap.py", line 326, in run
asyncio.run(run_server())
File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/bootstrap.py", line 314, in run_server
await server.start()
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/server/server.py", line 270, in start
start_listening(app)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/server/server.py", line 130, in start_listening
start_listening_tcp_socket(http_server)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/server/server.py", line 197, in start_listening_tcp_socket
http_server.listen(port, address)
File "/home/adminuser/venv/lib/python3.12/site-packages/tornado/tcpserver.py", line 183, in listen
sockets = bind_sockets(
^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/tornado/netutil.py", line 162, in bind_sockets
sock.bind(sockaddr)
PermissionError: [Errno 13] Permission denied
Traceback (most recent call last):
File "/home/adminuser/venv/bin/streamlit", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/cli.py", line 238, in main_run
_main_run(target, args, flag_options=kwargs)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/cli.py", line 274, in _main_run
bootstrap.run(file, is_hello, args, flag_options)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/bootstrap.py", line 326, in run
asyncio.run(run_server())
File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/bootstrap.py", line 314, in run_server
await server.start()
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/server/server.py", line 270, in start
start_listening(app)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/server/server.py", line 130, in start_listening
start_listening_tcp_socket(http_server)
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/server/server.py", line 197, in start_listening_tcp_socket
http_server.listen(port, address)
File "/home/adminuser/venv/lib/python3.12/site-packages/tornado/tcpserver.py", line 183, in listen
sockets = bind_sockets(
^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/tornado/netutil.py", line 162, in bind_sockets
sock.bind(sockaddr)
PermissionError: [Errno 13] Permission denied
[14:16:03] ❗️ Streamlit server consistently failed status checks
[14:16:03] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.