Skip to content

[🐛]: Unable to retrieve deployment version of satic files #199

@Hawksama

Description

@Hawksama

What is the current behavior?

After updating this module to 4.4, during deployment we get:
[2025-07-22T09:03:04.724382+00:00] main.ERROR: Unable to retrieve deployment version of static files from the file system.
#0 /home/demoliquidlabro/public_html/vendor/justbetter/magento2-sentry/Helper/Version.php(52): JustBetter\Sentry\Helper\Version->readValue()
#1 /home/demoliquidlabro/public_html/vendor/justbetter/magento2-sentry/Model/ReleaseIdentifier.php(28): JustBetter\Sentry\Helper\Version->getValue()
#2 /home/demoliquidlabro/public_html/vendor/justbetter/magento2-sentry/Plugin/GlobalExceptionCatcher.php(135): JustBetter\Sentry\Model\ReleaseIdentifier->getReleaseId()
#3 /home/demoliquidlabro/public_html/vendor/justbetter/magento2-sentry/Plugin/GlobalExceptionCatcher.php(106): JustBetter\Sentry\Plugin\GlobalExceptionCatcher->prepareConfig()
#4 /home/demoliquidlabro/public_html/vendor/justbetter/magento2-sentry/Plugin/GlobalExceptionCatcher.php(78): JustBetter\Sentry\Plugin\GlobalExceptionCatcher->globalCatcher()
#5 /home/demoliquidlabro/public_html/vendor/magento/framework/Interception/Interceptor.php(135): JustBetter\Sentry\Plugin\GlobalExceptionCatcher->aroundRun()
#6 /home/demoliquidlabro/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Cron\Console\Command\CronCommand\Interceptor->Magento\Framework\Interception{closure}()
#7 /home/demoliquidlabro/public_html/generated/code/Magento/Cron/Console/Command/CronCommand/Interceptor.php(77): Magento\Cron\Console\Command\CronCommand\Interceptor->___callPlugins()
#8 /home/demoliquidlabro/public_html/vendor/symfony/console/Application.php(1078): Magento\Cron\Console\Command\CronCommand\Interceptor->run()
#9 /home/demoliquidlabro/public_html/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#10 /home/demoliquidlabro/public_html/vendor/magento/framework/Console/Cli.php(118): Symfony\Component\Console\Application->doRun()
#11 /home/demoliquidlabro/public_html/vendor/symfony/console/Application.php(175): Magento\Framework\Console\Cli->doRun()
#12 /home/demoliquidlabro/public_html/bin/magento(23): Symfony\Component\Console\Application->run()
#13 {main} [] []
[2025-07-22T09:04:02.319862+00:00] main.CRITICAL: Can not load static content version. [] []

What is the expected behavior?

Setup upgrade to complete.

How can we reproduce the issue?

No response

What is the proposed solution?

Seems that the JustBetter\Sentry\Helper\Version->readValue() is reading the static content version before Magento has a chance to generate it

do you have any additional information for us?

No response

Is there an existing issue for this?

  • I have searched the existing issues

Are you willing to create a pull request for this?

  • If i have a fix i would be willing to create a pull request

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions