Skip to main content

Mail space not clearing after distributing account to mail node

Comments

6 comments

  • Daniel Feliciano

    Meanwhile, on the /home folder, I still have cpmove-**** folders from the distribution. They didn't get deleted and worse, they are being updated, not sure why nor by what.

    Also, I added a /home2 partition and most of the cpmove-** folder got replicated there....

    This is completely random and I don't even know where do I have logs for these operations.

    0
  • cPRex Jurassic Moderator

    Hey there!  I also saw your post about the logs for this service, and I'm not finding much activity beyond the connections made in the main cPanel log at /usr/local/cpanel/logs/error_log.

    It seems there are multiple things happening on this system so it would likely be best to create a ticket so this can be investigated.

    0
  • Daniel Feliciano

    Hey! Thank you for your reply.
    I don't have permission to give access to the server yet.
    Also, there isn't that much information on this topic online, so it would be super-helpfull if this could remain public and we could share exploratory steps in order to find a solution.

    I'm checking the process daily logs and I have this:

    rsync --server --sender -lDtpre.iLsfxC . /home/<USERACCOUNT>/   

    where <USERACCOUNT> is an actual user

    There shouldn't be any rsync as I'm not migrating anything. 

    There are RSYNCs like this both on the parent and the child node (actually, for different users but that could just be the % not ranking to show)

    Also, I deleted on cpmove-** folder (one of my own so I could test without risk) and it appeared again on the child node. It's one of the accounts that show rsync on the parent node.


    0
  • Daniel Feliciano

    I found this

    [2025-06-24 03:37:21 +0100] info [cpsrvd] Host: ['213.58.130.235'] HTTP Status: ['200'], User: ['root'], Token Name: ['PARENT-DO_NOT_DELETE-<SERVERNAME>-604btu21z5o'], Request: ['GET /websocket/TarBackup?directory=%2fhome2%2fcpmove-<USER_ACCOUNT>&setuid_username=root HTTP/1.1']

    on the /usr/local/cpanel/logs/api_tokens_log file

    <SERVERNAME> and <USER_ACCOUNT> are the actual server and user names (of course :)) 

    Why is this still being called by the parent node?


    Doing some analysis on the cpmove-** folder I can tell that the mail contents are recent and synced with the actual mail contents from account folder.

    So why is the child node creating a replica of the it's own contents? Other than killing my diskspace is not necessary.
    I understand that it could be a result of that API call from the parent node so, it's important to check why does the parent node keep calling that on the child node.

    Also, a good thing to highlight is that this replicated content from child node useraccount to child node cpmove-** folder doesn't get replicated to the parent node. The parent node does have mail content (and I think it shouldn't as it was distributed), but it's not sync with the child node.





    0
  • cPRex Jurassic Moderator

    I really don't know - this will need to be investigated directly on the server(s)

    0
  • Daniel Feliciano

    I caught the issue

    These API calls done one the child node

    GET /websocket/TarBackup?directory=%2fhome2%2fcpmove-<USERACCOUNT>&setuid_username=root HTTP/1.1

    Are being done by the BACKUP process on the parent node

    [2025-06-26 03:18:43 +0100] Performing “LinkedNodes” component....
    [2025-06-26 03:59:35 +0100] Completed “LinkedNodes” component.


    But, in fact, the parent node is not storing any recent emails from the child, on the backups

    So now there are two issues and these appear to be Cpanel bugs:
    - backup of the parent calls the TarBackup api endpoint that does a full replica of the account on the childnode and does something that is a mistery
    - that endpoint is not cleaning after itself, leaving the stage folder (a maybe a config)

     

    0

Please sign in to leave a comment.