[Solved] Netatalk, dbd issues

Problems with packages? Post here, using [tags] of the package name.

[Solved] Netatalk, dbd issues

Postby ryuuseki » Sat Jul 30, 2011 4:31 pm

I was able to determine using dmesg there was a problem with an umount that occurred, forcing the RO flag on. Since the suggested course of action was to use fsck.hfsplus which does not appear to be part of ALARM, I was able to do a verify/repair on my OS X machine. The verify itself turned up no errors, but the repair fixed the issue. I was able to remount the drive and now after adjusting permissions, I have full read/write over afp.

Used the basic directions from the time machine guide as well as some configuration steps from the arch linux wiki for netatalk.
Basically, I am getting a cnid error whenever I connect from my OS X machine to the mounted drive. I have disabled journaling, as before that was causing the drives to be mounted as read only.

I have tried switching to CBD which results in this error upon login:
$this->bbcode_second_pass_code('', 'Jul 30 11:26:20 localhost afpd[4088]: volume "Mac" does not support Extended Attributes, using ea:ad instead
Jul 30 11:26:20 localhost afpd[4088]: Cannot find module named [cbd] in registered module list!
Jul 30 11:26:20 localhost afpd[4088]: Can't open volume "/media/Mac" CNID backend "cbd"
Jul 30 11:26:20 localhost afpd[4088]: Reopen volume /media/Mac using in memory temporary CNID DB.')

When I use DBD I receive this error upon login:
$this->bbcode_second_pass_code('', 'Jul 30 11:28:49 localhost afpd[4293]: volume "Mac" does not support Extended Attributes, using ea:ad instead
Jul 30 11:28:49 localhost afpd[4293]: getfd: getsockopt says: Connection refused
Jul 30 11:28:49 localhost afpd[4293]: tsock_getfd: no suitable network config from CNID server (localhost:4700): Connection refused
Jul 30 11:28:49 localhost afpd[4293]: transmit: connection refused (db_dir /media/Mac)
Jul 30 11:28:49 localhost afpd[4293]: Reopen volume /media/Mac using in memory temporary CNID DB.')

To me the 2nd one reads like the cnid backend isn't running, since it can't connect to the server. But I have no idea where/how to configure that to run. I have included cnid_metad in my rc.conf. I would prefer to use dbd. I have not a clue how to force extended attributes or why my volumes don't support them.
Last edited by ryuuseki on Sun Jul 31, 2011 12:56 am, edited 1 time in total.
ryuuseki
 
Posts: 3
Joined: Sat Jul 30, 2011 4:13 pm

Re: Netatalk, dbd issues

Postby pepedog » Sat Jul 30, 2011 5:02 pm

I could be /etc/hosts.allow , don't know if TCP wrappers involved
ALL : 10.0.3. : allow
or
ALL : 192.168. : allow
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Netatalk, dbd issues

Postby ryuuseki » Sat Jul 30, 2011 5:16 pm

Edited the hosts to allow both. I noticed the CNID daemon wasn't running so I started it. Now the error is:
$this->bbcode_second_pass_code('', 'Jul 30 12:15:27 localhost cnid_metad[4396]: allocvolinfo: No such file or directory
Jul 30 12:15:27 localhost afpd[4538]: read: Connection reset by peer
Jul 30 12:15:27 localhost afpd[4538]: dbd_rpc: Error reading header from fd (db_dir /media/Mac): Connection reset by peer
Jul 30 12:15:28 localhost cnid_metad[4396]: allocvolinfo: No such file or directory
Jul 30 12:15:28 localhost afpd[4538]: read: Connection reset by peer
Jul 30 12:15:28 localhost afpd[4538]: dbd_rpc: Error reading header from fd (db_dir /media/Mac): Connection reset by peer
Jul 30 12:15:29 localhost cnid_metad[4396]: allocvolinfo: No such file or directory
')
ryuuseki
 
Posts: 3
Joined: Sat Jul 30, 2011 4:13 pm

Re: Netatalk, dbd issues

Postby pepedog » Sat Jul 30, 2011 5:34 pm

Presume avahi is running, this article is a year old and required an avahi recipe
http://blog.ibd.com/howto/bonjour-avahi-netatalk-to-share-files-files-between-ubuntu-10-4-mac-os-x/
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Netatalk, dbd issues

Postby ryuuseki » Sat Jul 30, 2011 6:46 pm

It seems like the drive is mounting itself as read only, I've added the relevant entries to fstab with read write for hfsplus but that doesn't seem to take hold. I'm also confused by the following line:
$this->bbcode_second_pass_code('', 'volume "jp" does not support Extended Attributes, using ea:ad instead') and
$this->bbcode_second_pass_code('', 'transmit: connection refused (db_dir /home/jp)')

but my applevolumes.default is configured:
$this->bbcode_second_pass_code('', '/media/Mac "Mac" dbpath:/var/AppleDB/ cnidscheme:dbd Allow:JP options:usedots,upriv')

Not sure what I'm doing wrong or why the drives are mounting ro.
ryuuseki
 
Posts: 3
Joined: Sat Jul 30, 2011 4:13 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 9 guests