Phabricator can't start after upgrade

Upgrade phabricator from old version(2017) to newest stable version following the archive
: “Upgrade Phabricator” , but the phabricator process can’t normal start and error log in ./phd/log/daemons.log.

$ sudo /opt/bitnami/ctlscript.sh status|restart (had restart the server and all service, php-fpm/apache/mysql service not issue)

php-fpm already running
apache already running
Phabricator not running
mysql already running

  1. old version infomation:

  1. new version info:

|Library|版本|日期|Branchpoint|
|phabricator|2afedad61c51|Mar 29 2021|61272e7ac31a|
|arcanist |7af9846f994a |Mar 27 2021|f0f95e5b2612|

$ more ./daemons.log
[18-May-2021 01:24:40 America/Los_Angeles]   #3 PhabricatorRepositoryPullLocalDaemon::resolveUpdateFuture(PhabricatorRepository, ExecFuture, integer) called at [<phabricator>/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php:272]
[18-May-2021 01:24:40 America/Los_Angeles]   #4 PhabricatorRepositoryPullLocalDaemon::run() called at [<phabricator>/src/infrastructure/daemon/PhutilDaemon.php:219]
[18-May-2021 01:24:40 America/Los_Angeles]   #5 PhutilDaemon::execute() called at [<phabricator>/scripts/daemon/exec/exec_daemon.php:131]
[18-May-2021 01:24:41 America/Los_Angeles] [2021-05-18 01:24:41] EXCEPTION: (PhutilProxyException) Error while executing Task ID 159809. {>} (PhutilMissingSymbolException) Failed to load symbol "PhabricatorRepositoryCommitHeraldWorker" (of type "class or interface").

The class or interface "PhabricatorRepositoryCommitHeraldWorker" is not defined in the library map of any loaded library.

If you are not a developer, this almost always means that a library is out of date. For example, you may have upgraded "phabricator/" without upgrading "arcanist/", or vice versa. It might also mean that you need to restart Apache or PHP-FPM. Make sure all libraries are up to date and all services have been restarted.

If you are a developer and this symbol was recently added or moved, your library map may need to be rebuilt. You can rebuild the map by running "arc liberate".

For more information, see: https://phurl.io/u/newclasses at [<arcanist>/src/init/init-library.php:26]
[18-May-2021 01:24:41 America/Los_Angeles] arcanist(head=stable, ref.stable=7af9846f994a), phabricator(head=stable, ref.stable=2afedad61c51, custom=2)
[18-May-2021 01:24:41 America/Los_Angeles]   #0 <#2> __phutil_autoload(string) called at [<arcanist>/src/init/init-library.php:26]
[18-May-2021 01:24:41 America/Los_Angeles]   #1 <#2> spl_autoload_call(string)
[18-May-2021 01:24:41 America/Los_Angeles]   #2 <#2> is_subclass_of(string, string) called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerTask.php:79]
[18-May-2021 01:24:41 America/Los_Angeles]   #3 <#2> PhabricatorWorkerTask::getWorkerInstance() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:140]
[18-May-2021 01:24:41 America/Los_Angeles]   #4 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22]
[18-May-2021 01:24:41 America/Los_Angeles]   #5 PhabricatorTaskmasterDaemon::run() called at [<phabricator>/src/infrastructure/daemon/PhutilDaemon.php:219]
[18-May-2021 01:24:41 America/Los_Angeles]   #6 PhutilDaemon::execute() called at [<phabricator>/scripts/daemon/exec/exec_daemon.php:131]
[18-May-2021 01:24:43 America/Los_Angeles] [2021-05-18 01:24:43] EXCEPTION: (PhutilProxyException) Error while executing Task ID 159922. {>} (PhutilMissingSymbolException) Failed to load symbol "PhabricatorRepositoryCommitHeraldWorker" (of type "class or interface").

The class or interface "PhabricatorRepositoryCommitHeraldWorker" is not defined in the library map of any loaded library.

If you are not a developer, this almost always means that a library is out of date. For example, you may have upgraded "phabricator/" without upgrading "arcanist/", or vice versa. It might also mean that you need to restart Apache or PHP-FPM. Make sure all libraries are up to date and all services have been restarted.

If you are a developer and this symbol was recently added or moved, your library map may need to be rebuilt. You can rebuild the map by running "arc liberate".

For more information, see: https://phurl.io/u/newclasses at [<arcanist>/src/init/init-library.php:26]
[18-May-2021 01:24:43 America/Los_Angeles] arcanist(head=stable, ref.stable=7af9846f994a), phabricator(head=stable, ref.stable=2afedad61c51, custom=2)
[18-May-2021 01:24:43 America/Los_Angeles]   #0 <#2> __phutil_autoload(string) called at [<arcanist>/src/init/init-library.php:26]

Looks like you might have had some pending tasks of type PhabricatorRepositoryCommitHeraldWorker in your task queue, and now this class no longer exists (removed in ⚙ D20467 Merge the "Herald" and "Owners" daemon workers into a single "Publish" worker).
These tasks now fail.

Depending on how many of these there are, how old they are and how important they are, you might just want to cancel these tasks using ./bin/worker.

I canceled task about it , restart services(php-fpm,apache2,mysql,phabricator) also display not running

   # ./bin/worker cancel --class PhabricatorRepositoryCommitHeraldWorker

Is there any error message in the apache or fpm logs?