problem when using Swift v1.4.7-dev documentation » SAIO - Swift All In One

Asked by imen khbou

Hi Everybody,

I'm following the instruction in http://swift.openstack.org/development_saio.html

everything seems to be good but when I typed startmain I get

WARNING: Unable to increase file descriptor limit. Running as non-root?
Starting proxy-server...(/etc/swift/proxy-server.conf)
Traceback (most recent call last):
  File "/usr/local/bin/swift-init", line 5, in <module>
    pkg_resources.run_script('swift==1.4.6', 'swift-init')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 467, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1200, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/swift-1.4.6-py2.7.egg/EGG-INFO/scripts/swift-init", line 73, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/swift-1.4.6-py2.7.egg/EGG-INFO/scripts/swift-init", line 63, in main
    status = manager.run_command(command, **options.__dict__)
  File "/usr/local/lib/python2.7/dist-packages/swift-1.4.6-py2.7.egg/swift/common/manager.py", line 308, in run_command
    return f(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/swift-1.4.6-py2.7.egg/swift/common/manager.py", line 79, in wrapped
    rv = func(*a, **kw)
  File "/usr/local/lib/python2.7/dist-packages/swift-1.4.6-py2.7.egg/swift/common/manager.py", line 169, in start
    server.launch(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/swift-1.4.6-py2.7.egg/swift/common/manager.py", line 606, in launch
    pid = self.spawn(conf_file, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/swift-1.4.6-py2.7.egg/swift/common/manager.py", line 532, in spawn
    write_file(pid_file, proc.pid)
  File "/usr/local/lib/python2.7/dist-packages/swift-1.4.6-py2.7.egg/swift/common/utils.py", line 904, in write_file
    with open(path, 'w') as f:
IOError: [Errno 13] Permission denied: '/var/run/swift/proxy-server.pid'

Can you help me to resolve this problom

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Marcelo Martins (btorch) said :
#1

hmm you started it as the root user ? The user that you started the process with doesn't have permissions to /var/run/swift/

Can you help with this problem?

Provide an answer of your own, or ask imen khbou for more information if necessary.

To post a message you must log in.