After update to 7.0.0 can't access my e-mails - error 500 comes!

Question how to update:

ChatGpt brings me that advice (using the php command with prefix www-data):

user01@ubuntu-4gb-nbg1-2:/var/www/html/mautic$ sudo -u www-data php /var/www/html/mautic/bin/console mautic:update:find
Version 7.0.0 von Mautic ist zum Download bereit. Weitere Informationen finden Sie hier: https://github.com/mautic/mautic/releases/tag/7.0.0.
Geben Sie 'php bin/console mautic:update:apply' in die Kommandozeile ein, um das Update durchzuführen.
user01@ubuntu-4gb-nbg1-2:/var/www/html/mautic$

Is that the right way? If not, please write me the correct way.
As i now, the www-data has to be the owner of the mautic directory…nor the user01 (in my case).

I’m not as eloquent as your preferred chatbot is. Please bear with me.

The error that you’ve reported earlier was crystal clear. Zero hesitation on the problem.

It’s a user permission problem. And not a “mautic” one.

How to interpret the error:
You have some user that is equal or stronger than your www-data user.
That user is modifying the files in the cache.
Then, the user “www-data” now tries to rename some file/directory.
But the user “www-data” isn’t privileged enough to perform that task, and crash out.

”Mautic” isn’t involved in that crash. It’s happens because of a misconfiguration (or use)

The long story short: How to resolve

  1. As user01, create a permission-less user (let’s say “webmaster”)
    sudo adduser webmaster

  2. add that user to the www-data group
    sudo usermod -aG www-data webmaster

  3. move your mautic out of the /var/ directory and move it to the /home/webmaster/public_html (where mautic will be living)
    sudo mv /var/www/mautic /home/webmaster/public_html

  4. change ownership of the files:
    sudo chown webmaster: /home/webmaster/public_html -R

  5. create/update your vhost to point to the /home/webmaster/public_html directory

  6. remove any old cronjobs. Those will now be executed by the web user (webmaster)

  7. switch to the web user
    sudo su webmaster

  8. Start installing/managing your web app (add the cronjobs, tweak your environment vars, make yourself confortable with a $HOME/bin/…)

A free server management panel is webmin. Very easy to install on Ubuntu (a must have imo). You’ll be able to easily do all the above from a GUI.

Sorry, that is far away from all other install tutorials…i think it works…but i don’t want complete reorg my server and install a very special way…

7.0.0 has a confirmed bug.
After releasing an update, i can look again.