The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel Theme X3 401 Error for selected accounts

Discussion in 'General Discussion' started by jamesterror, Feb 2, 2014.

  1. jamesterror

    jamesterror Member

    Joined:
    Feb 28, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    We are receiving a strange permission denied error (401) with all cPanel themes on one our web servers. When the user tries to login to their account at theirdomain.com/cpanel - the page loads incorrect with the console in both Chrome + Firefox saying "Failed to load resource: the server responded with a status of 401 (Access Denied)" - please see an exmaple here http://puu.sh/6HSSB.png

    It has been on going for sometime it seems but nobody has ever complained as it has only affected newly created accounts after a certain date.

    I have ran the command - /scripts/upcp --force - in an attempt to rebuild, but I assume being it is 401 there is a permission/allowance issue.

    Can anybody advise whether they have experienced this issue and how can we resolve?

    Our environment is individual web servers with 1 central remote mysql server.

    Thanks in advance.
    James
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. jamesterror

    jamesterror Member

    Joined:
    Feb 28, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hey Michael,

    Thanks for the reply.

    Please see the error below loading in the error_log file -

    Code:
    [2014-02-06 11:08:21 +0000] warn [cpanel] Cannot access feature list file: /var/                              cpanel/features/default: Permission denied at /usr/local/cpanel/Cpanel/Features/                              Cpanel.pm line 66
            Cpanel::Features::Cpanel::calculate_cache_file_name_and_maxmtime('wire',                               ARRAY(0x2b312f68b960)) called at /usr/local/cpanel/Cpanel.pm line 328
            Cpanel::_load_featurelists(HASH(0x2b312f689210), 1391684901) called at /                              usr/local/cpanel/Cpanel.pm line 141
            Cpanel::initcp(Cpanel=HASH(0x2b312f688f10)) called at cpanel line 648
    [2014-02-06 11:08:21 +0000] warn [cpanel] Cannot access feature list file: /var/                              cpanel/features/disabled: Permission denied at /usr/local/cpanel/Cpanel/Features                              /Cpanel.pm line 66
            Cpanel::Features::Cpanel::calculate_cache_file_name_and_maxmtime('wire',                               ARRAY(0x2b312f68b960)) called at /usr/local/cpanel/Cpanel.pm line 328
            Cpanel::_load_featurelists(HASH(0x2b312f689210), 1391684901) called at /                              usr/local/cpanel/Cpanel.pm line 141
            Cpanel::initcp(Cpanel=HASH(0x2b312f688f10)) called at cpanel line 648
    
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please let us know the output from the following commands:

    Code:
    cat /usr/local/cpanel/version
    stat /var
    stat /var/cpanel
    stat /var/cpanel/features
    ls -al /var/cpanel/features
    Thank you.
     
  5. jamesterror

    jamesterror Member

    Joined:
    Feb 28, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Please see below the outputs per each command requested -

    Code:
    cat /usr/local/cpanel/version
    11.42.0.5
    
    Code:
    stat /var
      File: `/var'
      Size: 4096            Blocks: 16         IO Block: 4096   directory
    Device: fd00h/64768d    Inode: 149389313   Links: 24
    Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2014-02-06 04:19:36.000000000 +0000
    Modify: 2014-02-07 08:10:05.000000000 +0000
    Change: 2014-02-07 08:10:05.000000000 +0000
    
    Code:
    stat /var/cpanel
      File: `/var/cpanel'
      Size: 12288           Blocks: 24         IO Block: 4096   directory
    Device: fd00h/64768d    Inode: 149422117   Links: 94
    Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2014-02-07 08:45:01.000000000 +0000
    Modify: 2014-02-07 12:04:31.000000000 +0000
    Change: 2014-02-07 12:04:31.000000000 +0000
    
    Code:
    stat /var/cpanel/features
      File: `/var/cpanel/features'
      Size: 4096            Blocks: 8          IO Block: 4096   directory
    Device: fd00h/64768d    Inode: 149721175   Links: 2
    Access: (0750/drwxr-x---)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2013-02-28 16:05:56.000000000 +0000
    Modify: 2013-10-10 22:06:40.000000000 +0100
    Change: 2013-10-11 00:45:02.000000000 +0100
    
    Code:
    ls -al /var/cpanel/features
    total 76
    drwxr-x---  2 root root  4096 Oct 10 22:06 ./
    drwxr-xr-x 94 root root 12288 Feb  7 12:05 ../
    -rw-r--r--  1 root root  1216 Feb 28  2013 bigstree_new
    -rw-r--r--  1 root root    12 Oct 10 22:06 default
    -rw-r--r--  1 root root     0 Oct 10 22:04 disabled
    -rw-r--r--  1 root root  1235 Feb 28  2013 liamplat_email
    -rw-r--r--  1 root root  1235 Feb 28  2013 liamplat_web
    -rw-r--r--  1 root root  1458 Jun 18  2013 razorgam_email
    -rw-r--r--  1 root root  1216 Feb 28  2013 riverson_Basic\ Blogger
    -rw-r--r--  1 root root  1216 Feb 28  2013 riverson_Everything
    -rw-r--r--  1 root root  1216 Feb 28  2013 riverson_Self\ Serve\ Basic
    -rw-r--r--  1 root root  1458 Aug 15 22:06 visionho_CloudFlareDisabled
    -rw-r--r--  1 root root     0 Aug 15 22:05 visionho_CloudFlareDisabled.cpaddons
    -rw-r--r--  1 root root  1244 Feb 28  2013 visionho_CloudFlareEnabled
    -rw-r--r--  1 root root  1458 Jul  1  2013 visionho_managed-wordpress
    -rw-r--r--  1 root root  1244 Feb 28  2013 visionho_Standard
    -rw-r--r--  1 root root  1440 Apr 22  2013 wickdsy1_Regular
    -rw-r--r--  1 root root  1244 Feb 28  2013 wire_all
    -rw-r--r--  1 root root  1229 Feb 28  2013 wire_basic
    
    Thanks in advance for your support.

    James
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please set the permissions on /var/cpanel/features to 0755. EX:

    Code:
    chmod 0755 /var/cpanel/features
    Let us know if the issue continues.

    Thank you.
     
  7. jamesterror

    jamesterror Member

    Joined:
    Feb 28, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Afraid this has not worked as the issue is still occurring - http://puu.sh/6PUiB.png

    Thanks,
    James
     
  8. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    What happens when you select another theme from that drop down?

    Have you cleared your browser cache, and/or tried another browser, just to rule out a browser issue?
     
  9. jamesterror

    jamesterror Member

    Joined:
    Feb 28, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hey,

    When I try to select another theme it automatically logs me out, taking me to the cPanel login screen with the x3 theme still in the URL. I have tried in Chome, Firefox and Internet Explorer on different machines.

    Thanks,
    James
     
  10. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Feel free to open up a support ticket using the link in my signature. Please post the ticket number here so we can update this thread accordingly.
     
  11. jamesterror

    jamesterror Member

    Joined:
    Feb 28, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hey,

    I signed up for an account - still no confirmation email after 30 mins :-(

    Thanks,
    James
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Check your "SPAM" folder if it exists to make sure the confirmation email is not in it. Please send an email to cs@cpanel.net for assistance with opening a ticket if you are still unable to create a Manage2 account.

    Thank you.
     
  13. jamesterror

    jamesterror Member

    Joined:
    Feb 28, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Cheers - all done yesterday, hopefully hear back soon.

    Still no luck with fixing the CSS / 401 error.

    Thanks,
    James
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  15. jamesterror

    jamesterror Member

    Joined:
    Feb 28, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hey,

    Ticket ID is - 4603617
     
  16. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    I'd be interested to know the outcome of this. We are having the same problem.
     
  17. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Going by the ticket mentioned, it seems it was/is an issue with CloudFlare.
     
  18. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To update, this issue was isolated to the use of Cloud Flare. The following Cloud Flare document might be of help to anyone else experiencing the same issue with Cloud Flare:

    Using Cloud Flare with cPanel

    Thank you.
     
Loading...

Share This Page