I work with a Geoserver version 2.25.2 that is installed on a Windows server.
I created the layer group A that contains 5 layers. The layer group A works fine in the Layer Preview. I checked the WMS GetCapabilities and the layer group was available. Then I opened QGIS (version 3.28.4) and I saw that I could download the layer group A as a WMS from my Geoserver and again everything was fine.
I needed a new layer group that I named B. Layer group B is composed of some layers and layer group A. Again, everything is fine in the Layer Preview for both layer group A and B.
Now if I check the WMS GetCapabilities, the layer group A has disapeared. When I connect Qgis to the WMS service of my Geoserver, the layer group A is no longer available too.
I deleted the layer group B and now the layer group A is available again in the WMS GetCapabilities.
I don’t know if a known bug or if it’s a setting that must be changed ? It is really necessary that both layer groups A and B are available in the WMS GetCapabilities
I previously used a Geoserver (version 2.7.1) and I never had this problem.
I am not sure if it is a bug or not, but I can suggest that you take a look at Layer Group modes Layer Groups — GeoServer 2.26.x User Manual which sounds like it is playing a role in your config.
The documentation helped but I don’t understand how the Geoserver 2.25.2 behaves compared to the Geoserver 2.7.1. In the version 2.7.1, all our layer groups were set to single mode. If I do that in the version 2.25.2, it does not behave the same way.
I switched my layer group B from single mode to Named Tree. I can now download the layer group A that is inside my layer group B as a WMS layer
using QGIS. It fixed part the of the problem.
We have a winner - there are some changes to WMS 1.3.0 Capabilities to do with reporting errors or skipping misconfigured things.
GEOS-11280 Short-circuit request processing upon ClientStreamAbortedException when SKIP_MISCONFIGURED_LAYERS is true
@groldan was responsible for this one, and although it is marked resolved, it did not indicate the version so it was not included in the release notes.
Thanks for reporting this problem clearly, so we could figure out there is an issue. I am going to reopen this ticket and we can work with Gabe to see what happened.