Ask Your Question

Ghada's profile - activity

2019-08-07 06:12:10 -0600 received badge  Famous Question (source)
2018-03-10 18:01:54 -0600 received badge  Famous Question (source)
2017-08-22 06:06:39 -0600 received badge  Famous Question (source)
2017-08-22 06:06:39 -0600 received badge  Notable Question (source)
2017-03-10 10:54:23 -0600 received badge  Popular Question (source)
2017-03-10 10:54:23 -0600 received badge  Notable Question (source)
2017-01-01 10:57:46 -0600 received badge  Famous Question (source)
2016-12-28 20:46:44 -0600 received badge  Notable Question (source)
2016-12-27 15:32:48 -0600 answered a question Understanding Swift code source

It seems the test_updater file is not usefull for my case. In other words, can I find some details about the source code of Swift that allows me to understand how certain functionalities are working.

Thank you,

2016-12-27 15:30:55 -0600 answered a question Understanding Swift code source

It seems the test_updater file is not usefull for my case. In other words, can I find some details about the source code of Swift that allows me to understand how certain functionalities are working.

Thank you,

2016-12-26 19:05:11 -0600 received badge  Popular Question (source)
2016-12-23 21:01:58 -0600 asked a question Understanding Swift code source

Hello everyone,

I want to figure out some features in the Swift source code, such as downloading and uploading objects. That means how Swift process the client downloading or uploading requests from the proxy layer to the server layer. I do not know how can I proceed to find the set of functions responsible for that.

Can anyone help ?

Thank you,

2016-12-08 17:14:17 -0600 asked a question Can I change Swift IP address (localhost)?

Hello, I am working with Swift SAIO. Swift is installed on a machine, and, I need to upload and download files to/from Swift using another client machine.

Can I change localhost address in Swift and mention the server address ? I changed localhost address (127.0.0.1) by the server address in all the configuration files. Then, I executed the command curl -v to get the authentication token. It was successful. But, when I executed the swift stat command, I got this error :

Account head failed 503 Service Unavailable

Can anyone help ? thank you,

2016-12-08 06:42:33 -0600 received badge  Notable Question (source)
2016-12-08 06:42:33 -0600 received badge  Popular Question (source)
2016-06-22 12:36:19 -0600 received badge  Enthusiast
2016-06-21 00:07:17 -0600 asked a question Swift could not start

While installing Swift all in one on my machine (ubuntu), I got an error on the last step. Swift starts normally after executing the command 'startmain'.

Then, I got this error :

Traceback (most recent call last): File "/usr/local/bin/swift-container-server", line 6, in <module> exec(compile(open(__file__).read(), __file__, 'exec')) File "/home/osboxes/swift/bin/swift-container-server", line 23, in <module> sys.exit(run_wsgi(conf_file, 'container-server', **options)) File "/home/osboxes/swift/swift/common/wsgi.py", line 887, in run_wsgi error_msg = strategy.bind_ports() File "/home/osboxes/swift/swift/common/wsgi.py", line 490, in bind_ports drop_privileges(self.conf.get('user', 'swift')) File "/home/osboxes/swift/swift/common/utils.py", line 1824, in drop_privileges user = pwd.getpwnam(user) KeyError: 'getpwnam(): name not found: <your-user-name>'

Can I anyone help me to solve this issue ??

Thank you,

2016-06-20 22:15:51 -0600 commented question swiftonfile restart trouble

Hi, Did you find a solution to your problem ? I have the same one. Thank you,

2016-05-30 18:09:59 -0600 commented answer How to upload a file in Swift Storage system using python?

Actually, I allocated to Swift only 1 GB of storage capacity while the installation by using this command : sudo truncate -s 1GB /srv/swift-disk.

So, the storage space is almost full. How can I increase the space allocated to Swift ??

2016-05-27 18:47:06 -0600 received badge  Popular Question (source)
2016-05-27 14:34:04 -0600 commented answer How to upload a file in Swift Storage system using python?

Thank you for your response.

What is self.auth ?

How did you define it ?

2016-05-26 11:54:48 -0600 commented question File Upload in Swift client return "error 503 service unavailable"

Please, Have you resolved this issue. I have the same problem.

Thank you.

2016-05-26 11:54:48 -0600 asked a question How to upload a file in Swift Storage system using python?

I want to upload some files in Swift, having each around 1 giga bytes as sizes. I executed this code in python (for one file to upload):

import swiftclient
swift = swiftclient.client.Connection(auth_version='1',user='test:tester',key='testing',authurl='http://localhost:8080/auth/v1.0')
# Create the swift container
swift.put_container('container')
# Upload the object
with open('file.jpg', 'rb') as f:
    file_data = f.read()
swift.put_object('container', 'file.jpg', file_data)

# List the containers
print swift.head_account()

I got this error : Object PUT failed 503 Service Unavailable swift. What can be the reason of the error ?

Thank you.

2016-05-26 11:54:48 -0600 asked a question How to upload a file in Swift Storage system using python?

I want to upload a file in Swift. I executed this code in python :

   import swiftclient
    swift = swiftclient.client.Connection(auth_version='1',user='test:tester',key='testing',authurl='http://localhost:8080/auth/v1.0')
    # Create the swift container
    swift.put_container('cute-cats')
    # Upload the object
    with open('cat.jpg', 'rb') as f:
        file_data = f.read()
    swift.put_object('cute-cats', 'cat.jpg', file_data)

    # List the containers
    print swift.head_account()

    # List the objects in the cute cats containers
    print swift.head_container('cute-cats')

The code is running, but, how can I check if the file is stored in swift ? The file does not exist in the folder Swift.

Thank you.