Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue with S3proxy #16

Open
janibashamd opened this issue Apr 7, 2017 · 3 comments
Open

Installation issue with S3proxy #16

janibashamd opened this issue Apr 7, 2017 · 3 comments

Comments

@janibashamd
Copy link

janibashamd commented Apr 7, 2017

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....

@qstorey
Copy link
Owner

qstorey commented Apr 8, 2017

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 [email protected]: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.

@janibashamd
Copy link
Author

janibashamd commented Apr 10, 2017

[root@centos ~]# git clone [email protected]: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
Copy link

yuga9 commented Apr 11, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants