Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Pages: 1
Hi,
Should I update the automated hosting the same way as here: https://livehelperchat.com/article/view/63 ?
Thanks!
Offline
No,
Only for manager panel, but not for hosting itself and clients database it's different workflow and workflow depends how you have setup it.
Offline
You set it up
Can you give me a bit more information on this?
Offline
Ok,
I'll try to write some tutorial till monday/tuesday. So everyone will benefit.
Offline
Hey Remdex, any news?
Offline
Sorry pal, just overloaded, working 16 hours a day... Will have to wait, you are not forgotten
Offline
No worries, could you update this topic once you've updated it? That way I get an email
Good luck!
Offline
Any updates?
I've spotted this topic: https://forum.livehelperchat.com/viewtopic.php?id=995 but it is not very clear on what to do (multiple ways to do stuff et cetera),
can you outline the easiest and safest method?
Thanks!
Offline
In your case should be enough to do this
cd /var/www/admin/automated-hosting && git pull origin master
cd /var/www/manager/ && git pull origin master
cd /var/www/manager/lhc_web && php cron.php -s site_admin -e instance -c cron/update_structure
cd /var/www/manager/lhc_web && php cron.php -s site_admin -e instance -c cron/update_instances
cd /var/www/manager/lhc_web && php cron.php -s site_admin -c cron/util/clear_cache
cd /var/www/client/lhc_web && git pull origin master
cd /var/www/client/lhc_web && php cron.php -s site_admin -c cron/util/clear_cache
Offline
Thanks!
Everything goes fine until the last command "cd /var/www/client/lhc_web && php cron.php -s site_admin -c cron/util/clear_cache"
It produces the following error:
[== Undefined ==]
PHP Notice: Undefined index: HTTP_HOST in /var/www/admin/automated-hosting/instancecustomer/classes/erlhcoreclassinstance.php on line 26
Notice: Undefined index: HTTP_HOST in /var/www/admin/automated-hosting/instancecustomer/classes/erlhcoreclassinstance.php on line 26
PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/admin/automated-hosting/instancecustomer/classes/erlhcoreclassinstance.php:26) in /var/www/admin/automated-hosting/instancecustomer/classes/erlhcoreclassinstance.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /var/www/admin/automated-hosting/instancecustomer/classes/erlhcoreclassinstance.php:26) in /var/www/admin/automated-hosting/instancecustomer/classes/erlhcoreclassinstance.php on line 33
Also when logging in to the manager, it gives a blank screen. Turning on debugging it returns this:
[== Undefined ==]
PDOException Object
(
[message:protected] => SQLSTATE[42S22]: Column not found: 1054 Unknown column 'session_id' in 'field list'
[string:Exception:private] =>
[code:protected] => 42S22
[file:protected] => /var/www/manager/lhc_web/ezcomponents/AuthenticationDatabaseTiein/src/filters/database/database_filter.php
[line:protected] => 262
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /var/www/manager/lhc_web/ezcomponents/AuthenticationDatabaseTiein/src/filters/database/database_filter.php
[line] => 262
[function] => execute
[class] => PDOStatement
[type] => ->
[args] => Array
(
)
)
[1] => Array
(
[file] => /var/www/manager/lhc_web/ezcomponents/Authentication/src/authentication.php
[line] => 241
[function] => run
[class] => ezcAuthenticationDatabaseFilter
[type] => ->
[args] => Array
(
[0] => ezcAuthenticationPasswordCredentials Object
(
[id] => Rob
[password] => ***
)
)
)
[2] => Array
(
[file] => /var/www/manager/lhc_web/lib/core/lhuser/lhuser.php
[line] => 93
[function] => run
[class] => ezcAuthentication
[type] => ->
[args] => Array
(
)
)
[3] => Array
(
[file] => /var/www/manager/lhc_web/cache/compiledtemplates/ad278812d3ccb0153c9b7877b97db0ca.php
[line] => 2
[function] => authenticate
[class] => erLhcoreClassUser
[type] => ->
[args] => Array
(
[0] => Rob
[1] => *** (plaintext passwd is showing here)
[2] =>
)
)
[4] => Array
(
[file] => /var/www/manager/lhc_web/lib/core/lhcore/lhmodule.php
[line] => 96
[args] => Array
(
[0] => /var/www/manager/lhc_web/cache/compiledtemplates/ad278812d3ccb0153c9b7877b97db0ca.php
)
[function] => include
)
[5] => Array
(
[file] => /var/www/manager/lhc_web/lib/core/lhcore/lhmodule.php
[line] => 462
[function] => runModule
[class] => erLhcoreClassModule
[type] => ::
[args] => Array
(
)
)
[6] => Array
(
[file] => /var/www/manager/lhc_web/index.php
[line] => 38
[function] => moduleInit
[class] => erLhcoreClassModule
[type] => ::
[args] => Array
(
)
)
)
[previous:Exception:private] =>
[errorInfo] => Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column 'session_id' in 'field list'
)
)
How to proceed without breaking everything?
Offline
cd /var/www/admin/automated-hosting && git pull origin master
cd /var/www/manager/ && git pull origin master
cd /var/www/manager/lhc_web && php cron.php -s site_admin -c cron/util/update_database NEW
cd /var/www/manager/lhc_web && php cron.php -s site_admin -e instance -c cron/update_structure
cd /var/www/manager/lhc_web && php cron.php -s site_admin -e instance -c cron/update_instances
cd /var/www/manager/lhc_web && php cron.php -s site_admin -c cron/util/clear_cache
cd /var/www/client/lhc_web && git pull origin master
cd /var/www/client/lhc_web && php cron.php -s site_admin -c cron/util/clear_cache
Offline
Hey Rem, still the same errors even after adding the new command.
Only command I've added is 'git stash save --keep-index'
in order to circumvent this error:
'error: Your local changes to the following files would be overwritten by merge'
Last edited by DhrRob (2015-06-14 11:49:17)
Offline
Sorry, but here it works... Most likely you just did not executed it.
It's standard command to update any lhc instance database.
So just execute once again
cd /var/www/manager/lhc_web && php cron.php -s site_admin -c cron/util/update_database
Offline
Pages: 1