Skip to content

Updating FreeScout

FreeScout edited this page Jan 23, 2023 · 80 revisions

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

After updating go to Manage > System and make sure that "queue:work" is running and there are not duplicates (it may take a few minutes for it to strat).


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, but FreeScout shows a new version and functions normally. Sometimes you just need to clear the cache after FreeScout shows an "Error occurred" message during updating.

If self-updater script fails:

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

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:
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. Download and extract FreeScout archive directory on your server overwriting all existing files (no worries, no configuration files will be overriden).
  2. Login to FreeScout, go to "Manage » System » Tools", click "Clear Cache" and "Migrate DB".
  3. If previous step did not work use some other method to clear the cache.
  4. Click "Migrate DB".
  5. Open and check application.

Troubleshooting

First thing you need to do 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

Clone this wiki locally