How to UPDATE LemonStand without reinstalling it
#1
Posted 12 January 2010 - 09:21 PM
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
Posted 13 January 2010 - 01:25 AM
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
#3
Posted 13 January 2010 - 02:49 AM
Quote
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
Posted 13 January 2010 - 02:57 AM
[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?
#5
Posted 13 January 2010 - 03:27 AM
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
Posted 13 January 2010 - 03:41 AM
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.
#7
Posted 22 January 2010 - 01:47 AM
#8
Posted 22 January 2010 - 01:54 AM
Quote
Hi! Did you download the updated installer before reinstalling? We made some changes in the installer which solve the permission issues.
#10
Posted 24 January 2010 - 09:30 PM
- 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
Posted 25 January 2010 - 12:36 AM
<?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
#12
Posted 25 January 2010 - 12:38 AM
Did you change the contents of the php.ini file manually after installation?
#13
Posted 25 January 2010 - 12:42 AM
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
#14
Posted 25 January 2010 - 12:47 AM
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
Posted 25 January 2010 - 02:51 AM
#16
Posted 25 January 2010 - 03:07 AM
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
Posted 25 January 2010 - 10:09 AM
//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
#18
Posted 25 January 2010 - 04:55 PM
Quote
Updating normally takes only a few minutes. If it's taking longer, than something had to of gone wrong.
Quote
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
Posted 25 January 2010 - 10:28 PM
#20
Posted 26 January 2010 - 09:17 PM
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

Help















