Upgrading the SUSE12 SP1, URL is refused to connect

Hi All,

Kindly provide me solution for this,
linux-lhb2:~ # zypper up
Refreshing service ‘SUSE_Linux_Enterprise_Server_12_SP1_x86_64’.
Problem retrieving the repository index file for service ‘SUSE_Linux_Enterprise_Server_12_SP1_x86_64’:
Download (curl) error for ‘https://scc.suse.com/access/services/1311/repo/repoindex.xml?cookies=0&credentials=SUSE_Linux_Ent erprise_Server_12_SP1_x86_64’:
Error code: Connection failed
Error message: Failed to connect to scc.suse.com port 443: Connection refused

Check if the URI is valid and accessible.

I have modified proxy also.

Thanks!!

Hi arulramasamy,

Error message: Failed to connect to scc.suse.com port 443: Connection refused

I have right now verified that the SCC is technically reachable, as you can check by accessing https://scc.suse.com via browser.

Have you tried running “curl -v https://scc.suse.com” right from the command line? This should indicate that curl is contacting your proxy (“* Establish HTTP proxy tunnel to scc.suse.com:443”) - if it’s not, you’ll have to re-check your proxy settings (which may be overridden by local curl configuration).

Regards,
J

Something on your side may be blocking this URL from being allowed to
connect. I can get there from here (laptop) though I then get an ‘Access
denied’ error because I do not have credentials, so that’s expected, and
since it’s an application layer (layer seven) error, it implies that the
layer four stuff (‘Connection refused’ error is layer four) is working
properly.

You can test easily with this command:

netcat -zv scc.suse.com 443

#You may need to use the 'nc' command depending on your distro:
nc -zv scc.suse.com 443

From my system the following output is returned showing that the server
side is working, and that my client can reach it:

Connection to scc.suse.com 443 port [tcp/https] succeeded!


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…

On 08/06/16 12:44, arulramasamy wrote:
[color=blue]

Kindly provide me solution for this,
linux-lhb2:~ # zypper up
Refreshing service ‘SUSE_Linux_Enterprise_Server_12_SP1_x86_64’.
Problem retrieving the repository index file for service
‘SUSE_Linux_Enterprise_Server_12_SP1_x86_64’:
Download (curl) error for
https://scc.suse.com/access/services/1311/repo/repoindex.xml?cookies=0&credentials=SUSE_Linux_Ent
erprise_Server_12_SP1_x86_64’:
Error code: Connection failed
Error message: Failed to connect to scc.suse.com port 443: Connection
refused

Check if the URI is valid and accessible.

I have modified proxy also.[/color]

Other than echoing the advice of ab and jmozden can I also ask you to
say what you’ve done in relation to your proxy comment above.

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

Hi Simon,

Have a look on this,

linux-lhb2:~ # set | grep proxy
ftp_proxy=
gopher_proxy=
http_proxy=https://192.168.5.100:3128
https_proxy=
no_proxy=‘localhost, 127.0.0.1’
socks_proxy=
linux-lhb2:~ # netcat -zv scc.suse.com 443
netcat: connect to scc.suse.com port 443 (tcp) failed: Connection refused
linux-lhb2:~ # nc -zv scc.suse.com 443
nc: connect to scc.suse.com port 443 (tcp) failed: Connection refused

Thanks J

Hi ab,

I have tried ur comment, But I shows below error,

linux-lhb2:~ # netcat -zv scc.suse.com 443
netcat: connect to scc.suse.com port 443 (tcp) failed: Connection refused
linux-lhb2:~ # nc -zv scc.suse.com 443
nc: connect to scc.suse.com port 443 (tcp) failed: Connection refused

Thanks!!

Hi arulramasamy,

http_proxy=https://192.168.5.100:3128

I’m pretty sure there’s an extra “s” in that line :wink:

Regards,
J

HI j,

My proxy are working fine. Error is only what i defined before. Kindly help on that.

Thanks!

I have tried with and without “s”. But same error.

Hi arulramasamy,

[QUOTE=arulramasamy;32867]HI j,

My proxy are working fine. Error is only what i defined before. Kindly help on that.[/QUOTE]

“working fine” in terms of “the suggested curl test works and shows the proxy is contacted”, from within the same console session you’re trying to run “zypper up” from?

Regards,
J

On 06/08/2016 08:14 AM, arulramasamy wrote:[color=blue]

Hi ab,

I have tried ur comment, But I shows below error,

linux-lhb2:~ # netcat -zv scc.suse.com 443
netcat: connect to scc.suse.com port 443 (tcp) failed: Connection
refused
linux-lhb2:~ # nc -zv scc.suse.com 443
nc: connect to scc.suse.com port 443 (tcp) failed: Connection refused[/color]

Yes, this is because your system is not able to get out to that service.
You’ll need to check with your network folks to figure out why as,
clearly, it is accessible from other places. Perhaps you can tell us the
IP address resolved in your case, just in case you are hitting a different
box than we are. If the same as we hit, though, then your network folks
are blocking the connection. Whether or not your proxy is configured
correctly does not change that.

The IP address I see for this DNS entry, and the only one I get back, is
130.57.66.27


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…

Hi
AFAIK https needs populating as well…

Your proxy should should accept SUSE domain (or at least selected
sites used like updates.suse.com and scc.suse.com) without
authentication.

You need to populate proxy setting in YAST and to add two lines
with your proxy information to /etc/profile, for example:

    export http_proxy="http://192.168.5.100:3128/"
    export https_proxy="https://192.168.5.100:3128/"

As well as the /root/.curlrc

Try;

curl --verbose https://scc.suse.com
curl --verbose https://updates.suse.com

Hi Malcolm,

you’re right - even if curl falls back to http_proxy if no https_proxy is given, it slipped by my eye that the environment contains an entry for https_proxy, with empty value (or all blanks) - that may well be the root cause and should be checked in the curl config as well.

Regards,
J

Hi Maco,

Just i try both htto and https, below erros

linux-lhb2:~ # export http_proxy=“http://192.168.5.100:3128/
linux-lhb2:~ # export http_proxy=“https://192.168.5.100:3128/
linux-lhb2:~ # curl --verbose https://scc.suse.com

  • Rebuilt URL to: https://scc.suse.com/
  • Hostname was NOT found in DNS cache
  • Trying 130.57.66.27…
  • connect to 130.57.66.27 port 443 failed: Connection refused
  • Failed to connect to scc.suse.com port 443: Connection refused
  • Closing connection 0
    curl: (7) Failed to connect to scc.suse.com port 443: Connection refused
    linux-lhb2:~ # curl --verbose https://updates.suse.com
  • Rebuilt URL to: https://updates.suse.com/
  • Hostname was NOT found in DNS cache
  • Trying 192.229.145.211…
  • connect to 192.229.145.211 port 443 failed: Connection refused
  • Failed to connect to updates.suse.com port 443: Connection refused
  • Closing connection 0
    curl: (7) Failed to connect to updates.suse.com port 443: Connection refused
    linux-lhb2:~ #
    Thanks??

Hi arulramasamy,

please see that Malcolm suggested to properly set “https_proxy”.

I just tested myself: unsetting https_proxy does not make curl fall back to http_proxy.

Regards,
J

Hi All,

Thanks for all update. Now i can connect the SSC.SUSE.com. Thanks ton!!!

Thanks!!!