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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unexpected return value of get_transfer_session_state

Discussion in 'cPanel Developers' started by Tagir Gumerov, Mar 28, 2018.

Tags:
  1. Tagir Gumerov

    Tagir Gumerov Registered

    Joined:
    Mar 28, 2018
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Saint Petersburg, Russia
    cPanel Access Level:
    Root Administrator
    Hello,

    I use get_transfer_session_state function and expect to see one of the following results
    (in the returned JSON --> 'data' --> 'state_name'):
    • TRANSFER_PENDING
    • TRANSFER_INPROGRESS
    • RESTORE_PENDING
    • RESTORE_INPROGRESS
    • PENDING
    • COMPLETED
    • FAILED
    But I get "RUNNING" and "COMPLETED".
    I found this document, and there is also nothing about "RUNNING".

    I don't understand where I'm wrong, explain, please.

    P.S. I'm using CLI and output in JSON, cpanel v68.

    Best regards, Tagir Gumerov.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It looks like you are checking the overall status of the transfer itself (all accounts included as part of the transfer). Thus, the output you see corresponds the status of the transfer as a whole instead of the individual account's transfer status. Can you verify what method you are using to obtain the transfer session ID?

    Thank you.
     
  3. Tagir Gumerov

    Tagir Gumerov Registered

    Joined:
    Mar 28, 2018
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Saint Petersburg, Russia
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm using create_remote_root_transfer_session function. I think, you are right.

    Thank you.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  5. Tagir Gumerov

    Tagir Gumerov Registered

    Joined:
    Mar 28, 2018
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Saint Petersburg, Russia
    cPanel Access Level:
    Root Administrator
    Hello,

    Thanks for the suggestion option.
    However, I noticed that the documentation was changed. You can compare the current version and the "saved" version in my first post in this topic.

    I think my question is resolved.
     
    cPanelMichael likes this.
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It looks like the document was updated to include the RUNNING state per internal case DOC-10568.

    Thank you.
     
Loading...

Share This Page