Bug#319814: use of DBD CNID backend fails with error "Unable to get stamp value from CNID backend"

2005-07-25 Thread Jonas Smedegaard
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 25-07-2005 16:34, Tim Miller Dyck wrote:
> Dear Jonas:
> 
> Thank you for that tip! That was my problem.
> 
> I added the following lines to /etc/init.d/netatalk on my system to  do
> this automatically:
> 
> if [ "$CNID_METAD_RUN" = "yes" -a -x /usr/sbin/cnid_metad ]; then
> /usr/sbin/cnid_metad
> echo -n " cnid_metad"
> fi
> 
> ...
> 
> echo -n " cnid_metad"; \
> start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/
> cnid_metad
> 
> These are based on the init script that comes with the netatalk  tarball
> from the project's web site. Perhaps these could be added to  the Debian
> package? The stable Debian /etc/default/netatalk file  includes the line
> "CNID_METAD_RUN=yes" so it is already set up to run  the CNID agent.

The text in /etc/default/detatalk is possibly inherited from my
unofficial packaging at http://debian.jones.dk/ but Sebastian Rittau
chose for some reason not to adopt my changed init script (if I remember
history correct).

Best way would IMO be to use upstream init script. I have tried doing
that recently but ran into problems and have since been busy other places...


In short: I am aware of this, and will push Sebastian about it too, but
it is not high urgency, as the option is not enabled by default (but I
agree - current situation is confusing, so leaving this bugreport open).


 - Jonas

- --
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nær: http://www.shibumi.org/eoti.htm
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC5PwAn7DbMsAkQLgRAv1UAJ9ywdmf+dIwOF6N2NOQR2jG1fWbFACgi2V7
7AgbrNGqAIYhXR6m/ZZ/xao=
=wdak
-END PGP SIGNATURE-



Bug#319814: use of DBD CNID backend fails with error "Unable to get stamp value from CNID backend"

2005-07-25 Thread Tim Miller Dyck

Dear Jonas:

Thank you for that tip! That was my problem.

I added the following lines to /etc/init.d/netatalk on my system to  
do this automatically:


if [ "$CNID_METAD_RUN" = "yes" -a -x /usr/sbin/cnid_metad ]; then
/usr/sbin/cnid_metad
echo -n " cnid_metad"
fi

...

echo -n " cnid_metad"; \
start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/ 
cnid_metad


These are based on the init script that comes with the netatalk  
tarball from the project's web site. Perhaps these could be added to  
the Debian package? The stable Debian /etc/default/netatalk file  
includes the line "CNID_METAD_RUN=yes" so it is already set up to run  
the CNID agent.


Regards,
Tim Miller Dyck
Editor/Publisher, Canadian Mennonite


On 25-Jul-05, at 3:48, Jonas Smedegaard wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 25-07-2005 01:36, Tim Miller Dyck wrote:


Package: netatalk
Version: 2.0.2-3

Dear netatalk maintainers:

I am having a problem using netatalk with a DBD (transactional)
backend. The CNID database is not getting created properly and  
the  afpd

server is unable to access it. The default CDB backend works  fine.
Creating the database using the CDB backend and then trying to  then
switch to using DBD (which should work) also does not work -  afpd  
gives
the same syslog message as below and clients cannot  connect to  
the share.




Did you start cnid_metad daemon?


 - Jonas

- --
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nær: http://www.shibumi.org/eoti.htm
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC5JlUn7DbMsAkQLgRAst0AKCDnkMnQODnTqMjcvSpH/Y0Gn3q+ACgjDXp
13fzbILcODEVhkumZJv3k1g=
=vFCk
-END PGP SIGNATURE-








Bug#319814: use of DBD CNID backend fails with error "Unable to get stamp value from CNID backend"

2005-07-25 Thread Jonas Smedegaard
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 25-07-2005 01:36, Tim Miller Dyck wrote:
> Package: netatalk
> Version: 2.0.2-3
> 
> Dear netatalk maintainers:
> 
> I am having a problem using netatalk with a DBD (transactional) 
> backend. The CNID database is not getting created properly and the  afpd
> server is unable to access it. The default CDB backend works  fine.
> Creating the database using the CDB backend and then trying to  then
> switch to using DBD (which should work) also does not work -  afpd gives
> the same syslog message as below and clients cannot  connect to the share.

Did you start cnid_metad daemon?


 - Jonas

- --
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nær: http://www.shibumi.org/eoti.htm
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC5JlUn7DbMsAkQLgRAst0AKCDnkMnQODnTqMjcvSpH/Y0Gn3q+ACgjDXp
13fzbILcODEVhkumZJv3k1g=
=vFCk
-END PGP SIGNATURE-



Bug#319814: use of DBD CNID backend fails with error "Unable to get stamp value from CNID backend"

2005-07-24 Thread Tim Miller Dyck

Package: netatalk
Version: 2.0.2-3

Dear netatalk maintainers:

I am having a problem using netatalk with a DBD (transactional)  
backend. The CNID database is not getting created properly and the  
afpd server is unable to access it. The default CDB backend works  
fine. Creating the database using the CDB backend and then trying to  
then switch to using DBD (which should work) also does not work -  
afpd gives the same syslog message as below and clients cannot  
connect to the share.


Steps to replicate:
add to /etc/netatalk/AppleVolumes.default
/data/test "test folder" cnidscheme:dbd
mkdir /data/test
chown nobody.nogroup /data/test
/etc/init.d/netatalk start

Connect from a client (OS X 10.4.2), select "test folder". Client  
will time out and give the error "Sorry, the operation could not be  
completed because an unexpected error occurred (Error code -5014)."


On the server, the folder /data/test/.AppleDB and the file /data/ 
test/:2eDS_Store will _not_ be created as expected (it is created and  
populated with database files when a CDB backend is specified.)  
The .AppleDesktop, .AppleDouble, "Network Trash Folder" and  
"Temporary Items" are created in /data/test, all owned by  
nobody.nogroup.


In /var/log/syslog:

Jul 24 18:29:12 localhost afpd[23737]: Menno file server:[EMAIL PROTECTED]  
started on 65280.23:128 (2.0.2)
Jul 24 18:29:12 localhost afpd[23737]: ASIP started on  
172.20.200.10:548(5) (2.0.2)
Jul 24 18:29:12 localhost afpd[23737]: Sucessfully registered afp:// 
172.20.200.10/?NAME=Menno%20file%20server&ZONE= with SRVLOC
Jul 24 18:29:12 localhost afpd[23737]: uam: loading (/usr/lib/ 
netatalk/uams_guest.so)

Jul 24 18:29:12 localhost afpd[23737]: uam: uams_guest.so loaded
Jul 24 18:29:12 localhost afpd[23737]: uam: "No User Authent" available
Jul 24 18:42:24 localhost afpd[23765]: ASIP session:548(5) from  
172.20.200.20:52936(8)

Jul 24 18:42:24 localhost afpd[23737]: server_child[1] 23765 done
Jul 24 18:42:28 localhost afpd[23766]: ASIP session:548(5) from  
172.20.200.20:52937(8)

Jul 24 18:42:28 localhost afpd[23766]: login noauth
Jul 24 18:42:28 localhost afpd[23766]: login nobody (uid 65534, gid  
65534) AFP3.1
Jul 24 18:42:30 localhost afpd[23766]: getfd: connect localhost:  
Connection refused

Jul 24 18:43:00 localhost last message repeated 7 times
Jul 24 18:43:10 localhost last message repeated 2 times
Jul 24 18:43:15 localhost afpd[23766]: afp_openvol(/data/test): Fatal  
error: Unable to get stamp value from CNID backend

Jul 24 18:43:15 localhost afpd[23766]: logout nobody
Jul 24 18:43:15 localhost afpd[23766]: 0.16KB read, 0.12KB written
Jul 24 18:43:15 localhost afpd[23737]: server_child[1] 23766 done

The system is Debian stable (sarge):
db4.2-util4.2.52-18
libdb4.2   4.2.52-18

menno:~# uname -a
Linux menno 2.6.8-2-k7 #1 Thu May 19 18:03:29 JST 2005 i686 GNU/Linux

glibc-2.3.2.ds1-22

/etc/netatalk/afpd.conf - as installed
/etc/netatalk/AppleVolumes.default - one line added above, homes  
directory line commented out

/etc/netatalk/AppleVolumes.system - as installed
/etc/netatalk/atalkd.conf - as installed
/etc/netatalk/papd.conf - as installed
/etc/default/netatalk - below

# Appletalk configuration
# Change this to increase the maximum number of clients that can  
connect:

AFPD_MAX_CLIENTS=50

# Change this to set the machine's atalk name and zone, the latter  
containing
# the '@' sign as first character -- compare with nbp_name(3) if in  
doubt

#
# NOTE: If Netatalk should register AppleTalk services in the  
standard zone

#   then you need not to specify a zone name here.
#
#   If your zone has spaces in it, you're better off specifying
#   it in afpd.conf if you realize that your distribution doesn't
#   handle spaces correctly in the startup script. Remember to use
#   quotes here if the zone name contains spaces.
#
#ATALK_ZONE="@some zone"
##ATALK_NAME=`/bin/hostname --short`
ATALK_NAME="Menno file server"

# specify the Mac and unix charsets to be used
ATALK_MAC_CHARSET='MAC_ROMAN'
##ATALK_UNIX_CHARSET='LOCALE'
ATALK_UNIX_CHARSET='UTF8'

# specify this if you don't want guest, clrtxt, and dhx
# available options: uams_guest.so, uams_clrtxt.so, uams_dhx.so,
#uams_randnum.so
##AFPD_UAMLIST="-U uams_clrtxt.so,uams_dhx.so"
AFPD_UAMLIST="-U uams_guest.so"

# Change this to set the id of the guest user
AFPD_GUEST=nobody

# Set which daemons to run (papd is dependent upon atalkd):
ATALKD_RUN=yes
##PAPD_RUN=yes
PAPD_RUN=no
CNID_METAD_RUN=yes
AFPD_RUN=yes
TIMELORD_RUN=no
A2BOOT_RUN=no

# Control whether the daemons are started in the background
ATALK_BGROUND=no

# export the charsets, read form ENV by apps
export ATALK_MAC_CHARSET
export ATALK_UNIX_CHARSET



Thanks,

Tim Miller Dyck


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]