LMMS / lmms.io

LMMS's official website
https://lmms.io/
GNU General Public License v2.0
96 stars 33 forks source link

Deployments aren't working #377

Open tresf opened 1 month ago

tresf commented 1 month ago

Dom kindly worked on #376, but it's not deploying to the lmms.io server. I had made a small code change earlier this week (d5bc47f), but first tested the code on the server directly, so didn't realize the webhook wasn't working (Github webhook says 200)

Troubleshooting/findings:

Outdated The error output: ```log root@evs:/home/deploy/lmms.io# sudo -u www-data bash www-data@evs:/home/deploy/lmms.io$ composer --no-ansi --no-interaction --no-progress --working-dir=/tmp/deploy-master install --no-dev --optimize-autoloader [...] Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 255 !! Symfony\Component\ErrorHandler\Error\ClassNotFoundError {#86 !! #message: """ !! Attempted to load class "MakerBundle" from namespace "Symfony\Bundle\MakerBundle".\n !! Did you forget a "use" statement for another namespace? !! """ !! #code: 0 !! #file: "./vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php" !! #line: 136 !! trace: { !! ./vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:136 { …} !! ./vendor/symfony/http-kernel/Kernel.php:346 { …} !! ./vendor/symfony/http-kernel/Kernel.php:762 { …} !! ./vendor/symfony/http-kernel/Kernel.php:126 { …} !! ./vendor/symfony/framework-bundle/Console/Application.php:190 { …} !! ./vendor/symfony/framework-bundle/Console/Application.php:72 { …} !! ./vendor/symfony/console/Application.php:175 { …} !! ./vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …} !! ./vendor/autoload_runtime.php:29 { …} !! ./bin/console:11 { !! › !! › require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; !! › !! arguments: { !! "/tmp/deploy-master/vendor/autoload_runtime.php" !! } !! } !! } !! } !! 2024-05-30T01:12:30+00:00 [critical] Uncaught Error: Class "Symfony\Bundle\MakerBundle\MakerBundle" not found !! Script @auto-scripts was called via post-install-cmd ```

@DomClark @liushuyu any idea?

tresf commented 1 month ago

Calling export APP_ENV=prod fixes the deployment error. Still isn't updating the Artifact.php file though. :/ Updated original post.

tresf commented 1 month ago

Temporary patch deployed: https://github.com/LMMS/lmms.io/commit/120c00ecda0107fa509fe5bf91f5060f8726a14f. This seems to fix it for now. Someone that knows more offering insight would be appreciated.