Sammyjo20 / lasso

🐎 Lasso is a Laravel package created to make your deployments blazing fast.
MIT License
341 stars 16 forks source link

Error pulling assets from s3 in Laravel 9 #70

Closed 77media-creations closed 9 months ago

77media-creations commented 1 year ago

I am facing some issues when pulling assets php artisan lasso:pull from s3 filesystem during Github CI/CD. For some reason, it fails to check for the assets zip file existence.

This is the error message I am receiving:

🏁 Preparing to download assets from "s3" filesystem.
⏳ Reading Bundle meta file...
⏳ Downloading bundle...
   League\Flysystem\UnableToCheckDirectoryExistence 

  Unable to check existence for: lasso/global/pEaCXUnSNKBXNvP03RRT.zip

  at vendor/league/flysystem/src/UnableToCheckExistence.php:19
     15▕     }
     16▕ 
     17▕     public static function forLocation(string $path, Throwable $exception = null): static
     18▕     {
  ➜  19▕         return new static("Unable to check existence for: {$path}", 0, $exception);
     20▕     }
     21▕ 
     22▕     public function operation(): string
     23▕     {

      +43 vendor frames 
  44  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()
Error: Process completed with exit code 1.

Here is my s3 config:

's3' => [
      'driver' => 's3',
      'key' => env('AWS_ACCESS_KEY_ID'),
      'secret' => env('AWS_SECRET_ACCESS_KEY'),
      'region' => env('AWS_DEFAULT_REGION'),
      'bucket' => env('AWS_BUCKET'),
      'endpoint' => env('AWS_URL'),
],

I can confirm that the file does exist in the S3 bucket using tinker and web UI.

Psy Shell v0.11.8 (PHP 8.1.12 — cli) by Justin Hileman
>>> Storage::disk('s3')->exists('lasso/global/pEaCXUnSNKBXNvP03RRT.zip')
=> true

![Uploading Screenshot 2022-11-24 at 8.25.32 pm.png…]()

Sammyjo20 commented 9 months ago

Hello @77media-creations I apologise for not replying to this. I'm going to close this for now but feel free to re-open if you need.