Question re: PV grounding to combiner in attic.

I plan on having two strings of six panels each on the roof of my house. Both strings will share the same racking. I plan on running two nylon JBOXes through the sloped roof, one for each string. The strings will be combined together downstream using a combiner in the attic. This combiner will naturally be grounded back to the inverter.
My question is straightforward: given that the rack will have a shared ground, do I run a single grounding wire through just one of the two JBOXes, or do I run dual grounding wires (one grounding wire per JBOX)?
My question is straightforward: given that the rack will have a shared ground, do I run a single grounding wire through just one of the two JBOXes, or do I run dual grounding wires (one grounding wire per JBOX)?
My concern: Won't running two grounds present a possible "ground loop"?
Comments
You have the + and - lines from the panels/Combiner back to the Solar charge controller / GT Inverter panel inputs.
In general, you want the +/- lines to run from the array/combiner box directly to the Panel Input. Different controller mfg. have different implementations, and running +/- wires "unconnected to anything else" is always the "right answer.
For Schneider charge controllers, they need +/= wires ungrounded because the Charge controller measures current in the negative lead (at least the older models of MPPT controller) if you connect to green wire or battery ground directly to the panels, the controller will not MPPT correctly (can't measure array current correctly).
Others like the older (and current?) Outback controllers... the Vpanel - is directly connected to Battery -.
For some GT inverters--The array Vpanel input may be floating, or even "directly" connected the 240 VAC utility power and will short circuit the GT inverter....
Then you have Green Wire grounding. This is to keep the panel frames/racking from becoming "electrically" hot from a +/- short circuit to ground. This can be through a greenwire pulled from the array with the +/- all the way to your home electrical/grounding point...
And there is Lightning Grounding: OR, especially if you are in an area that has chances for direct (or indirect lightning) strikes, you need to run a ground (suggest 6 AWG minimum from panels to racking (via approved ground clips) and metal combiner box (if used) from the roof to the side of the building and down to a ground rod driven outside the exterior wall/foundation. You do not want to "bring" lightning energy into your home... The way lighting works (like a low frequency radio wave) and if you bring it into the building, it "naturally" wants to migrate (i.e., arc) to the outside edge of the building.
The ground rod at the base of the wall/array should also have a 6 AWG wire that runs from that "local array ground rod" back to the home's ground rod/cold water connection (and eventually to the AC Neutral+Ground bus bar). This second wire between the two ground rods/points is to provide an AC current path to "trip" any breakers/fuses if there is a "hot to ground" short circuit in the system.
If you have two ground rods that are not connected together, they will work fine for Lightning (a few million volts "don't care about some ground resistance). However, shorting DC or or AC to "metal" will not generally trip a circuit breaker or fuse (a typical short to "ground rods" may only allow 4-8 amps of fault current--Not enough current to even trip a 15 Amp breaker). The 6 AWG cable between the two (or more) ground rods/grounding system will allow the >>15 amps to flow and trip any protective breakers/fuses.
-Bill
And you can put surge suppressors at the box as the solar power enters the building...
https://www.solar-electric.com/residential/circuit-protection/surge-protection.html
If your home is not in a high probability of lightning area--Then the lightning grounding is much less important.
https://ecle.biz/lightning-risk-map/
-Bill