Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
[SOLVED] Cant restart DHCP Server
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: [SOLVED] Cant restart DHCP Server (Read 35946 times)
jstrebel
Full Member
Posts: 188
Karma: 23
[SOLVED] Cant restart DHCP Server
«
on:
July 03, 2015, 01:23:55 pm »
Hi,
I did the upgrade last Night which went fine. One hour ago I realized a PC did not receive anymore a IP address from the DHCP server. Looking into the OPNsense dashboard I realized the DHCP Server was down. First I restarted the Service, which did not help. I restarted the Router, did not help either.
The log does not say a lot. What can I do to provide you with details to get to the root cause.
(I have put 15.1.12 in place)
One thing I like to say. This is the first time since March my OPNsense let me down. Absolutely great work, gratulations to the team.
Regards Jakob
Jul 3 12:47:01 dhcpd: exiting.
Jul 3 12:47:01 dhcpd:
Jul 3 12:47:01 dhcpd: the README file.
Jul 3 12:47:01 dhcpd: send them to the appropriate mailing list as described in
Jul 3 12:47:01 dhcpd: help directly to the authors of this software - please
Jul 3 12:47:01 dhcpd: Please do not under any circumstances send requests for
Jul 3 12:47:01 dhcpd:
Jul 3 12:47:01 dhcpd: submitting bug reports and requests for help.
Jul 3 12:47:01 dhcpd: mailing list, please read the section on the README about
Jul 3 12:47:01 dhcpd: If you intend to request help from the dhcp-bugs at isc.org
Jul 3 12:47:01 dhcpd: yet read the README, please read it before requesting help.
Jul 3 12:47:01 dhcpd: If you did get this software from ftp.isc.org and have not
Jul 3 12:47:01 dhcpd:
Jul 3 12:47:01 dhcpd: requesting help.
Jul 3 12:47:01 dhcpd: get the latest from ftp.isc.org and install that before
Jul 3 12:47:01 dhcpd: If you did not get this software from ftp.isc.org, please
Jul 3 12:47:01 dhcpd:
Jul 3 12:47:01 dhcpd: no such user: dhcpd
Jul 3 12:47:01 dhcpd: For info, please visit
https://www.isc.org/software/dhcp/
Jul 3 12:47:01 dhcpd: All rights reserved.
Jul 3 12:47:01 dhcpd: Copyright 2004-2015 Internet Systems Consortium.
Jul 3 12:47:01 dhcpd: Internet Systems Consortium DHCP Server 4.2.8
«
Last Edit: July 06, 2015, 03:36:37 pm by franco
»
Logged
weust
Hero Member
Posts: 650
Karma: 57
Re: Cant restart DHCP Server
«
Reply #1 on:
July 03, 2015, 02:07:58 pm »
You only get that message in the logs when the dhcpd.conf has an error in it.
Providing the conf file would provide more insight probably.
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.
jstrebel
Full Member
Posts: 188
Karma: 23
Re: Cant restart DHCP Server
«
Reply #2 on:
July 03, 2015, 02:15:08 pm »
The identical config file is running fine with 15.1.12
Gesendet von iPhone mit Tapatalk
Logged
jstrebel
Full Member
Posts: 188
Karma: 23
Re: Cant restart DHCP Server
«
Reply #3 on:
July 03, 2015, 03:36:31 pm »
Hi,
here is the /var/dhcpd/etc/dhvpd.conf.
I have removed most of the hosts. If needed I can sent it via pm.
The structure of the dhcpd entries look fine in the config file.
root@OPNsense:/var/dhcpd/etc # cat dhcpd.conf
option domain-name "teamstrebel.ch";
option ldap-server code 95 = text;
option domain-search-list code 119 = text;
option arch code 93 = unsigned integer 16; # RFC4578
default-lease-time 7200;
max-lease-time 86400;
log-facility local7;
one-lease-per-client true;
deny duplicates;
ping-check true;
update-conflict-detection false;
authoritative;
subnet 192.168.10.0 netmask 255.255.255.0 {
pool {
range 192.168.10.210 192.168.10.240;
}
option routers 192.168.10.1;
option domain-name-servers 192.168.10.1;
}
host s_lan_0 {
hardware ethernet 34:15:9e:09:0f:32;
fixed-address 192.168.10.10;
option host-name "idefix";
}
host s_lan_1 {
hardware ethernet 00:c0:ee:aa:19:71;
option dhcp-client-identifier "printer";
fixed-address 192.168.10.30;
option host-name "kyocera1370";
}
subnet 172.22.0.0 netmask 255.255.240.0 {
pool {
range 172.22.0.10 172.22.1.100;
}
option routers 172.22.0.1;
option domain-name-servers 172.22.0.1;
}
root@OPNsense:/var/dhcpd/etc #
root@OPNsense:/var/dhcpd/etc # ls -l
total 8
-rw-r--r-- 1 root wheel 4255 Jul 3 15:10 dhcpd.conf
root@OPNsense:/var/dhcpd/etc #
Logged
weust
Hero Member
Posts: 650
Karma: 57
Re: Cant restart DHCP Server
«
Reply #4 on:
July 03, 2015, 04:08:19 pm »
Looks fine to me too.
It's been a whle since I used a UNIX DHCP server, but when you start the DHCP server deamon and it finds an error, it will show you a message like the one you get, but above what you posted should also be a part on which line something is wrong?
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.
jstrebel
Full Member
Posts: 188
Karma: 23
Re: Cant restart DHCP Server
«
Reply #5 on:
July 03, 2015, 04:47:33 pm »
Thank your for your help.
I was looking in the log for a entry which would be meaningful and point into the right direction.
But this is not the case. I am wondering, is there a chance to control the dhcpd deamon in a way to produce more details.
jakob
Logged
franco
Administrator
Hero Member
Posts: 17668
Karma: 1611
Re: Cant restart DHCP Server
«
Reply #6 on:
July 03, 2015, 06:19:15 pm »
Jakob, can you please provide output for the following commands:
# df
# pkg info
I think your package database is gone so the ports groups and users are gone (dhcpd is one of them).
Logged
jstrebel
Full Member
Posts: 188
Karma: 23
Re: Cant restart DHCP Server
«
Reply #7 on:
July 03, 2015, 07:22:03 pm »
Franco, thank you for the quick response.
here is what you asked:
df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ufs/OPNsense0 933495 831425 27390 97% /
devfs 1 1 0 100% /dev
/dev/md0 118556 52 109020 0% /tmp
/dev/md1 118556 15520 93552 14% /var
devfs 1 1 0 100% /var/dhcpd/dev
root@OPNsense:~ # pkg info
apinger-0.6.1_3 IP device monitoring tool
ataidle-2.7.2 Utility to spin down ATA drives
beep-1.0_1 Beeps a certain duration and pitch out of the PC Speaker
bind910-9.10.2_5 BIND DNS suite with updated DNSSEC and DNS64
bsdinstaller-2.3_5 BSD Installer mega-package
bsnmp-regex-0.6_1 bsnmpd module allowing creation of counters from log files
bsnmp-ucd-0.4.1 bsnmpd module that implements parts of UCD-SNMP-MIB
ca_root_nss-3.19.1_1 Root certificate bundle from the Mozilla Project
choparp-20021107_4 Simple proxy arp daemon
clog-1.0.1_3 Circular log support for FreeBSD syslogd
cpdup-1.17_2 Comprehensive filesystem mirroring and backup program
cpustats-0.1 cpustats
curl-7.43.0_2 Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
dhcp6-20080615_2 KAME DHCP6 client, server, and relay
dhcpleases-0.2 read dhpcd.lease file and add it to hosts file
dnsmasq-2.73,1 Lightweight DNS forwarder, DHCP, and TFTP server
easy-rsa-2.2.2 Small RSA key management package based on openssl
expat-2.1.0_2 XML 1.0 parser written in C
expiretable-0.6_1 Utility to remove entries from the pf(4) table based on their age
filterdns-0.1 filterdns
filterlog-0.2 Parse pflog(4) output
freetype2-2.5.5 Free and portable TrueType font rendering engine
gettext-runtime-0.19.4 GNU gettext runtime libraries and programs
gmp-5.1.3_2 Free library for arbitrary precision arithmetic
idnkit-1.0_5 Library to handle internationalized domain names
ifinfo-10.1 Interface statistics reader
igmpproxy-0.1_2,1 Multicast forwarding IGMP proxy
indexinfo-0.2.3 Utility to regenerate the GNU info page index
isc-dhcp42-client-4.2.8 The ISC Dynamic Host Configuration Protocol client
isc-dhcp42-relay-4.2.8 The ISC Dynamic Host Configuration Protocol relay
isc-dhcp42-server-4.2.8 ISC Dynamic Host Configuration Protocol server
jansson-2.7 C library for encoding, decoding, and manipulating JSON data
libart_lgpl-2.3.21_2,1 Library for high-performance 2D graphics
libdaemon-0.14_1 Lightweight C library that eases the writing of UNIX daemons
libevent2-2.0.22_1 API for executing callback functions on events or timeouts
libffi-3.2.1 Foreign Function Interface
libhtp-0.5.16 Security-aware parser for the HTTP protocol
libiconv-1.14_8 Character set conversion library
libltdl-2.4.6 System independent dlopen wrapper
libmcrypt-2.5.8_2 Multi-cipher cryptographic library (used in PHP)
libnet-1.1.6_3,1 C library for creating IP packets
libpdel-0.5.3_6 Packet Design multi-purpose C library for embedded applications
libressl-2.2.0 Free version of the SSL/TLS protocol forked from OpenSSL
libxml2-2.9.2_3 XML parser library for GNOME
libyaml-0.1.6_2 YAML 1.1 parser and emitter written in C
lighttpd-1.4.35_5 Secure, fast, compliant, and flexible Web Server
lzo2-2.09 Portable speedy, lossless data compression library
minicron-0.0.2 very small cron
miniupnpd-1.9_1,1 UPnP IGD implementation which uses pf/ipf
mpd4-4.4.1_2 Multi-link PPP daemon based on netgraph(4)
mpd5-5.7_2 Multi-link PPP daemon based on netgraph(4)
nettle-2.7.1 Low-level cryptographic library
ntp-4.2.8p3 The Network Time Protocol Distribution
oniguruma4-4.7.1_1 BSDL Regular Expressions library compatible with POSIX/GNU/Perl
openldap-client-2.4.41 Open source LDAP client implementation
openssh-portable-6.8.p1_8,1 The portable version of OpenBSD's OpenSSH
openvpn-2.3.7 Secure IP/Ethernet tunnel daemon
opnsense-15.7 ea948fa3f
os-update-15.7 OPNsense system update utility
pcre-8.37_1 Perl Compatible Regular Expressions library
pecl-radius-1.2.7 Radius client library for PHP
perl5-5.20.2_5 Practical Extraction and Report Language
pftop-0.7_4 Utility for real-time display of statistics for pf
phalcon-2.0.3 Phalcon PHP Framework written in C-language
php-pfSense-0.2_4 Library for getting useful info
php-suhosin-0.9.37.1_1 PHP extension that implements high-level protections
php-xdebug-2.2.5 Xdebug extension for PHP
php56-5.6.10 PHP Scripting Language
php56-bcmath-5.6.10 The bcmath shared extension for php
php56-bz2-5.6.10 The bz2 shared extension for php
php56-ctype-5.6.10 The ctype shared extension for php
php56-curl-5.6.10 The curl shared extension for php
php56-dom-5.6.10 The dom shared extension for php
php56-filter-5.6.10 The filter shared extension for php
php56-gettext-5.6.10 The gettext shared extension for php
php56-hash-5.6.10 The hash shared extension for php
php56-json-5.6.10 The json shared extension for php
php56-ldap-5.6.10 The ldap shared extension for php
php56-mbstring-5.6.10 The mbstring shared extension for php
php56-mcrypt-5.6.10 The mcrypt shared extension for php
php56-mysql-5.6.10 The mysql shared extension for php
php56-openssl-5.6.10 The openssl shared extension for php
php56-pdo-5.6.10 The pdo shared extension for php
php56-pdo_sqlite-5.6.10 The pdo_sqlite shared extension for php
php56-session-5.6.10 The session shared extension for php
php56-simplexml-5.6.10 The simplexml shared extension for php
php56-sockets-5.6.10 The sockets shared extension for php
php56-sqlite3-5.6.10 The sqlite3 shared extension for php
php56-tokenizer-5.6.10 The tokenizer shared extension for php
php56-xml-5.6.10 The xml shared extension for php
php56-zlib-5.6.10 The zlib shared extension for php
pkg-1.5.4 Package manager
png-1.6.17 Library for manipulating PNG images
py27-Babel-1.3_2 Collection of tools for internationalizing Python applications
py27-Jinja2-2.7.3 Fast and easy to use stand-alone template engine
py27-MarkupSafe-0.23 Implements a XML/HTML/XHTML Markup safe string for Python
py27-pytz-2014.10,1 World Timezone Definitions for Python
py27-requests-2.7.0 HTTP library written in Python for human beings
py27-setuptools27-17.0 Python packages installer
py27-sqlite3-2.7.10_6 Standard Python binding to the SQLite3 library
py27-ujson-1.33 Ultra fast JSON encoder and decoder for Python
python27-2.7.10 Interpreted object-oriented programming language
radvd-1.9.7 Linux/BSD IPv6 router advertisement daemon
rate-0.9 Traffic analysis command-line utility
relayd-5.5.20140810_1 OpenBSD relay daemon
rrdtool12-1.2.30_7 Round Robin Database Tools v1.2
smartmontools-6.4 S.M.A.R.T. disk monitoring tools
sqlite3-3.8.10.2 SQL database engine in a C library
squid-3.5.3_1 HTTP Caching Proxy
sshlockout_pf-0.0.2_2 Automatically block IPs with failed SSH logins using pf(4)
strongswan-5.3.2 Open Source IKEv2 IPsec-based VPN solution
sudo-1.8.13 Allow others to run commands as root
suricata-2.0.8_1 High Performance Network IDS, IPS and Security Monitoring engine
syslogd-10.1_1 FreeBSD syslogd with additions
voucher-0.1_4 voucher support
wol-0.7.1_2 Tool to wake up Wake-On-LAN compliant computers
zip-3.0_1 Create/update ZIP files compatible with PKZIP
root@OPNsense:~ #
Logged
mibuthu
Newbie
Posts: 2
Karma: 0
Re: Cant restart DHCP Server
«
Reply #8 on:
July 03, 2015, 08:58:41 pm »
Same issue in my installation: dhcp is not working after the update.
The error is also the same:
Code:
[Select]
dhcpd: no such user: dhcpd
If I look at the available users the user dhcpd doesn't exist anymore.
In my 2nd installation which still runs with 15.1.11.4 a user named dhcpd is available.
Logged
franco
Administrator
Hero Member
Posts: 17668
Karma: 1611
Re: Cant restart DHCP Server
«
Reply #9 on:
July 03, 2015, 09:40:11 pm »
Try this on the console on a running system. Then restart dhcp. There likely is a race condition when using /var MFS (which is enabled on nano images by default).
# /usr/local/etc/rc.recover
Logged
mibuthu
Newbie
Posts: 2
Karma: 0
Re: Cant restart DHCP Server
«
Reply #10 on:
July 03, 2015, 10:19:02 pm »
Unfortunately this didn't help:
Code:
[Select]
# /usr/local/etc/rc.recover
pkg: No packages installed
When I try to start dhcp afterwards I still have the same problem.
I also had a look into the rc.recover file. I saw that there are all users listed in $etc_master_passwd, but I cannot find a user named dhcpd there either.
Logged
jstrebel
Full Member
Posts: 188
Karma: 23
Re: Cant restart DHCP Server
«
Reply #11 on:
July 03, 2015, 10:36:30 pm »
below is the console output. After this command the dhcpservjer came back and provided a address to the client. But after a reboot the box showed the same error as reported.
Regards Jakob
# /usr/local/etc/rc.recover
===> Creating users and/or groups.
Creating group 'dhcpd' with gid '136'.
Creating user 'dhcpd' with uid '136'.
===> Creating users and/or groups.
Creating group '_relayd' with gid '913'.
Creating user '_relayd' with uid '913'.
===> Creating users and/or groups.
Creating group 'squid' with gid '100'.
Creating user 'squid' with uid '100'.
root@OPNsense:~ #
Logged
franco
Administrator
Hero Member
Posts: 17668
Karma: 1611
Re: Cant restart DHCP Server
«
Reply #12 on:
July 03, 2015, 10:49:05 pm »
mibuthu, please provide output for the commands I have mentioned above. You have a similar problem, but a different cause.
Jakob, yes, that is the race condition on boot I was suspecting. Disabling /var MFS helps, but it takes two reboots to "fix" the problem.
The pkg database lives in /var/db/pkg, which is transitioned to /root/var/db/pkg on /var MFS mount, where pkg itself won't find it. My bad. A permanent fix will be available early next week.
Logged
jstrebel
Full Member
Posts: 188
Karma: 23
Re: Cant restart DHCP Server
«
Reply #13 on:
July 04, 2015, 12:39:39 pm »
Franco, thanks for the advice. I disabled the the RAM disk and restarted the box twice. After this the box seems to behave normal. DHCPD was running. But bringing the Box back to the production Network the old problem was back. I wait until 15.7.1. Thanks again for your great work. Everybody who has experience in networking knows, its impossible to test things even with the best testbed.
Jakob
Logged
lukepower
Newbie
Posts: 31
Karma: 2
Re: Cant restart DHCP Server
«
Reply #14 on:
July 04, 2015, 01:51:30 pm »
Can confirm this behaviour after today's upgrade. I also ran /usr/local/etc/rc.recover which brought the DHCP server back for now.
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
[SOLVED] Cant restart DHCP Server