The welding on a valve could be the issue behind a spectacular fiery show at Marsden Point on Monday night.
NZ Refining spokesman Greg McNeill said the site encountered an issue during the restart of the hydrocracker and as a safety precaution, the unit was shut down.
A huge fireball was seen at the plant, 30km southeast of Whangārei about 10pm on Monday, as the refinery's stack flared.
"The flaring is a safety precaution to allow the safe venting of refinery gases during the shutdown of this unit," McNeill said
The NZ Refining firefighting team was ready to act but was not needed. A weld failure on a newly installed isolation valve could be the problem.