Jump to content
thirty bees forum
  • 0

Download error on local MAMP migration


Question

Posted

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

  • 0
Posted

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
Posted

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_1538656638585_30bees_screen.jpg

  • 0
Posted

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
Posted

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
Posted

@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
Posted

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
Posted

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
Posted

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
Posted

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
Posted

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
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...