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

Your software
My Mautic version is: 7.0.0
My PHP version is: 8.3.6
My Database type and version is:10.11.13
I installed Mautic via: Zip - Updated via php bin/console mautic:update:find and following commands.

Your problem
My problem is: Mautic display error in the Mail Area
Note: I have a multi user Mautic. Admin, user1, user2
I tested that yesterday as user1 - i’m sure it’s right problem in the user Management. 6.0.7 works fine.
I always updated over the php bin/console mautic:update:find from 4.4 to 5 to 6.0.7 without any tweaks. ubuntu 24.04 server at hetztner.com - nothing special on my side.

These errors are showing in the log: Don’t know which log you need - but i had to go back to 6.0.7 because of the error above. Try out multi user Instance and you see the error. 100%

Steps I have tried to fix the problem: Nothing - Don’t know how. Went back to 6.0.7 because of this huge bug.
Here is my bug created on Github - Closed…hmmm….

When I encounter Mautic errors during upgrades, I connect Windsurf AI IDE via SSH and use Claude Opus 4.5, and it always fixes them in a few minutes.

Often, these issues occur because the cache isn’t properly cleared before and after the upgrade. Sometimes you need to manually delete everything from the cache folder.

@stefan-franz as I mentioned on GitHub, if you wish people to help you must provide your server logs. We cannot help troubleshoot without the actual logs that tell you what the problem is.

1 Like

I’d like to do it. What files or information exactly do you need?
Pls filepath / filename / some lines in a file….?

To get your log files, check the /var/logs folder in your Mautic folder.

You’ll see files by date.

Reproduce the problem, go to the log file, read the logs to see what is causing the error. It could well be a third-party plugin, for example. The log files should tell you the info about what’s causing the error.

Be sure to redact any sensitive information before sharing them in the forums. Thanks!

updatet again from 6.0.7 to 7.0.0
Switching to the e-Mail section brings the error above - her is the log file:

mautic_prod-2026-01-28.php

[2026-01-28T10:50:07.924533+00:00] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Filesystem\Exception\IOException: "Cannot rename "/tmp/url_matching_routes.phprfPP5K" to "/var/www/html/mautic/var/cache/prod/url_matching_routes.php": rename(/tmp/url_matching_routes.phprfPP5K,/var/www/html/mautic/var/cache/prod/url_matching_routes.php): Permission denied" at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php line 304 {"exception":"[object] (Symfony\\Component\\Filesystem\\Exception\\IOException(code: 0): Cannot rename \"/tmp/url_matching_routes.phprfPP5K\" to \"/var/www/html/mautic/var/cache/prod/url_matching_routes.php\": rename(/tmp/url_matching_routes.phprfPP5K,/var/www/html/mautic/var/cache/prod/url_matching_routes.php): Permission denied at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php:304)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":218647}
[2026-01-28T10:50:08.010861+00:00] mautic.CRITICAL: Exception thrown when handling an exception (Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Cannot rename "/tmp/url_generating_routes.php1UfNej" to "/var/www/html/mautic/var/cache/prod/url_generating_routes.php": rename(/tmp/url_generating_routes.php1UfNej,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied") in "@MauticCore/Default/script.html.twig" at line 7. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig line 7) {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (\"Cannot rename \"/tmp/url_generating_routes.php1UfNej\" to \"/var/www/html/mautic/var/cache/prod/url_generating_routes.php\": rename(/tmp/url_generating_routes.php1UfNej,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied\") in \"@MauticCore/Default/script.html.twig\" at line 7. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig:7)\n[previous exception] [object] (Symfony\\Component\\Filesystem\\Exception\\IOException(code: 0): Cannot rename \"/tmp/url_generating_routes.php1UfNej\" to \"/var/www/html/mautic/var/cache/prod/url_generating_routes.php\": rename(/tmp/url_generating_routes.php1UfNej,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php:304)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":218647}
[2026-01-28T10:50:08.019409+00:00] mautic.ERROR: Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Cannot rename "/tmp/url_generating_routes.php1UfNej" to "/var/www/html/mautic/var/cache/prod/url_generating_routes.php": rename(/tmp/url_generating_routes.php1UfNej,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied") in "@MauticCore/Default/script.html.twig" at line 7. - in file /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig - at line 7 [] {"hostname":"ubuntu-4gb-nbg1-2","pid":218647}
[2026-01-28T10:50:20.419277+00:00] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Filesystem\Exception\IOException: "Cannot rename "/tmp/url_matching_routes.phpGx84Ey" to "/var/www/html/mautic/var/cache/prod/url_matching_routes.php": rename(/tmp/url_matching_routes.phpGx84Ey,/var/www/html/mautic/var/cache/prod/url_matching_routes.php): Permission denied" at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php line 304 {"exception":"[object] (Symfony\\Component\\Filesystem\\Exception\\IOException(code: 0): Cannot rename \"/tmp/url_matching_routes.phpGx84Ey\" to \"/var/www/html/mautic/var/cache/prod/url_matching_routes.php\": rename(/tmp/url_matching_routes.phpGx84Ey,/var/www/html/mautic/var/cache/prod/url_matching_routes.php): Permission denied at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php:304)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":266307}
[2026-01-28T10:50:20.482080+00:00] mautic.CRITICAL: Exception thrown when handling an exception (Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Cannot rename "/tmp/url_generating_routes.phpPULCFx" to "/var/www/html/mautic/var/cache/prod/url_generating_routes.php": rename(/tmp/url_generating_routes.phpPULCFx,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied") in "@MauticCore/Default/script.html.twig" at line 7. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig line 7) {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (\"Cannot rename \"/tmp/url_generating_routes.phpPULCFx\" to \"/var/www/html/mautic/var/cache/prod/url_generating_routes.php\": rename(/tmp/url_generating_routes.phpPULCFx,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied\") in \"@MauticCore/Default/script.html.twig\" at line 7. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig:7)\n[previous exception] [object] (Symfony\\Component\\Filesystem\\Exception\\IOException(code: 0): Cannot rename \"/tmp/url_generating_routes.phpPULCFx\" to \"/var/www/html/mautic/var/cache/prod/url_generating_routes.php\": rename(/tmp/url_generating_routes.phpPULCFx,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php:304)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":266307}
[2026-01-28T10:50:20.526184+00:00] mautic.ERROR: Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Cannot rename "/tmp/url_generating_routes.phpPULCFx" to "/var/www/html/mautic/var/cache/prod/url_generating_routes.php": rename(/tmp/url_generating_routes.phpPULCFx,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied") in "@MauticCore/Default/script.html.twig" at line 7. - in file /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig - at line 7 [] {"hostname":"ubuntu-4gb-nbg1-2","pid":266307}
[2026-01-28T10:51:03.664405+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "@MauticCore/Assets/pictograms/pilot-test.svg" (looked into: /var/www/html/mautic/app/bundles/CoreBundle, /var/www/html/mautic/app/bundles/CoreBundle/Resources/views) in "@MauticCore/Components/pictogram.html.twig" at line 4." at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Components/pictogram.html.twig line 4 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"@MauticCore/Assets/pictograms/pilot-test.svg\" (looked into: /var/www/html/mautic/app/bundles/CoreBundle, /var/www/html/mautic/app/bundles/CoreBundle/Resources/views) in \"@MauticCore/Components/pictogram.html.twig\" at line 4. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Components/pictogram.html.twig:4)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":266307}

Please clear your Mautic cache - this is a necessary step after any update. See if that resolves it.

I’ve just sent today a newsletter out. Can try it out in about 1 Week.

But: The install php command did this. I saw it in the SSH terminal. It’s a own step of the install routine. Doesn’t this work?

Btw:
What command do you prefer / what is the right for deleting the cache:
php /var/www/html/mautic/bin/console cache:clear
root@mautic01:/var/www/html/mautic# rm -rf var/cache/*

chatGPT gave me this:
find /var/www/html/mautic/var/cache/ -mindepth 1 -delete

updatet again from 6.0.7 to 7.0.0
deleted the cache manually
Switching to the e-Mail section brings the error 500 as above displayed - her is the log file:

mautic_prod-2026-01-30.php

[2026-01-30T06:20:04.713899+00:00] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Filesystem\Exception\IOException: "Cannot rename "/tmp/url_matching_routes.phpK1Bd9I" to "/var/www/html/mautic/var/cache/prod/url_matching_routes.php": rename(/tmp/url_matching_routes.phpK1Bd9I,/var/www/html/mautic/var/cache/prod/url_matching_routes.php): Permission denied" at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php line 304 {"exception":"[object] (Symfony\\Component\\Filesystem\\Exception\\IOException(code: 0): Cannot rename \"/tmp/url_matching_routes.phpK1Bd9I\" to \"/var/www/html/mautic/var/cache/prod/url_matching_routes.php\": rename(/tmp/url_matching_routes.phpK1Bd9I,/var/www/html/mautic/var/cache/prod/url_matching_routes.php): Permission denied at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php:304)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":551332}
[2026-01-30T06:20:04.789697+00:00] mautic.CRITICAL: Exception thrown when handling an exception (Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Cannot rename "/tmp/url_generating_routes.phpXtKUU5" to "/var/www/html/mautic/var/cache/prod/url_generating_routes.php": rename(/tmp/url_generating_routes.phpXtKUU5,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied") in "@MauticCore/Default/script.html.twig" at line 7. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig line 7) {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (\"Cannot rename \"/tmp/url_generating_routes.phpXtKUU5\" to \"/var/www/html/mautic/var/cache/prod/url_generating_routes.php\": rename(/tmp/url_generating_routes.phpXtKUU5,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied\") in \"@MauticCore/Default/script.html.twig\" at line 7. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig:7)\n[previous exception] [object] (Symfony\\Component\\Filesystem\\Exception\\IOException(code: 0): Cannot rename \"/tmp/url_generating_routes.phpXtKUU5\" to \"/var/www/html/mautic/var/cache/prod/url_generating_routes.php\": rename(/tmp/url_generating_routes.phpXtKUU5,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php:304)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":551332}
[2026-01-30T06:20:04.797096+00:00] mautic.ERROR: Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Cannot rename "/tmp/url_generating_routes.phpXtKUU5" to "/var/www/html/mautic/var/cache/prod/url_generating_routes.php": rename(/tmp/url_generating_routes.phpXtKUU5,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied") in "@MauticCore/Default/script.html.twig" at line 7. - in file /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig - at line 7 [] {"hostname":"ubuntu-4gb-nbg1-2","pid":551332}
[2026-01-30T06:23:14.818105+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "@MauticCore/Assets/pictograms/pilot-test.svg" (looked into: /var/www/html/mautic/app/bundles/CoreBundle, /var/www/html/mautic/app/bundles/CoreBundle/Resources/views) in "@MauticCore/Components/pictogram.html.twig" at line 4." at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Components/pictogram.html.twig line 4 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"@MauticCore/Assets/pictograms/pilot-test.svg\" (looked into: /var/www/html/mautic/app/bundles/CoreBundle, /var/www/html/mautic/app/bundles/CoreBundle/Resources/views) in \"@MauticCore/Components/pictogram.html.twig\" at line 4. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Components/pictogram.html.twig:4)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":550556}

I can reproduce the same.

[maut@ ~]$ cd public_html/
[maut@ public_html]$ find app/bundles/CoreBundle -maxdepth 6 -type d -iname 'pictograms' -print
[maut@ public_html]$ find app/bundles/CoreBundle -maxdepth 10 -type f -name '*.svg' | head -n 30
app/bundles/CoreBundle/Assets/images/logo--expanded.svg
app/bundles/CoreBundle/Assets/images/logo--minimized.svg

There are no assets; they are missing from GitHub.

7.0.0-update is missing the whole picto folder.

  • 7.0.0-update.zip

    sha256:c7203789b3899cb7d99fcbdf362fcf0543e9d04abe1aea8b2c2b637b7e4c8083

    64.7 MBlast week

  • 7.0.0.zip

    sha256:98c002d7bc7d685bc11448a3945320c5a673ae6427f75e9647220538c16d04ab

jonathan@MBP-de-Jonathan 7.0.0 % find app/bundles/CoreBundle -maxdepth 6 -type d -iname 'pictograms' -print 
app/bundles/CoreBundle/Assets/pictograms
jonathan@MBP-de-Jonathan 7.0.0 % find app/bundles/CoreBundle -maxdepth 10 -type f -name '*.svg' | head -n 30
app/bundles/CoreBundle/Assets/images/logo--expanded.svg
app/bundles/CoreBundle/Assets/images/logo--minimized.svg
app/bundles/CoreBundle/Assets/pictograms/solar--panel.svg
app/bundles/CoreBundle/Assets/pictograms/erlenmeyer--flask.svg
app/bundles/CoreBundle/Assets/pictograms/socks.svg
app/bundles/CoreBundle/Assets/pictograms/t-shirt.svg
app/bundles/CoreBundle/Assets/pictograms/scientific--research.svg
app/bundles/CoreBundle/Assets/pictograms/cloud-pak--for-network-automation.svg
app/bundles/CoreBundle/Assets/pictograms/weather.svg
app/bundles/CoreBundle/Assets/pictograms/bangalore.svg
app/bundles/CoreBundle/Assets/pictograms/lightning.svg
app/bundles/CoreBundle/Assets/pictograms/expand--vert.svg
app/bundles/CoreBundle/Assets/pictograms/kuala-lumpur.svg
app/bundles/CoreBundle/Assets/pictograms/basel--munster.svg
app/bundles/CoreBundle/Assets/pictograms/ibm--z16--multi-frame.svg
app/bundles/CoreBundle/Assets/pictograms/ai-governance--model.svg
app/bundles/CoreBundle/Assets/pictograms/add--device.svg
app/bundles/CoreBundle/Assets/pictograms/chart--bubble--line.svg
app/bundles/CoreBundle/Assets/pictograms/management.svg
app/bundles/CoreBundle/Assets/pictograms/connect.svg
app/bundles/CoreBundle/Assets/pictograms/prague--dancing-house--02.svg
app/bundles/CoreBundle/Assets/pictograms/hummingbird.svg
app/bundles/CoreBundle/Assets/pictograms/natural--language--understanding.svg
app/bundles/CoreBundle/Assets/pictograms/clothes--rack--01.svg
app/bundles/CoreBundle/Assets/pictograms/upload--02.svg
app/bundles/CoreBundle/Assets/pictograms/budapest--citadella.svg
app/bundles/CoreBundle/Assets/pictograms/sports.svg
app/bundles/CoreBundle/Assets/pictograms/receipt.svg
app/bundles/CoreBundle/Assets/pictograms/budapest--corvin7.svg
app/bundles/CoreBundle/Assets/pictograms/copenhagen--planetarium.svg
jonathan@MBP-de-Jonathan 7.0.0-update % find app/bundles/CoreBundle -maxdepth 6 -type d -iname 'pictograms' -print 
jonathan@MBP-de-Jonathan 7.0.0-update % find app/bundles/CoreBundle -maxdepth 10 -type f -name '*.svg' | head -n 30
app/bundles/CoreBundle/Assets/images/logo--expanded.svg
app/bundles/CoreBundle/Assets/images/logo--minimized.svg

Sorry, I misclicked.

1 Like

@rcheesley Would you please reopen my closed github ticket. It’s a bug!

I’m trying to do a bash fix to merge on your side the 7.0.0 zip with your code base.

The pictograms were moved as a NPM dependency. Try to run npm ci

More details: [UXUI-139] Add pictograms package by andersonjeccel · Pull Request #14868 · mautic/mautic · GitHub

There are many files missing when following the standard upgrade path. As a temporary workaround, you can use the following script-based method. Make sure to test this first in a staging environment before applying it to production.

  1. Create a file named upgrade.sh in the root directory of your Mautic installation and paste the script content into it.

  2. Set the correct permissions on the script:

    chmod 755 upgrade.sh

  3. Download the full Mautic release package (not the update package) from:

    https://github.com/mautic/mautic/releases/download/7.0.0/7.0.0.zip

  4. Upload this ZIP file to the root directory of your Mautic installation.

  5. From your Mautic root folder, run:

    ./upgrade.sh

  6. Follow the instructions displayed by the script. In my case, this method successfully restored the missing files and resolved the upgrade issues.

Note:

– You need SSH access to the server.

– Rsync must be installed and available.

– As always, make sure you have a full backup of both files and database before running the script.

#!/bin/bash

— 1. DEPENDENCIES CHECK / VALIDATION DÉPENDANCES —

CHECK_RSYNC=$(command -v rsync)
CHECK_UNZIP=$(command -v unzip)

if [ -z “$CHECK_RSYNC” ] || [ -z “$CHECK_UNZIP” ]; then
echo “ERROR / ERREUR : Missing dependencies / Dépendances manquantes.”
[ -z “$CHECK_RSYNC” ] && echo “- rsync is required / rsync est requis (dnf install rsync)”
[ -z “$CHECK_UNZIP” ] && echo “- unzip is required / unzip est requis (dnf install unzip)”
exit 1
fi

— 2. INTERACTIVE CONFIGURATION / CONFIGURATION INTERACTIVE —

echo “— Mautic 7 Restoration Tool / Outil de Restauration Mautic 7 —”

User detection / Détection utilisateur

DEFAULT_USER=$(whoami)
echo “Current user / Utilisateur actuel : $DEFAULT_USER”
read -p "Target System User / Utilisateur cible [$DEFAULT_USER] : " MAUTIC_USER
MAUTIC_USER=${MAUTIC_USER:-$DEFAULT_USER}

PHP Memory limit / Limite mémoire PHP

DEFAULT_MEM=“2048M”
read -p "PHP Memory Limit / Limite mémoire PHP (ex: 2048M) [$DEFAULT_MEM] : " PHP_MEM
PHP_MEM=${PHP_MEM:-$DEFAULT_MEM}

Path validation / Validation des chemins

MAUTIC_ROOT=$(pwd)
ZIP_SOURCE=“$MAUTIC_ROOT/7.0.0.zip”

if [ ! -f “$MAUTIC_ROOT/bin/console” ]; then
echo “ERROR : Not in Mautic root / ERREUR : Pas à la racine de Mautic ($MAUTIC_ROOT).”
exit 1
fi

if [ ! -f “$ZIP_SOURCE” ]; then
echo “ERROR : 7.0.0.zip source not found / ERREUR : Source 7.0.0.zip introuvable.”
exit 1
fi

Confirmation

echo -e “\nConfiguration Summary / Récapitulatif :”
echo “- Root / Racine : $MAUTIC_ROOT”
echo “- User / Utilisateur : $MAUTIC_USER”
echo “- PHP RAM : $PHP_MEM”
read -p "Proceed with restoration? / Lancer la restauration ? (y/n) : " CONFIRM

if [[ ! $CONFIRM =~ 

Yy$ ]]; then
echo “Cancelled / Annulation.”
exit 0
fi

— 3. RESTORATION ENGINE / MOTEUR DE RESTAURATION —

TMP_DIR=“$MAUTIC_ROOT/mautic_full_tmp”
PHP_CMD=“php -d memory_limit=$PHP_MEM”

echo -e “\n[1/4] Extracting Full ZIP / Extraction du ZIP complet…”
mkdir -p “$TMP_DIR”
unzip -q “$ZIP_SOURCE” -d “$TMP_DIR”

echo “[2/4] Synchronizing missing components / Synchronisation des composants…”

Agnostic sync of all critical directories / Synchronisation agnostique

REPERTOIRES=(“app/assets” “media” “app/bundles” “vendor” “plugins” “themes” “translations” “app/migrations”)

for dir in “${REPERTOIRES[@]}”; do
if [ -d “$TMP_DIR/$dir” ]; then
echo " > Processing / Traitement : $dir"
rsync -av --ignore-existing “$TMP_DIR/$dir/” “$MAUTIC_ROOT/$dir/”
fi
done

Root files / Fichiers racine

cp -n “$TMP_DIR/index.php” “$MAUTIC_ROOT/”
cp -n “$TMP_DIR/autoload.php” “$MAUTIC_ROOT/”
cp -n “$TMP_DIR/.htaccess” “$MAUTIC_ROOT/”

echo “[3/4] Purging Cache / Purge du Cache…”
rm -rf “$MAUTIC_ROOT/var/cache/*”

echo “[4/4] Finalizing Mautic State / Finalisation de l’état Mautic…”
$PHP_CMD “$MAUTIC_ROOT/bin/console” cache:clear --env=prod
$PHP_CMD “$MAUTIC_ROOT/bin/console” mautic:assets:generate
$PHP_CMD “$MAUTIC_ROOT/bin/console” doctrine:migrations:migrate --no-interaction

— 4. CLEANUP / NETTOYAGE —

rm -rf “$TMP_DIR”
echo -e “\n— Restoration Complete / Restauration terminée —”

Thank you for that information

I made a server image bevor updating from 6.0.7 to 7.0.0 and rebuilt it back to 6.0.7 after that errors.

So I have a working 6.0.7 instance.

I’ll wait for the next update. Maybe to a 7.1.2 ore later because of so much failures.

1 Like

I created a fix for the update package which was missing the pictograms: Adding pictograms to the upgrade package by escopecz · Pull Request #15841 · mautic/mautic · GitHub

It’s not a bug. And waiting for an update won’t fix the problem.

The logs are actually crystal clear on the issue: Permission denied
[2026-01-30T06:20:04.713899+00:00] mautic.CRITICAL: [..] Cannot rename [..] Permission denied [..] Cannot rename [..] Permission denied [..]

That means that you’re using the wrong user to perform what ever task that you’re trying to do. And then, when the correct user is trying to remove/update the file(s), it can’t.

The solution: Don’t use root. Once the web server is up, drop out of the root user and switch to the web one (before having Mautic even installed).

What do i have to to - or what made i wrong:
Server Admin: root
Normal user: user01
Apache Web Server works (as i know, but correct me, if i’m rong) with the user: www-data

Up until now, I’ve always done it like this:

user01$ sudo su - to get root rights

cd /var/www/html/mautic/ (Mautic directory)
php bin/console mautic:update:find (update with Mautic script)

…and update to the current version of mautic

After the update: Set the rights as:

chown -R www-data:www-data /var/www/html/mautic
chmod -R 755 /var/www/html/mautic

all updates worked in this way to update with user01 with root rights and changed the rights after that to www-data

Where is the error - or how is it done correctly?

You should be the web user all the time. And you should also stay away from root to avoid any confusion…

This is my ratio of root:web user use when it comes to manage any Mautic install:
0% root : 100% web user

Root is only used for managing the servers (and the users), and never to be used when using a web app nor any app (this is a huge security issue, and the why your app is failing with a critical error, as reported in the logs).

**One detail: You shouldn’t be managing your web app (Mautic) using the www-data user. But instead, create a user that will be dedicated to this environment (where the www-data user is allowed to interact with your files). Also, the web user shouldn’t be a sudoer. In other words, get out of the “/var/”. It doesn’t belong to your web user in any ways, shape or form. Use its own /home/ environment. i.e. /home/webadmin/public_html

Anyways, if I have to guess where you got it wrong (what you didn’t comment on)
You’re running your cronjobs using the wrong user (probably root).

Ok - would nice if you help me:

  1. The user01 i have only added to manage Mautic. Normal i go via ssh and this user to my Ubuntu 24.04 Server at Hetztner.com
    Mautic is installed in: /var/www/html/mautic/

Now the 1 million$ question:
How should i make the update (please step by step for dummies, to find the error and understand why).

Btw: My cronjobs:
sudo crontab -u www-data -e

* * * * * php /var/www/html/mautic/bin/console mautic:campaigns:trigger
*/5 * * * * php /var/www/html/mautic/bin/console mautic:campaigns:rebuild
*/15 * * * * php /var/www/html/mautic/bin/console mautic:segments:update
* * * * * php /var/www/html/mautic/bin/console mautic:broadcasts:send
0 3 * * * php /var/www/html/mautic/bin/console mautic:unusedip:delete
0 4 1 * * php /var/www/html/mautic/bin/console mautic:maintenance:cleanup --days-old=90 --no-interaction