1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-08 11:52:30 +01:00
74 Updating FreeScout
FreeScout edited this page 2023-12-08 13:22:27 +03:00

Before updating the app make sure to backup application files and database.

If some updating method does not work or results in an error, simply use the next one or use manual updating which works always.

If after updating you receive some new errors re-update using manual updating method.

After Updating

Go to Manage > System and make sure that "queue:work" is running and there are no duplicates (it may take a few minutes for it to start).

If you are receiving an error in some cases it may be needed to restart PHP FPM:**

etc/init.d/php8.0-fpm restart

Method 1. Update from web interface

Open FreeScout and go to Manage » System » Status. In App Version section click Check for updates and follow instructions:

Updating process may take several minutes, do not close browser window until it finishes or shows an error. Sometimes when updating finishes you may see the "Error occurred" message. It means updating process did not finish properly and you need to update FreeScout manually.

Updating via web interface may work or may not. Some releases may be installed fine via web interface and some - not. Today updating via the web interface may work, tomorrow - not. There are many factors involved.

If updating view web interface fails:

  • Try to update again.
  • If still no luck, switch to another update methods.

If version number does not change after updating it means updating process has not finished properly and there may be all kinds of unexpected problems in the future. In this case switch to another update method or use manual updating method (which works always).

Method 2. Update using console script

This method requires SSH console and GIT.

  1. Go to the root of your FreeScout application.
  2. Run update script:
sudo -u www-data /var/www/html/tools/update.sh
  1. Follow instructions.

Method 3. Update using GIT

This method requires SSH console and GIT.

  1. Pull updates from GitHub:
git pull
  1. Run the following console command:
php artisan freescout:after-app-update

Method 4. Update via tools.php

Use this method only if you can not use console or GIT.

  1. Open https://example.com/tools.php

  1. Enter APP_KEY from your .env file and click Update App button.
  2. Open and check application.

Method 5. Update manually

  1. Remove /vendor directory: rm -rf /path/to/freescout/vendor
  2. Download and extract archive into FreeScout directory on your server overwriting all existing files (no worries, no configuration files will be overridden).
  3. Login to FreeScout, go to "Manage » System » Tools", click "Clear Cache" and "Migrate DB".
  4. If previous step did not work use some other method to clear the cache.
  5. Click "Migrate DB".
  6. Open and check application.

Troubleshooting

First thing you need to do in case of some problems is to check logs in /storage/logs.

If self-updater script hits your hosting's PHP memory size limit or `PHP max execution time

  • Try to update again.
  • If still does not work, switch to another update methods.

If you are facing a database error

Try to run Migration via https://example.com/tools.php or by executing console command:

php artisan migrate

Permission denied when writing to some file

Check permissions section in "Manage > System > Status" and see https://github.com/freescout-helpdesk/freescout/wiki/Installation-Guide#-permissions-issue

open_basedir restriction in effect

Try this.