Comments (12)
I had the same symptom and in my case it was because the opened file was positioned to the end of the file. The storeFile method just performs read() to get the data, so it wasn't finding anything at the end of the file. I did a file_obj.seek(0) before writing and this fixed it.
from pysmb.
@G-Goldstein 6 years later, thank you so much for this! Saved me.
from pysmb.
@siznad : Can you provide more information about the remote server? What are the versions of the OS/Samba service that is working and is not working?
If you can, please provide the TCP packet capture of both working and non-working scenarios.
Thank you
from pysmb.
Hi Michael,
Thanks for the quick response. I don't have the details yet about the
remote servers. I can get that next week. But I did already take network
captures for both scenarios.
Attached are the working and non-working captures.
For the not working scenario use filter 'tcp.stream eq 0'
For working, use filter 'tcp.stream eq 110'
Thanks.
On 2014-10-25 13:44, Michael Teo wrote:
@siznad [1] : Can you provide more information about the remote server? What are the versions of the OS/Samba service that is working and is not working?
If you can, please provide the TCP packet capture of both working and non-working scenarios.
Thank you
Reply to this email directly or view it on GitHub [2].
Links:
[1] https://github.com/siznad
[2] #23 (comment)
from pysmb.
@siznad : I think the attachments are not available on github when you reply via email. Can you email me your packet captures directly at [email protected] ? Thanks
from pysmb.
Hi,
I sent you the captures to [email protected]. Just wanted to confirm you got them.
John
from pysmb.
Thank goodness you have probed me on this. Your packet capture has ended up in my spam box. I will look into this.
from pysmb.
@siznad : I was looking through your packet captures. The remote CIFS/SMB server for the non-working looks interesting; it seems to be a NAS. Can you provide more details on the remote server? Thank you.
from pysmb.
It is NAS. It's a SAN storage running NetApp.
from pysmb.
Hi Mike,
Any idea what the issue could be?
John
from pysmb.
@siznad: Unfortunately, I do not have access to a NetApp storage facility to troubleshoot. I'm tied down with my work for this month, and will look into this once my time loosen up.
from pysmb.
@miketeo @siznad Don't know if this is already solved, but using is_direct_tcp=True on the SMBConnection solved the problem for me. Also, you might wanna use port 445 instead of 139.
from pysmb.
Related Issues (20)
- Cant connect w/ smb on mac os, python 3.8 HOT 6
- Can't get file list on DFS shared folder HOT 6
- listPath fails with "STATUS_ACCESS_DENIED" due to too broad access mask HOT 2
- pysmb-provided MD4 implementation for Python3 is broken HOT 6
- ThreadPoolExecutor storeFile HOT 1
- Using same code in Windows and Linux to access remote paths HOT 2
- Problem performing listPath using SMB1 with version 1.2.8 (similar to issue #195)
- Server does not support any of the pysmb dialects HOT 2
- When are compressed transfers supported?
- Unable to install the latest version of pysmb(1.2.9) HOT 7
- TypeError: can't concat str to bytes HOT 2
- How to improve transfer speed
- Server does not support any of the pysmb dialects. Please email pysmb to add in support for your OS HOT 1
- Copy a file using pysmb from windows to linux HOT 8
- Don't connect to SMBv2 server HOT 5
- Provide wheel distributions
- Using Chunk? HOT 5
- Request to Update Documentation for SMBConnection Class HOT 4
- storeFile raise SMBTimeout exception on files > 1k HOT 2
- Compatibility Issue with Unraid SMB Server: Unable to Negotiate Supported SMB Dialect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysmb.