Error State Directory /var/lib/samba Does Not Exist
+0100 Message-id: <200909261733.28278.linux@xxxxxxxxxxxxxxxxxxxxx> On Saturday 26 September 2009 09:45:16 Bob Williams wrote: On Saturday 26 September 2009 04:46:42 David C. Rankin wrote: On Friday 25 September 2009 04:48:56 pm Bob Williams wrote: Hi David, [...] There's something fundamentally sick with my installation, which I need to sort out first. Then I'll be delighted to use your outline :) Bob (off to bed now) After your first cup of coffee, add the following (changed for your release) http://download.opensuse.org/repositories/network:/samba:/STABLE/openSUSE _1 1.0/ 3.2 is an older release. 3.4 is current. update the samba packages and see if that helps. If not, a post to the samba list is usually the quickest was to get an answer. Post back if you get hung up. Good morning, Thanks for the samba repo which I have added, and duly upgraded my samba installation. However, not much has changed... barrowhillfarm:~ # testparm /etc/samba/smb.conf Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[profiles]" Processing section "[users]" Processing section "[groups]" Processing section "[pictures]" Processing section "[tmp]" Loaded services file OK. ERROR: lock directory file:///var/lib/samba does not exist ERROR: state directory file:///var/lib/samba does not exist ERROR: cache directory file:///var/lib/samba does not exist ERROR: pid directory file:///var/run/samba does not exist Server role: ROLE_DOMAIN_MEMBER Press enter to see a dump of your service definitions Am I supposed to create the missing files? Who should own them? What permissions should they have? I would have thought they would have been created automatically. I shall take your advice to ask on the samba list, but when I made initial enquiries there, I was advised to re-install, which I've now done. Many thanks, Bob The answer is staring me in the face! Those lines marked ERROR above refer to lines in smb.conf such as lock directory = file:///var/lib/samba which should, of course, read lock directory = /var/lib/samba I have no idea where the spurious "file://" came fro
start on boot - problem with upstart . Edit Remove 8 This bug affects 1 person Affects Status Importance Assigned to Milestone samba (Ubuntu) Edit Incomplete Undecided Jussi Jaurola Edit Also affects project (?) Also affects distribution/package Nominate for series Bug Description Binary package hint: samba For some reason my samba shares refuse to show up on my network eversince the latest maverick updates. The testparm command outputs these strings and include my smb.conf parameters, which have never failed me so far, until now... https://lists.opensuse.org/opensuse/2009-09/msg01303.html Load smb config files from /etc/samba/smb.conf rlimit_max: rlimit_max (1024) below minimum Windows limit (16384) Processing section "[nathanel]" Processing section "[Dropbox]" Processing section "[Disk]" Processing section "[Backup Disk]" Loaded services file OK. ERROR: state directory /var/lib/samba does not exist ERROR: cache directory /var/cache/samba does not exist Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] server string https://bugs.launchpad.net/bugs/695256 = %h server (Samba, Ubuntu) encrypt passwords = No map to guest = Bad User obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . unix password sync = Yes syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 dns proxy = No usershare allow guests = Yes usershare owner only = No panic action = /usr/share/samba/panic-action %d [nathanel] path = /home/nathanel read only = No guest ok = Yes [Dropbox] path = /home/nathanel/Dropbox read only = No guest ok = Yes [Disk] path = /media/Disk read only = No guest ok = Yes [Backup Disk] path = /media/Backup Disk read only = No guest ok = Yes None of my machines seem to show through samba, what can I do? ProblemType: Bug DistroRelease: Ubuntu 10.10 Package: samba 2:3.5.4~dfsg-1ubuntu8.1 ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8 Uname: Linux 2.6.35-24-generic x86_64 Architecture: amd64 Date: Wed Dec 29 00:07:22 2010 InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007) ProcEnviron: LANG=en_CA.utf8 SHELL=/bin/bash RelatedPackageVersions: nautilus 1:2.32.0-0ubuntu1.1 gvfs 1.6.4-0ubuntu1
Alex G Member From: Germany Registered: 2009-06-13 Posts: 1 :: Starting Samba Server [FAIL] Hello,First of all, I have already posted this issue on the German Arch https://bbs.archlinux.org/viewtopic.php?id=74194 Linux board, but noone could actually help me with this problem.It seems https://www.mail-archive.com/search?l=samba@lists.samba.org&q=subject:%22Re%3A+%5BSamba%5D+Broken+samba%22&o=newest&f=1 to happen rarely, I have googled for the error, the only real result said something like "I have reinstalled Fedora and the problem was gone."As you can imagine, this is not really the solution I was looking for ;)So, here some information:Just after the installation of error state Archlinux (32bit) itself was finished, I have installed samba through pacman.But since I was lazy back then, I did not want to configure it and removed the package again, also with pacman.Some time passed, now I had X installed, KDE, and so on, and I wanted to set up all those programms I needed.I came to samba, installed error state directory it through pacman again, and there the issue starts:[root@Anarchy ~]# /etc/rc.d/samba start:: Starting Samba Server [FAIL]The log.smbd tells me:[2009/06/02 19:02:56, 0] smbd/server.c:main(1267) smbd version 3.3.4 started. Copyright Andrew Tridgell and the Samba Team 1992-2009[2009/06/02 19:02:56, 0] lib/messages_local.c:messaging_tdb_init(96) ERROR: Failed to initialise messages database: Datei oder Verzeichnis nicht gefunden[2009/06/02 19:02:56, 0] lib/messages.c:messaging_init(204) messaging_tdb_init failed: NT_STATUS_OBJECT_NAME_NOT_FOUND[2009/06/02 19:02:56, 0] smbd/server.c:smbd_messaging_context(101) Could not init smbd messaging context.I did not really change much in my smb.conf file:# This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # For a step to step guide on installing, configuring and using samba, # read the Samba-HOWTO-Collection. This may be obtained from: # http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf # # Many working examples of smb.conf files can be found in the # Samba-Guide which is generated daily and can
fix it... barrowhillfarm:~ # smbd restart Aborted (core dumped) Possibly one of the libraries that Samba uses has been upgraded, and Samba is still accessing it as if it was the old version. Recompiling Samba should fix the problem, and is a good excuse to upgrade to the latest release while you're at it. I've upgraded to version 3.4, but I'm still having problems. The testparm command gives the following output: barrowhillfarm:~ # testparm /etc/samba/smb.conf Load smb config files from /etc/samba/smb.conf Processing section [homes] Processing section [profiles] Processing section [users] Processing section [groups] Processing section [pictures] Processing section [tmp] Loaded services file OK. ERROR: lock directory file:///var/lib/samba does not exist ERROR: state directory file:///var/lib/samba does not exist ERROR: cache directory file:///var/lib/samba does not exist ERROR: pid directory file:///var/run/samba does not exist Server role: ROLE_DOMAIN_MEMBER Press enter to see a dump of your service definitions Why are those lock, state, cache and pid directory files missing? I can't believe I'm supposed to create them myself ;) The testparm command was run as root, so it can't be a permissions problem. Any more suggestions, please? Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.25-0.1-default, KDE 4.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba Re: [Samba] Broken samba 2009-09-26 Thread Bob Williams On Saturday 26 September 2009 10:56:32 Bob Williams wrote: Hello Helmut, On Saturday 26 September 2009 10:17:00 Helmut Hullen wrote: Hallo, Bob, Du meintest am 26.09.09: barrowhillfarm:~ # testparm /etc/samba/smb.conf ERROR: lock directory file:///var/lib/samba does not exist ERROR: state directory file:///var/lib/samba does not exist ERROR: cache directory file:///var/lib/samba does not exist ERROR: pid directory file:///var/run/samba does not exist Why are those lock, state, cache and pid directory files missing? I can't believe I'm supposed to create them myself ;) The testparm command was run as root, so it can't be a permissions problem. What tells ls -ld /var/lib/samba ls -ld /var/run/samba barrowhillfarm:~ # ls -ld /var/lib/samba drwxr-xr-x 8 root root 4096 Sep 24 11:01 /var/lib/samba barrowhillfarm:~ # ls -ld /var/run/samba drwxr-xr-x 2 root root 4096 Sep 24 11:01 /v