Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2015-04-01 14:57:59

DhrRob
Member
Registered: 2015-03-16
Posts: 17

Updating Automated hosting

Hi,

Should I update the automated hosting the same way as here: https://livehelperchat.com/article/view/63 ?

Thanks!

Offline

#2 2015-04-01 17:16:02

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Updating Automated hosting

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

#3 2015-04-02 10:00:51

DhrRob
Member
Registered: 2015-03-16
Posts: 17

Re: Updating Automated hosting

You set it up  big_smile

Can you give me a bit more information on this?

Offline

#4 2015-04-02 12:00:44

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Updating Automated hosting

Ok,

I'll try to write some tutorial till monday/tuesday. So everyone will benefit.

Offline

#5 2015-04-08 19:55:02

DhrRob
Member
Registered: 2015-03-16
Posts: 17

Re: Updating Automated hosting

Hey Remdex, any news?  big_smile

Offline

#6 2015-04-08 20:30:26

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Updating Automated hosting

Sorry pal, just overloaded, working 16 hours a day... Will have to wait, you are not forgotten smile

Offline

#7 2015-04-09 09:09:39

DhrRob
Member
Registered: 2015-03-16
Posts: 17

Re: Updating Automated hosting

No worries, could you update this topic once you've updated it? That way I get an email smile

Good luck!

Offline

#8 2015-05-11 13:03:54

DhrRob
Member
Registered: 2015-03-16
Posts: 17

Re: Updating Automated hosting

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

#9 2015-06-13 05:32:54

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Updating Automated hosting

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

#10 2015-06-13 12:23:16

DhrRob
Member
Registered: 2015-03-16
Posts: 17

Re: Updating Automated hosting

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

#11 2015-06-13 14:08:20

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Updating Automated hosting

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

#12 2015-06-14 11:45:45

DhrRob
Member
Registered: 2015-03-16
Posts: 17

Re: Updating Automated hosting

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

#13 2015-06-14 11:48:32

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Updating Automated hosting

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

Board footer