[Kea-users] 1.2.0: MySQL not working

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Kea-users] 1.2.0: MySQL not working

Daniel Corbe
$ sudo keactrl start
INFO/keactrl: Starting kea-dhcp4 -c /usr/local/etc/kea/kea.conf
INFO/keactrl: Starting kea-dhcp6 -c /usr/local/etc/kea/kea.conf
2017-07-14 05:41:13.645 ERROR [kea-dhcp6.dhcp6/244] DHCP6_INIT_FAIL
failed to initialize Kea server: configuration error using file
'/usr/local/etc/kea/kea.conf': Unable to open database: must specify a
name for the database
2017-07-14 05:41:13.645 INFO  [kea-dhcp6.commands/244]
COMMAND_SOCKET_UNIX_CLOSE Command socket closed: UNIX, fd=5,
path=/tmp/kea-dhcp6-ctrl.sock
2017-07-14 05:41:13.646 ERROR [kea-dhcp4.dhcp4/238] DHCP4_INIT_FAIL
failed to initialize Kea server: configuration error using file
'/usr/local/etc/kea/kea.conf': Unable to open database: must specify a
name for the database
2017-07-14 05:41:13.647 INFO  [kea-dhcp4.commands%

                                                             /238]
COMMAND_SOCKET_UNIX_CLOSE Command socket closed: UNIX, fd=6,
path=/tmp/kea-dhcp4-ctrl.sock

The thing is, I'm specifying a database name in the config:

    "lease-database": {
        // Memfile is the simplest and easiest backend to use. It's a
in-memory
        // C++ database that stores its state in CSV file.
        "type": "mysql"
    },

    "hosts-database": {
        "type": "mysql",
        "name": "dhcp",
        "user": "dhcp",
        "password": "emailpasswordhuehue",
        "host": "10.98.17.104",
        "port": 3306
    },
_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Kea-users] 1.2.0: MySQL not working

Daniel Corbe
I know what I did wrong.   Please disregard.

On 7/14/2017 05:43, Daniel Corbe wrote:

> $ sudo keactrl start
> INFO/keactrl: Starting kea-dhcp4 -c /usr/local/etc/kea/kea.conf
> INFO/keactrl: Starting kea-dhcp6 -c /usr/local/etc/kea/kea.conf
> 2017-07-14 05:41:13.645 ERROR [kea-dhcp6.dhcp6/244] DHCP6_INIT_FAIL
> failed to initialize Kea server: configuration error using file
> '/usr/local/etc/kea/kea.conf': Unable to open database: must specify a
> name for the database
> 2017-07-14 05:41:13.645 INFO  [kea-dhcp6.commands/244]
> COMMAND_SOCKET_UNIX_CLOSE Command socket closed: UNIX, fd=5,
> path=/tmp/kea-dhcp6-ctrl.sock
> 2017-07-14 05:41:13.646 ERROR [kea-dhcp4.dhcp4/238] DHCP4_INIT_FAIL
> failed to initialize Kea server: configuration error using file
> '/usr/local/etc/kea/kea.conf': Unable to open database: must specify a
> name for the database
> 2017-07-14 05:41:13.647 INFO  [kea-dhcp4.commands%
>
>                                                              /238]
> COMMAND_SOCKET_UNIX_CLOSE Command socket closed: UNIX, fd=6,
> path=/tmp/kea-dhcp4-ctrl.sock
>
> The thing is, I'm specifying a database name in the config:
>
>     "lease-database": {
>         // Memfile is the simplest and easiest backend to use. It's a
> in-memory
>         // C++ database that stores its state in CSV file.
>         "type": "mysql"
>     },
>
>     "hosts-database": {
>         "type": "mysql",
>         "name": "dhcp",
>         "user": "dhcp",
>         "password": "emailpasswordhuehue",
>         "host": "10.98.17.104",
>         "port": 3306
>     },
>
_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Kea-users] 1.2.0: MySQL not working

Francis Dupont
In reply to this post by Daniel Corbe
Daniel Corbe writes:
> The thing is, I'm specifying a database name in the config:

=> no you don't

>     "lease-database": {
>         // Memfile is the simplest and easiest backend to use. It's a
> in-memory
>         // C++ database that stores its state in CSV file.
>         "type": "mysql"
>     },

=> no name...

Regards

Francis Dupont <[hidden email]>
_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Loading...