Scale, Dockge, second IP not available

Hi all,

I have scale 24.10.2 and Dockge installed as an “app”. I also have a single physical NIC on which I have two static IPs from my LAN. TrueNAS web interface is bound to the first IP allowing the second to remain “free”.

Apps within Dockge work by and large, however I’ve just added a Traefik to provide a proxy to them. In doing so, I’m trying to make Docker provide Traefik with access to :80 and :443 on the alias (second) IP. Traefik however errors:

listen tcp 192.168.1.41:8888: bind: cannot assign requested address

Any ideas what to do next? Yes, I’ve rebooted. Thanks!

Have made appropriate modifications to the /etc/network/interfaces file? Can you post the contents of that file?

Not touched that file. I made my edits via the web console.

That file loads everything in interfaces.d, which is itself an empty folder. Must be handled some other way.

Which /etc/network/interfaces are you referring to? The one in TrueNAS? In a container? Something else?

I can’t think of a situation where it’s advisable to change the contents of that file manually, in the current version of TrueNAS SCALE.

I mean in the host machine. There doesn’t seem to be a way in the TrueNAS web interface to add a second IP to a physical NIC. In debian this would be done by editing the /etc/network/interfaces file

Look at alias’s when you edit the network interface

Hi all,

Looks like almost had things correct. I had a light-bulb moment and realised in my docker-compose I had not specified the ip address within the port mappings (facepalm moment). As a result I think it was trying to bind to ports on interfaces that TrueNAS had already taken.

Once I had this fixed traefik started without issue. Now I need to add a DNS record but that’s trivial!

Hope this gives the fix to others in the same boat in the future.

Hi @James_Green,
I have been following this discussion from the get go as I am also interested in setting up traefic and playing with it.
My dell precision 7910 has two nics and I assume achieving this must be easier. Can you share the traefik compose file? I’m only just starting learning to make use of compose files and truenas scale examples help me better understand what is going on in there.