jih1103's profile - activity

2017-02-02 00:36:36 -0600 received badge  Necromancer (source)
2015-08-25 12:06:36 -0600 received badge  Self-Learner (source)
2015-08-25 12:06:36 -0600 received badge  Teacher (source)
2015-08-19 22:39:31 -0600 received badge  Famous Question (source)
2014-11-19 21:13:35 -0600 received badge  Notable Question (source)
2014-11-19 21:13:35 -0600 received badge  Popular Question (source)
2012-07-04 00:14:05 -0600 answered a question swift error: [Errno 111] ECONNREFUSED

All is fixed... Thanks..

The problem is only for ip address on proxy-server.conf, I change the bind_ip = 0.0.0.0 to bind_ip = 172.30.1.134...

and VirtualBox network changed host-only to bridged...

And work well...

2012-07-04 00:13:11 -0600 answered a question swift error: [Errno 111] ECONNREFUSED

Thanks Armando Migliaccio, that solved my question.

2012-07-04 00:11:27 -0600 answered a question swift error: [Errno 111] ECONNREFUSED

All is fixed... Thanks..

The problem is only for ip address on proxy-server.conf, I change the bind_ip = 0.0.0.0 to bind_ip = 172.30.1.134... And work well...

2012-06-29 04:01:15 -0600 answered a question swauth-add-user issuse, 400 bad request in log

Hello.

I tested both of them... and those result was same.

Before... I use the tempauth. and for testing, I changed the swauth.

Install and setting with swauth.

then

First, 'swift-init proxy start' (OK) Second, 'swauth-prep -K swauthkey' (NOK) --> 500 Server Error...

So, I tryied some ways... and I just, 'swift-init all stop' and 'swift-init all start' then 'swauth-prep -K swauthkey' (OK), surely I set the proxy-server.conf before this.

Pls, try it and if it is not a correct one then say that again...

Regards.

2012-06-29 03:34:28 -0600 answered a question swauth-add-user issuse, 400 bad request in log

Hello.

Swauth tools use just /auth/ and Swift tools use /auth/v1.0. ( http://gholt.github.com/swauth/stable/index.html (http://gholt.github.com/swauth/stable...) )

If you possible, try it again with "http://127.0.0.1:8080/auth/" not " http://127.0.0.1:8080/auth%22 (http://127.0.0.1:8080/auth")

regards.

2012-06-27 08:19:38 -0600 answered a question swift error: [Errno 111] ECONNREFUSED

.. Wrong click... I need an answer...

2012-06-27 08:18:32 -0600 answered a question swift error: [Errno 111] ECONNREFUSED

I think that "GET" had correctly run, but last two "HEAD" had not responsed to the remote-side swift. Again, try it... any other ways...

Good day!!

2012-06-27 08:18:30 -0600 answered a question swift error: [Errno 111] ECONNREFUSED

I think that "GET" had correctly run, but last two "HEAD" had not responsed to the remote-side swift. Again, try it... any other ways...

Good day!!

2012-06-26 04:37:05 -0600 answered a question swift error: [Errno 111] ECONNREFUSED

Hello Armando Migliaccio.

Thanks for your answer.

I tested like that you wrote it, but I could not solved it.

So, I have printed log '/var/log/syslog', both of them 'local' and 'remote'.

Command>> swift -v -A https://192.168.56.101:443/auth/v1.0 -U sslacct:ssluser -K sslpass stat -v

=======================================================================================

Local : 127.0.0.1 (192.168.56.101) : Here, just printed HTTP messages.

Jun 26 13:22:57 swiftmain object-server 127.0.0.1 - - [26/Jun/2012:04:22:57 +0000] "GET /sdb3/134313/AUTH_.auth/sslacct/ssluser" 200 111 "-" "-" "%(orig)s Swauth" 0.0006 Jun 26 13:22:57 swiftmain proxy-server - - 26/Jun/2012/04/22/57 GET /v1/AUTH_.auth/sslacct/ssluser HTTP/1.0 200 - %25%28orig%29s%20Swauth - - - - - - 0.0028 Jun 26 13:22:57 swiftmain object-server 127.0.0.1 - - [26/Jun/2012:04:22:57 +0000] "GET /sdb2/126268/AUTH_.auth/.token_6/AUTH_tkabd80bff2868411ca7cad7a186c62cb6" 200 212 "-" "-" "%(orig)s Swauth" 0.0014 Jun 26 13:22:57 swiftmain proxy-server - - 26/Jun/2012/04/22/57 GET /v1/AUTH_.auth/.token_6/AUTH_tkabd80bff2868411ca7cad7a186c62cb6 HTTP/1.0 200 - %25%28orig%29s%20Swauth - - - - - - 0.0042 Jun 26 13:22:57 swiftmain object-server 127.0.0.1 - - [26/Jun/2012:04:22:57 +0000] "GET /sdb3/254191/AUTH_.auth/sslacct/.services" 404 - "-" "-" "%(orig)s Swauth" 0.0002 Jun 26 13:22:57 swiftmain object-server 127.0.0.1 - - [26/Jun/2012:04:22:57 +0000] "GET /sdb4/254191/AUTH_.auth/sslacct/.services" 200 108 "-" "-" "%(orig)s Swauth" 0.0004 Jun 26 13:22:57 swiftmain proxy-server - - 26/Jun/2012/04/22/57 GET /v1/AUTH_.auth/sslacct/.services HTTP/1.0 200 - %25%28orig%29s%20Swauth - - - - - - 0.0057 Jun 26 13:22:57 swiftmain swauth - 192.168.56.101 26/Jun/2012/04/22/57 GET /auth/v1.0/ HTTP/1.0 200 - - - - - - - - 0.0155 Jun 26 13:22:57 swiftmain account-server 127.0.0.1 - - [26/Jun/2012:04:22:57 +0000] "HEAD /sdb4/82451/AUTH_65918ac5-ec88-4b32-8509-b68fd019d6bb" 204 - "-" "-" "-" 0.0019 "" Jun 26 13:22:57 swiftmain proxy-server 127.0.0.1 127.0.0.1 26/Jun/2012/04/22/57 HEAD /v1/AUTH_65918ac5-ec88-4b32-8509-b68fd019d6bb HTTP/1.0 204 - - sslacct%3Assluser%2CAUTH_tkabd80bff2868411ca7cad7a186c62cb6 - - - - - 0.0045

Remote : 192.168.56.103 --> (192.168.56.101)

Jun 26 13:30:40 swiftmain object-server 127.0.0.1 - - [26/Jun/2012:04:30:40 +0000] "GET /sdb3/134313/AUTH_.auth/sslacct/ssluser" 200 111 "-" "-" "%(orig)s Swauth" 0.0004 Jun 26 13:30:40 swiftmain proxy-server - - 26/Jun/2012/04/30/40 GET /v1/AUTH_.auth/sslacct/ssluser HTTP/1.0 200 - %25%28orig%29s%20Swauth - - - - - - 0.0025 Jun 26 13:30:40 swiftmain object-server 127.0.0.1 - - [26/Jun/2012:04:30:40 +0000] "GET /sdb2/126268/AUTH_.auth/.token_6/AUTH_tkabd80bff2868411ca7cad7a186c62cb6" 200 212 "-" "-" "%(orig)s Swauth" 0.0006 Jun 26 13:30:40 swiftmain proxy-server - - 26/Jun/2012/04/30/40 GET /v1/AUTH_.auth/.token_6/AUTH_tkabd80bff2868411ca7cad7a186c62cb6 HTTP/1.0 200 - %25%28orig%29s%20Swauth - - - - - - 0.0026 Jun 26 ... (more)

2012-06-24 08:39:06 -0600 answered a question swift and Cyberduck

If you want to make any user or container, then use the 'curl' and upload/download/verify the stat or list ... then use the 'swift'

EX:> curl>>**************************

>> Below, I have made the user 'ssluser', accout 'sslacct', and password 'sslpass'

curl -k -v -H 'X-Storage-User: sslacct:ssluser' -H 'X-Storage-Pass: sslpass' https://192.168.56.101/auth/v1.0

  • About to connect() to 192.168.56.101 port 443 (#0)
  • Trying 192.168.56.101... connected
  • Connected to 192.168.56.101 (192.168.56.101) port 443 (#0)
  • successfully set certificate verify locations:
  • CAfile: none CApath: /etc/ssl/certs
  • SSLv3, TLS handshake, Client hello (1):
  • SSLv3, TLS handshake, Server hello (2):
  • SSLv3, TLS handshake, CERT (11):
  • SSLv3, TLS handshake, Server finished (14):
  • SSLv3, TLS handshake, Client key exchange (16):
  • SSLv3, TLS change cipher, Client hello (1):
  • SSLv3, TLS handshake, Finished (20):
  • SSLv3, TLS change cipher, Client hello (1):
  • SSLv3, TLS handshake, Finished (20):
  • SSL connection using AES256-SHA
  • Server certificate:
  • subject: C=KO; emailAddress=jih1103@paran.com
  • start date: 2012-06-21 06:21:35 GMT
  • expire date: 2012-07-21 06:21:35 GMT
  • SSL: unable to obtain common name from peer certificate > GET /auth/v1.0 HTTP/1.1 > User-Agent: curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18 > Host: 192.168.56.101 > Accept: / > X-Storage-User: sslacct:ssluser > X-Storage-Pass: sslpass > < HTTP/1.1 200 OK < X-Storage-Url: https://127.0.0.1/v1/AUTH_65918ac5-ec88-4b32-8509-b68fd019d6bb (https://127.0.0.1/v1/AUTH_65918ac5-ec...) < X-Storage-Token: AUTH_tkf7f78ee834784f9aa557b658a85cdebc < X-Auth-Token: AUTH_tkf7f78ee834784f9aa557b658a85cdebc < Content-Length: 108 < Date: Thu, 21 Jun 2012 06:55:00 GMT <
  • Connection #0 to host 192.168.56.101 left intact
  • Closing connection #0
  • SSLv3, TLS alert, Client hello (1): {"storage": {"default": "local", "local": "https://127.0.0.1/v1/AUTH_65918ac5-ec88-4b32-8509-b68fd019d6bb"}}root@swiftmain:/etc/swift# curl -k -i -H "X-Auth-Token: AUTH_tkf7f78ee834784f9aa557b658a85cdebc" -X PUT https://127.0.0.1/v1/AUTH_65918ac5-ec88-4b32-8509-b68fd019d6bb/sslcontainer (https://127.0.0.1/v1/AUTH_65918ac5-ec...) HTTP/1.1 201 Created Content-Length: 18 Content-Type: text/html; charset=UTF-8 Date: Thu, 21 Jun 2012 07:00:07 GMT

201 Created

>> Below, I have made the container 'sslcontainer'

curl -k -i -H "X-Auth-Token: AUTH_tkf7f78ee834784f9aa557b658a85cdebc" -X PUT https://127.0.0.1/v1/AUTH_65918ac5-ec88-4b32-8509-b68fd019d6bb/sslcontainer (https://127.0.0.1/v1/AUTH_65918ac5-ec...) HTTP/1.1 201 Created Content-Length: 18 Content-Type: text/html; charset=UTF-8 Date: Thu, 21 Jun 2012 07:00:07 GMT

201 Created

swift>>************************

>> Below, I have up/down/check the object in any container : lib.tar is object, sslcont1 is container, and sslacct:ssluser is account...

swift -v -A https://192.168.56.101/auth/v1.0 -U sslacct:ssluser -K sslpass upload sslcont1 lib.tar

lib.tar

swift -v -A https://192.168.56.101/auth/v1.0 -U sslacct:ssluser -K sslpass download sslcont1 lib.tar

lib.tar

swift -v -A https://192.168.56.101/auth/v1.0 -U sslacct:ssluser -K sslpass delete sslcont1 lib.tar

lib.tar

root@swiftmain:~# swift -v -A https://192.168.56.101/auth/v1.0 -U ... (more)

2012-06-21 10:06:59 -0600 asked a question swift error: [Errno 111] ECONNREFUSED

Dear all...

I have just installed swift with SAIO.

And it is based on Ubuntu 11_04...

It worked well in local terminal... like below.

I made 5 containers and tested upload/download/delete any file in local.

Next, I want to do it in remote system. But it throw any error to me...

Pls, How could I fix it?

[Local]

... ... ...

~# swift -v -A https://192.168.56.101/auth/v1.0 -U sslacct:ssluser \ -K sslpass upload sslcont1 lib.tar lib.tar

~# swift -v -A https://192.168.56.101/auth/v1.0 -U sslacct:ssluser \ -K sslpass download sslcont1 lib.tar lib.tar

~# swift -v -A https://192.168.56.101/auth/v1.0 -U sslacct:ssluser \ -K sslpass delete sslcont1 lib.tar lib.tar

root@swiftmain:~# swift -v -A https://192.168.56.101/auth/v1.0 \ -U sslacct:ssluser -K sslpass delete sslcont1 lib.tar lib.tar

root@swiftmain:~# swift -v -A https://192.168.56.101/auth/v1.0 \ -U sslacct:ssluser -K sslpass stat -v StorageURL: https://127.0.0.1/v1/AUTH_65918ac5-ec88-4b32-8509-b68fd019d6bb (https://127.0.0.1/v1/AUTH_65918ac5-ec...) Auth Token: AUTH_tkf7f78ee834784f9aa557b658a85cdebc Account: AUTH_65918ac5-ec88-4b32-8509-b68fd019d6bb Containers: 5 Objects: 1 Bytes: 182855680 Accept-Ranges: bytes


[Remote]

# swift -v -A https://192.168.56.101/auth/v1.0 -U sslacct:ssluser \ -K sslpass upload sslcontainer pkg1.gz Traceback (most recent call last): File "/usr/bin/swift", line 949, in run self.func(item, self.args, *self.kwargs) File "/usr/bin/swift", line 1639, in _object_job headers = conn.head_object(container, obj) File "/usr/bin/swift", line 861, in head_object return self._retry(None, head_object, container, obj) File "/usr/bin/swift", line 792, in _retry rv = func(self.url, self.token, args, *kwargs) File "/usr/bin/swift", line 573, in head_object conn.request('HEAD', path, '', {'X-Auth-Token': token}) File "/usr/lib/python2.6/httplib.py", line 910, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.6/httplib.py", line 947, in _send_request self.endheaders() File "/usr/lib/python2.6/httplib.py", line 904, in endheaders self._send_output() File "/usr/lib/python2.6/httplib.py", line 776, in _send_output self.send(msg) File "/usr/lib/python2.6/httplib.py", line 735, in send self.connect() File "/usr/lib/python2.6/httplib.py", line 1108, in connect sock = socket.create_connection((self.host, self.port), self.timeout) File "/usr/lib/pymodules/python2.6/eventlet/green/socket.py", line 59, in create_connection raise error, msg error: [Errno 111] ECONNREFUSED


[proxy-server.conf]

[DEFAULT] cert_file = /etc/swift/cert.crt key_file = /etc/swift/cert.key bind_port = 443 user = swift log_facility = LOG_LOCAL1

[pipeline:main] pipeline = healthcheck cache swauth proxy-server

[app:proxy-server] use = egg:swift#proxy allow_account_management = true account_autocreate = true

[filter:swauth] use = egg:swauth#swauth set log_name = swauth super_admin_key = swauthkey default_swift_cluster = local#https://127.0.0.1/v1#https://192.168.56.101/v1

[filter:healthcheck] use = egg:swift#healthcheck

[filter:cache] use = egg:swift#memcache