Let $(R, \mathfrak m)$ be a local ring (not necessarily an integral domain) and $T$ be a free $R$-module of finite rank $n\geq 2$. Let $\rho: G \to \mathrm{Aut}_{R\text{-linear}}(T)$ be a represenation of a group G. Is it true that if the residual representation $\overline \rho: = \rho \textrm{ mod } \mathfrak m $ has no nonzero $G$-invariant, then the representation $\rho$ has no nonzero $G$-invariant? It seems that the answer is no in general. In fact, the short exact sequence
$0 \to \mathfrak mT \to T \to T/\mathfrak m T \to 0$
gives the exact sequence
$0 \to (\mathfrak mT)^G \to (T)^G \to (T/\mathfrak m T)^G.$
This gives
$(\mathfrak mT)^G \simeq (T)^G$
as $\overline \rho = T/\mathfrak m T$ has no nonzero $G$-invariant. So my question is equivalent to asking for an example of a representation $T$ over a local ring such that $\mathfrak mT$ has a nonzero $G$-invariant.