Your software
My Mautic version is:3.0.2
My PHP version is:7.3
Your problem
My problem is: When importing csv files the following error occurs : invalid file type “application/octet-stream”. Use a file that matches of of the following mime types: “text/csv”, “text/plain”.
These errors are showing in the log: None
Steps I have tried to fix the problem: Cleared cache, google brought me to an old mautic post with no solution! Drank an energy drink, went swimming, rebooted server, tried again. same problem
Import failed. Reason: There was a database error: The EntityManager is closed… The import was set to delayed state and will be imported later.
This error occurs after uploaded another file and setting to import in background and using CLI to start import.
[08-Aug-2020 07:38:57] WARNING: [pool howdy.mautic-install.com] child 1504 said into stderr: “#1 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\Handler\RotatingFileHandler->write(Array)”
[08-Aug-2020 07:38:57] WARNING: [pool howdy.mautic-install.com] child 1504 said into stderr: “#2 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle(Array)”
[08-Aug-2020 07:38:57] WARNING: [pool howdy.mautic-install.com] child 1504 said into stderr: “#3 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolo…”
[08-Aug-2020 07:38:57] WARNING: [pool howdy.mautic-install.com] child 1504 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The stream or file “/var/www/vhosts/mautic-install.com/howdy.mautic-install.com/app/…/var/logs/mautic_prod-2020-08-08.php” could not be opened: failed to open stream: Permission denied in /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:108”
[08-Aug-2020 07:38:57] WARNING: [pool howdy.mautic-install.com] child 1504 said into stderr: “Stack trace:”
[08-Aug-2020 07:38:57] WARNING: [pool howdy.mautic-install.com] child 1504 said into stderr: “#0 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(119): Monolog\Handler\StreamHandler->write(Array)”
[08-Aug-2020 07:38:57] WARNING: [pool howdy.mautic-install.com] child 1504 said into stderr: “#1 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\Handler\RotatingFileHandler->write(Array)”
[08-Aug-2020 07:38:57] WARNING: [pool howdy.mautic-install.com] child 1504 said into stderr: “#2 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle(Array)”
[08-Aug-2020 07:38:57] WARNING: [pool howdy.mautic-install.com] child 1504 said into stderr: “#3 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolo…”
[08-Aug-2020 07:38:58] WARNING: [pool howdy.mautic-install.com] child 1523 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The stream or file “/var/www/vhosts/mautic-install.com/howdy.mautic-install.com/app/…/var/logs/mautic_prod-2020-08-08.php” could not be opened: failed to open stream: Permission denied in /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:108”
[08-Aug-2020 07:38:58] WARNING: [pool howdy.mautic-install.com] child 1523 said into stderr: “Stack trace:”
[08-Aug-2020 07:38:58] WARNING: [pool howdy.mautic-install.com] child 1523 said into stderr: “#0 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(119): Monolog\Handler\StreamHandler->write(Array)”
[08-Aug-2020 07:38:58] WARNING: [pool howdy.mautic-install.com] child 1523 said into stderr: “#1 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\Handler\RotatingFileHandler->write(Array)”
[08-Aug-2020 07:38:58] WARNING: [pool howdy.mautic-install.com] child 1523 said into stderr: “#2 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle(Array)”
[08-Aug-2020 07:38:58] WARNING: [pool howdy.mautic-install.com] child 1523 said into stderr: “#3 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolo…”
[08-Aug-2020 07:38:58] WARNING: [pool howdy.mautic-install.com] child 1523 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The stream or file “/var/www/vhosts/mautic-install.com/howdy.mautic-install.com/app/…/var/logs/mautic_prod-2020-08-08.php” could not be opened: failed to open stream: Permission denied in /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:108”
[08-Aug-2020 07:38:58] WARNING: [pool howdy.mautic-install.com] child 1523 said into stderr: “Stack trace:”
[08-Aug-2020 07:38:58] WARNING: [pool howdy.mautic-install.com] child 1523 said into stderr: “#0 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(119): Monolog\Handler\StreamHandler->write(Array)”
[08-Aug-2020 07:38:58] WARNING: [pool howdy.mautic-install.com] child 1523 said into stderr: “#1 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\Handler\RotatingFileHandler->write(Array)”
[08-Aug-2020 07:38:58] WARNING: [pool howdy.mautic-install.com] child 1523 said into stderr: "#2 /var/www/vhosts/mautic-install.com/howdy.mautic-install.com/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler
58400/200213 [========>-------------------] 29%Import failed. Reason: There was a database error: The EntityManager is closed… The import was set to delayed state and will be imported later.