Google Cloud Storage - files not showing
Asked Answered
L

5

9

I have over 30 Leaflet maps hosted on my Google Cloud Platform bucket (for example) and it has always been an easy process to upload my folder (which includes an html file with sub-folders including .js and .css files) and share the map publicly.

I tried uploading another map today, but within the folder there are no files showing and I get the following message "There are no live objects in this folder. If you have object versioning enabled, this folder may contain archived versions of objects, which aren't visible in the console. You can list archived object versions using gsutil or the APIs."

Does anyone know what is going on here?

enter image description here

Lur answered 7/5, 2018 at 17:20 Comment(0)
R
4

We have also seen this problem, and it seems that the issue is limited to buckets that have spaces in the name.

It's also not reproducible through the gcloud web console, but if you use gsutil to upload a file to a bucket with a space in the name then it won't be visible on the web UI.

I can see from your screenshot that your bucket also has spaces (%20 in the url).

If you need a workaround asap, you could rename your bucket...

But google should fix this soon, I hope.

Reathareave answered 7/5, 2018 at 21:59 Comment(1)
Thanks, Kyle. I renamed the bucket to have no spaces and this fixed the issue. I hope the bug is fixed soon too!Lur
H
1

There is currently open issue on GCS/Console integration If files have any symbols that needs urlencoding - they are not visible in console - but accessible via gsutil/API (which is currently recommended as workaround)

Issue has been resolved as of 8-May-2018 10:00 UTC

Holder answered 7/5, 2018 at 23:14 Comment(1)
Thanks, Alexey! I hope they fix this bug soon. In the meantime, I renamed my bucket to have no spaces and it seemed to have done the trick. CheersLur
T
0

This can happen if the file doesn't have an extension, the UI treats it as a folder and lets you navigate into it, showing a blank folder instead of the file contents.

Tibbitts answered 24/12, 2018 at 21:58 Comment(0)
B
0

We had the same symptom (files show up in API but invisible on the web and via CLI).

The issue turned out to be that we were saving files to "./uploads", which Google interprets as "create a directory literally called '.' and then a subdirectory called uploads."

The fix was to upload to "uploads/" instead of "./uploads". We also just ran a mass copy operation via the API for everything under "./uploads". All visible now!

Batty answered 6/6, 2019 at 18:58 Comment(0)
E
-1

I also had spaces in my url and it was not working properly yesterday. Checked this morning and everything is working as expected. I still have the spaces in my URL btw.

Elephantine answered 8/5, 2018 at 12:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.