Update-SPSolution fails for SharePoint 2016
12/03/2019
We have a nasty problem specific for SharePoint 2016 with Update-SPSolution command-let and currently we don’t have a permenant fix for it.
Basically the problem only happens if you run Update-SPSolution (for a specific wsp file) twice or more inside one OwsTimer Cycle period (Default is 24 hours). Timer service recycle timer job is responsible to reset owstimer process. (a.k.a. job-timer-recycle) .The default schedule is Daily at 6:00 AM. We are calling this 24 hours period “OwsTimer Cycle”.
You may face something similar exception below:
The workaround of this problem:
When ever you need to run Update-SPSolution commad-let “more than once” for “a single solution file” in one “timer service cycle” duration; you need to reset OWSTimer on all servers (“net stop sptimerv4” then “net start sptimerv4”) between each Update-SPSolution execution (for same wsp file)