This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

sentora-installers error
#1
sentora-installers error
Attempting an install on a Ubuntu 14.04 LTS VPS (development non-live environment) and it gets nearly to the end where passwords are given and chokes with the following error:
Code:
START Sentora Updates hook
Checking for latest version of Sentora...
PHP Warning:  Illegal string offset 'version' in /etc/sentora/panel/modules/updates/hooks/OnDaemonDay.hook.php on line 27

OnDaemonDay.hook.php:
PHP Code:
<?php                                                                                                                                                                                                       
                                                                                                                                                                                                            
/**                                                                                                                                                                                                         
 * @copyright 2014 Sentora Project (http://www.sentora.org/)                                                                                                                                                
 * Sentora is a GPL fork of the ZPanel Project whose original header follows:                                                                                                                               
 *                                                                                                                                                                                                          
 * Hook created by Bobby Allen to obtain latest zpanel version number and add it to the DB for querying (caching bascially!)                                                                                
 * This script is handy for caching the latest version of ZPanel to reduce bandwidth from the server.                                                                                                       
 *                                                                                                                                                                                                          
 */ 
                                                                                                                                                                                                        
echo fs_filehandler::NewLine() . "START Sentora Updates hook" fs_filehandler::NewLine();                                                                                                                  
echo "Checking for latest version of Sentora..." fs_filehandler::NewLine();                                                                                                                               
CheckSentoraLatestVersion
();                                                                                                                                                                                
echo "END Sentora Updates hook" fs_filehandler::NewLine();                                                                                                                                                
                                                                                                                                                                                                            
function CheckSentoraLatestVersion() {                                                                                                                                                                      
    
// Grab the latest version of Sentora from the Sentora API servers and cache it into the database.                                                                                                      
 
   $live_version ws_generic::ReadURLRequestResult(ctrl_options::GetSystemOption('update_url'));                                                                                                          
    if 
(!$live_version) {                                                                                                                                                                                   
        return false
                                                                                                                                                                                      
    
                                                                                                                                                                                                      
                                                                                                                                                                                                            
    $versionnumber 
ws_generic::JSONToArray($live_version);                                                                                                                                                
                                                                                                                                                                                                            
    if
(count($versionnumber) > 1) {                                                                                                                                                                         
        $currentVersionSetting 
current($versionnumber);                                                                                                                                                   
        $currentVersion 
$currentVersionSetting['version'];                                                                                                                                                
    
} else {                                                                                                                                                                                                
        $currentVersion 
$versionnumber['version'];                                                                                                                                                        
    
                                                                                                                                                                                                      
                                                                                                                                                                                                            
    ctrl_options
::SetSystemOption('latestzpversion'$currentVersion);                                                                                                                                      
    return true
                                                                                                                                                                                           
                                                                                                                                                                                                          
                                                                                                                                                                                                            
?>
   

Line 27 is:
Code:
$currentVersion = $versionnumber['version'];
Reply
Thanks given by:
#2
RE: sentora-installers error
There was two problems at very closes places giving sometime the impression that the installer locked, but it was not. It was waiting arount to 3/4 hour because of 40 timeout close 1 minute each (one per module to check update)

 More info here : https://github.com/sentora/sentora-core/...t-61082226 (read until the end, it is a bit long !)
Reply
Thanks given by: skpacman
#3
RE: sentora-installers error
Thanks for the quick reply, 5050.

I'll scrap my test vps and try to run it again in screen and just let it go in the background for a while.

I like the direction this project is headed Cool
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Update redirect to Sentora login to an error page if a sub domain does not exist TGates 0 1 ,824 01-28-2024, 06:20 AM
Last Post: TGates
Application Error: [0204] - problems when adding an A Record of more than 65 A record andrabcm 8 19 ,201 07-30-2019, 11:11 AM
Last Post: andrabcm
Need Sentora HELP ? Alemiz 4 11 ,453 10-26-2018, 04:09 PM
Last Post: republicus

Forum Jump:


Users browsing this thread: 1 Guest(s)