Unknown deployment error

I’m getting an error when deploying replit. It gives me a failed deployment and an orange “UNKNOWN” error.

There are no log records. it is for this replit

https://replit.com/@travelmail26/datadisplay#main.py

Any help is appreciated

What do you see when you click on the “Logs” tab in the deployment pane? Can you send a screenshot?

My guess from looking at the code is that it is crashing when you try to open the “index.html” file, which doesn’t exist.

1 Like

Here is the log. It’s from a previous failure. the subsequent failures aren’t showing up in the logs

5/14/2023, 10:23:29 AM exec [sh -c python3 main.py] error=exit status 1
5/14/2023, 10:23:29 AM main done, exiting
5/14/2023, 10:23:28 AM ret = _original_wrap_socket( File /nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/ssl.py, line 1439, in wrap_socket
5/14/2023, 10:23:28 AM context.load_cert_chain(certfile, keyfile) FileNotFoundError: [Errno 2] No such file or directory
5/14/2023, 10:23:28 AM return wrap_ssl_impl(sock, *a, **kw) File /home/runner/1a981760-be39-4818-878e-a883f6a578bd/venv/lib/python3.10/site-packages/eventlet/green/ssl.py, line 423, in wrap_socket
5/14/2023, 10:23:28 AM return GreenSSLSocket(sock, *a, **kw) File /home/runner/1a981760-be39-4818-878e-a883f6a578bd/venv/lib/python3.10/site-packages/eventlet/green/ssl.py, line 79, in new
5/14/2023, 10:23:28 AM Traceback (most recent call last): File /home/runner/1a981760-be39-4818-878e-a883f6a578bd/main.py, line 18, in
5/14/2023, 10:23:28 AM run() File /home/runner/1a981760-be39-4818-878e-a883f6a578bd/main.py, line 14, in run eventlet.wsgi.server(eventlet.wrap_ssl(eventlet.listen((‘0.0.0.0’, 5000)), certfile=‘cert.pem’, keyfile=‘key.pem’), app) File /home/runner/1a981760-be39-4818-878e-a883f6a578bd/venv/lib/python3.10/site-packages/eventlet/convenience.py, line 158, in wrap_ssl
5/14/2023, 10:23:28 AM forwarding local port 5000 to external port 1104
5/14/2023, 10:22:34 AM sending port close command
5/14/2023, 10:22:34 AM main done, exiting
5/14/2023, 10:22:34 AM Notifying port can be closed 5000
5/14/2023, 10:22:34 AM Closing channel0.0.0.0 address=0.0.0.0
5/14/2023, 10:22:34 AM exec [sh -c python3 main.py] error=exit status 1
5/14/2023, 10:22:31 AM eventlet.wsgi.server(eventlet.wrap_ssl(eventlet.listen((‘0.0.0.0’, 5000)), certfile=‘cert.pem’, keyfile=‘key.pem’), app) File /home/runner/1a981760-be39-4818-878e-a883f6a578bd/venv/lib/python3.10/site-packages/eventlet/convenience.py, line 158, in wrap_ssl return wrap_ssl_impl(sock, *a, **kw) File /home/runner/1a981760-be39-4818-878e-a883f6a578bd/venv/lib/python3.10/site-packages/eventlet/green/ssl.py, line 423, in wrap_socket return GreenSSLSocket(sock, *a, **kw) File /home/runner/1a981760-be39-4818-878e-a883f6a578bd/venv/lib/python3.10/site-packages/eventlet/green/ssl.py, line 79, in new ret = _original_wrap_socket( File /nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/ssl.py, line 1439, in wrap_socket
5/14/2023, 10:22:31 AM context.load_cert_chain(certfile, keyfile) FileNotFoundError: [Errno 2] No such file or directory
5/14/2023, 10:22:31 AM Traceback (most recent call last): File /home/runner/1a981760-be39-4818-878e-a883f6a578bd/main.py, line 18, in run() File /home/runner/1a981760-be39-4818-878e-a883f6a578bd/main.py, line 14, in run
5/14/2023, 10:22:31 AM forwarding local port 5000 to external port 1104

It looks like we are truncating some logs here – I’m going to make a task for us to address this. Meanwhile, I have looked into the logs backend directly on our end and it does look like the stack trace is indeed caused by the index.html file not being found. You need to either create the file or remove that line (line 14 of main.py). This same error should occur when you hit the Run button in the workspace, which will be a much faster way of testing your application before trying another deploy!

2 Likes