Just FYI - the message says that the "system" segment is full, not the logsegment. The "system" segment is where worktable space is allocated. Advice to extend the log won't resolve your issue. Extend tempdb as:
alter database tempdb on <some_device> = <size>