Problem with "millis"

Smajdalf:
static long previous = 0;

That was stupid - static variables are initialized only once.
But on the other hand you never update previous2 in the OP. Try to use ctrl+T to reformat the sketch. I think
if ((millis() - previous2)>=6000)
should not be part of
if ((millis() - previous) >= 8000).