How do I do that?
done.
then php73 vendor/composer/composer install --no-dev
output (last line)
- Installing composer/ca-bundle (1.2.9): Downloading (100%)
[RuntimeException]
/www/htdocs/w01b8983/rechnung/vendor/composer/composer exists and is not a directory.
second try
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 8 installs, 78 updates, 0 removals
[RuntimeException]
/www/htdocs/w01b8983/rechnung/vendor/composer/composer exists and is not a directory.
Now v4 crashed, @david
Warning : require(/www/htdocs/w01b8983/rechnung/vendor/composer/…/symfony/polyfill-php70/bootstrap.php): failed to open stream: No such file or directory in /www/htdocs/w01b8983/rechnung/vendor/composer/autoload_real.php on line 66
Warning : require(/www/htdocs/w01b8983/rechnung/vendor/composer/…/symfony/polyfill-php70/bootstrap.php): failed to open stream: No such file or directory in /www/htdocs/w01b8983/rechnung/vendor/composer/autoload_real.php on line 66
Fatal error : require(): Failed opening required ‘/www/htdocs/w01b8983/rechnung/vendor/composer/…/symfony/polyfill-php70/bootstrap.php’ (include_path=’.:/usr/share/php:…’) in /www/htdocs/w01b8983/rechnung/vendor/composer/autoload_real.php on line 66
If you’re having trouble with composer you can use the pre-built zip which includes the third party libs.
Thank you @hillel
I had done that last time. Only, as @david thing was wrong.
But I will try it again right away.
Now it is destroyed.
Fatal error : Uncaught Dotenv\Exception\InvalidFileException: Dotenv values starting with a quote must finish with a closing quote. in /www/htdocs/w01b8983/rechnung/vendor/vlucas/phpdotenv/src/Parser.php:98 Stack trace: #0 /www/htdocs/w01b8983/rechnung/vendor/vlucas/phpdotenv/src/Parser.php(41): Dotenv\Parser::parseQuotedValue(’’-----BEGIN CER…’) #1 /www/htdocs/w01b8983/rechnung/vendor/vlucas/phpdotenv/src/Loader.php(238): Dotenv\Parser::parseValue(’’-----BEGIN CER…’) #2 /www/htdocs/w01b8983/rechnung/vendor/vlucas/phpdotenv/src/Loader.php(152): Dotenv\Loader->sanitiseVariableValue(‘SSL_SERVER_CERT’, ‘’-----BEGIN CER…’) #3 /www/htdocs/w01b8983/rechnung/vendor/vlucas/phpdotenv/src/Loader.php(129): Dotenv\Loader->processFilters(‘SSL_SERVER_CERT’, ‘’-----BEGIN CER…’) #4 /www/htdocs/w01b8983/rechnung/vendor/vlucas/phpdotenv/src/Loader.php(325): Dotenv\Loader->normaliseEnvironmentVariable(‘SSL_SERVER_CERT…’, NULL) #5 /www/htdocs/w01b8983/rechnung/vendor/vlucas/phpdotenv/src/Loader.php(90): Dotenv\Loader->setEnvironment in /www/htdocs/w01b8983/rechnung/vendor/vlucas/phpdotenv/src/Parser.php on line 98
Check for any unclosed quotes in the .env file, for a example a quote followed by a line break.
I never changed .env.
It looks like
REDIRECT_SSL_SERVER_CERT=’-----BEGIN CERTIFICATE-----
MIIGMTCCBRmgAwIBAgISAwGBVboCOZvhaAQXlz7D10h7MA0GCSqGSIb3DQEBCwUA
MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xODEwMDMxMzA5NDdaFw0x
OTAxMDExMzA5NDdaMCAxHjAcBgNVBAMTFW1laW5mYW1pbGllbmZyZXVuZC5kZTCC
ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKXZuOFY+ZUbE7aUVJxbYuOZ
GDnz3reEuAd4cUZVasj92w55oSurGvj8g3nAO7KeK1Mz2ubeLQP3JXNcVSOfORgg
JX1LYTcQa8I5V67XoaAOKZ9WjwlUrbeE2XYhzXqO4nyQAeCESvbrqvSLsJycwE9y
w9WgT/CB3+Ul+XfXezTORv7h/G2CXPLSgHJgkAOnsNxUZiR1dcLUyqsONTlRWliO
UHAQEEYzBhMC4GCCsGAQUFBzABhiJodHRwOi8vb2NzcC5pbnQteDMubGV0c2Vu
Y3J5cHQub3JnMC8GCCsGAQUFBzAChiNodHRwOi8vY2VydC5pbnQteDMubGV0c2Vu
Y3J5cHQub3JnLzA7BgNVHREENDAyghVtZWluZmFtaWxpZW5mc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N/eX9CxgH+RIOuGBfS5ZhUZA6VABT1JFK44nV9txGQTm
4cngOiU=
-----END CERTIFICATE-----’
There are always 2 ’
If I delete the beginning ', a similar error text comes, that it is missing
I also reinstalled it in a new directory https://v4.myfamilyfriend.com and copied the .env. There comes the same error.
Try deleting those lines, they aren’t needed by the app
v4.meinfamilienfreund.de : Update successfull with
Successfully completed update - [See what’s new in v4.5.34]
productiv : Whoops, looks like something went wrong.
Can I migrate from my (backup) v4?
The migration starts and I could select (my)one company. But after that unfortunately :
Whoops, looks like something went wrong.
laravel-error.log
[2021-03-11 13:38:30] production.ERROR: Invalid secret: /update?secret= {“context”:“PHP”,“user_id”:0,“account_id”:0,“user_name”:"",“method”:“GET”,“user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36”,“locale”:“en”,“ip”:“95.91.28.70”,“count”:1,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“update”} []
[2021-03-11 13:45:27] production.ERROR: Illuminate\Contracts\Encryption\DecryptException [0] : /www/htdocs/w01b8983/rechnungv4/vendor/turbo124/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. {“context”:“PHP”,“user_id”:1,“account_id”:1,“user_name”:“Thomas Kujawa”,“method”:“POST”,“user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36”,“locale”:“de”,“ip”:“95.91.28.70”,“count”:1,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“migration/companies”} []
There is no migration.log. Not with v4. And not with v5.
The “The MAC is invalid” error can happen if the value of APP_KEY in the .env file is changed.
For v5 the
COMMAND_SECRET=
UPDATE_SECRET=
are not in the .env file.
Do I need to transfer them?
I don’t think you have to
Which error specifically are you seeing?
Whoops, looks like something went wrong.
last line from laravel-error.log
[2021-03-11 15:03:53] production.ERROR: Illuminate\Contracts\Encryption\DecryptException [0] : /www/htdocs/w01b8983/rechnungv4/vendor/turbo124/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. {“context”:“PHP”,“user_id”:1,“account_id”:1,“user_name”:“Thomas Kujawa”,“method”:“POST”,“user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36”,“locale”:“de”,“ip”:“95.91.28.70”,“count”:1,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“migration/companies”} []
Which Api key has changed? What must / can I do?
That usually means the value of APP_KEY in the .env file has changed, have you moved the app?
Yes, because the production environment is broken after the Docker error.
instead of https://meinfamilienfreund.de it is now running at https://v4.meinfamilienfreund.de
What do I need to do to update the key? And where?
(I found the debug mode. In this video you can see the error at the end: Vidyard Recording
The APP_KEY will be in the original .env file, you’ll want to copy it over