Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
There is a ground wire coming from the box and is attached to the green screw (grounded). There is also a ground wire coming out of the light fixture loose and not connected to anything. Is this ok?
No. If a ground wire is present, it has an intended function.
Pigtail the lamp and box wires together with the grounding conductor in the cable.
Required, but never shown