Welcome, Guest
Username: Password: Remember me

TOPIC: Error in comfort update

Error in comfort update 1 year 3 months ago #97935

  • artol
  • artol's 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
The administrator has disabled public write access.

Error in comfort update 1 year 3 months ago #97999

  • artol
  • artol's Avatar
My current version is 2.00+ Build 130611
The administrator has disabled public write access.

Error in comfort update 1 year 1 month ago #99303

  • dirtyhawk
  • dirtyhawk's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 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
The administrator has disabled public write access.

Error in comfort update 1 year 2 weeks ago #100352

  • jonsen
  • jonsen's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 73
  • Thank you received: 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
Last Edit: 1 year 2 weeks ago by jonsen.
The administrator has disabled public write access.

Error in comfort update 1 year 1 week ago #100604

  • jonsen
  • jonsen's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 73
  • Thank you received: 6
  • Karma: 1
The administrator has disabled public write access.

Error in comfort update 1 year 3 days ago #100844

  • peehoo
  • peehoo's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 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:
Last Edit: 1 year 3 days ago by peehoo.
The administrator has disabled public write access.

Error in comfort update 1 year 3 days ago #100845

  • jonsen
  • jonsen's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 73
  • Thank you received: 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
The administrator has disabled public write access.

Error in comfort update 8 months 3 weeks ago #104187

  • xhiena
  • xhiena's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 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
The administrator has disabled public write access.

Error in comfort update 8 months 3 weeks ago #104221

  • jonsen
  • jonsen's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 73
  • Thank you received: 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]
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.173 seconds
Donation Image