smb_maperror
The logs on our FreeBSD system are repeatedly filling up with the following message: smb_maperror: Unmapped error 1:158 It seems as though this error or something related to it is causing our server to occasionally lock up. We are using FreeBSD 6 and Samba 3. After much searching on Google, I found that several people (mostly FreeBSD users) have reported this problem, but no solution has ever been offered. Any suggestions? Thanks. Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
smb_maperror: Unmapped error 1:158 under FreeBSD 4.11 w/smbfs pure-ftpd
I run the latest 4.11-STABLE (yes I know that's not the latest STABLE in general) and use smbfs to mount a 300-gig network file share. I also use pure-ftpd and hope to allow ftp access to parts of that drive. Problem: When a user connects to pure-ftpd, it is possible to list files, navigate among folders, and even upload; but on trying to download any file from the smbfs share, the following error is logged via syslog and the download instantly terminates: kern.crit kirk /kernel: smb_maperror: Unmapped error 1:158 The error returned to the client (at least when I use FreeBSD's ftp as a client) is (shown with context) 150-Accepted data connection 150 21286.3 kbytes to download 0% | | 0 --:-- ETA 450 Error during write to data connection This reminds me that, on older FreeBSD versions, attempting to FTP straight off an smbfs mount, though not causing kernel errors, did result in corrupt downloads. That applied to the FreeBSD-internal ftpd as well as to pure-ftpd, but not to wu-ftpd. (I don't want to use wu-ftpd though for security reasons.) I can transfer files to/from the smbfs share by other means, such as via cp, without problems. Anyone have any idea what's going on here? Google searches for error 1:158 turned up very little solid (unless I missed something). Please Cc replies. -- Doug Lee [EMAIL PROTECTED] SSB + BART Group [EMAIL PROTECTED] http://www.ssbbartgroup.com It's not easy to be crafty and winsome at the same time, and few accomplish it after the age of six. --John W. Gardner and Francesca Gardner Reese ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: smb_maperror unmapped error 1:158
Steel City Phantom wrote: im using bsd 6. i write a script that fires on startup and shutdown that mounts the drives. i mount several, but here is one of the mount commands mount_smbfs -f 0777 -d 0777 //[EMAIL PROTECTED]/MP3 /usr/local/drive_h/MP3 it seems like anything that accesses a file in that share will create the error. Lowell Gilbert wrote: FYI, you don't need to write a script. I would guess that 6.0 is the same as 5.4 in this respect. You can set a variable in rc.conf extra_netfs_types=smbfs:SAMBA and then put any password info in /etc/nsmb.conf (read-only root!). Then put an entry in /etc/fstab like: //[EMAIL PROTECTED]/MP3 /usr/local/drive_h/MP3 smbfs rw 0 0 If /usr/local/drive_h/MP3 is mode 777 then you don't need -f or -d Connecting as administrator seems like a bad idea to me. I have no idea what causes your error. What does a mount which works look like, and how does anything on Windows differ between a mount that works and one that doesn't? --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: smb_maperror unmapped error 1:158
i mount with the script because when i tried it with fstab, it would only mount read only. even when i specified rw in the options. i tried everything i could think of to get write access to it and doing the script like this was the only thing that worked. and admin is no problem. this is a single little winblows box on a home network. its purpose in life is to store these files and run quickbooks thru terminal sessions. thats it. im waiting patiently for the wine crew to get quickbooks running. Alex Zbyslaw wrote: Steel City Phantom wrote: im using bsd 6. i write a script that fires on startup and shutdown that mounts the drives. i mount several, but here is one of the mount commands mount_smbfs -f 0777 -d 0777 //[EMAIL PROTECTED]/MP3 /usr/local/drive_h/MP3 it seems like anything that accesses a file in that share will create the error. Lowell Gilbert wrote: FYI, you don't need to write a script. I would guess that 6.0 is the same as 5.4 in this respect. You can set a variable in rc.conf extra_netfs_types=smbfs:SAMBA and then put any password info in /etc/nsmb.conf (read-only root!). Then put an entry in /etc/fstab like: //[EMAIL PROTECTED]/MP3 /usr/local/drive_h/MP3 smbfs rw 0 0 If /usr/local/drive_h/MP3 is mode 777 then you don't need -f or -d Connecting as administrator seems like a bad idea to me. I have no idea what causes your error. What does a mount which works look like, and how does anything on Windows differ between a mount that works and one that doesn't? --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: smb_maperror unmapped error 1:158
Steel City Phantom wrote: i mount with the script because when i tried it with fstab, it would only mount read only. even when i specified rw in the options. i tried everything i could think of to get write access to it and doing the script like this was the only thing that worked. and admin is no problem. this is a single little winblows box on a home network. its purpose in life is to store these files and run quickbooks thru terminal sessions. thats it. im waiting patiently for the wine crew to get quickbooks running. Well, I quite successfully mount samba partitions read write from fstab. Whan mounting from fstab, the relevant rc.d script does pretty much exactly what your hand-written script does, so there's no reason it shouldn't work. Have you considered that that your problems mounting rw from fstab, and the error you get now *might be related*? It really sounds to me like something is configured wrong on the windows end. Good luck with figuring out what :-( --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: smb_maperror unmapped error 1:158
Steel City Phantom [EMAIL PROTECTED] writes: Judging from google, this has been asked a few times and never really answered. my bsd box mounts several shares from a win 2000 box. not all of the files that appear in the win 2k box, appear on the bsd box in the mount location. switching over from kde to the console shows a list of errors smb_maperror unmapped error 1:158 any ideas what this could be? No; there is no such function in the samba port or in the base system smbfs. You didn't mention how you were doing the mounting, nor what version of the OS and other software you were using, so there isn't anything else I can think of to check for you. [My system is -STABLE, with the latest ports.] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: smb_maperror unmapped error 1:158
Lowell Gilbert [EMAIL PROTECTED] writes: Steel City Phantom [EMAIL PROTECTED] writes: Judging from google, this has been asked a few times and never really answered. my bsd box mounts several shares from a win 2000 box. not all of the files that appear in the win 2k box, appear on the bsd box in the mount location. switching over from kde to the console shows a list of errors smb_maperror unmapped error 1:158 any ideas what this could be? No; there is no such function in the samba port or in the base system smbfs. You didn't mention how you were doing the mounting, nor what version of the OS and other software you were using, so there isn't anything else I can think of to check for you. [My system is -STABLE, with the latest ports.] Oops; I found it a few minutes later. The error message means that the error returned by the Windows box was a type that wasn't known to the error handling routine. The Samba port refers to that error as: NT_STATUS_NOT_LOCKED, but I'm not enough of an SMB expert to know exactly what that means. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: smb_maperror unmapped error 1:158
im using bsd 6. i write a script that fires on startup and shutdown that mounts the drives. i mount several, but here is one of the mount commands mount_smbfs -f 0777 -d 0777 //[EMAIL PROTECTED]/MP3 /usr/local/drive_h/MP3 it seems like anything that accesses a file in that share will create the error. Lowell Gilbert wrote: Lowell Gilbert [1][EMAIL PROTECTED] writes: Steel City Phantom [2][EMAIL PROTECTED] writes: Judging from google, this has been asked a few times and never really answered. my bsd box mounts several shares from a win 2000 box. not all of the files that appear in the win 2k box, appear on the bsd box in the mount location. switching over from kde to the console shows a list of errors smb_maperror unmapped error 1:158 any ideas what this could be? No; there is no such function in the samba port or in the base system smbfs. You didn't mention how you were doing the mounting, nor what version of the OS and other software you were using, so there isn't anything else I can think of to check for you. [My system is -STABLE, with the latest ports.] Oops; I found it a few minutes later. The error message means that the error returned by the Windows box was a type that wasn't known to the error handling routine. The Samba port refers to that error as: NT_STATUS_NOT_LOCKED, but I'm not enough of an SMB expert to know exactly what that means. ___ [EMAIL PROTECTED] mailing list [4]http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [5][EMAIL PROTECTED] References 1. mailto:[EMAIL PROTECTED] 2. mailto:[EMAIL PROTECTED] 3. mailto:freebsd-questions@freebsd.org 4. http://lists.freebsd.org/mailman/listinfo/freebsd-questions 5. mailto:[EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
smb_maperror unmapped error 1:158
Judging from google, this has been asked a few times and never really answered. my bsd box mounts several shares from a win 2000 box. not all of the files that appear in the win 2k box, appear on the bsd box in the mount location. switching over from kde to the console shows a list of errors smb_maperror unmapped error 1:158 any ideas what this could be? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]