filesystem Google Storage

Ich hab dem „How To“* entsprechend, die shopware.yml angelegt:

shopware:
  filesystem:
    public:
      type: "google-storage"
      config:
        bucket: "my-dev-bucket"
        projectId: "shopware-6-dev"
        keyFilePath: "/var/www/html/shopware-6-dev-8f53ba541540.json"
        options:
          visibility: "public"

Bekomme leider nur einen 500 Internal Server Error. Steht auch nix in den Logfiles…

Hat das jemand schon zum Laufen gebracht?

 

* ironische Quotes

Ich hab dem „How To“* …

_\* ironische Quotes_

 

Grin

 

Die Dokumentation wurde schon überarbeitet/ verbessert - hoffen wir, das es weiter geht.

System neu aufgesetzt, jetzt läd Storefront & Adminpanel.

Aber beim Upload eines Bildes bekomme ich jetzt folgenden Fehler:

Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /media/cc/1d/62/1603270276/logo_cmyk_size_l.png" (from "http://localhost/admin")" at /var/www/html/vendor/symfony/http-kernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /media/cc/1d/62/1603270276/logo_cmyk_size_l.png\" (from \"http://localhost/admin\") at /var/www/html/vendor/symfony/http-kernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/media/cc/1d/62/1603270276/logo_cmyk_size_l.png/\". at /var/www/html/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:70)"} []Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /media/cc/1d/62/1603270276/logo_cmyk_size_l.png" (from "http://localhost/adm

.../www/html/vendor/symfony/http-kernel/EventListener/RouterListener.php Zeile 136

Im Bucket kommt auch nix an.

Hab’s jetzt geschafft. In der Config fehlte die URL, warum auch immer das nicht im How-To steht. Bin davon ausgegangen, der Adapter macht das eigenständig.

shopware:
  filesystem:
    public:
      type: "google-storage"
      url: "https://storage.googleapis.com/my-dev-bucket"
      config:
        bucket: "my-dev-bucket"
        projectId: "shopware-6-dev"
        keyFilePath: "/var/www/html/shopware-6-dev-8f53ba541540.json"
        options:
          visibility: "public"

Außerdem darf die Zugriffsteuerung des Buckets nicht “Einheitlich” sein. Auf “Detailliert” funktioniert es jetzt.