AFP "Bind IP Address" Error

Status
Not open for further replies.

siso

Cadet
Joined
Dec 27, 2014
Messages
1
Hi,

I am quite new to Freenas, which I have installed and used successfully with my linux boxes, but I am having an issue with AFP for OS X, as afpd keeps restarting:

Dec 27 21:32:15 freenas netatalk[88569]: Restarting 'afpd' (restarts: 83)
Dec 27 21:32:15 freenas afpd[88726]: dsi_tcp_init: no suitable network config for TCP socket
Dec 27 21:32:15 freenas afpd[88726]: no suitable network address found, use "afp listen" or "afp interfaces"
Dec 27 21:32:15 freenas afpd[88726]: main: no servers configured

If I try set "Bind IP Address" to bind afpd to 192.168.1.2 using the WebUI (Services --> AFP --> Bind IP Addresses), it fails:

Request Method: POST
Request URL: https://192.168.1.2/admin/services/afp/edit/1/
Software Version: FreeNAS-9.3-STABLE-201412090314
Exception Type: NameError
Exception Value:
global name 'ValidationError' is not defined
Exception Location: /usr/local/www/freenasUI/../freenasUI/freeadmin/models/fields.py in validate, line 162
Server time: Sat, 27 Dec 2014 21:34:23 +1100
Traceback



Request information

GET

No GET data
POST

Variable Value
afp_srv_guest_user u'nobody'
afp_srv_bindip u'192.168.1.2'
afp_srv_homedir u''
__all__ u''
afp_srv_global_aux u''
afp_srv_connections_limit u'50'
afp_srv_dbpath u''
__form_id u'dialogForm_AFP'
FILES

No FILES data
COOKIES
...

I have looked through /usr/local/libexec/nas/generate_afpd_conf.py, and found out that it configures AFP in /usr/local/etc/afp.conf.

As a temporary fix I have added afp listen = 192.168.1.2 to the Global stanza (see: http://netatalk.sourceforge.net/3.0/htmldocs/afp.conf.5.html), which does the trick:

Dec 27 21:37:14 freenas netatalk[88569]: Restarting 'afpd' (restarts: 382)
Dec 27 21:37:14 freenas afpd[89198]: dsi_tcp_init: no suitable network config for TCP socket
Dec 27 21:37:14 freenas afpd[89198]: no suitable network address found, use "afp listen" or "afp interfaces"
Dec 27 21:37:14 freenas afpd[89198]: main: no servers configured
Dec 27 21:37:15 freenas netatalk[88569]: Restarting 'afpd' (restarts: 383)
Dec 27 21:37:15 freenas afpd[89199]: Netatalk AFP/TCP listening on 192.168.1.2:548

Is this an issue with my installation, or need to open a bug?

Thanks,

siso
 

Hassan Aftab

Dabbler
Joined
Apr 4, 2017
Messages
13
I have the same problem. Can't get to solve this for days..
 
Status
Not open for further replies.
Top