# filesystem Google Storage

**URL:** <https://forum.shopware.com/t/filesystem-google-storage/70323>\
**Category:** Programmierung\
**Created:** [20. Oktober 2020 um 13:58 UTC](https://forum.shopware.com/t/filesystem-google-storage/70323 "2020-10-20T13:58:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexGalax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/alexgalax/32/9925_2.png) [@AlexGalax](https://forum.shopware.com/u/AlexGalax)\
**Post date:** [20. Oktober 2020 um 13:58 UTC](https://forum.shopware.com/t/filesystem-google-storage/70323/1 "2020-10-20T13:58:01Z")

</div>

Ich hab dem „[How To](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/use-s3-datastorage#google-cloud-platform)“\* 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?

&nbsp;

_\* ironische Quotes_

---

<div class="post-metadata">

**Author:** ![FragenAnsForum](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/fragenansforum/32/7849_2.png) [@FragenAnsForum](https://forum.shopware.com/u/FragenAnsForum)\
**Post date:** [21. Oktober 2020 um 07:22 UTC](https://forum.shopware.com/t/filesystem-google-storage/70323/2 "2020-10-21T07:22:20Z")

</div>

> Ich hab dem „[How To](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/use-s3-datastorage#google-cloud-platform)“\* …

```
_\* ironische Quotes_

```

&nbsp;

_![Grin](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/70033cde8e8ff79cfa538293ae71318d6f788423.png "Grin")_

&nbsp;

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

---

<div class="post-metadata">

**Author:** ![AlexGalax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/alexgalax/32/9925_2.png) [@AlexGalax](https://forum.shopware.com/u/AlexGalax)\
**Post date:** [21. Oktober 2020 um 08:55 UTC](https://forum.shopware.com/t/filesystem-google-storage/70323/3 "2020-10-21T08:55:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![AlexGalax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/alexgalax/32/9925_2.png) [@AlexGalax](https://forum.shopware.com/u/AlexGalax)\
**Post date:** [21. Oktober 2020 um 09:22 UTC](https://forum.shopware.com/t/filesystem-google-storage/70323/4 "2020-10-21T09:22:42Z")

</div>

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.
