Support » Plugin: SiteGround Migrator » Plugin Cannot Create Archives

  • Resolved theduffmaster

    (@theduffmaster)


    Hi,
    I have been trying to get this plugin to work for awhile now and cannot seem to get it to work. I am trying to migrate a locally hosted wordpress site by setting up a tunnel to it through ngroc. Siteground seems to be able to connect to the site, but the plugin is unable to create a tar archive in the folder with a lot of numbers and letters (1555446124-e8818e964e4608cc92d2db7dbc34acfa69b1cd0d). I have tried playing with permissions and giving write access to the tunnel. At first I got this error:

    [17-Apr-2019 03:43:46 UTC] INFO: Transfer started. Creating archives of files... 
    [17-Apr-2019 03:43:46 UTC] INFO: Updating transfer id. 
    [17-Apr-2019 03:43:46 UTC] INFO: Updating transfer psk. 
    [17-Apr-2019 03:43:48 UTC] INFO: Site domain to be changed to salvatoricenter.org/ 
    [17-Apr-2019 03:43:50 UTC] INFO: Transfer started. Creating archives of files... 
    [17-Apr-2019 03:43:51 UTC] INFO: Critical Environment Error 
    [17-Apr-2019 03:43:51 UTC] ERROR: Array
    (
        [type] => 1
        [message] => Uncaught PharException: phar "/Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/uploads/1555446124-e8818e964e4608cc92d2db7dbc34acfa69b1cd0d/plugins/chosen-pro.tar" unable to create temporary file in /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php:205
    Stack trace:
    #0 /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php(205): PharData->buildFromDirectory('/Applications/X...')
    #1 /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php(146): Siteground_Migrator_Files_Service->create_encrypted_archive('/plugins/chosen...')
    #2 /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-background-process.php(55): Siteground_Migrator_Files_Service->prepare_archive
        [file] => /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php
        [line] => 205
    )

    Then, after figuring out how to give write permission to the server, I got no error anymore but the plugin would hang on creating archive and the error log would produce nothing. No archive was ever created, and the folders stayed the same size. Any thoughts on what is happening?

Viewing 13 replies - 1 through 13 (of 13 total)
  • theduffmaster

    (@theduffmaster)

    Also, to add, I was using XAMPP to locally host it, which was using an Apache web server.

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @theduffmaster

    This solution is not suitable for migrating localhost WordPress sites or for Full Multisite installations (separate Multisite blogs are fine).

    Regards,
    Stanimir

    theduffmaster

    (@theduffmaster)

    Hi Stanimir,
    Thank you very much for the resposne! So, what I have done, is I have essentially “hosted” my website for this operation. I might be wrong, but I do not think it being originally locally hosted is the problem.

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    hey @theduffmaster

    Could you please check the logs for any errors? Also how big is your site (wp-content folder and database)? Maybe you should check the free space your temp folder has.

    We haven’t tested the plugin with ngroc and I’m not sure how it will work in such case.

    Regards,
    Stanimir

    theduffmaster

    (@theduffmaster)

    Hi,
    Thank you for the response!
    Well the Log does not show anything, I have checked the POST requests and it seems this error comes up

    <br />
    <b>Fatal error</b>:  Uncaught PharException: phar &quot;/Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/uploads/1555446124-e8818e964e4608cc92d2db7dbc34acfa69b1cd0d/plugins/chosen-pro.tar&quot; unable to create temporary file in /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php:205
    Stack trace:
    #0 /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php(205): PharData->buildFromDirectory('/Applications/X...')
    #1 /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php(146): Siteground_Migrator_Files_Service->create_encrypted_archive('/plugins/chosen...')
    #2 /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-background-process.php(55): Siteground_Migrator_Files_Service->prepare_archive in <b>/Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php</b> on line <b>205</b><br />

    After this error all the POST requests after have:

    {
        "success": true,
        "data": {
            "message": "Transfer started. Creating archives of files...",
            "status": 1,
            "description": "",
            "progress": false
        }
    }

    It does not stop and show “critical error” or log anything in the local log for whatever reason, but it seems this error is stopping it.

    theduffmaster

    (@theduffmaster)

    Ok, I have managed to issue an ACL command on the uploads folder (in which the folder with all the numbers is contained) giving the server “daemon” permission to write to it. Now I no longer see an error in the POST requests. But I still do not see any archives created.

    Now I only see:

    {
        "success": true,
        "data": {
            "message": "Transfer started. Creating archives of files...",
            "status": 1,
            "description": "",
            "progress": false
        }
    }

    And the occasional “heartbeat”:

    {
        "wp-auth-check": true,
        "server_time": 1555660629
    }
    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Did you initiate the transfer again?

    theduffmaster

    (@theduffmaster)

    Yes. I’ve had it running for the last couple minutes.

    theduffmaster

    (@theduffmaster)

    OK, I’ve had it running for the last 20 minutes and still no change in file sizes. I am going to stop it and try some other things to fix the problem.

    theduffmaster

    (@theduffmaster)

    So the error does still occur, it just does not happen immediately. Again, here is the POST request that’s thrown:

    <br />
    <b>Fatal error</b>:  Uncaught PharException: phar &quot;/Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/uploads/1555446124-e8818e964e4608cc92d2db7dbc34acfa69b1cd0d/plugins/chosen-pro.tar&quot; unable to create temporary file in /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php:205
    Stack trace:
    #0 /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php(205): PharData->buildFromDirectory('/Applications/X...')
    #1 /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php(146): Siteground_Migrator_Files_Service->create_encrypted_archive('/plugins/chosen...')
    #2 /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-background-process.php(55): Siteground_Migrator_Files_Service->prepare_archive in <b>/Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/siteground-migrator/includes/class-siteground-migrator-files-service.php</b> on line <b>205</b><br />
    theduffmaster

    (@theduffmaster)

    It seems I have fixed the permissions problems! This was the answer: https://stackoverflow.com/a/51565645/3171509

    But, now I have a new problem. Hopefully this one will be easier to fix:

    [19-Apr-2019 09:13:43 UTC] INFO: Transfer started. Creating archives of files... 
    [19-Apr-2019 09:13:43 UTC] INFO: Updating transfer id. 
    [19-Apr-2019 09:13:43 UTC] INFO: Updating transfer psk. 
    [19-Apr-2019 09:13:44 UTC] INFO: Site domain to be changed to salvatoricenter.org/ 
    [19-Apr-2019 09:13:50 UTC] INFO: Transfer started. Creating archives of files... 
    [19-Apr-2019 09:13:53 UTC] INFO: Files archived, compressing the database.. 
    [19-Apr-2019 09:13:53 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:53 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:53 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:53 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:53 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:53 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:53 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Process failed : export_database. Retrying... 
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Process failed : export_database. Retrying... 
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Process failed : export_database. Retrying... 
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:54 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] ERROR: Couldn't dump table: Couldn't export database: sh: mysqldump: command not found
     
    [19-Apr-2019 09:13:55 UTC] INFO: Transfer Failed Due To Database Error! 
    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Now you have to install mysqldump extension. As far as I see, you are using mac, so maybe this will be helpful:
    https://stackoverflow.com/questions/47380458/is-it-possible-to-install-only-mysqldump-on-macos

    theduffmaster

    (@theduffmaster)

    So the solution was to put a copy of /Applications/XAMPP/bin/mysqldump in /bin/. Yes, the bin folder at the root of my mac computer. I don’t think this is conventional at all, but it’s a temporary solution and seems to work. Probably smart to remove it after the migration is done.

Viewing 13 replies - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.