With this command:
viktor-cli.exe install ballast-nedam-heibaarheidsanalyse-viktor
I get the next messages:
Looking in indexes: https://ajp.van.dam%40ballast-nedam.nl:@developers.viktor.ai/api/v1/packages/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by âSSLError(SSLCertVerificationError(1, â[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)â))â: /api/v1/packages/viktor/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by âSSLError(SSLCertVerificationError(1, â[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)â))â: /api/v1/packages/viktor/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by âSSLError(SSLCertVerificationError(1, â[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)â))â: /api/v1/packages/viktor/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by âSSLError(SSLCertVerificationError(1, â[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)â))â: /api/v1/packages/viktor/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by âSSLError(SSLCertVerificationError(1, â[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)â))â: /api/v1/packages/viktor/
Could not fetch URL https://ajp.van.dam%40ballast-nedam.nl:@developers.viktor.ai/api/v1/packages/viktor/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=âdevelopers.viktor.aiâ, port=443): Max retries exceeded with url: /api/v1/packages/viktor/ (Caused by SSLError(SSLCertVerificationError(1, â[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)â))) - skipping
ERROR: Could not find a version that satisfies the requirement viktor==12.7.0 (from versions: none)
ERROR: No matching distribution found for viktor==12.7.0C:\Viktor\viktor-app-starter>viktor-cli.exe start ballast-nedam-heibaarheidsanalyse-viktor --max-memory=500
A newer version of viktor-cli is available. Use the command âviktor-cli.exe upgradeâ to upgrade from v0.10.0 to v0.18.1
Traceback (most recent call last):
File ââ, line 1, in
ModuleNotFoundError: No module named âconnectorâ
I see that you are currently using quite an old version of the CLI. I think it is a good idea to first update to the latest version and check if the problem persists.
viktor-cli upgrade
From the error message I think that you are currently behind a proxy from your company that inserts a self-signed root certificate:
Caused by SSLError(SSLCertVerificationError(1, â[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)â))
Can you check if this is indeed the case?
Open your browser and go to https://google.com
Find the issuer of the certificate. Click the locker icon near the address bar, click âConnection is secureâ. Firefox will show the CA behind âverified by:â. If you are using Chrome you will need to click âCertificate is validâ to show certificate information.
If the CA has the name of your proxy (e.g. Zscaler) instead of a known certification authority (Google Trust Services, DigiCert, Verisign, etc.), that means that your proxy has modified the certification chain.
A possible solution can be found here. Taking the second approach is probably easiest. Please note that this solution is only available if you use Python virtual environments as isolation mode (venv) instead of Docker, for this you will need to reconfigure your CLI as explained here.
You can try to follow the instructions below the CLI upgrade part of my reply. The link points to a part of the documentation that gives a solution for self-signed certificates. You will indeed need to reconfigure to venv to get it to work. Your IT department should also be able to help you set this up correctly.
From the error message I think that you are currently behind a proxy from your company that inserts a self-signed root certificate.
Caused by SSLError(SSLCertVerificationError(1, â[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)â))
Can you check if this is indeed the case?
Open your browser and go to https://google.com
Find the issuer of the certificate. Click the locker icon near the address bar, click âConnection is secureâ. Firefox will show the CA behind âverified by:â. If you are using Chrome you will need to click âCertificate is validâ to show certificate information.
If the CA has the name of your proxy (e.g. Zscaler) instead of a known certification authority (Google Trust Services, DigiCert, Verisign, etc.), that means that your proxy has modified the certification chain.
A possible solution can be found here . Taking the second approach is probably easiest. Please note that this solution is only available if you use Python virtual environments as isolation mode (venv) instead of Docker, for this you will need to reconfigure your CLI as explained here .
I configured viktor-cli to venv, and inserted a new generated token.
As told in the doc following the link to the second approach.
With âviktor-cli.exe install --app-dir ballast-nedam-heibaarheidsanalyse-viktorâ I still get the certificate errors.
An action for me?
Or an action for ICT?
Install the Python package pip-system-certs. This package patches Python at runtime to use the certificates from the system store instead of using the bundled certificates. It might be necessary to use the following flags when installing the pip-system-certs package with pip to prevent SSL errors: --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org
You can install the pip-system-certs with your system Python / pip (e.g. pip install pip-system-certs --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org in the command prompt). This will patch the certs from your system certificate store to be used with pip, so this should fix the self-signed certificate error. If it doesnât fix it, it is problably best to contact your IT department to assist you with this problem.
With the change in develop environment I need a new worker for GRLWEAP.
I downloaded an installation file for a new GRLWEAP worker.
During the installation I get the question: âPaste the content of your license fileâ.
You can create a worker license file from within your company environment. You do need administrator privileges in order to do that. Open de workers panel, click âcreate new workerâ and select GRLWEAP. After that you will get a modal where you can copy the contents of the license file.