Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    rocks sync users command not working

    Hello everyone

    i am running rocks sync users on terminal of linux. i got this error. Can anyone tell me how to solve this problem?

    Traceback (most recent call last):
    File "/opt/rocks/bin/rocks", line 294, in ?
    command.runWrapper(name, args[i:])
    File "/opt/rocks/lib/python2.4/site-packages/rocks/commands/", line 2120, in runWrapper, self._args)
    File "/opt/rocks/lib/python2.4/site-packages/rocks/commands/sync/users/", line 143, in run
    File "/opt/rocks/lib/python2.4/site-packages/rocks/commands/", line 1867, in runPlugins
    File "/opt/rocks/lib/python2.4/site-packages/rocks/commands/sync/users/", line 139, in run
    hostname = self.db.getHostAttr('localhost', 'Info_HomeDirSrv')
    File "/opt/rocks/lib/python2.4/site-packages/rocks/commands/", line 1396, in getHostAttr
    return self.getHostAttrs(host).get(key)
    File "/opt/rocks/lib/python2.4/site-packages/rocks/commands/", line 1332, in getHostAttrs
    attrs['rack'] = rack
    UnboundLocalError: local variable 'rack' referenced before assignment

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    I think the error message at the end pretty much says it all - you are trying to use a variable (rack) that has not been instantiated first.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts