{"action":"created","issue":{"url":"https://api.github.com/repos/miketeo/pysmb/issues/9","repository_url":"https://api.github.com/repos/miketeo/pysmb","labels_url":"https://api.github.com/repos/miketeo/pysmb/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/miketeo/pysmb/issues/9/comments","events_url":"https://api.github.com/repos/miketeo/pysmb/issues/9/events","html_url":"https://github.com/miketeo/pysmb/issues/9","id":38203148,"node_id":"MDU6SXNzdWUzODIwMzE0OA==","number":9,"title":"smb.smb_structs.OperationFailure: Failed to list shares: Unable to connect to IPC$","user":{"login":"jsivak","id":251759,"node_id":"MDQ6VXNlcjI1MTc1OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/251759?v=4","gravatar_id":"","url":"https://api.github.com/users/jsivak","html_url":"https://github.com/jsivak","followers_url":"https://api.github.com/users/jsivak/followers","following_url":"https://api.github.com/users/jsivak/following{/other_user}","gists_url":"https://api.github.com/users/jsivak/gists{/gist_id}","starred_url":"https://api.github.com/users/jsivak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsivak/subscriptions","organizations_url":"https://api.github.com/users/jsivak/orgs","repos_url":"https://api.github.com/users/jsivak/repos","events_url":"https://api.github.com/users/jsivak/events{/privacy}","received_events_url":"https://api.github.com/users/jsivak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":59,"created_at":"2014-07-18T19:01:15Z","updated_at":"2019-03-21T05:12:59Z","closed_at":null,"author_association":"NONE","body":"When trying to access a Samba 3.0.33-3.40el5_10 server (which seems to be the main version on a CentOS 5 system) I'm getting the following traceback:\n\nTraceback (most recent call last):\n  File \"ap_67_app/scripts/smbtest.py\", line 116, in <module>\n    main()\n  File \"ap_67_app/scripts/smbtest.py\", line 86, in main\n    shares = conn.listShares(timeout=120)\n  File \"/home/jsivak/projects/ap_67_ve/lib/python2.7/site-packages/smb/SMBConnection.py\", line 148, in listShares\n    self._pollForNetBIOSPacket(timeout)\n  File \"/home/jsivak/projects/ap_67_ve/lib/python2.7/site-packages/smb/SMBConnection.py\", line 535, in _pollForNetBIOSPacket\n    self.feedData(data)\n  File \"/home/jsivak/projects/ap_67_ve/lib/python2.7/site-packages/nmb/base.py\", line 54, in feedData\n    self._processNMBSessionPacket(self.data_nmb)\n  File \"/home/jsivak/projects/ap_67_ve/lib/python2.7/site-packages/nmb/base.py\", line 75, in _processNMBSessionPacket\n    self.onNMBSessionMessage(packet.flags, packet.data)\n  File \"/home/jsivak/projects/ap_67_ve/lib/python2.7/site-packages/smb/base.py\", line 137, in onNMBSessionMessage\n    if self._updateState(self.smb_message):\n  File \"/home/jsivak/projects/ap_67_ve/lib/python2.7/site-packages/smb/base.py\", line 1497, in _updateState_SMB1\n    req.callback(message, **req.kwargs)\n  File \"/home/jsivak/projects/ap_67_ve/lib/python2.7/site-packages/smb/base.py\", line 1757, in connectCB\n    errback(OperationFailure('Failed to list shares: Unable to connect to IPC$', messages_history))\n  File \"/home/jsivak/projects/ap_67_ve/lib/python2.7/site-packages/smb/SMBConnection.py\", line 142, in eb\n    raise failure\nsmb.smb_structs.OperationFailure: Failed to list shares: Unable to connect to IPC$\n==================== SMB Message 0 ====================\n## SMB Header:\n\nCommand: 0x75 (SMB_COM_TREE_CONNECT_ANDX) \nStatus: NTSTATUS=0x00000000 \nFlags: 0x08 \nFlags2: 0xC841 \nPID: 9173 \nUID: 100 \nMID: 4 \nTID: 0 \nSecurity: 0x0000000000000000 \nParameters: 8 bytes \nff00000008000100 \nData: 49 bytes \n005c005c004600410052004d002d004d004f00520031002d005300520056005c00490050004300240000003f3f3f3f3f00 \n## SMB Data Packet (hex):\n\nff534d4275000000000841c80000000000000000000000000000d5236400040004ff000000080001003100005c005c004600410052004d002d004d004f00520031002d005300520056005c00490050004300240000003f3f3f3f3f00\n==================== SMB Message 1 ====================\n## SMB Header:\n\nCommand: 0x75 (SMB_COM_TREE_CONNECT_ANDX) \nStatus: NTSTATUS=0xC0000022 \nFlags: 0x88 \nFlags2: 0xC801 \nPID: 9173 \nUID: 100 \nMID: 4 \nTID: 0 \nSecurity: 0x0000000000000000 \nParameters: 0 bytes \n\nData: 0 bytes \n## SMB Data Packet (hex):\n\nff534d4275220000c08801c80000000000000000000000000000d52364000400000000\n"},"comment":{"url":"https://api.github.com/repos/miketeo/pysmb/issues/comments/475115208","html_url":"https://github.com/miketeo/pysmb/issues/9#issuecomment-475115208","issue_url":"https://api.github.com/repos/miketeo/pysmb/issues/9","id":475115208,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3NTExNTIwOA==","user":{"login":"aerialkoala","id":15826165,"node_id":"MDQ6VXNlcjE1ODI2MTY1","avatar_url":"https://avatars1.githubusercontent.com/u/15826165?v=4","gravatar_id":"","url":"https://api.github.com/users/aerialkoala","html_url":"https://github.com/aerialkoala","followers_url":"https://api.github.com/users/aerialkoala/followers","following_url":"https://api.github.com/users/aerialkoala/following{/other_user}","gists_url":"https://api.github.com/users/aerialkoala/gists{/gist_id}","starred_url":"https://api.github.com/users/aerialkoala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerialkoala/subscriptions","organizations_url":"https://api.github.com/users/aerialkoala/orgs","repos_url":"https://api.github.com/users/aerialkoala/repos","events_url":"https://api.github.com/users/aerialkoala/events{/privacy}","received_events_url":"https://api.github.com/users/aerialkoala/received_events","type":"User","site_admin":false},"created_at":"2019-03-21T05:12:59Z","updated_at":"2019-03-21T05:12:59Z","author_association":"NONE","body":"shares = conn.listShares()\r\n\r\nfor share in shares:\r\n    if not share.isSpecial and share.name not in ['NETLOGON', 'SYSVOL']:\r\n        sharedfiles = conn.listPath(share.name, '/')  #here was Exception occurred"}}
{"actor":{"display_login":"aerialkoala"}}