-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I use pysmbclient in a flask environment
Basically I do a listdir and then i do a isdir on each of the items.
After the 10th item smb goes gogo ....
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/gigl/projects/objects/flasky.py", line 513, in object
view=obj.htmlview(id)
File "/home/gigl/projects/objects/MySMB.py", line 75, in htmlview
sublink = self.path2location(path,name)
File "/home/gigl/projects/objects/MySMB.py", line 37, in path2location
if globalsmb.isdir(path):
File "/home/gigl/projects/objects/smbclient.py", line 322, in isdir
return 'D' in self._getfile(path)[1]
File "/home/gigl/projects/objects/smbclient.py", line 281, in _getfile
f = self.glob(path).next()
File "/home/gigl/projects/objects/smbclient.py", line 241, in glob
files = self._runcmd(u'ls', path).splitlines()
File "/home/gigl/projects/objects/smbclient.py", line 171, in _runcmd
return self._raw_runcmd(fullcmd)
File "/home/gigl/projects/objects/smbclient.py", line 162, in _raw_runcmd
raise SambaClientError("Error on %r: %r" % (' '.join(cmd), result))
SambaClientError: Error on u'smbclient //localhost/public MySecretPassword -c ls "zeitplan N"': 'Unable to initialize messaging context\nNT_STATUS_NO_SUCH_FILE listing \\zeitplan N'
[E 181229 21:32:32 wsgi:374] 500 GET /object/12?name=SMB (127.0.0.1) 791.56ms
i tried to run p.kill() in _raw_runcmd but the process is finished already appearently
anybody know, what could be wrong there ?
Metadata
Metadata
Assignees
Labels
No labels