iCantSneed / mati-superchats

MATI superchats archiver
https://mati.x10.mx
GNU Affero General Public License v3.0
0 stars 0 forks source link

Prohibit deploying during livestreams #108

Open iCantSneed opened 3 weeks ago

iCantSneed commented 3 weeks ago

On the 2024/06/25 streaming, staging environment:

[2024-06-25T18:48:51.357441-04:00] php.ERROR: Warning: require(/srv/mati/var/cache/prod/Container2EcoQMO/getDoctrine_Orm_DefaultEntityManager_PropertyInfoExtractorService.php): Failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): Warning: require(/srv/mati/var/cache/prod/Container2EcoQMO/getDoctrine_Orm_DefaultEntityManager_PropertyInfoExtractorService.php): Failed to open stream: No such file or directory at /srv/mati/var/cache/prod/Container2EcoQMO/Mati_KernelProdContainer.php:99)"} []
[2024-06-25T18:48:51.359438-04:00] php.ERROR: Warning: require(/srv/mati/var/cache/prod/Container2EcoQMO/getConsole_ErrorListenerService.php): Failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): Warning: require(/srv/mati/var/cache/prod/Container2EcoQMO/getConsole_ErrorListenerService.php): Failed to open stream: No such file or directory at /srv/mati/var/cache/prod/Container2EcoQMO/Mati_KernelProdContainer.php:99)"} []
[2024-06-25T18:48:51.359788-04:00] php.CRITICAL: Uncaught Error: Failed opening required '/srv/mati/var/cache/prod/Container2EcoQMO/getConsole_ErrorListenerService.php' (include_path='.:/opt/alt/php83/usr/share/pear:/opt/alt/php83/usr/share/php:/usr/share/pear:/usr/share/php') {"exception":"[object] (Error(code: 0): Failed opening required '/srv/mati/var/cache/prod/Container2EcoQMO/getConsole_ErrorListenerService.php' (include_path='.:/opt/alt/php83/usr/share/pear:/opt/alt/php83/usr/share/php:/usr/share/pear:/usr/share/php') at /srv/mati/var/cache/prod/Container2EcoQMO/Mati_KernelProdContainer.php:99)"} []

Afterwards the cron task failed:

In Mati_KernelProdContainer.php line 99:

  Failed opening required '/srv/mati/va  
  r/cache/prod/Container2EcoQMO/getConsole_ErrorListenerService.php' (include  
  _path='.:/opt/alt/php83/usr/share/pear:/opt/alt/php83/usr/share/php:/usr/sh  
  are/pear:/usr/share/php')                                                    

mati:stream

The directory /srv/mati/var/cache/prod/Container2EcoQMO did not exist, most likely because at 15:23, a release of the app was deployed to the staging environment, which cleared the cache and deleted that directory. To prevent that from happening, deployment should be forbidden when an instance of the app is running.