1 (edited by mis 2014-08-04 23:34:32)

Topic: irdeapd freebsd start problem

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Freebsd 10
- Related log if you're reporting an issue:

/usr/local/etc/rc.d # ./iredapd start
./iredapd: line 11: set_rcvar: command not found
Starting iredapd ...
Traceback (most recent call last):
  File "/opt/iredapd/iredapd.py", line 182, in <module>
    main()
  File "/opt/iredapd/iredapd.py", line 159, in main
    DaemonSocket((settings.listen_address, int(settings.listen_port)))
  File "/opt/iredapd/iredapd.py", line 110, in __init__
    self.bind(localaddr)
  File "/usr/local/lib/python2.7/asyncore.py", line 342, in bind
    return self.socket.bind(addr)
  File "/usr/local/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 49] Can't assign requested address
[30425 refs]

====
After system upgrade I can't run irdeapd. It doesn't start and reported above errors. I have no idea what can be wrong.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: irdeapd freebsd start problem

I have also found errors in cbpolicyd.log:

panic: invalid MRO! at /usr/local/lib/perl5/5.16/mach/IO/Socket.pm line 207, <$read> line 1287.

3

Re: irdeapd freebsd start problem

Please open file /usr/local/etc/rc.d/iredapd, replace 'set_rcvar' by 'set_rcvar_obsolete', then try to restart iRedAPD again.

4

Re: irdeapd freebsd start problem

 ./iredapd start
Starting iredapd ...
Traceback (most recent call last):
  File "/opt/iredapd/iredapd.py", line 182, in <module>
    main()
  File "/opt/iredapd/iredapd.py", line 159, in main
    DaemonSocket((settings.listen_address, int(settings.listen_port)))
  File "/opt/iredapd/iredapd.py", line 110, in __init__
    self.bind(localaddr)
  File "/usr/local/lib/python2.7/asyncore.py", line 342, in bind
    return self.socket.bind(addr)
  File "/usr/local/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 49] Can't assign requested address
[30425 refs]

5

Re: irdeapd freebsd start problem

mis wrote:

socket.error: [Errno 49] Can't assign requested address

This doesn't look like an iRedAPD issue or bug, there might be something wrong on your server, especially Policyd has the same issue.

Is IP address '127.0.0.1' available on your server?

6 (edited by mis 2014-08-05 23:56:34)

Re: irdeapd freebsd start problem

Sounds strange. I have nothing changed in configuration. Just upgraded ports only. 127.0.0.1 is available and works:

ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.059 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.048 ms

7

Re: irdeapd freebsd start problem

No idea yet. sorry.