roadrunner-server / roadrunner

🤯 High-performance PHP application server, process manager written in Go and powered with plugins
https://docs.roadrunner.dev
MIT License
7.86k stars 409 forks source link

[🐛 BUG]: Can not open the archive "roadrunner-2.10.0-linux-amd64.deb" #1133

Closed inmanturbo closed 2 years ago

inmanturbo commented 2 years ago

No duplicates 🥲.

What happened?

No matcher for deb archive? On ubuntu vendor/spiral/roadrunner-cli/src/GetBinaryCommand.php atttemps to download and use .deb archive then throws the error shown below. RR was running just fine on this system the other day.

I was looking through the code a bit and it looks like there's no matcher for debs, so why does it not just use a tarball then?

    /**
     * @return void
     */
    private function bootDefaultMatchers(): void
    {
        $this->extend($this->matcher('zip',
            static fn (\SplFileInfo $info): ArchiveInterface => new ZipPharArchive($info)
        ));

        $this->extend($this->matcher('tar.gz',
            static fn (\SplFileInfo $info): ArchiveInterface => new TarPharArchive($info)
        ));

        $this->extend($this->matcher('phar',
            static fn (\SplFileInfo $info): ArchiveInterface => new PharArchive($info)
        ));
    }

Version

2.10.0

Relevant log output

./vendor/bin/rr get-binary --verbose

 Environment:
   - Version:          2.*
   - Stability:        stable
   - Operating System: linux
   - Architecture:     amd64

  - roadrunner-server/roadrunner (v2.10.0): Downloading...
     -- roadrunner-2.10.0-linux-amd64.deb

In Factory.php line 97:

  [InvalidArgumentException]                                     
  Can not open the archive "roadrunner-2.10.0-linux-amd64.deb":  

Exception trace:
  at /home/inman/Sites/digapp/vendor/spiral/roadrunner-cli/src/Archive/Factory.php:97
 Spiral\RoadRunner\Console\Archive\Factory->create() at /home/inman/Sites/digapp/vendor/spiral/roadrunner-cli/src/Archive/Factory.php:119
 Spiral\RoadRunner\Console\Archive\Factory->fromAsset() at /home/inman/Sites/digapp/vendor/spiral/roadrunner-cli/src/GetBinaryCommand.php:320
 Spiral\RoadRunner\Console\GetBinaryCommand->assetToArchive() at /home/inman/Sites/digapp/vendor/spiral/roadrunner-cli/src/GetBinaryCommand.php:170
 Spiral\RoadRunner\Console\GetBinaryCommand->installBinary() at /home/inman/Sites/digapp/vendor/spiral/roadrunner-cli/src/GetBinaryCommand.php:127
 Spiral\RoadRunner\Console\GetBinaryCommand->execute() at /home/inman/Sites/digapp/vendor/symfony/console/Command/Command.php:291
 Symfony\Component\Console\Command\Command->run() at /home/inman/Sites/digapp/vendor/symfony/console/Application.php:989
 Symfony\Component\Console\Application->doRunCommand() at /home/inman/Sites/digapp/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at /home/inman/Sites/digapp/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at /home/inman/Sites/digapp/vendor/spiral/roadrunner-cli/bin/rr:72
 include() at /home/inman/Sites/digapp/vendor/bin/rr:117
inmanturbo commented 2 years ago

This was missfiled. apologies

jwillp commented 2 years ago

@inmanturbo I am encountering the same issue since the new deploys today, how did you fix it?

inmanturbo commented 2 years ago

Upgrade the roadrunner cli to the latest release.

inmanturbo commented 2 years ago

@jwillp go here: https://github.com/spiral/roadrunner-cli/issues/31

jwillp commented 2 years ago

@inmanturbo Thank you, I will update my dependencies