I have performed an upgrade from may 3.14.1 Matomo to the latest version. I have Matotmo it running on my VPS (debian) for many years. Made a backup from the most important files and the database. Than get the latest zip (Wget) and copied that over to the folder where I have the older version /usr/share/matomo . When I go to the matomo/index.php I get this major error. Which I do not really understand.
In the folder /usr/share/matomo there are two symlinks is that ok?:
/usr/share/matomo/
total 420
drwxr-xr-x 11 root root 4096 May 22 11:48 .
drwxr-xr-x 250 root root 12288 Dec 9 14:38 ..
-rw-r–r-- 1 root root 118681 May 22 11:48 CHANGELOG.md
lrwxrwxrwx 1 root root 11 Jun 26 2018 config → /etc/matomo
-rwxr-xr-x 1 root root 753 May 22 11:48 console
-rw-r–r-- 1 root root 1432 May 22 11:48 CONTRIBUTING.md
drwxr-xr-x 56 root root 12288 May 22 11:48 core
-rw-r–r-- 1 root root 555 May 22 11:48 DIObject.php
-rw-r–r-- 1 root root 0 Aug 26 2020 favicon.ico
-rw-r–r-- 1 root root 716 May 22 11:48 index.php
drwxr-xr-x 2 root root 4096 Jul 8 2021 js
drwxr-xr-x 2 root root 4096 May 22 11:48 lang
-rw-r–r-- 1 root root 828 May 22 11:48 LegacyAutoloader.php
-rw-r–r-- 1 root root 9164 May 22 11:48 LEGALNOTICE
drwxr-xr-x 11 root root 4096 Jul 8 2021 libs
-rw-r–r-- 1 root root 35146 May 22 11:48 LICENSE
-rw-r–r-- 1 www-data www-data 67976 May 22 11:48 matomo.js
-rw-r–r-- 1 root root 334 May 22 11:48 matomo.php
drwxr-xr-x 9 root root 4096 Jul 8 2021 misc
drwxr-xr-x 14 root root 4096 May 22 11:48 node_modules
-rw-r–r-- 1 root root 6381 May 22 11:48 offline-service-worker.js
-rw-r–r-- 1 www-data www-data 67976 May 22 11:48 piwik.js
-rw-r–r-- 1 root root 2766 May 22 11:48 piwik.php
drwxr-xr-x 76 root root 4096 May 22 11:48 plugins
-rw-r–r-- 1 root root 4619 May 22 11:48 PRIVACY.md
-rw-r–r-- 1 root root 6238 May 22 11:48 README.md
-rw-r–r-- 1 root root 770 May 22 11:48 robots.txt
-rw-r–r-- 1 root root 1873 May 22 11:48 SECURITY.md
drwxr-xr-x 2 root root 4096 Jul 8 2021 tests
lrwxrwxrwx 1 root root 24 Jun 26 2018 tmp → /var/lib/matomo/data/tmp
drwxr-xr-x 27 root root 4096 May 22 11:48 vendor
Entry "Piwik\Application\Kernel\EnvironmentValidator" cannot be resolved: Entry "Piwik\Translation\Translator" cannot be resolved: Entry "Piwik\Translation\Loader\LoaderInterface" cannot be resolved: Entry "Matomo\Cache\Lazy" cannot be resolved: Entry "Matomo\Cache\Backend" cannot be resolved: the class is not instantiableFull definition:Object ( class = #NOT INSTANTIABLE# Matomo\Cache\Backend lazy = false)Full definition:Object ( class = Matomo\Cache\Lazy lazy = false __construct( $backend = get(Matomo\Cache\Backend) ))Full definition:Object ( class = Piwik\Translation\Loader\LoaderCache lazy = false __construct( $loader = get(Piwik\Translation\Loader\JsonFileLoader) $cache = get(Matomo\Cache\Lazy) ))Full definition:Object ( class = Piwik\Translation\Translator lazy = false __construct( $loader = get(Piwik\Translation\Loader\LoaderInterface) $directories = (default value) NULL ))Full definition:Object ( class = Piwik\Application\Kernel\EnvironmentValidator lazy = false __construct( $settingsProvider = get(Piwik\Application\Kernel\GlobalSettingsProvider) $translator = get(Piwik\Translation\Translator) ))
Any suggestion how to get things going again? Thanks. Do I need to remove the symlinks? Or have other links in stead?
Nice
I solved it myself. By removing the symlinks to the older dirs. And copy over the config.ini.php to the new config location. After that it is working again. Although I do not see any site visitors or actions right now. Must be patience I guess.