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.

Account Suspension no longer works after EA3 -> EA4 migration

Discussion in 'EasyApache' started by si77hay, Apr 5, 2016.

  1. si77hay

    si77hay Member

    Joined:
    Sep 25, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I have a couple of domains on my server that were suspended.

    Today I performed the EasyApache migration from EA3 to EA4, using the script documented.

    Going through all of the domains to test their status, I noticed that the suspended domains are no longer suspended (ie they are showing the hosted website).

    I can confirm that the domains DNS do point to the server (one domain I own and is simply a test).

    I have tried various things:
    • Unsuspending and Suspending again via WHM
    • Unsuspending and Suspending again via CLI
    • Creating a new domain/account and suspending that
    • /usr/local/apache/conf/includes/account_suspensions.conf show the accounts
    As mentioned this was working fine, before the EA migration.

    Does anybody have any idea what may have caused this?

    Regards
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    This was a bug we fixed in 11.56 (case CPANEL-4833). Currently, we didn't migrate the account_suspensions.conf include file. You can copy this file to its new location and get this to work.

    Code:
    cp /usr/local/apache/conf/includes/account_suspensions.conf /etc/apache2/conf.d/includes/account_suspensions.conf
    /scripts/restartsrv_httpd[code]
    
    I hope this helps!
     
  3. si77hay

    si77hay Member

    Joined:
    Sep 25, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you for the extremely quick reply!

    The file already existed and are the same.

    I'm currently on WHM 11.54 (build 21). Looking within Home > cPanel > Upgrade to Latest Version, I do not have the option for WHM 11.56, only WHM 11.55.

    If this is simply a recognised bug, that has already been fixed, then I can live with it until I update. Just wanted to ensure it wasn't something else that I had done.

    Thanks for your help!
     
  4. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    You'll need to ensure the account_suspensions.conf include exists in /etc/apache2/conf.d/includes for it to work in EA4. If you've already copied / moved it, you should be good to go! The fix, if you've already migrated to EA4, won't help you because it's a migration bug.
     
  5. si77hay

    si77hay Member

    Joined:
    Sep 25, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    The file already exists:

    Code:
    cp /usr/local/apache/conf/includes/account_suspensions.conf /etc/apache2/conf.d/includes/account_suspensions.conf
    
    cp: `/usr/local/apache/conf/includes/account_suspensions.conf' and `/etc/apache2/conf.d/includes/account_suspensions.conf' are the same file
    
    I then restarted http.

    I then checked the domain and it was still visible. I unsuspended the domain and resuspended it but it still remains visible.

    Is there anything else I can check to provide you with some more info?

    This isn't a showstopper, just an annoyance. I've scanned the forums too and found that this didn't seem to be a huge issue.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Do you notice any error messages in /usr/local/cpanel/logs/error_log when suspending/unsuspending the account? Also, while unrelated to the issue you have reported, you can run "yum update" to ensure your EA4 packages are updated.

    Thank you.
     
  7. si77hay

    si77hay Member

    Joined:
    Sep 25, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    Curiously I checked the domain today and it's suspended!

    I went to Manage Account Suspension, and unsuspended the account and that worked. I then went to suspend the account again and that worked too?!?!
    I was tailing the error_log while doing this and nothing untoward came up.

    This could have been my fault, maybe caching but I was quite sure it was not.

    Thank you both for your input anyway.

    Regards
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I'm happy to see it's now working as expected. Thank you for updating us with the outcome.
     
  9. succinctapps

    succinctapps Registered

    Joined:
    Jun 25, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I have the same problem.

    I upgraded to EA4 and all sites that were previously suspended, now do not appear suspended. Tried all suggestions in this thread with no luck. The following gets written to the error log when I suspend a website:

    [2016-10-23 21:45:50 +0500] info [suspendacct] suspendacct::Notify Notification => ***@***** via EMAIL [eventimportance => Low (3)]
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello @succinctapps,

    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page