mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[GH-ISSUE #114] "open /storage/: no such file or directory" - Docker on Windows #22
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tohaker on GitHub (Oct 31, 2019).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/114
I'm trying to run the server, here is my command to start the Docker container:
docker run -d --name fake-gcs-server -p 4443:4443 -v %CD%\bot\tests\data:/data fsouza/fake-gcs-serverIt starts with no problems, but using both cURL and Postman gives the same response when hitting
https://127.0.0.1:4443/storage/v1/b:open /storage/: no such file or directoryI'm clearly missing something here, but can't think what...
@fsouza commented on GitHub (Nov 7, 2019):
Hey @Tohaker, thanks for opening this issue. This is weird 😞 Do you see anything in the container logs or more information in the response data?
Sorry for the delayed response x)
@Tohaker commented on GitHub (Nov 8, 2019):
Here are the logs:
Perhaps my folder structure is too deep? I assumed it would replicate the folder structure I give it.
@Tohaker commented on GitHub (Nov 8, 2019):
As suspected, I flattened the folder structure and it worked. Is there any way to make this work with nested folders? My real bucket has a directory structure that I'd like to test against.
@fsouza commented on GitHub (Nov 8, 2019):
@Tohaker gotcha, thanks for posting the logs. Yeah, currently we don't support recursively creating the objects, but we could implement it, checking for a file/directory here:
github.com/fsouza/fake-gcs-server@10d4e3a3d2/main.go (L69)I may be able to do it over the weekend depending on how cold it gets 😁
@Tohaker commented on GitHub (Nov 8, 2019):
That would be much appreciated 😄 Sadly I'm not familiar with GO otherwise I'd try to submit a PR myself.
@fsouza commented on GitHub (Nov 8, 2019):
@Tohaker no worries, I got you
@gerardmrk commented on GitHub (Dec 9, 2019):
Same issue here, using Docker Desktop for MacOS. Part of the compose file:
Running the example curls:
Running docker logs:
If this is useful info:
MacOS Catalina, shell:zsh.@gerardmrk commented on GitHub (Dec 9, 2019):
Can confirm that mapping volume
/tmp:/dataworks. My previous volume mapping/usr/local/var/blobstore:/data@kaime commented on GitHub (Dec 21, 2019):
I'm having the same issue on Linux when mounting a data volume that's initially empty:
Adding a trailing slash to the URL generates a different error:
@gerardmrk commented on GitHub (Dec 22, 2019):
@kaime try the technique mentioned above, don't do nested paths (unfortunately). just do
/tmp/dataor something more specific thandatato avoid potential name conflicts in/tmp.Alternatively, if you're using Go, checkout gocloud.dev, they provide seamless abstraction over your object storage solution, using either in-memory or local filesystem for local development.
@fsouza commented on GitHub (Dec 27, 2019):
@gerardmrk sorry, seeing this now. Will reopen the issue so it's easier to track.
Is
/usr/local/var/blobstorean empty directory?@fsouza commented on GitHub (Dec 27, 2019):
Oh ok I see what the issue is. Just pushed a fix and will tag 1.16.3 shortly.