The token is not in the machines table
A 401 on dial-in means the master does not recognise the token this machine is using. The usual history is that the machine was removed in the dashboard, or deleted and added again, which mints a new token and leaves the old one sitting in the file on disk.