Jails loose network access after a while

I am using iocage to manage my jails. When I created the jails, I assigned them an address on my LAN with a command similar to:
# iocage create tag=myjail ip4_addr="re0|192.168.1.201"

However, after a few hours the network in the jail disconnects. I can't think of a good way to explain it, but I can not reach services running in the jail and it does not show up on my network anymore. (However I can still get a shell to the jail with iocage console.) They still have an IP Address assigned to them when I use the jls(8) command.

If I restart the jail with # iocage stop and # iocage start, it works again for a few hours.
When stopping the jail, I get the following error message:
Code:
# iocage stop apache
* Stopping 904a6c7e-acf9-11e5-a1bc-1c872c60d5f1 (apache)
  + Running pre-stop         OK
  + Stopping services        OK
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
  + Removing jail process    OK
  + Running post-stop        OK

I don't even know where to start with fixing this problem, any help would be appreciated.
Thanks :)
 
2025 here - ten years after
  • RELEASE-14.2
  • Using Bastille 0.12.x for jail
  • Never had issues before upgrading from 14.1 and before to now 14.2
  • Now jail suddenly cannot be reached anymore by its IP nor can I access a service port within the jail via loopback interface 127.0.0.1
  • Debugging the app and the stack for days. - The app in the jail is completely fine, but it stopped serving on that port. The app seems not to have any issue. But the network breaks where the app was reachable.
  • have no idea how to proceed. But I think its a jail issue...
  • It happens after about 2h or so... sometimes bit more, sometimes less...
  • I have the feeling that it stops when the jail is not used for a certain time - because its like schrödingers katz... its all fine as long as I look at the app... when I go for lunch or so and come back, its down...

Any idea appreciated :)
Also I discussed that also in the elixir forum https://elixirforum.com/t/phoenix-s...ving-requests-with-no-error-reported/30094/34
 
Back
Top