Fix Messages Stuck Offline on OSX

Update: Nino (see comments) has written a blog post on how to automate this a little, read it at

If you have an issue with Messages on OSX being stuck in ‘Offline’ mode that won’t connect, open up Terminal and type the following:

This will give you output similar to:

The number you’re looking for is 341, which is the process ID of imagent.

Now, type:

and the process will be restarted, allowing you to change status to online.