Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Error in comfort update

Error in comfort update 1 Jahr 1 Monat her #97935

  • artol
  • artols Avatar
I am trying to use Comfort update for version 2.00+ (130708) (stable), but after phase 2 I get error: Error : PCLZIP_ERR_WRITE_OPEN_FAIL (-1) : Unable to open temporary file 'pclzip-51dd46f618041.gz' in binary write mode.

Any ideas? Thank you for any help.

Chears,
Arto
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Error in comfort update 1 Jahr 1 Monat her #97999

  • artol
  • artols Avatar
My current version is 2.00+ Build 130611
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Error in comfort update 1 Jahr 1 Woche her #99303

  • dirtyhawk
  • dirtyhawks Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 1
  • Karma: 0
Hi Arto,

I ran into this today as well. However, I was able to solve it: It seems that the webserver user (for me, this is www-data on an Ubuntu server) did not have the permissions to change/overwrite some files during the update.

Unfortunately, LimeSurvey's ComfortUpdate did not report this prior to the update for some reason. For other files, it did report a permission error before starting the update.

What I did to make it work was simply
chmod -R g+w limesurvey
, with limesurvey being the directory of my installation and the directory being owned by the www-data group. Afterwards, the update worked flawlessly.

This might be a bug in the ComfortUpdater, perhaps you have time to report it?

Hope this helps.

Regards,
dirtyhawk
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Error in comfort update 11 Monate 18 Stunden her #100352

  • jonsen
  • jonsens Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 73
  • Dank erhalten: 6
  • Karma: 1
I just stumbled upon this error again (when updating 2.00+ from b130708 to b130929). I think the PCLZIP_TEMPORARY_DIR should be checked in step2 of the comfort update... Is there a bug report for this?

Best
Jonsen
Letzte Änderung: 11 Monate 17 Stunden her von jonsen.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Error in comfort update 10 Monate 3 Wochen her #100604

  • jonsen
  • jonsens Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 73
  • Dank erhalten: 6
  • Karma: 1
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Error in comfort update 10 Monate 2 Wochen her #100844

  • peehoo
  • peehoos Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 19
  • Karma: 0
Hi!

i had exactly this same bug and I managed to avoid this by modifying file:

/var/www/limesurvey/application/libraries/admin/pclzip/pclzip.php file.

Line:

// Samples :
//define( 'PCLZIP_TEMPORARY_DIR', '/temp/' );
// define( 'PCLZIP_TEMPORARY_DIR', 'C:/Temp/' );
if (!defined('PCLZIP_TEMPORARY_DIR')) {
define( 'PCLZIP_TEMPORARY_DIR', '' );

I removed // and change tempory dir to /tmp where is 777 rights.


define( 'PCLZIP_TEMPORARY_DIR', '/tmp/' );

Reason for this was I wasn't able to find correct place where this zip should have 777 rights by default. No I managed update my limesurvey with comfort update. :woohoo:
Letzte Änderung: 10 Monate 2 Wochen her von peehoo.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Error in comfort update 10 Monate 2 Wochen her #100845

  • jonsen
  • jonsens Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 73
  • Dank erhalten: 6
  • Karma: 1
Hi peehoo,

thanks for the elaboration!

I also tried that. Although in my case, setting the path to '/tmp/' in the pclzip.php did NOT work. But that has to do with the access rights on that specific system. Just saying: It might not be a workaround that works on all systems. Also, it's not very comfortable... ;)

Best
Jonsen
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Error in comfort update 7 Monate 6 Tage her #104187

  • xhiena
  • xhienas Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 1
  • Karma: 0
hi all,

I had the same problem, and a 'chown apache:apache /path/to/limesurvey' (replace apache with your apache user) problem solved, the step 3 made the backups and go on.

Hope this helps
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Error in comfort update 7 Monate 5 Tage her #104221

  • jonsen
  • jonsens Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 73
  • Dank erhalten: 6
  • Karma: 1
[copy from bug tracker]
xhiena, your solution does work, as does the chmod variant is most cases.

But the problem is that giving apache all-write access is pretty vulnerable for attacks. Thats why it's a workaround and not a solution.

Of course, if you system is not "very important", the quick-and-dirty solution is okay, but better is to give apache only the rights it needs to run the site.
[/copy from bug tracker]
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.193 Sekunden
Donation Image