pmg-api IP Routine Check Fail

RobinB

New Member
Mar 15, 2017
3
0
1
29
Hello,

first of all, thanks for opening the project up!
I'm trying to install it on a (newly released) Hetzner Cloud Debian 9.3 Instance and am running into the Error:
Setting up pmg-api (5.0-53) ...
Analyzing/Upgrading existing Databases...done
unable to detect local network for ip '94.130.***.***'
dpkg: error processing package pmg-api (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
pmg-api

My IP Interface has an /32 Mask:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 94.130.***.*** netmask 255.255.255.255 broadcast 94.130.183.149
inet6 2a01:4f8:*:*::1 prefixlen 64 scopeid 0x0<global>
inet6 fe80::9400:ff:fe07:7933 prefixlen 64 scopeid 0x20<link>
ether 96:00:00:07:79:33 txqueuelen 1000 (Ethernet)
RX packets 17622 bytes 94378297 (90.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13771 bytes 934521 (912.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

The Gateway is reachable via a static route:
root@mx ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 172.31.1.1 0.0.0.0 UG 0 0 0 eth0
172.31.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0

However the Installer does not work out, until I change the subnet mask, which should probably be adjusted in the code as this might be a usual DMZ Configuration.

Best regards
Robin
 
Please post a detailed information about this special Hetzner network? Just post the full network settings of this Debian 9 host.
 
Please post a detailed information about this special Hetzner network? Just post the full network settings of this Debian 9 host.
Thanks for the fast reply!
It's basicly just a single host mask:

IP Address: 94.130.183.149
Subnet: 255.255.255.255

Gateway: 172.31.1.1
Routed directly over eth0

The IP is configured by DHCP thus the /etc/network/interfaces only contains:

auto eth0
iface eth0 inet dhcp
 
Hello,
I'm trying to install PMG in a PVE LXC container. (Debian 9 template and install PMG via APT following official Documentation).

I get this error on apt-get install proxmox-mailgateway

unable to detect local network for ip '178.xxx.xxx.xxx'
dpkg: error processing package pmg-api (--configure):
subprocess installed post-installation script returned error exit status 255

Here is my /etc/network/interfaces

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 178.xxx.xxx.xxx
        netmask 255.255.255.255
# --- BEGIN PVE ---
        post-up ip route add 37.xxx.xxx.xxx dev eth0
        post-up ip route add default via 37.xxx.xxx.xxx dev eth0
        pre-down ip route del default via 37.xxx.xxx.xxx dev eth0
        pre-down ip route del 37.xxx.xxx.xxx dev eth0
# --- END PVE ---

So network configuration is static, but no luck...

Any suggestions ?

Best regards.
 
Seems our current code cannot deal with a 255.255.255.255 netmask. Please can you post the output from

# cat /proc/net/route
 
Thanks for your answer dietmar,

Here the output of cat /proc/net/route

Code:
# cat /proc/net/route
Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  Mask            MTU     Window  IRTT                                                 
eth0    00000000        FEFBBB25        0003    0       0       0       00000000        0       0       0                                                   
eth0    FEFBBB25        00000000        0005    0       0       0       FFFFFFFF        0       0       0