Support » Plugin: SiteGround Migrator » (wp-cli) Error: Can not initiate the transfer.

  • Resolved anibalardid

    (@jackalpret)


    Hi !
    I’m trying to use this plugin via wp-cli.

    I run the command:
    wp migrator start xxxx-xxxx-xxxx –email=ssss@sssss.com –allow-root

    (with correct email and token)

    And when I tried after that via wp-admin I get this error:
    Critical Environment Error
    We’ve encountered a critical error in your current hosting environment that prevents our plugin to complete the transfer.

    My site is on development hosting (demoswp.com)

    Best Regards !

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hi @jackalpret

    If you see such status, this means that either your database is too big and the current hosting limits are very low or you have very big files in your themes/plugins folders.

    Would it be possible to check if you have any backups or cached files in the folders I mentioned above? If so, please delete them and try again.

    If you have many posts, this means that the database is too big and there is nothing we can do, because the plugin hits the maximum execution time limit, set by your current host.

    If your plan at SiteGround is GrowBig or GoGeek, you can contact my colleagues, and they will migrate your site manually.

    Regards,
    Stanimir

    Hi @sstoqnov ! Thanks for your answer.
    The hosting is mine, my vps.
    How can I see the logs of this error ?
    I could extend timeout or check what you want

    • This reply was modified 9 months, 1 week ago by anibalardid.
    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey,

    You can check the migrator log at yourdomain.com/wp-content/siteground-migrator.log

    Let me know what errors you will find there.

    And yes, if you have control over the limits, please increase the max_execution_time and try again.

    Regards,
    Stanimir

    Thanks !
    I change max_execution_time from 60 to 600 … to check what happens.

    Now It’s running…

    @sstoqnov via wp-admin works fine.
    Via wpcli doesnt work
    I get new token after migrate via wp.admin

    so, i run this in cli:
    $ wp migrator start xxxxx-xxxxx-xxxx –email=xxxxx@gmail.com –allow-root
    Error: Can not initiate the transfer.

    In logs:

    
    [11-Apr-2019 14:17:14 UTC] INFO: La migración ha comenzando. Creando registro de ficheros... 
    [11-Apr-2019 14:17:14 UTC] INFO: Updating transfer id. 
    [11-Apr-2019 14:17:14 UTC] INFO: Updating transfer psk. 
    [11-Apr-2019 14:17:33 UTC] INFO: El dominio del sitio web ha sido cambiado a xxxxx.com.ar/test1234/ 
    

    I edit this file to add more info in error response:
    includes/class-siteground-migrator-cli.php

    And I get this:

    
    WP_Error Object
    (
        [errors] => Array
            (
                [http_request_failed] => Array
                    (
                        [0] => cURL error 28: Operation timed out after 5001 milliseconds with 0 bytes received
                    )
    
            )
    
        [error_data] => Array
            (
            )
    
    )
    
    

    I tried to add ‘timeout’ => 6000 to $args but I get the same response

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey,

    So as far I understand, the plugin if you initiate the transfer via wp-admin, but not with wp-cli, right?

    If so, we will check the cli command to see if there is anything that stops the transfer.

    Regards,
    Stanimir

    @sstoqnov yeah, thats the issue (via wp-admin works, via wp-cli doesnt)

    If you can check I really apreciate because I’m making some integration to move development sites directly to your hosting 😉

    thanks ! best regards !

    anibalardid

    (@jackalpret)

    Hi !
    could you check it ? any news ?

    best regards

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    We will look into it next week, sorry for the delay but it’s a holiday season here… Easter and all.

    @hristo-sg thanks for your answer !!
    No problem, I will wait for this update 😀

    best regards

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @jackalpret

    I’ve send you a pm in WordPress slack channel to discuss the issues you have.

    Regards,
    Stanimir

    Thanks. I answered on it 😉

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘(wp-cli) Error: Can not initiate the transfer.’ is closed to new replies.