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

Failed create ccm as there is no direct internet access #755

Open
sunilkhokalay opened this issue Sep 7, 2023 · 0 comments
Open

Failed create ccm as there is no direct internet access #755

sunilkhokalay opened this issue Sep 7, 2023 · 0 comments

Comments

@sunilkhokalay
Copy link

Hello,

In my build system, there is no direct access to the internet.
I need to proxy it through Artifactory. in that case, how do we configure the proxying ?

Thanks.

Please find the logs below:-


14:35:57  Step 14/19 : RUN ccm create test -v 3.11.1
14:35:57   ---> Running in c82cb81b5ba7
14:37:19  09:07:14,21 ccm WARNING Downloading 3.11.1 failed, trying to build from git instead.
14:37:19  The error was: Invalid version 3.11.1 (underlying error is: <urlopen error [Errno 99] Cannot assign requested address>)
14:37:19  https://gitbox.apache.org/repos/asf/cassandra.git git:cassandra-3.11.1
14:37:19  09:07:14,22 ccm INFO Cloning Cassandra...
14:38:40  Traceback (most recent call last):
14:38:40    File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open
14:38:40  Building C* version git:cassandra-3.11.1 failed. Attempted to delete /root/.ccm/repository/gitCOLONcassandra-3.11.1 but failed. This will need to be manually deleted
14:38:40      h.request(req.get_method(), req.selector, req.data, headers,
14:38:40    File "/usr/lib/python3.9/http/client.py", line 1255, in request
14:38:40      self._send_request(method, url, body, headers, encode_chunked)
14:38:40    File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
14:38:40      self.endheaders(body, encode_chunked=encode_chunked)
14:38:40    File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
14:38:40      self._send_output(message_body, encode_chunked=encode_chunked)
14:38:40    File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output
14:38:40      self.send(msg)
14:38:40    File "/usr/lib/python3.9/http/client.py", line 950, in send
14:38:40      self.connect()
14:38:40    File "/usr/lib/python3.9/http/client.py", line 921, in connect
14:38:40      self.sock = self._create_connection(
14:38:40    File "/usr/lib/python3.9/socket.py", line 843, in create_connection
14:38:40      raise err
14:38:40    File "/usr/lib/python3.9/socket.py", line 831, in create_connection
14:38:40      sock.connect(sa)
14:38:40  OSError: [Errno 99] Cannot assign requested address
14:38:40  
14:38:40  During handling of the above exception, another exception occurred:
14:38:40  
14:38:40  Traceback (most recent call last):
14:38:40    File "/root/.local/lib/python3.9/site-packages/ccmlib/repository.py", line 348, in download_version
14:38:40      __download(archive_url, target, show_progress=verbose)
14:38:40    File "/root/.local/lib/python3.9/site-packages/ccmlib/repository.py", line 522, in __download
14:38:40      u = urllib.request.urlopen(url)
14:38:40    File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
14:38:40      return opener.open(url, data, timeout)
14:38:40    File "/usr/lib/python3.9/urllib/request.py", line 517, in open
14:38:40      response = self._open(req, data)
14:38:40    File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
14:38:40      result = self._call_chain(self.handle_open, protocol, protocol +
14:38:40    File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
14:38:40      result = func(*args)
14:38:40    File "/usr/lib/python3.9/urllib/request.py", line 1375, in http_open
14:38:40      return self.do_open(http.client.HTTPConnection, req)
14:38:40    File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open
14:38:40      raise URLError(err)
14:38:40  urllib.error.URLError: <urlopen error [Errno 99] Cannot assign requested address>
14:38:40  
14:38:40  During handling of the above exception, another exception occurred:
14:38:40  
14:38:40  Traceback (most recent call last):
14:38:40    File "/root/.local/lib/python3.9/site-packages/ccmlib/repository.py", line 97, in setup
14:38:40      download_version(version, verbose=verbose, binary=binary)
14:38:40    File "/root/.local/lib/python3.9/site-packages/ccmlib/repository.py", line 371, in download_version
14:38:40      raise ArgumentError(msg)
14:38:40  ccmlib.common.ArgumentError: Invalid version 3.11.1 (underlying error is: <urlopen error [Errno 99] Cannot assign requested address>)
14:38:40  
14:38:40  During handling of the above exception, another exception occurred:
14:38:40  
14:38:40  Traceback (most recent call last):
14:38:40    File "/bin/ccm", line 112, in <module>
14:38:40      cmd.run()
14:38:40    File "/root/.local/lib/python3.9/site-packages/ccmlib/cmds/cluster_cmds.py", line 135, in run
14:38:40      cluster = Cluster(self.path, self.name, install_dir=self.options.install_dir, version=self.options.version, verbose=self.options.verbose)
14:38:40    File "/root/.local/lib/python3.9/site-packages/ccmlib/cluster.py", line 66, in __init__
14:38:40      repo_dir, v = self.load_from_repository(version, verbose)
14:38:40    File "/root/.local/lib/python3.9/site-packages/ccmlib/cluster.py", line 85, in load_from_repository
14:38:40      return repository.setup(version, verbose)
14:38:40    File "/root/.local/lib/python3.9/site-packages/ccmlib/repository.py", line 109, in setup
14:38:40      clone_development(GIT_REPO, version, verbose=verbose)
14:38:40    File "/root/.local/lib/python3.9/site-packages/ccmlib/repository.py", line 268, in clone_development
14:38:40      raise e
14:38:40    File "/root/.local/lib/python3.9/site-packages/ccmlib/repository.py", line 168, in clone_development
14:38:40      assert out == 0, "Could not do a git clone"
14:38:40  AssertionError: Could not do a git clone
14:38:40  The command '/bin/sh -c ccm create test -v 3.11.1' returned a non-zero code: 1
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

1 participant