Using incus tryit service getting Connection refused errors accessing web on centos and rockylinux instances

I thought I’d try incus today using the Linux Containers - Incus - Try it online service.

ubuntu@tryit:~$ incus launch images:centos/9-Stream/cloud c9c
Creating c9c
Starting c9c
ubuntu@tryit:~$ incus shell c9c
[root@c9c ~]# dnf search wget
CentOS Stream 9 - BaseOS                                                                                                                             0.0  B/s |   0  B     00:00    
Errors during downloading metadata for repository 'baseos':
  - Curl error (7): Couldn't connect to server for https://mirrors.centos.org/metalink?repo=centos-baseos-9-stream&arch=x86_64&protocol=https,http [Failed to connect to mirrors.centos.org port 443: Connection refused]
Error: Failed to download metadata for repo 'baseos': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect to server for https://mirrors.centos.org/metalink?repo=centos-baseos-9-stream&arch=x86_64&protocol=https,http [Failed to connect to mirrors.centos.org port 443: Connection refused]
[root@c9c ~]# curl https://www.google.com
curl: (7) Failed to connect to www.google.com port 443: Connection refused

However my incus install on my local PC (debian/bookworm host) this works fine.

Also not working on the tryit online service for a rockylinux/9 instance. No issues with debian or ubuntu instances using the tryit service either.

Yes. that’s normal, the demo server has extremely restricted internet access to avoid folks abusing the service to send spams or try to mine cryptocurrencies.

It basically only allows the internet access needed for the steps in the guide.

1 Like