retspen / webvirtcloud

WebVirtCloud is virtualization web interface for admins and users
1.7k stars 372 forks source link

I have problem building docker version with latest source from git. #573

Closed ssbaksa closed 1 year ago

ssbaksa commented 1 year ago

This is shown when I try to build as I always do. As much as I can see Network is working. Manual testing pip3 shows errors to. pip3 is woking localy.

Am I missing something obvious?

Removing intermediate container 9a0f51d40810
 ---> 816a523e2c1e
Step 7/19 : COPY . /srv/webvirtcloud
 ---> 483ce56e002b
Step 8/19 : RUN chown -R www-data:www-data /srv/webvirtcloud
 ---> Running in 84c5d63e4f79
Removing intermediate container 84c5d63e4f79
 ---> 4e6606ec2b24
Step 9/19 : WORKDIR /srv/webvirtcloud
 ---> Running in 7fb1d61f5505
Removing intermediate container 7fb1d61f5505
 ---> 1132777c4b91
Step 10/19 : RUN python3 -m venv venv &&        . venv/bin/activate &&  pip3 install -U pip &&  pip3 install wheel &&   pip3 install -r conf/requirements.txt &&        pip3 cache purge &&    chown -R www-data:www-data /srv/webvirtcloud
 ---> Running in 7bb3a4f7d73c
Requirement already satisfied: pip in ./venv/lib/python3.10/site-packages (22.0.2)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pip/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/wheel/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/wheel/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/wheel/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/wheel/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/wheel/
ERROR: Could not find a version that satisfies the requirement wheel (from versions: none)
ERROR: No matching distribution found for wheel
The command '/bin/sh -c python3 -m venv venv &&         . venv/bin/activate &&  pip3 install -U pip &&  pip3 install wheel &&   pip3 install -r conf/requirements.txt &&      pip3 cache purge &&      chown -R www-data:www-data /srv/webvirtcloud' returned a non-zero code: 1
------------------------------------------------------------------------------------------------------------------------------------
root@testserver:~# python3 -m venv venv

root@testserver:~# . venv/bin/activate
(venv) root@testserver:~# pip3 install -U pip
Requirement already satisfied: pip in ./venv/lib/python3.10/site-packages (22.0.2)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pip/

(venv) root@testserver:~# pip3 install wheel
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/wheel/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/wheel/
^CERROR: Operation cancelled by user

(venv) root@testserver:~# pip3 list
Package    Version
---------- -------
pip        22.0.2
setuptools 59.6.0
(venv) root@testserver:~# pip3 show
WARNING: ERROR: Please provide a package name or names.
(venv) root@testserver:~# pip3 show pip
Name: pip
Version: 22.0.2
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: distutils-sig@python.org
License: MIT
Location: /root/venv/lib/python3.10/site-packages
Requires:
Required-by:
catborise commented 1 year ago

İ think it iş related with pypi website. Did you check if you can install any package?

ssbaksa commented 1 year ago

No I have not only double checked but triple checked after you stated that pypi is maybe culprit for this.

Well, it isn't pypi but my internet connection inside of the Test lab. Some sites are unreachable for HTTPS connection. Since I don't have any proxy or such device between inner and outside part of lab, only firewalls, maybe I have faulty rule. Or maybe faulty device since I didn't change much for few years. It is strange one because all other traffic works well and it isn't disturbed. Tnx for help. This ticket should be closed then.