Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Transfer_sessions deleting?

Discussion in 'General Discussion' started by plesk4lyf, Jul 18, 2018.

Tags:
  1. plesk4lyf

    plesk4lyf Member
    PartnerNOC

    Joined:
    May 21, 2018
    Messages:
    12
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sydney
    cPanel Access Level:
    Root Administrator
    Hi Guys,

    Not sure if this is the right forum for this question.

    Do the sessions in /var/cpanel/transfer_sessions/ get deleted after a time period?

    I've noticed on a few servers that the logs of my previous transfers have disappeared.

    The records of the transfers also disappear from /var/cpanel/transfer_sessions/whmxfer.sqlite
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,827
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @plesk4lyf,

    The transfer session age is 30 days. At that point, the session expires and the log file is removed as part of /scripts/expunge_expired_transfer_sessions which runs during the maintenance phase of the nightly cPanel update process.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. plesk4lyf

    plesk4lyf Member
    PartnerNOC

    Joined:
    May 21, 2018
    Messages:
    12
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sydney
    cPanel Access Level:
    Root Administrator
    Hey @cPanelMichael,

    Thanks for that!

    The way you worded it raises some questions. It sounds like you're saying that transfer sessions aren't just when the transfer is in progress and the two servers are connected. Is that right?

    But then if the transfer session isn't expired, then why does cPanel generate another session ID for subsequent transfers from the same source server? Shouldn't it reuse the previous session ID?

    Apart from that, if there an option in WHM to not remove the previous transfer logs or should I make a cronjob to backup the transfer_sessions files for safekeeping?

    Thanks!
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,827
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I should have clarified that a bit more. The session itself won't last for 30 days. It's just the log file associated with the session that will exist for 30 days.

    There's no option to modify the length at which the transfer session log files are removed. You'd need to create a cron job to backup those files if you need them.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice