Find the answer to your Linux question:
Results 1 to 2 of 2
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): ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2014
    Posts
    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/__init__.py", line 2120, in runWrapper
    self.run(self._params, self._args)
    File "/opt/rocks/lib/python2.4/site-packages/rocks/commands/sync/users/__init__.py", line 143, in run
    self.runPlugins()
    File "/opt/rocks/lib/python2.4/site-packages/rocks/commands/__init__.py", line 1867, in runPlugins
    plugin.run(args)
    File "/opt/rocks/lib/python2.4/site-packages/rocks/commands/sync/users/plugin_fixnewusers.py", line 139, in run
    hostname = self.db.getHostAttr('localhost', 'Info_HomeDirSrv')
    File "/opt/rocks/lib/python2.4/site-packages/rocks/commands/__init__.py", line 1396, in getHostAttr
    return self.getHostAttrs(host).get(key)
    File "/opt/rocks/lib/python2.4/site-packages/rocks/commands/__init__.py", 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
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,755
    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
  •