LemonStand Forum: How to UPDATE LemonStand without reinstalling it - LemonStand Forum

Jump to content

  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

How to UPDATE LemonStand without reinstalling it

#1 User is online   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,626
  • Joined: 31-October 09

Posted 12 January 2010 - 09:21 PM

Hi!

Sometimes I ask you to update your copies of LemonStand. In most cases I mean the updating, not reinstalling the application. LemonStand has a built-in one-click update feature which downloads the latest copy of the application from the Limewheel server in background. The feature is described in our Wiki: http://lemonstandapp...emonstand_copy/

#2 User is offline   pauneugen 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 45
  • Joined: 12-January 10
  • LocationRomania

Posted 13 January 2010 - 01:25 AM

I tried to update my copy of LemonStand and I get this error

touch() [function.touch]: Utime failed: Operation not permitted


I am on a shared enviroment, I never had any issues with that install on that particular server.

There is any way I could do the update myself, not using an automatic script?

This post has been edited by pauneugen: 13 January 2010 - 01:25 AM

0

#3 User is online   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,626
  • Joined: 31-October 09

Posted 13 January 2010 - 02:49 AM

Quote

I tried to update my copy of LemonStand and I get this error

touch() [function.touch]: Utime failed: Operation not permitted


I am on a shared enviroment, I never had any issues with that install on that particular server.

There is any way I could do the update myself, not using an automatic script?


Hi!

There is no way to update the application manually. If you installed it using the web installer, you will need to update it from the Administration Area. If you installed LemonStand using the command-line installer, then you need to use the command-line update script. The update procedure is more complicated than just downloading files. It also checks the license information and in the future it will automatically install new modules if you purchase them.

That is why we need to make the update feature reliable, with your help :-) Can you please look into the /logs/errors.txt file? This file contains messages about all errors which occur in your system. It can provide more detailed explanation of the problem. Please attach the error log file to a forum message, or, if the file is small, just paste its contents to a message.

Thank you!

#4 User is offline   pauneugen 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 45
  • Joined: 12-January 10
  • LocationRomania

Posted 13 January 2010 - 02:57 AM

Here is the content of errors.txt file.


[2010-01-13 09:16:07] Phpr_PhpException: chmod() [<a href='function.chmod'>function.chmod</a>]: Operation not permitted. In /var/www/vhosts/turism-agrement.ro/httpdocs/modules/core/helpers/core_ziphelper.php, line 147
[2010-01-13 09:16:07] Phpr_SystemException: Error setting file permissions to /var/www/vhosts/turism-agrement.ro/httpdocs/php.ini.  Operation not permitted.. In /var/www/vhosts/turism-agrement.ro/httpdocs/modules/core/helpers/core_ziphelper.php, line 150
[2010-01-13 09:17:06] Phpr_PhpException: touch() [<a href='function.touch'>function.touch</a>]: Utime failed: Operation not permitted. In /var/www/vhosts/turism-agrement.ro/httpdocs/modules/core/thirdpart/pclzip.lib.php, line 3842
[2010-01-13 09:18:59] Phpr_PhpException: touch() [<a href='function.touch'>function.touch</a>]: Utime failed: Operation not permitted. In /var/www/vhosts/turism-agrement.ro/httpdocs/modules/core/thirdpart/pclzip.lib.php, line 3842
[2010-01-13 09:21:25] Phpr_PhpException: touch() [<a href='function.touch'>function.touch</a>]: Utime failed: Operation not permitted. In /var/www/vhosts/turism-agrement.ro/httpdocs/modules/core/thirdpart/pclzip.lib.php, line 3842
[2010-01-13 10:00:07] Phpr_PhpException: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 65531 of 65535 bytes. In /var/www/vhosts/turism-agrement.ro/httpdocs/phproad/modules/db/classes/db_moduleparameters.php, line 51
[2010-01-13 10:05:51] Phpr_PhpException: touch() [<a href='function.touch'>function.touch</a>]: Utime failed: Operation not permitted. In /var/www/vhosts/turism-agrement.ro/httpdocs/modules/core/thirdpart/pclzip.lib.php, line 3842


Any ideas of what's broken?
0

#5 User is online   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,626
  • Joined: 31-October 09

Posted 13 January 2010 - 03:27 AM

It seems to be a conflict with the file permissions. Can you please upload the attached file to the /modules/core/thirdpart directory? You will need to replace the existing file. Then please try to update the application again. After that please look into the /logs/info.txt file. It should contain a list of files which LemonStand was not able to update. Are there only a few or many files? Also please check what value is specified in the FILE_FOLDER_PERMISSIONS parameter in the /config/config.php file.

Alternatively you can create a temporary FTP and LemonStand accounts for us and send it to info@lemonstandapp.com. Then we will look what's going on by ourselves.

#6 User is offline   pauneugen 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 45
  • Joined: 12-January 10
  • LocationRomania

Posted 13 January 2010 - 03:41 AM

I uploaded the file and now I get another error

Error setting file permissions to /var/www/vhosts/turism-agrement.ro/httpdocs/php.ini. Operation not permitted.


I will send shortly the info for the accounts you asked for.
0

#7 User is offline   pauneugen 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 45
  • Joined: 12-January 10
  • LocationRomania

Posted 22 January 2010 - 01:47 AM

Not being able to update I deleted everything and reinstalled everything. But still I can't update using the automatic upgrade. Some help please?
0

#8 User is online   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,626
  • Joined: 31-October 09

Posted 22 January 2010 - 01:54 AM

Quote

Not being able to update I deleted everything and reinstalled everything. But still I can't update using the automatic upgrade. Some help please?


Hi! Did you download the updated installer before reinstalling? We made some changes in the installer which solve the permission issues.

#9 User is offline   pauneugen 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 45
  • Joined: 12-January 10
  • LocationRomania

Posted 22 January 2010 - 11:01 AM

Yes, I used the new one. This is what I am using right now.
0

#10 User is online   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,626
  • Joined: 31-October 09

Posted 24 January 2010 - 09:30 PM

Hi!

  • Can you please check a value of the FILE_FOLDER_PERMISSIONS parameter in the config/config.php file? Is it 0777?[/*]
  • Which exactly error you get? Is it "touch() [function.touch]: Utime failed: Operation not permitted"?[/*]


Is it possible to install LemonStand using the command-line installer on your hosting environment?

Thank you!

#11 User is offline   pauneugen 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 45
  • Joined: 12-January 10
  • LocationRomania

Posted 25 January 2010 - 12:36 AM

This is my config.php file

<?php

    if (!isset($CONFIG))
        $CONFIG = array();
        
    /*
     * Backend URL prefix
     */
    $CONFIG['BACKEND_URL'] = '/backdoor';
    
    /*
     * Config URL prefix
     */
    $CONFIG['CONFIG_URL'] = '/config_tool';
    
    if ( !defined('PATH_APP') )
        return;

    $CONFIG['DEV_MODE'] = false;

    /*
     * Tracing and error logging features
     */
    
    $CONFIG['ERROR_LOG'] = true;
    $CONFIG['ERROR_REPORTING'] = E_ALL | E_STRICT;
    $CONFIG['ERROR_IGNORE'] = array( 'Phpr_ApplicationException' );
    $CONFIG['HIDE_ERROR_DETAILS'] = false;
    $CONFIG['LOG_TO_DB'] = true;

    if (!isset($CONFIG['TRACE_LOG']['INFO']))
        $CONFIG['TRACE_LOG']['INFO'] = PATH_APP.'/logs/info.txt';

#    $CONFIG['TRACE_LOG']['SQL'] = PATH_APP.'/logs/sql.txt';
    
    /*
     * Redirecting and cookies
     */

    $CONFIG['REDIRECT'] = 'location';
    $CONFIG['FRONTEND_AUTH_COOKIE_LIFETIME'] = 5;
    $CONFIG['CONFIG_AUTH_COOKIE_LIFETIME'] = 1;

    /*
     * Files
     */
    
    $CONFIG['FILESYSTEM_CODEPAGE'] = 'Windows-1251';

    /*
     * Language
     */
    
    $CONFIG['LANGUAGE'] = 'en';

    /*
     * ImageMagick
     */

    $CONFIG['IMAGEMAGICK_ENABLED'] = false;
    $CONFIG['IMAGEMAGICK_PATH'] = null;
    $CONFIG['IMAGE_JPEG_QUALITY'] = 85;

    /*
     * System time zone
     */
    
    $CONFIG['TIMEZONE'] = 'Europe/Bucharest';
    
    /*
     * Editable file formats
     */
    
    $CONFIG['EDITABLE_FILES'] = array('css', 'js');

    /*
     * File and folder permissions
     */
    
    $CONFIG['FILE_FOLDER_PERMISSIONS'] = 0777;
    
    /*
     * Secure config path
     */
    
#    $CONFIG['SECURE_CONFIG_PATH'] = '/home/someuser/secure/lemonstand_config.dat';

    /*
     * Cron access 
     */

    $CONFIG['CRON_ALLOWED_IPS'] = array();
?>


I made a print screen of the error and attached it to this post.

I cannot install using SSH, it's not available on that host. I could install it using line command on another host, but I think we will get in another kind of trouble there, as the webserver is not Apache, but nginx.

I am happy with everything else about LemonStand, if I could get the update issue solved, you can count me as a happy customer. :)

This post has been edited by pauneugen: 25 January 2010 - 12:41 AM

0

#12 User is online   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,626
  • Joined: 31-October 09

Posted 25 January 2010 - 12:38 AM

Thank you for the details!

Did you change the contents of the php.ini file manually after installation?

#13 User is offline   pauneugen 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 45
  • Joined: 12-January 10
  • LocationRomania

Posted 25 January 2010 - 12:42 AM

No, this is the content of php.ini
upload_max_filesize=100M
post_max_size=100M
memory_limit = 264M
session.auto_start=off
session.cookie_lifetime=31536000
session.use_cookies=on
session.use_only_cookies=on
session.name=FWCSESSID

short_open_tag=on
asp_tags=on

magic_quotes_gpc=off
date.timezone=GMT

0

#14 User is online   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,626
  • Joined: 31-October 09

Posted 25 January 2010 - 12:47 AM

Thank you. Is it some paid shared hosting, or your own server?

Can you please try to execute the
chmod 777 -R dir_name
operation on the LemonStand directory? You also can set all permissions on all files by FTP. Does it help?

#15 User is offline   pauneugen 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 45
  • Joined: 12-January 10
  • LocationRomania

Posted 25 January 2010 - 02:51 AM

All files and folders have now chmod 0777. No change, same error!
0

#16 User is online   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,626
  • Joined: 31-October 09

Posted 25 January 2010 - 03:07 AM

Thank you. We should take this situation into account and make some changes in the software update feature.

You will need to make a little hack in our code. In the /modules/core/helpers/core_ziphelper.php please comment the line number 151:

// throw new Phpr_SystemException('Error setting file permissions to '.$p_header['filename'].'.  Operation not permitted.');


And then try to update LemonStand again. If it will be able to update, please check whether versions of the updated modules were changed.

We will make corresponding changes in the application code.

#17 User is offline   pauneugen 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 45
  • Joined: 12-January 10
  • LocationRomania

Posted 25 January 2010 - 10:09 AM

How much will the update actually take to complete? It created 4 files with the .arc extension in the temp folder and for the last 20 minutes nothing else has happened. It also modified the php.ini file.

//later edit

Almost 30 minutes later. No other action has been performed on any of the files, I've randomnly checked the timestamps for some files and folders.

I understand that you need to control the update and what modules are installed on one's copy. But if I can't upgrade, what's the use, really? And I am sorry, but I will not change my hoster, I have been pretty happy with them for the last 3 years. And paying for a managed VPS is out of the question for now, it will cost to much to even consider it.

Any more ideas on what's wrong?

This post has been edited by pauneugen: 25 January 2010 - 10:29 AM

0

#18 User is offline   Danny 

  • Co-Founder
  • Group: +Administrators
  • Posts: 295
  • Joined: 30-October 09
  • LocationVancouver, BC

Posted 25 January 2010 - 04:55 PM

Quote

How much will the update actually take to complete? It created 4 files with the .arc extension in the temp folder and for the last 20 minutes nothing else has happened. It also modified the php.ini file.


Updating normally takes only a few minutes. If it's taking longer, than something had to of gone wrong.

Quote

I understand that you need to control the update and what modules are installed on one's copy. But if I can't upgrade, what's the use, really? And I am sorry, but I will not change my hoster, I have been pretty happy with them for the last 3 years. And paying for a managed VPS is out of the question for now, it will cost to much to even consider it.


We are working hard to make LemonStand compatible on as many different hosting configurations as possible. Your hosting configuration is different in some way, and we need time to figure out why. If at all possible, we will make the necessary modifications so LemonStand can run on your environment.

Is the FTP information you sent us some time ago still appropriate for accessing your new installation? We would like to check things out on your server and see what we can find.

#19 User is offline   pauneugen 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 45
  • Joined: 12-January 10
  • LocationRomania

Posted 25 January 2010 - 10:28 PM

Yes, the FTP information is still the same. I will also recreate the admin user for the CMS.
0

#20 User is online   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,626
  • Joined: 31-October 09

Posted 26 January 2010 - 09:17 PM

Hi, Eugen!

I just successfully updated your copy of LemonStand without making any changes on your server. More likely, when you were trying to update the application, the connection error which sometimes happens on your server, occurred and LemonStand was not able to update itself and inform you about the error.

Aleksey

Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users