Page 1 of 2
saving to network drive windows 7 - not working with actual or unc
Posted: April 2nd, 2010, 4:52 am
by gurpal2000
Hi
The app won't allow me to select the download folder (any type) as say:
v:\
v:/
\\servername\sharename
//servername/sharename
various other combo aren't working. The log is simply something on the lines of "cannot create folder"
even if i delete the target (thus allowing sabnzbd) to try to create it still won't. The permission aren't an issue because i can do:
echo blah > v:\blah\blah.txt
echo blah > \\blah\blah
is this a known issue ?
thanks
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 2nd, 2010, 4:56 am
by shypike
It's not possible to create at the share level.
In \\server\share the "share" part must already exist and have proper permissions.
Your second echo example cannot work.
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 2nd, 2010, 6:27 am
by gurpal2000
i mean
echo hello > \\server\share\folder\hello.txt
does work
i'm trying to save to say \\server\share\folder (or v:\folder)
that does NOT work when i type in the web form
Also in windows 7 ie 8, the error message doesn't always render. the html source is visible with text like
"Incorrect parameter
Cannot create complete_dir folder v:\folder"
It's almost like whatever API you're using (python?) isn't able to accept network mounted drives as a target.
thanks
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 2nd, 2010, 10:19 am
by shypike
SABnzbd is perfectly fine with UNC paths on my systems.
What kind of server (or other system) do you have the shares on?
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 2nd, 2010, 12:14 pm
by gurpal2000
shypike wrote:
SABnzbd is perfectly fine with UNC paths on my systems.
What kind of server (or other system) do you have the shares on?
v:\ drive is mapped to \\server\share which is ubuntu 9.10 samba server (2:3.4.0-3ubuntu5.6) mapped. a username/password is required.
Windows 7 itself is sitting inside a VMware server 64 bit and accessing network shares from explorer are fine.
(Don't ask why such a silly setup - this should work nevertheless). Is there more detailed logging i can turn on?
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 2nd, 2010, 12:24 pm
by shypike
The best way to test is to download and install ActiveState Python 2.5 on your system.
This is the download link:
http://downloads.activestate.com/Active ... 32-x86.msi
After installing, open a command prompt and type
You'll get the Python prompt, then type:
Code: Select all
import os
os.makedirs("\\\\server\\share\\folder\\testme")
The doubled backslahes are needed. Replace the names with the right ones.
If you get an error message, there's something wrong in Python.
If not, then I have more debugging to do.
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 2nd, 2010, 12:43 pm
by gurpal2000
shypike wrote:
The best way to test is to download and install ActiveState Python 2.5 on your system.
This is the download link:
http://downloads.activestate.com/Active ... 32-x86.msi
After installing, open a command prompt and type
You'll get the Python prompt, then type:
Code: Select all
import os
os.makedirs("\\\\server\\share\\folder\\testme")
The doubled backslahes are needed. Replace the names with the right ones.
If you get an error message, there's something wrong in Python.
If not, then I have more debugging to do.
ok let me try today/tomorrow thx
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 2nd, 2010, 12:50 pm
by shypike
How did you get Win 7 to talk to Ubuntu's Samba server?
I cannot get them on speaking terms.
Some Googling suggested to lower all sorts of security settings, which I'm not very eager to do.
Also it looks like Ubuntu's standard Samba is just too old to talk to Win7.
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 2nd, 2010, 1:14 pm
by gurpal2000
shypike wrote:
How did you get Win 7 to talk to Ubuntu's Samba server?
I cannot get them on speaking terms.
Some Googling suggested to lower all sorts of security settings, which I'm not very eager to do.
Also it looks like Ubuntu's standard Samba is just too old to talk to Win7.
never had a problem with ubuntu and samba with any version of windows. You might need to drop the win 7 firewall though.
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 2nd, 2010, 1:20 pm
by gurpal2000
Code: Select all
import os
os.makedirs("\\\\server\\share\\folder\\testme")
works perfectly fine... (also tried "v:/folder/testme2") both work.
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 2nd, 2010, 1:49 pm
by shypike
gurpal2000 wrote:
never had a problem with ubuntu and samba with any version of windows. You might need to drop the win 7 firewall though.
You must be the only one, judging by what I can Google Win7 and Samba are not easy to get on speaking terms.
It's not the firewall, I can mount other drives and I get a specific username/password error.
I can get it to work on XP though.
So it looks very much like a Win7/Python combination.
Tough, we currently create the binaries using a slightly older version of Python: 2.5.4.3
That could mean the difference.
Trouble is we will not update Python for 0.5.1, because we're too close to release.
Also I cannot see for myself whether a later Python solves the problem.
And you cannot download the older version, because ActiveState won't let you.
I could get you a test release based on Python 2.6. Just to see if it makes a difference.
BTW: I can only get it to work when I do mount at least one drive.
From my XP box I need to use name@Ubuntu to login. Obviously XP will not send name@Ubuntu voluntarily.
Could be that you setup your accounts differently on Samba.
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 3rd, 2010, 4:41 am
by shypike
Good news: I can now mount Ubuntu shares on my Win7 box (NetBios was disabled).
Good news: It works fine. None of the problems you encountered.
Bad news: I don't know what causes your problems.
It's definitely not a Python problem, I also tested with the original binary 0.5.0.
I needed to do some tweaking on the Ubuntu box to get Samba up and running
properly and having it talk to Windows boxes. I did not keep notes.
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 3rd, 2010, 6:38 am
by gurpal2000
ok, my samba config is as follows:
Code: Select all
[global]
workgroup = WORKGROUP
server string = %h (Samba)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
usershare allow guests = yes
Code: Select all
[share]
comment = Shared Storage on server
path = /share
public = no
writeable = yes
write list = @users
valid users = @users
force group = users
create mask = 644
force create mode = 0644
security mask = 0644
force security mode = 0644
directory mask = 0770
force directory mode = 0770
directory security mask = 0770
force directory security mode = 0770
"share" is obviously the share name. Put yourself in the "users" group.
hope that helps and appreciate your time on this.
Re: saving to network drive windows 7 - not working with actual or unc
Posted: April 7th, 2010, 4:54 pm
by gurpal2000
BTW i installed sabnzbd on XP and accessing the same share is fine and it allows v:/
hmm....
Re: saving to network drive windows 7 - not working with actual or unc
Posted: May 30th, 2011, 9:20 am
by gnomehole
I just upgraded to SABnzb 0.6.2 (on Windows 7) Previously it was working with a mapped drive to a diskstation NAS, but now it suddenly can't handle it.
Windows has the mapping just fine.
It seems putting the full path in works where the drive letter no longer does.
\\diskstation1\a\sabnzbd\complete works
z:\sabnzbd\complete used to work, but no longer does.