Sentora Support Forums
sentora-installers error - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: General Forums - (Non-Sentora Support) (https://senforums.mach-hosting.com/forumdisplay.php?fid=1)
+--- Forum: Sentora Development (https://senforums.mach-hosting.com/forumdisplay.php?fid=54)
+--- Thread: sentora-installers error (/showthread.php?tid=552)



sentora-installers error - skpacman - 10-31-2014

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'];



RE: sentora-installers error - 5050 - 10-31-2014

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/issues/83#issuecomment-61082226 (read until the end, it is a bit long !)


RE: sentora-installers error - skpacman - 10-31-2014

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