Opened 4 years ago

Closed 4 years ago

#1010 closed Bug (fixed)

Automatic update from 0.4.3 to 0.4.4 fails

Reported by: barry_van_dijk Owned by: vipsoft
Priority: major Milestone: Piwik 0.5
Component: Core Keywords:
Cc: Sensitive: no

Description

When automatically updating from version 0.4.3 to 0.4.4 I receive the following error message:

File size error: I:\Program Files\Apache Software Foundation\Apache2.2\htdocs\piwik/tmp/latest/latest.zip; expected 3128256 bytes; received 136373 bytes

I looks like a previous version of latest.zip is downloaded for installation. When I manually download latest.zip the filesize is good, but if I store it in .../piwik/tmp/latest it gets overwritten with the wrong version.

Change History (7)

comment:1 Changed 4 years ago by vipsoft (robocoder)

  • Milestone set to 1 - Piwik 0.5

comment:2 Changed 4 years ago by vipsoft (robocoder)

In Piwik.php, there are two fgets calls

$line = fgets($fsock, 4096);

Can you change the second occurrence to:

$line = fread($fsock, 8192);

comment:3 Changed 4 years ago by vipsoft (robocoder)

  • Component changed from Website piwik.org to Core
  • Priority changed from critical to major

comment:4 Changed 4 years ago by vipsoft (robocoder)

In [1524], refs #1010 sendHttpRequest improvements (by socket): increase buffer size and flush output to file.

comment:5 Changed 4 years ago by vipsoft (robocoder)

In [1532], refs #1010 - should pass file handle instead of destination path to sendHttpRequestBy()

comment:6 Changed 4 years ago by vipsoft (robocoder)

  • Owner set to vipsoft

comment:7 Changed 4 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.