We have a SharePoint 2013 farm and were retracting a solution; we were using Chrome browser. In the browser our site was open in two tabs and in one tab was central admin. When we were trying to retract a solution through central admin we were getting an “Access Denied” error. We are logged in with user having Administrator rights so it seems not to be a user permission issue.
SharePoint-2013-Hosting
It was a very small fix but I thought to share, as maybe it can save you time.

Error and Stack Trace
Access denied. Only machine administrators are allowed to create administration service job definitions of type

It seems to be a weird error. No user permission issue.

We Googled a lot and then got the below article related to the same issue but not the exact one.

https://social.technet.microsoft.com/wiki/contents/articles/30757.sharepoint-troubleshooting-access-denied-only-machine-administrators-are-allowed-to-create-administration-service-job.aspx

In the above article the exact issue isn’t mentioned but at least we got an idea. We have closed the browser, opened the central admin again with the run as administrator option, tried again and it worked like a charm.

SharePoint 2013 Hosting Recommendation

HostForLIFE.eu’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options

recommended windows hosting