marcosig Posted October 4, 2018 Posted October 4, 2018 Hi, I’m trying to migrate from Prestashop 1.6.1.18 to Thirty Bees 1.0.7 on a local MAMP server website but I'm getting an 'Error during download' message. Can anyone help? Thanks
0 Traumflug Posted October 4, 2018 Posted October 4, 2018 Could you give a few more details? Did the module install? Does the migration process start (panels change, a text view appears) ? What are the last messages in this text log?
0 marcosig Posted October 4, 2018 Author Posted October 4, 2018 Hi Traumflug, thanks for the reply. The modules installed correctly and the migration process starts, but after a few seconds I receive the following message in the Activity Log
0 Peter Posted October 4, 2018 Posted October 4, 2018 Isn't it better to migrate from PS to Tb 1.0.6 and after that upgrade to 1.0.7?
0 marcosig Posted October 4, 2018 Author Posted October 4, 2018 Hi Peter. it seems to me that the thirty bees migration module allows only the upgrade to the latest version (1.0.7)
0 datakick Posted October 4, 2018 Posted October 4, 2018 Since the download took only 1 second, I assume the problem is in misconfiguration of your server. You probably do not have curl installed, or you might have some firewall that prevents the operation. I just tested it, and it works. Download took 93 seconds though, so I had to extend timeout limit on my nginx.
0 Traumflug Posted October 4, 2018 Posted October 4, 2018 Isn’t it better to migrate from PS to Tb 1.0.6 and after that upgrade to 1.0.7? No longer possible. Since about yesterday, the migration module migrates straight to 1.0.7.
0 Traumflug Posted October 4, 2018 Posted October 4, 2018 Download took 93 seconds though Github is so slow :-/ Even at off times I get only some 10 Mbit, which means a ~30 seconds download for just 40 MiB.
0 Traumflug Posted October 4, 2018 Posted October 4, 2018 @marcosig said in Download error on local MAMP migration: The modules installed correctly and the migration process starts, but after a few seconds I receive the following message in the Activity Log Thanks, the picture is very helpful. Do you see this Archives will come from ... message? One can try to download these two links with a browser or with command line curl/wget as well. This should work, it's a plain HTTP file download. If you manage to get these two files another way, you can place these two ZIP archives manually in the location given in the message starting with Files will be saved to .... The module will find them there and use them without trying to download them again (that's a new feature of the most recent module version). It also doesn't hurt to try more than once, until the archives are there and get unpacked, the PrestaShop installation isn't changed. Perhaps Github had an outage just the moment you tried to migrate.
0 marcosig Posted October 5, 2018 Author Posted October 5, 2018 I've tried (more the once) to place manually the 2 ZIP archives in the target folder and also tried to migrate a clean Prestashop installation but the error always occurs.
0 lesley Posted October 5, 2018 Posted October 5, 2018 When you push the button, can you time how long it takes until the error happens.
0 marcosig Posted October 5, 2018 Author Posted October 5, 2018 Sorry, I'm not so techie. The only error message I can see is the one I sent above to Traumflug. Where can I look for any ajax error?
0 lesley Posted October 5, 2018 Posted October 5, 2018 Oh, I missed that error. Is there anything in the local error logs?
0 marcosig Posted October 5, 2018 Author Posted October 5, 2018 Checking once again I found that every time I launch the migration process I get this error message in php_error.log: PHP Deprecated: Automatically populating $HTTPRAWPOSTDATA is deprecated and will be removed in a future version. To avoid this warning set 'alwayspopulaterawpost_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0
0 Traumflug Posted October 5, 2018 Posted October 5, 2018 Hmm. thirty bees code doesn't use HTTP_RAW_POST_DATA.
0 marcosig Posted October 8, 2018 Author Posted October 8, 2018 The error seems to occur during the download of thirtybees-v1.0.7.zip to the autoupgrade/download folder. The archive thirtybees-extra-v1.0.7.zip is correctly downloaded (together with thirtybees-file-actions-v1.0.7.json). Since the migration process seems to delete the contents of the autoupgrade/download folder before attempting to download the archives, it's useless to manually place them before launching the migration.
0 Traumflug Posted October 8, 2018 Posted October 8, 2018 Since the migration process seems to delete the contents of the autoupgrade/download folder True. Forgot to remove this when picking this feature from module tbupdater. Here's the patch (just find and delete these four lines): ```diff // regex optimization pregmatch('#([0-9]+.[0-9]+)(?:.[0-9]+){1,2}#', _PSVERSION_, $matches); $this->nextQuickInfo[] = sprintf($this->l('Downloading from %s and %s'), $this->upgrader->coreLink, $this->upgrader->extraLink); $this->nextQuickInfo[] = sprintf($this->l('Files will be saved to %s and %s'), $this->getCoreFilePath(), $this->getExtraFilePath()); - if (fileexists($this->tools->downloadPath)) { - Tools::deleteDirectory($this->tools->downloadPath, false); - $this->nextQuickInfo[] = $this->l('Download directory has been cleared'); - } + $report = ''; $relativeDownloadPath = strreplace(PSROOTDIR, '', $this->tools->downloadPath); if (ConfigurationTest::test_dir($relativeDownloadPath, false, $report)) { $timestamp = time(); $res = $this->upgrader->downloadLast($this->tools->downloadPath); ``` This will also go into the next release, of course.
0 marcosig Posted October 8, 2018 Author Posted October 8, 2018 Got it! Removing the 4 lines and manually adding the archives worked out. Now we can roll up our sleeves and seriously plan our migration. Thank you so much.
0 lesley Posted October 8, 2018 Posted October 8, 2018 Should we add a condition to disable those lines and a local archive option?
0 Traumflug Posted October 8, 2018 Posted October 8, 2018 No need for making this optional. On the first try this directory doesn't exist. If it exists and some ZIPs are inside, they still get MD5-summed to make sure they're complete. Module tbupdater works this way since a year already.
Question
marcosig
Hi, I’m trying to migrate from Prestashop 1.6.1.18 to Thirty Bees 1.0.7 on a local MAMP server website but I'm getting an 'Error during download' message.
Can anyone help? Thanks
23 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now