Sentora Support Forums

Full Version: All New Sentastico!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Very good!! Big Grin
When i try to add a package i get this message:
Quote:Error getting package information. Try again later.

If problem persists, contact your server administrator.
@[Ron-e], Does it happen with all the packages or just a few?

Make sure you can access: http://sen-packs.mach-hosting.com/packages.txt
(01-24-2016, 06:27 AM)TGates Wrote: [ -> ]Does it happen with all the packages or just a few?
Jep, it does happen with all packages.

(01-24-2016, 06:27 AM)TGates Wrote: [ -> ]Make sure you can access: http://sen-packs.mach-hosting.com/packages.txt
I can wget and read the file with php and i see the list in the "add packages" tab.



maybe this helps;
Code:
[Sun Jan 24 06:38:59 2016] [error] [client -snipIP-] PHP Notice:  Undefined index: pkg_zipname in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 33, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:00 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/?module=sentastico [Sun Jan 24 06:39:02 2016] [error] [client -snipIP-] PHP Notice:  Undefined index: pkg_zipname in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 33, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:19 2016] [error] [client -snipIP-] PHP Warning:  fopen(../../../modules/sentastico/packages/wordpress_4.1.zip): failed to open stream: Permission denied in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 89, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:19 2016] [error] [client -snipIP-] PHP Warning:  fputs() expects parameter 1 to be resource, boolean given in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 90, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:19 2016] [error] [client -snipIP-] PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 91, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:19 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: xmlArray in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 146, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:19 2016] [error] [client -snipIP-] PHP Warning:  unlink(../../../modules/sentastico/packages/wordpress_4.1.zip): No such file or directory in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 158, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:25 2016] [error] [client -snipIP-] PHP Notice:  Undefined index: pkg_zipname in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 33, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php [Sun Jan 24 06:39:26 2016] [error] [client -snipIP-] PHP Notice:  Undefined variable: package_desc in /etc/sentora/panel/modules/sentastico/code/sentastico_admin.php on line 239, referer: http://sub.domain.ltd:PORT/modules/sentastico/code/sentastico_admin.php
The directory /etc/sentora/panel/modules/sentastico/packages has 755 permissions and owner is root root
Ahhh, make sure permissions are apache:apache
The issue is that the package can not be saved to the packages folder if owned by root:root

How it works:
If you are an admin, sentastico will show a new tab menu at the top. Select Admin.
On the 'Add Packages' tab Sentastico grabs the list of available packages from the repo and displays them.
When you click 'Add' it downloads the package to the packages folder and scans the new package for 'sentastico.xml' which contains the packages information (Name, Description, Version, etc.) and imports it into the database so that the 'Client Side' can display useful information about the package.
(01-24-2016, 06:21 PM)TGates Wrote: [ -> ]Ahhh, make sure permissions are apache:apache
The issue is that the package can not be saved to the packages folder if owned by root:root

How it works:
If you are an admin, sentastico will show a new tab menu at the top. Select Admin.
On the 'Add Packages' tab Sentastico grabs the list of available packages from the repo and displays them.
When you click 'Add' it downloads the package to the packages folder and scans the new package for 'sentastico.xml' which contains the packages information (Name, Description, Version, etc.) and imports it into the database so that the 'Client Side' can display useful information about the package.

This did fixed it:
Code:
chown -R apache:apache /etc/sentora/panel/modules/sentastico/packages

This is how i installed it, can the installer check if that directory is from apache and if not change it to apache?
@[Tgates] you cann add the chrown to the installer? As once the installer execute it might be under root?

M B
(01-25-2016, 03:10 AM)Me.B Wrote: [ -> ]@[Tgates] you cann add the chrown to the installer? As once the installer execute it might be under root?

M B

In my testing all were owned by apache:apache using zppy install and repo browser so I am not sure why the permissions were not correct. I can add a check to make sure that the packages folder is permissioned properly.

Should they be apache:apache 755 or 766? What would be the best setting?
Suggest update to install.run:

PHP Code:
// Make sure permissions are set properly
function fixPermissions(){   
    
global $controller;
    
 
   $module_path "./modules/".$controller->GetControllerRequest('URL''module');
 
                                                 
    $sysOS 
php_uname('s');                                                                        
    $zsudo 
ctrl_options::GetOption('zsudo');                                                      
                                                                                                    
    switch
($sysOS){                                                                                 
        case 
'Linux'                                                                              
            exec
("$zsudo chown -R apache.apache " $module_path);                               
            exec
("$zsudo chmod -R 755 " $module_path);                                            
        break
                                                                                     
        case 
'Unix'                                                                               
            exec
("$zsudo chown -R apache:apache " $module_path);                               
            exec
("$zsudo chmod -R 755 " $module_path);                                            
        break
                                                                                     
        default
                                                                                   
            
//windows or incompilable operating system !!Do Nothing!!                               
 
       break                                                                                     
    
                                                                                              
}

fixPermissions(); 
Pages: 1 2 3 4