• Hey, since some weeks I get the error “Download failed. Forbidden” on update pages.
    Any idea about this behavior?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Alexandre Froger

    (@frogerme)

    Hello!

    I am not sure how to reproduce the issue ; here are the tests I performed:

    • I am running WordPress latest version on all sites
    • The UPS site serving updates is minimal: UpdatePulse Server plugin is the priority, running a default theme, and other plugins are maintained to a minimum to avoid conflicts
    • I have the Dummy Plugin package installed on a test domain with the version set to 1.4.9, set to use a license
    • I have the Dummy Plugin package at version 1.5 in UPS
    • Visiting the update URL found in the details modal of the package (like https://ups-domain.com/updatepulse-server-update-api/?action=get_metadata&package_id=dummy-plugin&installed_version=1.5.0&checking_for_updates=1&update_type=Plugin) shows the JSON information of the package, with a license_error attribute, itself with code invalid_license (as intended: a license is set)
    • I deactivated the license on the test domain, and re-activated it successfully
    • I checked for updates in wp-admin/update-core.php?force-check=1 successfully
    • I updated the Dummy Plugin package successfully

    Please let me know how I can reproduce the issue.

    Thread Starter WebCodePoet

    (@senjoralfonso)

    Hey @frogerme, while I don’t know how to set your system to reproduce, I set the caching folder size on the settings to zero, and now it looks like the problem is gone.

    Plugin Author Alexandre Froger

    (@frogerme)

    Hi!

    Glad to read this!

    The cache is an important component of the system though: each file in the folder contains a base64-encoded serialized array with information about the package taken from the zip file, so that it can be served to the clients via the update API without having to parse the zip archive each time. Without the cache, the system will work, but you may see performance degradations (although it very much depends on the number of clients). So it does not seem to be a long term solution.

    What happens if you change the size back to default, clear the cache, and check again?

    Thread Starter WebCodePoet

    (@senjoralfonso)

    Hey, no I don’t get it working. There are no errors in the logs, but the download always says forbidden.

    Thread Starter WebCodePoet

    (@senjoralfonso)

    Hey, for testing I set up a single instance, just wp and the update server plugin. Then I installed three sites.

    Mostly it says “forbidden” sometimes it updates on of three test plugins.

    Because the wp debug is empty and the log you provide don not shows errors, I do not know further how to debug this.

    Plugin Author Alexandre Froger

    (@frogerme)

    Hi!
    The intermittent nature of the issue seems to indicate a server configuration source (fail2ban for instance). UpdatePulse Server itself would not give different results if the requests it receives do not change.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.