Can't install app anymore

Hi team,

I am getting these errors when I try and install an app now. It was working previously but I think when I updated this started happening?

Creating virtual environment
Looking in indexes: https://___my username here_____@developers.viktor.ai/api/v1/packages/

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(136, '[X509: NO_CERTIFICATE_OR_CRL_FOUND] no certificate or crl found (_ssl.c:4293)'))': /api/v1/packages/viktor/

ERROR: Could not find a version that satisfies the requirement viktor==13.2.1 (from versions: none)
ERROR: No matching distribution found for viktor==13.2.1
Exiting because of an error: installation of the app failed

Any help would be greatly appreciated!

Hi, could you try the following command and post the result?

viktor-cli check-system
Starting VIKTOR system check
X Operating system internet access
Possible causes:
- No internet connection
X Docker runs
Possible causes:
- Docker is not started
X Docker using correct container
Possible causes:
- Docker is running windows containers instead of linux containers
X Docker access to user directory
Possible causes:
- C drive is not shared
- Credentials are changed
X Docker internet access
Possible causes:
- Container has no internet access
X Docker access to PyPI
Possible causes:
- PyPI certificate it not whitelisted
X Docker access to VIKTOR domains
Possible causes:
- VIKTOR certificate is not whitelisted
X Operating system access to PyPi
Possible causes:
- PyPI certificate it not whitelisted
X Operating system access to VIKTOR domains
Possible causes:
- VIKTOR certificate is not whitelisted
V Python is installed correctly

The system check has been completed with the following conclusions:
X Your system is NOT ready to use VIKTOR with isolation mode 'docker'
X Your system is NOT ready to use VIKTOR with isolation mode 'venv'

Thanks, I assume you are running in docker isolation? Seems like the Docker container cannot access the internet, a similar problem as Bart encounters: App doesn't start because of invalid credentials

Could you try to set the nameserver in the /etc/resolv.conf file to 1.1.1.1 ?

Thanks @khameeteman for the reply.

No I have been using venv not docker and I dont think I have changed this.
Sorry I don’t understand where to find this .conf to change it. Are you able to clarify please?

Alright, are you developing on Windows or Linux (or WSL2 on Windows)?

I’m using Windows

Could you please share the result of:

viktor-cli check-system --verbose
Starting VIKTOR system check
Executing ` curl -v -I --fail http://neverssl.com --max-time 5`:
*   Trying 34.223.124.45:80...
* Connected to neverssl.com (34.223.124.45) port 80 (#0)
> HEAD / HTTP/1.1
> Host: neverssl.com
> User-Agent: curl/7.79.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Wed, 29 Jun 2022 08:25:32 GMT
Date: Wed, 29 Jun 2022 08:25:32 GMT
< Server: Apache/2.4.53 ()
Server: Apache/2.4.53 ()
< Upgrade: h2,h2c
Upgrade: h2,h2c
< Connection: Upgrade
Connection: Upgrade
< Last-Modified: Wed, 29 Jun 2022 00:23:33 GMT
Last-Modified: Wed, 29 Jun 2022 00:23:33 GMT
< ETag: "f79-5e28b29d38e93"
ETag: "f79-5e28b29d38e93"
< Accept-Ranges: bytes
Accept-Ranges: bytes
< Content-Length: 3961
Content-Length: 3961
< Vary: Accept-Encoding
Vary: Accept-Encoding
< Content-Type: text/html; charset=UTF-8
Content-Type: text/html; charset=UTF-8

<
* Connection #0 to host neverssl.com left intact
V Operating system internet access
Executing ` docker version`:
X Docker runs
Possible causes:
- Docker is not started
Executing ` docker run python:3.7-buster`:
X Docker using correct container
Possible causes:
- Docker is running windows containers instead of linux containers
Executing ` docker run -v C:\Users\HAM97551:/usr/src/user python:3.7-buster ls /usr/src/user`:
X Docker access to user directory
Possible causes:
- C drive is not shared
- Credentials are changed
Executing ` docker run python:3.7-buster curl -v -I http://neverssl.com --max-time 5`:
X Docker internet access
Possible causes:
- Container has no internet access
Executing ` docker run python:3.7-buster curl -v -I --fail https://files.pythonhosted.org --max-time 5`:
X Docker access to PyPI
Possible causes:
- PyPI certificate it not whitelisted
Executing ` docker run python:3.7-buster curl -v -I https://viktor.viktor.ai --max-time 5`:
X Docker access to VIKTOR domains
Possible causes:
- VIKTOR certificate is not whitelisted
Executing ` curl -v -I --fail https://files.pythonhosted.org --max-time 5`:
*   Trying 151.101.29.63:443...
* Connected to files.pythonhosted.org (151.101.29.63) port 443 (#0)
* schannel: disabled automatic use of client certificate
* schannel: ALPN, offering http/1.1
* schannel: ALPN, server accepted to use http/1.1
> HEAD / HTTP/1.1
> Host: files.pythonhosted.org
> User-Agent: curl/7.79.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Connection: keep-alive
Connection: keep-alive
< Content-Length: 1853
Content-Length: 1853
< Content-Type: text/html
Content-Type: text/html
< Server: nginx/1.13.9
Server: nginx/1.13.9
< Accept-Ranges: bytes
Accept-Ranges: bytes
< Date: Wed, 29 Jun 2022 08:25:33 GMT
Date: Wed, 29 Jun 2022 08:25:33 GMT
< Age: 0
Age: 0
< X-Served-By: cache-iad-kiad7000029-IAD, cache-syd10164-SYD
X-Served-By: cache-iad-kiad7000029-IAD, cache-syd10164-SYD
< X-Cache: HIT, MISS
X-Cache: HIT, MISS
< X-Cache-Hits: 30, 0
X-Cache-Hits: 30, 0
< X-Timer: S1656491133.957473,VS0,VE199
X-Timer: S1656491133.957473,VS0,VE199
< Vary: Accept-Encoding
Vary: Accept-Encoding
< Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
< X-Frame-Options: deny
X-Frame-Options: deny
< X-XSS-Protection: 1; mode=block
X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
X-Content-Type-Options: nosniff
< X-Permitted-Cross-Domain-Policies: none
X-Permitted-Cross-Domain-Policies: none
< X-Robots-Header: noindex
X-Robots-Header: noindex

<
* Connection #0 to host files.pythonhosted.org left intact
V Operating system access to PyPi
Executing ` curl -v -I https://viktor.viktor.ai --max-time 5`:
*   Trying 35.157.12.144:443...
* Connected to viktor.viktor.ai (35.157.12.144) port 443 (#0)
* schannel: disabled automatic use of client certificate
* schannel: ALPN, offering http/1.1
* ALPN, server did not agree to a protocol
> HEAD / HTTP/1.1
> Host: viktor.viktor.ai
> User-Agent: curl/7.79.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Accept-Ranges: bytes
Accept-Ranges: bytes
< Cache-Control: no-cache
Cache-Control: no-cache
< Content-Length: 1090
Content-Length: 1090
< Content-Type: text/html
Content-Type: text/html
< Date: Wed, 29 Jun 2022 08:25:35 GMT
Date: Wed, 29 Jun 2022 08:25:35 GMT
< ETag: "62b1c42c-442"
ETag: "62b1c42c-442"
< Last-Modified: Tue, 21 Jun 2022 13:14:20 GMT
Last-Modified: Tue, 21 Jun 2022 13:14:20 GMT
< X-Content-Type-Options: nosniff
X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
X-Frame-Options: SAMEORIGIN
< Connection: keep-alive
Connection: keep-alive

<
* Connection #0 to host viktor.viktor.ai left intact
V Operating system access to VIKTOR domains
V Python is installed correctly

The system check has been completed with the following conclusions:
X Your system is NOT ready to use VIKTOR with isolation mode 'docker'
V Your system is ready to use VIKTOR with isolation mode 'venv'

So it seems the check passed this time, do you have stable internet connection?

You could try to install the app again to see if it works now

Exact same issue again unfortunately.

I have tried on a few different networks so I dont think it is just the office blocking it or something similar.

I will send you a DM

This issue was caused by an invalid certificate that was used for internal testing. This certificate caused pip to malfunction in general, resulting in not being able to install any Python package (with or without the viktor-cli). Removing the certificate solved the issue.

1 Like