Try logging in again through tabcmd before publishing another workbook.
Does it happen right away or is there a delay. If there is NOT a delay, the linked solution is likely not what's going on (That article is addressing refreshing an extract, not publishing a workbook). What has changed recently in the environment? Have you tried logging in first as Matthais suggested?