mage2pro / core

Mage2.PRO core package
https://upwork.com/fl/mage2pro
MIT License
10 stars 13 forks source link

«Unable to proceed: the maintenance mode is enabled» is logged twice to `var/log/mage2.pro` #340

Closed dmitrii-fediuk closed 9 months ago

dmitrii-fediuk commented 9 months ago

1.

{
    "mage2pro/core": "10.4.4",
    "Magento": "2.4.4",
    "PHP": "7.4.9",
    "URL": "https://localhost.com:2249/",
    "Time": "2023-12-08 09:54:35",
    "Referer": "",
    "IP Address": "158.181.235.66",
    "Request Method": "GET",
    "User-Agent": "Wget/1.21.3"
}
EXCEPTION
Unable to proceed: the maintenance mode is enabled.
************************************
1   
    https://github.com/magento/magento2/tree/2.4.4/lib/internal/Magento/Framework/App/Bootstrap.php#L305

2   Magento\Framework\App\Bootstrap::assertMaintenance
    https://github.com/magento/magento2/tree/2.4.4/lib/internal/Magento/Framework/App/Bootstrap.php#L262

3   Magento\Framework\App\Bootstrap::run
    pub/index.php:30

1   Magento\Framework\App\Bootstrap::assertMaintenance
    https://github.com/magento/magento2/tree/2.4.4/lib/internal/Magento/Framework/App/Bootstrap.php#L305

2   Magento\Framework\App\Bootstrap::run
    https://github.com/magento/magento2/tree/2.4.4/lib/internal/Magento/Framework/App/Bootstrap.php#L262
dmitrii-fediuk commented 9 months ago

2.

[
    Mage2.PRO: {
        "mage2pro/core": "10.4.4",
        "Magento": "2.4.4",
        "PHP": "7.4.9",
        "URL": "https://localhost.com:2249/",
        "Time": "2023-12-08 09:54:30",
        "Referer": "",
        "IP Address": "158.181.235.66",
        "Request Method": "GET",
        "User-Agent": "Wget/1.21.3"
    }
    channel: main
    context: []
    datetime: Monolog\DateTimeImmutable "2023-12-08T09:54:30.567446+00:00"
    extra: []
    level: 400
    level_name: ERROR
    message: Unable to proceed: the maintenance mode is enabled.
]

1   Df\Framework\Log\Dispatcher::handle
    https://github.com/mage2pro/core/tree/10.4.4/Framework/Log/Dispatcher.php#L86

2   Monolog\Logger::addRecord
    vendor/monolog/monolog/src/Monolog/Logger.php:399

3   Monolog\Logger::error
    vendor/monolog/monolog/src/Monolog/Logger.php:650

4   Magento\Framework\Logger\LoggerProxy::error
    https://github.com/magento/magento2/tree/2.4.4/lib/internal/Magento/Framework/Logger/LoggerProxy.php#L126

5   Magento\Framework\App\Bootstrap::run
    https://github.com/magento/magento2/tree/2.4.4/lib/internal/Magento/Framework/App/Bootstrap.php#L269
dmitrii-fediuk commented 9 months ago

Solved by https://github.com/mage2pro/core/issues/342