Upgrade from 8.2.1 to 8.2.2 error occurred while fetching metadata

I get " error occurred while fetching metadata" and can not login in SuiteCRM. I notice that the upgrade delete .htaccess file, when I copy file from 8.2.1 to 8.2.2 directory I have got the same error.

If I reinstall 8.2.1 version all works again.

Suitecrm is installed in Ubuntu Server 22.04, MariaDB and PHP 7.4

Someone has this issue? Thanks.


prod.log file shows:
[2023-01-19 07:27:14] request.INFO: Matched route “api_graphql_entrypoint”. {“route”:“api_graphql_entrypoint”,“route_parameters”:{"_route":“api_graphql_entrypoint”,"_controller":“api_platform.graphql.action.entrypoint”,"_graphql":true},“request_uri”:“http://10.0.0.99/api/graphql",“method”:"POST”} []
[2023-01-19 07:27:14] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: “Invalid CSRF token” at /var/www/suitecrm8/core/backend/Security/CSRFValidationListener.php line 96 {“exception”:"[object] (Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException(code: 0): Invalid CSRF token at /var/www/suitecrm8/core/backend/Security/CSRFValidationListener.php:96)"} []
[2023-01-19 07:27:14] request.INFO: Matched route “api_graphql_entrypoint”. {“route”:“api_graphql_entrypoint”,“route_parameters”:{"_route":“api_graphql_entrypoint”,"_controller":“api_platform.graphql.action.entrypoint”,"_graphql":true},“request_uri”:“http://10.0.0.99/api/graphql",“method”:"POST”} []
[2023-01-19 07:27:14] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: “Invalid CSRF token” at /var/www/suitecrm8/core/backend/Security/CSRFValidationListener.php line 96 {“exception”:"[object] (Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException(code: 0): Invalid CSRF token at /var/www/suitecrm8/core/backend/Security/CSRFValidationListener.php:96)"} []

Browser shows this:
node_modules_angular_core_fesm2015_core_js-es2015.e67882692b6d3d658f6b.js:1 ERROR Error: Uncaught (in promise): Error: Http failure response for http://10.0.0.99/api/graphql: 403 Forbidden
Error: Http failure response for http://10.0.0.99/api/graphql: 403 Forbidden
at new t (node_modules_apollo-angular_fesm2015_ngApollo_js-_0ddc0-es2015.31fc3a06fac668918939.js:1:35812)
at node_modules_apollo-angular_fesm2015_ngApollo_js-_0ddc0-es2015.31fc3a06fac668918939.js:1:66628
at r (node_modules_apollo-angular_fesm2015_ngApollo_js-_0ddc0-es2015.31fc3a06fac668918939.js:1:33160)
at node_modules_apollo-angular_fesm2015_ngApollo_js-_0ddc0-es2015.31fc3a06fac668918939.js:1:33086
at new P (polyfills-es2015.e450e5585fc067c2eadd.js:1:18300)
at Object.then (node_modules_apollo-angular_fesm2015_ngApollo_js-_0ddc0-es2015.31fc3a06fac668918939.js:1:33053)
at Object.error (node_modules_apollo-angular_fesm2015_ngApollo_js-_0ddc0-es2015.31fc3a06fac668918939.js:1:33170)
at v (core_app_shell_src_bootstrap_ts-es2015.376068f61f1fb7ece8f1.js:1:165870)
at _ (core_app_shell_src_bootstrap_ts-es2015.376068f61f1fb7ece8f1.js:1:166366)
at t.error (core_app_shell_src_bootstrap_ts-es2015.376068f61f1fb7ece8f1.js:1:166919)
at w (polyfills-es2015.e450e5585fc067c2eadd.js:1:16429)
at w (polyfills-es2015.e450e5585fc067c2eadd.js:1:15965)
at polyfills-es2015.e450e5585fc067c2eadd.js:1:17272
at u.invokeTask (polyfills-es2015.e450e5585fc067c2eadd.js:1:7770)
at Object.onInvokeTask (node_modules_angular_core_fesm2015_core_js-es2015.e67882692b6d3d658f6b.js:1:198001)
at u.invokeTask (polyfills-es2015.e450e5585fc067c2eadd.js:1:7691)
at t.runTask (polyfills-es2015.e450e5585fc067c2eadd.js:1:3166)
at b (polyfills-es2015.e450e5585fc067c2eadd.js:1:9764)
at l.invokeTask [as invoke] (polyfills-es2015.e450e5585fc067c2eadd.js:1:8849)
at m (polyfills-es2015.e450e5585fc067c2eadd.js:1:20635)

The issue is present in 8.3.1 too.