Connection refused

Hello,
When I try to install chromium in my server I get the error message:

[user@server]# snap install chromium
error: cannot install “chromium”: Post https://api.snapcraft.io/v2/snaps/refresh: dial tcp
91.189.92.20:443: connect: connection refused

And yes, I have proxy set.

[user@server ]$ snap version
snap 2.43.3-1.el7
snapd 2.43.3-1.el7
series 16
rhel 7.6
kernel 3.10.0-957.el7.x86_64

journalctl -u snapd --no-pager
Mar 03 16:01:34 server snapd[30911]: api.go:986: Installing snap “chromium” revision unset
Mar 03 16:01:56 server snapd[30911]: stateengine.go:150: state ensure error: Get https://api.snapcraft.io/api/v1/snaps/sections: dial tcp 91.189.92.20:443: connect: connection refused
Mar 03 16:02:09 server snapd[30911]: daemon.go:540: gracefully waiting for running hooks
Mar 03 16:02:09 server snapd[30911]: daemon.go:542: done waiting for running hooks
Mar 03 16:02:09 server snapd[30911]: daemon stop requested to wait for socket activation

Somebody could help me?

Best regards
Artemis

How did you set the proxy? It’s possible that the proxy wasn’t set properly and thus isn’t used by snapd.

Hi @ijohnson
Thanks for you reply.
I use: export HTTPS_PROXY=“us\user”:pass@url:port
Best regards!

I found the solution!
I’ve set the proxy with "snap set system proxy.https=" and Chromium was installed!

Thank you so much @ijohnson for your message I could search info about it.