7270v3 trunk 3534: Samba und ctlmgr Probleme

hermann72pb

IPPF-Promi
Mitglied seit
6 Nov 2005
Beiträge
3,727
Punkte für Reaktionen
16
Punkte
38
Ich hatte gestern mit einem aktuellen trunk mir FREETZ für 7270 v3 gebaut. An sich scheint alles zu funktionieren, allerdings startet SAMBA gar nicht als Dienst:
Code:
Starte samba:

Starting samba...Looking for user 'ftpuser' ... found
failed.
AVM-Samba hatte ich nicht abgewählt. Ich hoffe, es passiert automatisch, sobald man SAMBA unter FREETZ nimmt.
Hab ich da was übersehen, und ist es ein generelles Problem mit 76-Firmware? Kann ich es irgendwie debuggen?

Heute morgen hatte ich die AVM-WebIF mit dem alltbekannten
Code:
Internal socket error (-3).
vorgefunden. Gestern ging es noch ohne Probleme. tr069 ist bei mir aktiv und ich habe einige SSL-Sachen drin, allerdings alles statisch gelinkt. Deswegen wundert mich ctrlmgr-Problematik ein bisschen.

MfG
 

Anhänge

Lässt sich die ctrlmgr-Sache nachstellen oder erneut verfolgen? Sonst is esschwer, das Problem einzugrenzen. Was passiert bei einem
Code:
sh -x /etc/init.c/rc.samba start
 
Zu ctrlmgr: Ich hatte bereits im anderen Thread mich dazu geäußert, dass es anscheinend mit dem callmonitor zu tun hat, wenn die Schnittstelle nicht aktiv ist. Die Bedingungen bei mir sind ähnlich dem, was dort im Thread berichtet wurde.

Zu SAMBA:
Code:
/var/mod/root # sh -x /etc/init.d/rc.samba start
+ BDIR=/sbin
+ DAEMON=samba
+ SMBD=smbd
+ NMBD=nmbd
+ MODPATH=/mod/etc
+ CONF=/mod/etc/smb.conf
+ . /etc/init.d/modlibrc
+ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/mod/sbin:/mod/bin:/mod/usr/sbin:/mod/usr/bin
+ export LD_LIBRARY_PATH=/mod/lib:/mod/usr/lib
+ [ -n samba ]
+ [ ! -r /mod/etc/conf/samba.cfg ]
+ modlib_loadconfig
+ local CONF_FILE=/mod/etc/conf/samba.cfg
+ [ -r /mod/etc/conf/samba.cfg ]
+ . /mod/etc/conf/samba.cfg
+ export SAMBA_ENABLED=yes
+ export SAMBA_INTERFACES=192.168.XXX.1/255.255.255.0
+ export SAMBA_MASTER=yes
+ export SAMBA_NETBIOS_NAME=FRITZ.BOX
+ export SAMBA_OS_LEVEL=20
+ export SAMBA_SERVER_STRING=%h (Samba %v)
+ export SAMBA_WORKGROUP=MEINEARBEITSGRUPPE
+ start
+ echo -n Starting samba...
Starting samba...+ config
+ mkdir -p /var/locks
+ mkdir -p /var/samba/lib
+ mkdir -p /var/samba/private
+ modlib_adduser ftpuser -G users -D -S -h /var/media/ftp -g ftp user
+ local user=ftpuser
+ shift
+ echo -n Looking for user 'ftpuser' ...
Looking for user 'ftpuser' ... + grep -q ^ftpuser: /etc/passwd
+ echo found
found
+ return 0
+ /mod/etc/default.samba/samba_conf
+ [ -r /var/tmp/smbpasswd.cleartext ]
+ pidof smbd
+ smbd -D -s /mod/etc/smb.conf
+ exitvals=0
+ NST=1
+ [ 0 -ge 1 ]
+ exitvaln=0
+ [ -x /sbin/nmbd -a 1 -eq 1 ]
+ nmbd -D -s /mod/etc/smb.conf
Bus error
+ exitvaln=138
+ [ 0 -eq 0 -a 138 -eq 0 ]
+ killall nmbd
+ killall smbd
+ echo failed.
failed.
+ exit 1
Muss ich da irgendwelche Benutzer per Hand anlegen?

Ich muss noch dazu sagen. Die FREETZ-Config habe ich von einer 7170 übernommen. Vielleicht hängt es irgendwie damit zusammen. Obwohl FREETZ auf der Vorgänger-7170 auch nicht so alt sein dürfte. Und dort hatte es funktioniert.

MfG
 
Code:
+ nmbd -D -s /mod/etc/smb.conf
Bus error
Muss ich da irgendwelche Benutzer per Hand anlegen?

Das Problem ist hier und sollte nichts mit fehlenden Benutzern zu tun haben.

Du kannst versuchen, nmbd neu zu erstellen, nicht zu verwenden, oder mit strace, ltrace und/oder einem Debugger untersuchen.
 
ok, danke. Ich hatte früher nmbd immer mit ausgewählt gehabt. Diesmal weiß ich nicht mehr genau. Kann es sein, dass meine alte FREETZ-Konfiguration etwas mit nmbd vor hat und es fehl schlägt, weil nmbd gar nicht da ist, bzw. nicht FREETZ-nmbd, sondern AVM-eigener?

Es wird wohl darauf hin laufen, FREETZ nochmal in Ruhe aufzubauen. So ein Schnellschuss auf einem fremden Rechner usw. geht meistens irgendwie schief.

MfG
 
Ich hatte aber den trunk frisch ausgecheckt und frisch kompiliert. D.h. Überbleibsel von irgendwelchen alten Kompilierungsversuchen sind völlig ausgeschlossen. Kann es sein, dass nmbd von AVM kommt und smbd von FREETZ und daher inkompatibel?

Edit: Würde es evtl. helfen, die SAMBA-Konfiguration auf der Box zu löschen und neu anzulegen? Ich habe zwar eine durch WebIF automatisch generierte, aber eben eine von der alten FREETZ-Versionen "mitgeschlepte". Sonst kann ich es kaum verstehen, warum ich Probleme habe. Heißt das, dass jeder, der nmbd benutzt auch solche Probleme hat? Oder benutzt kaum jemand nmbd?

MfG
 
Zuletzt bearbeitet:
Ich nutze den smbd und nmbd aus dem Freetz-Paket. Und bei mir läuft der Spass einwandfrei. Von daher würde ich auf kein generelles Problem tippen, sondern eher etwas, was mit deiner Konfiguration zu tun hat.
Code:
/var/mod/root # ps w|grep mbd|grep -v grep
22206 root      3208 S N  smbd -D -s /mod/etc/smb.conf
22208 root      2444 S    nmbd -D -s /mod/etc/smb.conf
/var/mod/root # sh -x /etc/init.d/rc.samba restart
+ BDIR=/sbin                                      
+ DAEMON=samba                                    
+ SMBD=smbd                                       
+ NMBD=nmbd                                       
+ MODPATH=/mod/etc                                
+ CONF=/mod/etc/smb.conf                          
+ . /etc/init.d/modlibrc                          
+ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/mod/sbin:/mod/bin:/mod/usr/sbin:/mod/usr/bin
+ export LD_LIBRARY_PATH=/mod/lib:/mod/usr/lib                                           
+ [ -n samba ]                                                                           
+ [ ! -r /mod/etc/conf/samba.cfg ]                                                       
+ modlib_loadconfig                                                                      
+ local CONF_FILE=/mod/etc/conf/samba.cfg                                                
+ [ -r /mod/etc/conf/samba.cfg ]                                                         
+ . /mod/etc/conf/samba.cfg                                                              
+ export SAMBA_ENABLED=yes                                                               
+ export SAMBA_INTERFACES=192.168.111.1/255.255.255.0                                     
+ export SAMBA_MASTER=yes                                                                
+ export SAMBA_NETBIOS_NAME=fritz                                                        
+ export SAMBA_OS_LEVEL=20                                                               
+ export SAMBA_SERVER_STRING=router                                                      
+ export SAMBA_WORKGROUP=mynet                                                    
+ PARA2=                                                                                 
+ [ 1 -ge 2 ]                                                                            
+ stop                                                                                   
+ echo -n Stopping samba...                                                              
Stopping samba...+ killall -TERM smbd                                                    
+ exitvals=0                                                                             
+ NSP=1                                                                                  
+ [ 0 -ge 1 ]                                                                            
+ exitvaln=0                                                                             
+ [ -x /sbin/nmbd -a 1 -eq 1 ]                                                           
+ killall -TERM nmbd                                                                     
+ exitvaln=0                                                                             
+ [ 0 -eq 0 -a 0 -eq 0 ]                                                                 
+ echo done.                                                                             
done.                                                                                    
+ sleep 2                                                                                
+ start                                                                                  
+ echo -n Starting samba...                                                              
Starting samba...+ config                                                                
+ mkdir -p /var/locks                                                                    
+ mkdir -p /var/samba/lib                                                                
+ mkdir -p /var/samba/private                                                            
+ modlib_adduser ftpuser -G users -D -S -h /var/media/ftp -g ftp user                    
+ local user=ftpuser                                                                     
+ shift                                                                                  
+ echo -n Looking for user 'ftpuser' ...                                                 
Looking for user 'ftpuser' ... + grep -q ^ftpuser: /etc/passwd                           
+ echo found                                                                             
found                                                                                    
+ return 0                                                                               
+ /mod/etc/default.samba/samba_conf                                                      
+ [ -r /var/tmp/smbpasswd.cleartext ]                                                    
+ pidof smbd                                                                             
+ smbd -D -s /mod/etc/smb.conf                                                           
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported                             
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
+ exitvals=0
+ NST=1
+ [ 0 -ge 1 ]
+ exitvaln=0
+ [ -x /sbin/nmbd -a 1 -eq 1 ]
+ nmbd -D -s /mod/etc/smb.conf
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
smbd - dlopen of lib /mod/etc/charset/CP850.so not supported
+ exitvaln=0
+ [ 0 -eq 0 -a 0 -eq 0 ]
+ echo done.
done.
+ exit 0

und dazu die generierte config
Code:
/var/mod/root # cat /mod/etc/smb.conf 
### global                            
[global]
netbios name = fritz
workgroup = mynet
server string = router
syslog = 0
encrypt passwords = true
passdb backend = smbpasswd
obey pam restrictions = yes
socket options = TCP_NODELAY
unix charset = ISO-8859-1
preferred master = yes
os level = 20
security = SHARE
guest account = ftpuser
interfaces = 192.168.111.1/255.255.255.0
bind interfaces only = yes
### expert
### default
[Online-Speicher]
 path = /var/media/ftp/Online-Speicher
 user = ftpuser
 read only = no
 guest ok = yes
 write cache size = 65536
[uStor02]
 path = /var/media/ftp/uStor02
 user = ftpuser
 read only = no
 guest ok = yes
 write cache size = 65536
[uStor03]
 path = /var/media/ftp/uStor03
 user = ftpuser
 read only = no
 guest ok = yes
 write cache size = 65536
### shares
### fin
/var/mod/root #
 
Meine Konfiguration ist mit der Konfiguration von Silent-Tears fast identisch. Von daher glaube ich nun eher daran, dass bei mir was beim Image-Bauen schief gegangen ist. Ich werde demnächst wohl mein Image neu generieren müssen.

Edit: Image neu mit trunk 3558 gebaut und nun läuft SAMBA. Der Unterschied zur vorherigen Konfiguration ist AVM-FTP anstatt VSFTP. Könnte es sein, dass VSFTP, bzw. das Rausnehmen von AVM-FTP Probleme mit SAMBA bereiten? Denn soweit ich es verstehe, sind FTP und SAMBA Sachen bei AVM eng verzahnt.

MfG
 
Zuletzt bearbeitet:
Kostenlos!

Statistik des Forums

Themen
248,923
Beiträge
2,305,219
Mitglieder
378,647
Neuestes Mitglied
nightdeck