mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #400] Using s3fs behind a proxy #212
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#212
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 @gnwlyonme on GitHub (Apr 20, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/400
s3fs does not use http_proxy, all_proxy, etc... env vars when used behind a proxy.
I had to add the following in curl.cpp in function S3fsCurl::ResetHandle in order to mount S3
curl_easy_setopt(hCurl, CURLOPT_PROXY, "http://corp-proxy:8080");
Is this the only option currently, or is there a way it can be set? If not, an -o proxy option would be a nice feature to have.
Thanks,
Mike
@gaul commented on GitHub (Apr 20, 2016):
@gnwlyonme Run
export http_proxy=127.0.0.1:1080before invokings3fs.@yren commented on GitHub (May 10, 2016):
I use s3fs in a docker container and behind a proxy,
I tried this
Run export http_proxy=127.0.0.1:1080 , then invoking s3fs . But it's not work.
The error message "fuse: failed to exec fusermount: No such file or directory"
Any suggestion on this. Thanks.
BTW, this can work on docker host machine.
@gnwlyonme commented on GitHub (May 10, 2016):
yren,
Have you tried adding --privileged to docker run?
That fixed my problem.
@yren commented on GitHub (May 11, 2016):
Cool, it works for me. Thanks @gnwlyonme
@ggtakec commented on GitHub (May 14, 2016):
@andrewgaul thank you.
@gnwlyonme and @yren I'm sorry for my late reply.
So the issue has been resolved, I closed this issue.
If there is a problem to continue, please reopen this issue or post new issue.
Thanks all.