qstorey/S3Proxy

Installation issue with S3proxy

Opened this issue · 3 comments

Hi Team,

I am trying to install s3proxy in centos-7. I installed go version - go1.6.2.

After installation of go i didn't see proper installation steps provided.

We tried to install using go get but no response & its getting stuck.

Closed the go get process and cloned folder using git clone command.

Later we tried to use go install but running into error.
" cannot find package "github.com/aws/aws-sdk-go/aws" in any of:"
" cannot find package "github.com/aws/aws-sdk-go/service/s3" in any of:"

Please let me know how to install s3proxy.

If need more info, just let me know....

Hi,

Thanks for reaching out. Sorry you are having problems with the installation. I realise now that the README only mentions development and nothing about installation.

The installation instructions would be very similar to the Development instructions.

git clone git@github.com:qstorey/S3Proxy.git
cd S3Proxy
make

You should end up with a bin directory in the root of the repo and the S3Proxy executable inside of the bin directory.

Please note I have only tested this on OS X, so if there are issues with CentOS I would like to know so that I can address them.

[root@centos ~]# git clone git@github.com:qstorey/S3Proxy.git
Cloning into 'S3Proxy'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

So i changed command as below after which can clone folder.

[root@centos ~]# git clone https://github.com/qstorey/S3Proxy.git
Cloning into 'S3Proxy'...
remote: Counting objects: 206, done.
remote: Total 206 (delta 0), reused 0 (delta 0), pack-reused 206
Receiving objects: 100% (206/206), 35.98 KiB | 0 bytes/s, done.
Resolving deltas: 100% (99/99), done.

Scenario 1:

[root@centos ~]# cd S3Proxy/
[root@centos S3Proxy]# ls
License.md main.go Makefile README.md S3Proxy

[root@centos S3Proxy]# Makefile
-bash: Makefile: command not found
[root@centos S3Proxy]# make
go vet .
make: go: Command not found
make: *** [vet] Error 127

Scenario 2:

So i tried using go but again ran into below error..
Ran below command from gopath directory:

[root@devstack S3Proxy]# make
go vet .
cd S3Proxy && go vet .
go fmt .
cd S3Proxy && go fmt .
go get -v
go install: no install location for directory /root/gocode/S3Proxy outside GOPATH
For more details see: go help gopath
make: *** [build] Error 1

Scenario 3:

[root@devstack ~]# go get github.com/qstorey/S3Proxy
[root@devstack ~]# go install github.com/qstorey/S3Proxy

created mount directory, s3property file with below details and executed commnad as shown below.

[root@devstack ~]# cat s3proxy.conf
s3proxy.authorization=none
s3proxy.endpoint=http://192.168.12.112:8080
jclouds.provider=filesystem
jclouds.filesystem.basedir=/tmp/s3proxy

[root@devstack ~]# $GOPATH/bin/S3Proxy --region RegionOne --profile /root/s3proxy.conf --endpoint http://192.168.12.112:8080/dhanu /mnt/veda
2017/03/25 09:03:37 Directory /tmp/S3Proxy/ already exists. Skipping mkdir.
2017/03/25 09:03:37 Listening on port: :9090
.
.
.
it got stuck, unable to move forward.

yuga9 commented

Ran from the GOPATH directory->Installation successful .

[root@devstack gocode]# cd src/github.com/
[root@devstack github.com]# ll
total 0
drwxr-xr-x. 3 root root 23 Mar 25 06:57 aws
drwxr-xr-x. 3 root root 19 Mar 25 06:59 drone
drwxr-xr-x. 3 root root 20 Mar 25 06:57 qstorey
[root@devstack github.com]# cd qstorey/S3Proxy/
[root@devstack S3Proxy]# ll
total 20
-rw-r--r--. 1 root root 1080 Mar 25 06:57 License.md
-rw-r--r--. 1 root root 432 Mar 25 06:57 main.go
-rw-r--r--. 1 root root 276 Mar 25 06:57 Makefile
-rw-r--r--. 1 root root 1964 Mar 25 06:57 README.md
drwxr-xr-x. 2 root root 4096 Mar 25 06:57 S3Proxy
[root@devstack S3Proxy]# make
go vet .
cd S3Proxy && go vet .
go fmt .
cd S3Proxy && go fmt .
go get -v
cd S3Proxy && go build -v
go build -v -o bin/S3Proxy
github.com/qstorey/S3Proxy
[root@devstack S3Proxy]#

[root@devstack S3Proxy]# ll
total 20
drwxr-xr-x. 2 root root 20 Mar 25 10:56 bin
-rw-r--r--. 1 root root 1080 Mar 25 06:57 License.md
-rw-r--r--. 1 root root 432 Mar 25 06:57 main.go
-rw-r--r--. 1 root root 276 Mar 25 06:57 Makefile
-rw-r--r--. 1 root root 1964 Mar 25 06:57 README.md
drwxr-xr-x. 2 root root 4096 Mar 25 06:57 S3Proxy

it gives S3Proxy executable file inside of the bin directory.
but when i entered S3Proxy, it throws error as shown below.

/root/gocode/src/github.com/qstorey/S3Proxy/bin
[root@devstack bin]# ll
total 13816
-rwxr-xr-x. 1 root root 14141272 Mar 25 10:56 S3Proxy
[root@devstack bin]# S3Proxy version
-bash: S3Proxy: command not found
[root@devstack bin]#

could you please let me know, how to use S3Proxy.