[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netatalk
Subject:    Re: [Netatalk-admins] cnid_dbd doesn't work with freebsd 10 and [Homes]
From:       HAT <hat () fa2 ! so-net ! ne ! jp>
Date:       2014-05-28 11:08:19
Message-ID: 20140528.200819.159666639077594130.hat () fa2 ! so-net ! ne ! jp
[Download RAW message or body]

Tue, 27 May 2014 16:05:23 -0500, Russell R Poyner <rpoyner@engr.wisc.edu>:
> Dear netatalk admins,
> 
> I'm struggling to get [Homes] to work on freebsd 10.
> 
> I've compiled netatalk using portmaster and included pam support.
> 
> If I configure a volume everything seems to work fine. If I configure 
> the same directory as [Homes] the mac says "share does not exist on the 
> server..." As a trivial test I can get Homes to work with "cnid scheme = 
> last" as well.
> 
> The log shows the cnid lookup failing when configured with [Homes]:
> 
> May 27 15:39:49.114480 cnid_metad[935] {netatalk_conf.c:1684} 
> (D5:AFPDaemon): getvolbypath("/home/username/backupCapsule"): user: 
> username, homedir: /home/username => realvolpath: 
> "/home/username/backupCapsule"
> May 27 15:39:49.114601 cnid_metad[935] {netatalk_conf.c:582} 
> (D5:AFPDaemon): createvol(volume: 'username's home', path: 
> "/home/username/backupCapsule", preset: '-'): BEGIN
> May 27 15:39:49.116072 cnid_metad[935] {netatalk_conf.c:970} 
> (D5:AFPDaemon): createvol: END: 0
> May 27 15:39:49.116161 cnid_metad[935] {cnid_metad.c:575} (S:CNID): 
> main: no volume for path "/home/username/backupCapsule"
> May 27 15:39:49.116293 afpd[937] {cnid_dbd.c:331} (D5:CNID): dbd_rpc: 
> Error reading header from fd (db_dir /home/username/backupCapsule): closed
> May 27 15:39:49.116424 afpd[937] {cnid_dbd.c:391} (E:CNID): transmit: 
> Request to dbd daemon (db_dir /home/username/backupCapsule) timed out.
> May 27 15:39:49.116493 afpd[937] {volume.c:864} (E:AFPDaemon): 
> afp_openvol(/home/username/backupCapsule): Fatal error: Unable to get 
> stamp value from CNID backend
> May 27 15:39:49.116571 afpd[937] {cnid_dbd.c:492} (D5:CNID): closing 
> database connection for volume '/home/username/backupCapsule'
> 
> 
> This works
> 
> [Global]
>     uam list = uams_dhx_pam.so uams_dhx2_pam.so
>     log file = /var/log/netalk.log
>     log level = default:debug, afpdaemon:debug, logger:debug, 
> uamsdaemon:debug
>     hostname = pc-bsd
>     mimic model = Xserve
>     zeroconf = yes
> 
> [test]
>     valid users = @allowedusers
>     path = /home/username/backupCapsule
> 
> This does not
> 
> [Global]
>     uam list = uams_dhx_pam.so uams_dhx2_pam.so
>     log file = /var/log/netalk.log
>     log level = default:debug, afpdaemon:debug, logger:debug, 
> uamsdaemon:debug
>     hostname = pc-bsd
>     mimic model = Xserve
>     zeroconf = yes
> 
> [Homes]
>     valid users = @allowedusers
>     path = backupCapsule
>     basedir regex = /home

Bug#449 ?

Netatalk 3.0 "valid users" does not work on Homes
http://sourceforge.net/p/netatalk/bugs/449/

-- 
HAT

------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Netatalk-admins mailing list
Netatalk-admins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netatalk-admins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic