Curl error (56) while trying to install Zabbix packages on RHEL 8

cn flag

I followed the instructions here to install Zabbix 5.4 Mysql/Apache on my RHEL 8 server.

When i tried to install the package with sudo dnf install zabbix-server-mysql (or with yum) , i got this error :

Errors during downloading metadata for repository 'zabbix':
  - Curl error (56): Failure when receiving data from the peer for [Received HTTP code 407 from proxy after CONNECT]
Error: Failed to download metadata for repo 'zabbix': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
  • The thing is, if i try curl => i'm able to retrieve content.

  • In the other hand, if i try curl -x http://proxy_user:user_pw@my_proxy:8080 => i'm able to retrieve content too.

Proxy is set system-wide to access internet in /etc/environment => http_proxy="http://proxy_user:user_pw@my_proxy:8080/" https_proxy="http://proxy_user:user_pw@my_proxy:8080/"

every other repo (rhel repo, ansible repo etc...) are currently working, except for ZABBIX.

Did i miss anything in my current configuration ?

Thanks a lot for the help

cn flag

Ok after some researches i found out that RHEL repos (within /etc/yum.repos.d/) have proxy configured in every repo files. (maybe due to proxy-wide configuration ? i don't know...)

In my case :

  • i have to disable http_proxy & https_proxy in /etc/environment
  • i let proxy configured into every repos configuration files.

Then run sudo dnf update and sudo dnf install zabbix-server-mysql and everything runs smoothly ! (#auto-handshakes#)

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.