Bug 240676
Summary: | After upgrading to samba.i386 3.0.24-5.fc6 smb crashes with errors | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Neil Squires <neil> | ||||||||||||
Component: | samba | Assignee: | Samba Maint Team <samba-bugs-list> | ||||||||||||
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> | ||||||||||||
Severity: | medium | Docs Contact: | |||||||||||||
Priority: | medium | ||||||||||||||
Version: | 6 | CC: | jplans | ||||||||||||
Target Milestone: | --- | ||||||||||||||
Target Release: | --- | ||||||||||||||
Hardware: | i386 | ||||||||||||||
OS: | Linux | ||||||||||||||
Whiteboard: | |||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||
Clone Of: | Environment: | ||||||||||||||
Last Closed: | 2007-05-21 21:24:29 UTC | Type: | --- | ||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||
Documentation: | --- | CRM: | |||||||||||||
Verified Versions: | Category: | --- | |||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||
Embargoed: | |||||||||||||||
Attachments: |
|
Description
Neil Squires
2007-05-19 23:38:59 UTC
Created attachment 155053 [details]
My smb conf file.
Created attachment 155054 [details]
Open ldap conf file
Attached for reference
Created attachment 155055 [details]
LDAP Slapd conf file
Post to Fedora Forums with reference to samba bug http://forums.fedoraforum.org/showthread.php?p=793627#post793627 I am sorry the log you pasted show no trace of crashes. Can you raise your log level to 10 reproduce the crash (I need a stack trace in the logs) and post it as attachment here? Created attachment 155077 [details]
smbd log file level 10
I am not sure how to launch smb using the /etc/init.d/smb and change the log level. The log level was changed in the smb.conf and does not provide a stack trace that I can see. If you can post any hints on what to do to get the stack trace then please email me. Thanks In reply to comment #7. Make the SMBDOPTIONS="-D" look like SMBDOPTIONS="-D -d 10" in the /etc/sysconfig/samba file. This will override any options in the smb.conf file. (In reply to comment #7) > I am not sure how to launch smb using the /etc/init.d/smb and change the log > level. The log level was changed in the smb.conf and does not provide a stack > trace that I can see. That's because there is no crash. Samba exits on an error condition. It seem something in your configuration is wrong. Can you check your "nobody" user and group are correctly set up in your system /etc/passwd,/etc/group files and there is no user/group with the same uid/gid on the ldap server ? Created attachment 155092 [details]
updated log file
Yes you are correct Samba is exiting on an error condition that has appeared following my upgrade of the samba to 3.0.24-5 as I have stated. The previous version was running fine. See logwatch file for upgrade details below. Packages Updated: php-mysql.i386 5.1.6-3.6.fc6 freeradius.i386 1.1.3-2.fc6 samba-swat.i386 3.0.24-5.fc6 ypbind.i386 3:1.19-7.fc6 tcllib.noarch 1.9-2.fc6 gsm.i386 1.0.12-3.fc6 php-mbstring.i386 5.1.6-3.6.fc6 openldap-clients.i386 2.3.30-2.fc6 php.i386 5.1.6-3.6.fc6 openldap-servers-sql.i386 2.3.30-2.fc6 firefox.i386 1.5.0.10-6.fc6 wavpack.i386 4.41-1.fc6 openldap.i386 2.3.30-2.fc6 php-common.i386 5.1.6-3.6.fc6 procps.i386 3.2.7-10.fc6 samba-common.i386 3.0.24-5.fc6 openldap-servers.i386 2.3.30-2.fc6 samba.i386 3.0.24-5.fc6 samba-client.i386 3.0.24-5.fc6 squirrelmail.noarch 1.4.10a-1.fc6 php-pdo.i386 5.1.6-3.6.fc6 openldap-devel.i386 2.3.30-2.fc6 php-ldap.i386 5.1.6-3.6.fc6 firefox-devel.i386 1.5.0.10-6.fc6 php-cli.i386 5.1.6-3.6.fc6 logrotate.i386 3.7.4-13.fc6 nfs-utils.i386 1:1.0.10-10.fc6 foomatic.i386 3.0.2-39.5.fc6 ---------------------- yum End ------------------------- I still have my nobody user and group set up on my system and no changes were made to the existing config files that were working the day before. After I ran the yum update -y command and noticed that the samba and ldap server had been updated. I restarted the services and notice the error. None of the attached config files had been updated the day I did the upgrade. Can you tell me exactly what version were you using before the update? This way I can easily identify the relevant changes and inspect the code to see if we broke something by mistake. Ty. Ok. On the 14 Apr 07 I upgrade samba to samba.i386 3.0.24-4.fc6 with no problems. I don't think you guys broke it. If you read the posts, there appears to possibly be a problem with Samba that will be fixed in 3.0.25 when using the LDAP backend. You may wish to check that first. Regards Neil I am trying to get enough evidence to understand what is the issue. A minor upgrade shouldn;t break it so I am interesting in finding out what's going on. Can you tell me if you have a mapping for user nobody in /etc/samba/smbusers ? Can you tell me if you see avc messages in the audit.log (if you have selinux enabled and enforcing). Can you attach the output of net groupmap list run as root? Ty Right, from a quick view over the logs, samba has all kinds of problems to access your LDAP server. It cannot even access the rootdse -----8<------------------snip--------------8<-------------- [2007/05/21 22:59:02, 3] lib/smbldap.c:smbldap_check_root_dse(1636) smbldap_check_root_dse: Expected one rootDSE, ----->8------------------snap-------------->8-------------- Likewise samba cannot access your toplevel basedn object in the Directory -----8<------------------snip--------------8<-------------- [2007/05/21 22:59:02, 10] lib/smbldap.c:smbldap_search_ext(1237) Failed search for base: dc=n-ksquires,dc=id,dc=au, error: No such object () ----->8------------------snap-------------->8-------------- Can you please make sure * there have been no ACL changes on the LDAP server side ? * to look for errors in your LDAP servers log files ? Although nothing points into that direction right now, can you please reset your LDAP access password (using "smbpasswd -w yourpassword"). For faster testing: As long as "pdbedit -L -d 0" does not return your list of users, smbd won't run properly. For Ty, I do not have a nobody user or group in the LDAP directory or the smbpasswd file and never have. The audit log was the second place I looked and am getting no error messages. Selinux is enforcing. Here is the output from the net grouplist map [root@sensi samba]# net groupmap list > /home/nfsquires/net_groupmap_list [2007/05/22 06:15:59, 0] passdb/pdb_ldap.c:ldapsam_setsamgrent(3098) ldapsam_setsamgrent: LDAP search failed: No such object [2007/05/22 06:15:59, 0] passdb/pdb_ldap.c:ldapsam_enum_group_mapping(3170) ldapsam_enum_group_mapping: Unable to open passdb For Guther, You are correct, my samba cannot access my LDAP directory. As I have stated before, I did not change any LDAP ACL's (to my knowledge). I have reset the ldap user password as requested and still no change. Now another weird thing I have just found is that I have no slapd messages in my /var/log/message log file. Yet the status is showing OK. Also I have found that the upgrade has overwritten my ldap database. I had not checked this before as I did not expect it to be wiped in the update. I will restore it from backups and advise. Restored from backup and system is now working. This problem needs to be changed to possbily "Upgrade of LDAP overwrites exisitng database". That is the only thing that I can think of that has happened. Thanks for the help I am sorry this happened. I will close this bug as it is not a samba bug, would you mind opening a new one for openLdap ? There you can refer to this bug for more background. Thanks. |