Add-on Install & Upgrade

Add-on Install & Upgrade 1.4.3

No permission to download
It'll be something to do with the user that your web server runs as, doesn't have permission to create directories in the install/addons directory.

This is the location where add-ons are extracted.

So it tries to create a directory there first, and it is failing because there is permission to do so.
Chris, now there aren't owner permission issues and zip extension is in place but:

Code:
Server Error
 
mkdir(): Permission denied
 
    XenForo_Application::handlePhpError()
    mkdir() in AddOnInstaller/Model/AddOn.php at line 49
    AddOnInstaller_Model_AddOn->recursiveCopy() in AddOnInstaller/Model/AddOn.php at line 64
    AddOnInstaller_Model_AddOn->recursiveCopy() in AddOnInstaller/Model/AddOn.php at line 64
    AddOnInstaller_Model_AddOn->recursiveCopy() in AddOnInstaller/Model/AddOn.php at line 64
    AddOnInstaller_Model_AddOn->recursiveCopy() in AddOnInstaller/ControllerAdmin/AddOn.php at line 223
    AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /store1/www/it.propit.www/doc_root/xenforo/admin.php at line 13
 
Chris, now there aren't owner permission issues and zip extension is in place but:

Code:
Server Error
 
mkdir(): Permission denied
 
    XenForo_Application::handlePhpError()
    mkdir() in AddOnInstaller/Model/AddOn.php at line 49
    AddOnInstaller_Model_AddOn->recursiveCopy() in AddOnInstaller/Model/AddOn.php at line 64
    AddOnInstaller_Model_AddOn->recursiveCopy() in AddOnInstaller/Model/AddOn.php at line 64
    AddOnInstaller_Model_AddOn->recursiveCopy() in AddOnInstaller/Model/AddOn.php at line 64
    AddOnInstaller_Model_AddOn->recursiveCopy() in AddOnInstaller/ControllerAdmin/AddOn.php at line 223
    AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /store1/www/it.propit.www/doc_root/xenforo/admin.php at line 13
This is now failing to create the necessary directories in the library, js or styles directories.

It's basically copying recursively all of the files extracted from the ZIP to the necessary places for the add-on to function.
 
What Chris said. The following directories must be writable by the same user/group that the PHP processes run as (either via DSO or PHP-FPM/CGI etc).

install/addons (may need to check install as well)
library
js
styles

Check the permissions on those directories.
 
What Chris said. The following directories must be writable by the same user/group that the PHP processes run as (either via DSO or PHP-FPM/CGI etc).

install/addons (may need to check install as well)
library
js
styles

Check the permissions on those directories.
Deebs, I know you know your stuff. Overall, how secure or unsecure is this? What are the right ways to do it and the wrong ways to do it?

I've had a mix of responses from people - some of whom are experienced server guys - some saying no way would I ever do anything that would allow this to run and others saying meh, it's ok.
 
Thank you Deebs, was a owner issue :)
I don't know how set up my SFTP client to upload files/folders with nginx:nginx owner...
So I need to chown my directories all the time :cautious:
 
Deebs, I know you know your stuff. Overall, how secure or unsecure is this? What are the right ways to do it and the wrong ways to do it?

I've had a mix of responses from people - some of whom are experienced server guys - some saying no way would I ever do anything that would allow this to run and others saying meh, it's ok.
Chris,

I replied via PM for the moment.
 
Exactly.
Updates are not a fully automatic process. If you install or upgrade an existing add on using the resource manager URL then they are checked for updates automatically going forward.

For other add ons you will need to go through the list and give each one the correct resource manager URL.
Oh okay cool. I tried to install prefix forum manager latest version, custom user field search, latest version of user essentials and latest version of sort member list and it gave me this error:

Admin Control Panel - 8thos
Server Error

Unknown error within ZIP Archive
  1. Zend_Filter_Compress_Zip->decompress() in Zend/Filter/Decompress.php at line 47
  2. Zend_Filter_Decompress->filter() in AddOnInstaller/Model/AddOn.php at line 29
  3. AddOnInstaller_Model_AddOn->extractZip() in AddOnInstaller/ControllerAdmin/AddOn.php at line 57
  4. AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade() in XenForo/FrontController.php at line 310
  5. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  6. XenForo_FrontController->run() in /home/user/public_html/admin.php at line 13
 
Chris, I've some trouble, where the addon doesn't seem to install. Tried for example with Xentag. I've the 1.5.2 installed and the latest is the 1.5.3. Your addon detects an update, I update, cache has been rebuilt, the notice disappears, but when I see the plugin list at home, Xentag is still set to 1.5.2. It seems it has not been installed. If I check update, notice is back. I have no errors. Did I miss something ?
If possible, I would wish to not be ignored. It happens for all add-ons requiring an update, and it happens the same for Option 1 & 2, even though the cache rebuilding is triggered and I have no errors.
I was using v0.2 before, and installing/upgrading from ZIP file was working fine. Now, with v1.0.0, installing new adddon from ZIP still works but updating an existing one doesn't work at all (unless I use the old way).
 
If possible, I would wish to not be ignored. It happens for all add-ons requiring an update, and it happens the same for Option 1 & 2, even though the cache rebuilding is triggered and I have no errors.
I was using v0.2 before, and installing/upgrading from ZIP file was working fine. Now, with v1.0.0, installing new adddon from ZIP still works but updating an existing one doesn't work at all (unless I use the old way).
I assume your query would have been answered the same way as Tracy Perry's

I've tested this and I'm not seeing the same issue. There's a possibility that an error is being suppressed so I will address this in an update shortly. We'll then go from there.
 
Chris, is there a way to add a FTP option, where the system would take the ftp credentials and download as the ftp user? I had someone take a look at my server and he said that the folder and file permissions that I have ensures I don't get hacked over file permissions.I had wordpress addon that enabled fTP uploads, maybe something to consider?
 
Oh okay cool. I tried to install prefix forum manager latest version, custom user field search, latest version of user essentials and latest version of sort member list and it gave me this error:

Admin Control Panel - 8thos
Server Error

Unknown error within ZIP Archive
  1. Zend_Filter_Compress_Zip->decompress() in Zend/Filter/Decompress.php at line 47
  2. Zend_Filter_Decompress->filter() in AddOnInstaller/Model/AddOn.php at line 29
  3. AddOnInstaller_Model_AddOn->extractZip() in AddOnInstaller/ControllerAdmin/AddOn.php at line 57
  4. AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade() in XenForo/FrontController.php at line 310
  5. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  6. XenForo_FrontController->run() in /home/user/public_html/admin.php at line 13

Had same error. Check the xFS convo. :)
 
Bugreport:
When using an add-on that uses letters in it's version name, such as 1.1b or similar, it ignores the letter when comparing versions, so the installed version seems to always be "out of date" when checking for updates.
The installed version shown in the update list is always without any letters, which makes it report that there is always a new version available, this happens for me for all my installed add-ons that use such version naming.
Try it yourself with a few of them:
 
Oh okay cool. I tried to install prefix forum manager latest version, custom user field search, latest version of user essentials and latest version of sort member list and it gave me this error:

Admin Control Panel - 8thos
Server Error

Unknown error within ZIP Archive
  1. Zend_Filter_Compress_Zip->decompress() in Zend/Filter/Decompress.php at line 47
  2. Zend_Filter_Decompress->filter() in AddOnInstaller/Model/AddOn.php at line 29
  3. AddOnInstaller_Model_AddOn->extractZip() in AddOnInstaller/ControllerAdmin/AddOn.php at line 57
  4. AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade() in XenForo/FrontController.php at line 310
  5. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  6. XenForo_FrontController->run() in /home/user/public_html/admin.php at line 13


There is problem with archive, when you look at it there is a directory and then it that directory upload and xml file. Download my attachment and it will work properly. (I removed directory from archive).
 

Attachments

  • Like
Reactions: DRE
Back
Top Bottom