Why I Cannot access eclipse download site from docker container (connection refused)? - docker

I am trying to install eclipse inside a docker container (Ubuntu 22.04, JDK 17)
I am trying to use the oomph installer to install the eclipse. Seems like some of the eclipse download sites cant be accessed.
Errors like:
!MESSAGE Connection to https://download.eclipse.org/releases/2023-03/202301131000/p2.index failed on Connect to https://download.eclipse.org:443 [download.eclipse.org/198.41.30.199] failed: Connection refused
!MESSAGE Connection to https://download.eclipse.org/oomph/updates/milestone/latest/compositeContent.jar failed on Connect to https://download.eclipse.org:443 [download.eclipse.org/198.41.30.199] failed: Connection refused. Retry attempt 0 started
!MESSAGE Connection to https://download.eclipse.org/oomph/updates/milestone/latest/compositeArtifacts.jar failed on Connect to https://download.eclipse.org:443 [download.eclipse.org/198.41.30.199] failed: Connection refused. Retry attempt 0 started
!MESSAGE Connection to https://download.eclipse.org/technology/epp/packages/2023-03/202301121200/features/org.eclipse.epp.package.common.feature_4.27.0.20230112-0751.jar failed on Connect to https://download.eclipse.org:443 [download.eclipse.org/198.41.30.199] failed: Connection refused. Retry attempt 0 started
!MESSAGE Connection to https://download.eclipse.org/technology/epp/packages/2023-03/202301121200/features/org.eclipse.epp.package.java.feature_4.27.0.20230112-0751.jar failed on Connect to https://download.eclipse.org:443 [download.eclipse.org/198.41.30.199] failed: Connection refused. Retry attempt 0 started
!MESSAGE Failure reporting download statistics to URL: https://download.eclipse.org/stats/technology/epp/packages/2023-03-M1/org.eclipse.epp.package.common/4.27.0.20230112-0751
!MESSAGE Unable to connect to repository https://download.eclipse.org/stats/technology/epp/packages/2023-03-M1/org.eclipse.epp.package.common/4.27.0.20230112-0751
!MESSAGE Connection to https://eclipse.mirror.rafal.ca/releases/2023-03/202301131000/plugins/org.eclipse.mylyn.wikitext.asciidoc.ui_3.0.42.202201072301.jar failed on Connect to https://eclipse.mirror.rafal.ca:443 [eclipse.mirror.rafal.ca/207.210.46.249] failed: Connection refused. Retry attempt 0 started
But these URLs I can access on the host machine. Inside docker container I cannot access them. Furthermore, I can access and download many other files from inside docker container like jdk from oracle, oomph installer file, eclipse tar file etc.
Why this error?

Related

error while connecting to bitnami/harbor from minikube for local setup from mac based system

Error: INSTALLATION FAILED: Kubernetes cluster unreachable: Get "https://127.0.0.1:50220/version": net/http: TLS handshake timeout

Cannot run kebectl get nodes command. When I run that it gives error saying unable to connect to the server

When I run kubectl get nodes command, it shows the below error.
Error: Unable to connect to the server: dial tcp 127.0.0.1:62574: connectex: No connection could be made because the target machine actively refused it.

GnuTLS: The TLS connection was non-properly terminated. Unable to establish SSL connection

Trying to install terraform on my docker container using wget. I am getting the below error message, please advise.
GnuTLS: The TLS connection was non-properly terminated. Unable to establish SSL connection

Error: Client network socket disconnected before secure TLS connection was established when attach to running container -Docker remote container

I use remote container in vscode to attach project to running container. But i received error bellow:
[4891 ms] Start: Downloading VS Code Server
[125054 ms] Error: Client network socket disconnected before secure TLS connection was established
at connResetException (internal/errors.js:570:14)
at TLSSocket.onConnectEnd (_tls_wrap.js:1361:19)
at Object.onceWrapper (events.js:312:28)
at TLSSocket.emit (events.js:228:7)
at endReadableNT (_stream_readable.js:1185:12)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
When i create remote container via devcontainer.json also gave this error. How to fix it
Thank you so much
I did it, i need to config proxy authen for vscode in setting.

Connect to localhost slave node from Jenkins docker container

I do want to connect my Jenkins master slave in a docker container to my localhost machine node slave(to be accurate my macOS High Sierra).
Here you are the steps I followed:
Run docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts.
Go to Manage Jenkins. Click on Manage Nodes.
Launch method, select: Launch slave agents on Unix machines via SSH
Host: 192.168.1.33, 127.0.0.1, localhost, 0.0.0.0
Credentials: Username and password or SSH username with private key.
I don't know what ip I should put in the Host field and which option to select in Credentials field. I've already tried several combinations but I don't get any result. In addition, when I make a ping from my container to my localhost, it is always successful.
How Can I setup the Host and Credentials fields in order to connect to my local host node slave without having to use the Launch slave agents via Java Web Start
I always get this error:
SSHLauncher{host='192.168.1.33', port=22, credentialsId='4bc9a817-edae-4806-bc55-2f5b4f5b03e7', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=210, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.KnownHostsFileKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true}
[09/23/18 21:24:39] [SSH] Opening SSH connection to 192.168.1.33:22.
Connection refused (Connection refused)
SSH Connection failed with IOException: "Connection refused (Connection refused)", retrying in 15 seconds. There are 10 more retries left.
Connection refused (Connection refused)
SSH Connection failed with IOException: "Connection refused (Connection refused)", retrying in 15 seconds. There are 8 more retries left.
Connection refused (Connection refused)
SSH Connection failed with IOException: "Connection refused (Connection refused)", retrying in 15 seconds. There are 9 more retries left.
Connection refused (Connection refused)
SSH Connection failed with IOException: "Connection refused (Connection refused)", retrying in 15 seconds. There are 7 more retries left.
Is your slave node listening on port 22 for SSH connections ?
If yes, are you able to telnet 192.168.1.33 22 from Jenkins master ?
If no, install a basic SSH server on your slave node like open
openssh and try again ?
I just got this working with a Jenkins Docker container with my mac as the slave node.
For the Host field enter the output of the "hostname" command when you run it on terminal. To set the credential field, make a Jenkins credential with your username and password for your mac (whatever credential works when you run ssh localhost on terminal).
I also have the field "Host Key Verification Strategy" set to "non verifying Verification Strategy." But you may not need this if you manually run the ssh command on your terminal and accept the key

Resources