Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self Signed Cert #272

Open
sipeham opened this issue Jan 15, 2025 · 1 comment
Open

Self Signed Cert #272

sipeham opened this issue Jan 15, 2025 · 1 comment

Comments

@sipeham
Copy link

sipeham commented Jan 15, 2025

Hello,

I am running a server via Docker with an Nginx reverse proxy and a self-signed certificate for HTTPS. However, when I try to use the Python SDK on my Windows PC, I encounter an SSL error, despite having installed the SSL certificate correctly.

I have already modified the clearml.conf file to set verify_certificate = false and configured the environment variables for CURL and REQUESTS with the certificate, but the issue persists.

I Also tried Bash for Windows

Code:

from clearml import Task, Logger
import matplotlib.pyplot as plt
import numpy as np
 
task = Task.init(project_name='TestClearML', task_name='Test connection to ClearML', reuse_last_task_id=False)
 
a= 2*3
 
print(f'2*3={a}')
 
m = np.eye(10, 10, dtype=np.float32)

plt.figure()
plt.imshow(m)
plt.show(block=False)

ERROR message:

InsecureRequestWarning: Certificate verification is disabled! Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning: Certificate verification is disabled! Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
ClearML Task: created new task id=d2e1a117a4134e349e3dec40d1bdde80
2025-01-15 12:12:44,963 - clearml.Task - INFO - No repository found, storing script code instead
ClearML results page: https://mlops.domain.com/projects/13c7fd65dda04359903c36f2dce2c730/experiments/d2e1a117a4134e349e3dec40d1bdde80/output/log
2*3=6
C:\clearmltest\.venv\Lib\site-packages\clearml\binding\matplotlib_bind.py:292: UserWarning:

FigureCanvasAgg is non-interactive, and thus cannot be shown
e target machine actively refused it'))
Failed uploading to https://mlops.domain.com:8081 (HTTPSConnectionPool(host='mlops.domain.com', port=8081): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001AB2DB3B410>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')))
Not uploading 1/1 events because the data upload failed
@ainoam
Copy link
Collaborator

ainoam commented Jan 19, 2025

@sipeham Does setting verify_certificate to the path to your certificate work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants