After updating to cPanel version 130.0.5, I am encountering an error related to require.js, specifically the 401 (Token Denied) error.
When I updated my cPanel to version 130.0.5, I started getting errors related to require.js every time I opened WHM. Most pages, such as the Terminal page or Mail Account creation page, do not load. In the console, I saw the following error:
require.js:1 Failed to load resource: the server responded with a status of 401 (Token Denied)
Additionally, I encountered this error message:
terminal:1 Refused to execute script from 'https://xxxx.com:2087/libraries/requirejs/source/require.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
How can I resolve this issue?
-
Hey there! Can you run this command on the server?
curl -s https://raw.githubusercontent.com/requirejs/requirejs/refs/heads/master/require.js -o /usr/local/cpanel/base/frontend/jupiter/libraries/requirejs/source/require.jsThat should resolve the issue for you!0 -
Since I couldn’t access the terminal on my server, I wasn’t able to do it at that time. Later, I spoke with the data center team, and they connected a KVM switch, so I was able to access the console and fix it. I don’t understand why this error happened. I’m worried it might occur again with the new update.
0 -
This error was something that was completely controlled on our end, as we didn't have the correct file in place as part of the update. I wouldn't expect this to happen again since we have resolved the issue, but if anything else does come up just let me know!
0
Please sign in to leave a comment.
Comments
3 comments