Timeout issues on OEL

Jenkins setup:

getting error: Errors during downloading metadata for repository ‘jenkins’:

Curl and wget works $ wget https://pkg.jenkins.io/redhat-stable/repodata/repomd.xml --2023-11-14 09:50:29-- https://pkg.jenkins.io/redhat-stable/repodata/repomd.xml Resolving www-proxy.us.oracle.com (www-proxy.us.oracle.com)... 10.68.69.53 Connecting to www-proxy.us.oracle.com (www-proxy.us.oracle.com)|10.68.69.53|:80... connected. Proxy request sent, awaiting response... 200 OK Length: 2986 (2.9K) [application/xml] Saving to: ‘repomd.xml’

$ wget https://pkg.jenkins.io
--2023-11-14 09:50:10--  https://pkg.jenkins.io/
Resolving www-proxy.us.oracle.com (www-proxy.us.oracle.com)... 10.68.69.53
Connecting to www-proxy.us.oracle.com (www-proxy.us.oracle.com)|10.68.69.53|:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 3329 (3.3K) [text/html]
Saving to: ‘index.html.2’

index.html.2                                                       100%[=============================================================================================================================================================>]   3.25K  --.-KB/s    in 0s

2023-11-14 09:50:13 (46.1 MB/s) - ‘index.html.2’ saved [3329/3329]

Hello @hasibulhassan and welcome to this community. :wave:

Is your machine behind a proxy? It looks like so.

Thanks for your response. Yes, it was behind proxy, however we have fixed the issue, by properly configuring the proxies and the Jenkins is working as expected.

1 Like

There is another issue persisting issue since setup, as we try to integrate with ALM git repo, the error it gives, is as follows

`Failed to connect to repository : Command "git ls-remote -h -- ssh://user.name%40github.com@alm.domain.com/projects/xxxx.git HEAD" returned status code 128:
stdout: 
stderr: Could not create directory '/home/jenkins/.ssh'. 
Host key verification failed. 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
`

now on the local jenkins server we do not have access to /home rather use alternate directory , how can we overcome the following error

It looks like Jenkins is trying to create a directory at /home/jenkins/.ssh but it doesn’t have the necessary permissions.
This directory is typically used to store SSH keys for secure communication with Git repositories.

To overcome this issue, you could maybe configure Jenkins to use a different directory for storing SSH keys.
This does not sound like the best idea ever, as I would prefer to get your original problem solved, not a workaround. :person_shrugging:

This can be done by setting the JENKINS_HOME environment variable to point to a directory where Jenkins has write access.