[PacketFence-users] innobackupex finished with error: 1

2018-09-28 Thread Dave Barnum via PacketFence-users
Hello.  I'm trying to install a fresh PacketFence 8 cluster.  I've gotten
to the point where I join the second node.  However, the `systemctl restart
packetfence-mariadb` command doesn't return properly until it times out.
On the first node, in the /usr/local/pf/logs/mariadb_error.log file, I'm
seeing the following error:


Sep 28 13:30:05 o-pf01-tdv mysqld: 2018-09-28 13:30:05 139646809925376
[Note] WSREP: Flow-control interval: [23, 23]
Sep 28 13:30:05 o-pf01-tdv mysqld: 2018-09-28 13:30:05 139646809925376
[Note] WSREP: Trying to continue unpaused monitor
Sep 28 13:30:05 o-pf01-tdv mysqld: 2018-09-28 13:30:05 139647107812096
[Note] WSREP: New cluster view: global state:
8924558d-c343-11e8-af97-5e963e54a766:167, view# 2: Primary, number of
nodes: 2, my index: 1, protocol version 3
Sep 28 13:30:05 o-pf01-tdv mysqld: 2018-09-28 13:30:05 139647107812096
[Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
Sep 28 13:30:05 o-pf01-tdv mysqld: 2018-09-28 13:30:05 139647107812096
[Note] WSREP: REPL Protocols: 8 (3, 2)
Sep 28 13:30:05 o-pf01-tdv mysqld: 2018-09-28 13:30:05 139647107812096
[Note] WSREP: Assign initial position for certification: 167, protocol
version: 3
Sep 28 13:30:05 o-pf01-tdv mysqld: 2018-09-28 13:30:05 139646866073344
[Note] WSREP: Service thread queue flushed.
Sep 28 13:30:05 o-pf01-tdv mysqld_safe: A mysqld process already exists
Sep 28 13:30:06 o-pf01-tdv mysqld_safe: A mysqld process already exists
Sep 28 13:30:06 o-pf01-tdv mysqld: 2018-09-28 13:30:06 139646809925376
[Note] WSREP: Member 0.0 (o-pf02-tdv.domain.org) requested state transfer
from '*any*'. Selected 1.0 (o-pf01-tdv.domain.org)(SYNCED) as donor.
Sep 28 13:30:06 o-pf01-tdv mysqld: 2018-09-28 13:30:06 139646809925376
[Note] WSREP: Shifting SYNCED -> DONOR/DESYNCED (TO: 167)
Sep 28 13:30:06 o-pf01-tdv mysqld: 2018-09-28 13:30:06 139647107812096
[Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
Sep 28 13:30:06 o-pf01-tdv mysqld: 2018-09-28 13:30:06 139645723604736
[Note] WSREP: Running: 'wsrep_sst_xtrabackup --role 'donor' --address '
10.18.0.31:/xtrabackup_sst' --socket '/var/lib/mysql/mysql.sock'
--datadir '/var/lib/mysql/'  --defaults-file
'/usr/local/pf/var/conf/mariadb.conf''' --gtid
'8924558d-c343-11e8-af97-5e963e54a766:167' --gtid-domain-id '0''
Sep 28 13:30:06 o-pf01-tdv mysqld: 2018-09-28 13:30:06 139647107812096
[Note] WSREP: sst_donor_thread signaled with 0
Sep 28 13:30:06 o-pf01-tdv mysqld: WSREP_SST: [INFO] Streaming with tar
(20180928 13:30:06.298)
Sep 28 13:30:06 o-pf01-tdv mysqld: WSREP_SST: [INFO] Using socat as
streamer (20180928 13:30:06.304)
Sep 28 13:30:06 o-pf01-tdv mysqld: WSREP_SST: [INFO] Streaming the backup
to joiner at 10.18.0.31 4444 (20180928 13:30:06.320)
Sep 28 13:30:06 o-pf01-tdv mysqld: WSREP_SST: [INFO] Evaluating
innobackupex --defaults-file=/usr/local/pf/var/conf/mariadb.conf
 $INNOEXTRA --galera-info --stream=$sfmt ${TMPDIR}
2>${DATA}/innobackup.backup.log | socat -u stdio TCP:10.18.0.31:; RC=(
${PIPESTATUS[@]} ) (20180928 13:30:06.326)
Sep 28 13:30:06 o-pf01-tdv mysqld: WSREP_SST: [ERROR] innobackupex finished
with error: 1.  Check /var/lib/mysql//innobackup.backup.log (20180928
13:30:06.343)
Sep 28 13:30:06 o-pf01-tdv mysqld: WSREP_SST: [ERROR] Cleanup after exit
with status:22 (20180928 13:30:06.349)
Sep 28 13:30:06 o-pf01-tdv mysqld: 2018-09-28 13:30:06 139645723604736
[ERROR] WSREP: Failed to read from: wsrep_sst_xtrabackup --role 'donor'
--address '10.18.0.31:/xtrabackup_sst' --socket
'/var/lib/mysql/mysql.sock' --datadir '/var/lib/mysql/'  --defaults-file
'/usr/local/pf/var/conf/mariadb.conf''' --gtid
'8924558d-c343-11e8-af97-5e963e54a766:167' --gtid-domain-id '0'
Sep 28 13:30:06 o-pf01-tdv mysqld: 2018-09-28 13:30:06 139645723604736
[ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup --role
'donor' --address '10.18.0.31:/xtrabackup_sst' --socket
'/var/lib/mysql/mysql.sock' --datadir '/var/lib/mysql/'  --defaults-file
'/usr/local/pf/var/conf/mariadb.conf''' --gtid
'8924558d-c343-11e8-af97-5e963e54a766:167' --gtid-domain-id '0': 22
(Invalid argument)
Sep 28 13:30:06 o-pf01-tdv mysqld: 2018-09-28 13:30:06 139645723604736
[ERROR] WSREP: Command did not run: wsrep_sst_xtrabackup --role 'donor'
--address '10.18.0.31:/xtrabackup_sst' --socket
'/var/lib/mysql/mysql.sock' --datadir '/var/lib/mysql/'  --defaults-file
'/usr/local/pf/var/conf/mariadb.conf''' --gtid
'8924558d-c343-11e8-af97-5e963e54a766:167' --gtid-domain-id '0'
Sep 28 13:30:06 o-pf01-tdv mysqld: 2018-09-28 13:30:06 139646809925376
[Warning] WSREP: 1.0 (o-pf01-tdv.wctnet.org): State transfer to 0.0 (
o-pf02-tdv.wctnet.org) failed: -22 (Invalid argument)
Sep 28 13:30:06 o-pf01-tdv mysqld: 2018-09-28 13:30:06 139646809925376
[Note] WSREP: Shifting DONOR/DESYNCED -> JOINED (TO: 167)


The contents of /var/lib/mysql//innobackup.backup.log are:
IMPORTANT: Please check that the backup run completes successfully.
   At the end of a s

Re: [PacketFence-users] innobackupex finished with error: 1

2018-09-28 Thread Dave Barnum via PacketFence-users
Here's the log from the second server..
Sep 28 14:56:00 o-pf02-tdv mysqld:  version= 4,
Sep 28 14:56:00 o-pf02-tdv mysqld:  component  = PRIMARY,
Sep 28 14:56:00 o-pf02-tdv mysqld:  conf_id= 489,
Sep 28 14:56:00 o-pf02-tdv mysqld:  members= 1/2 (joined/total),
Sep 28 14:56:00 o-pf02-tdv mysqld:  act_id = 175,
Sep 28 14:56:00 o-pf02-tdv mysqld:  last_appl. = -1,
Sep 28 14:56:00 o-pf02-tdv mysqld:  protocols  = 0/8/3 (gcs/repl/appl),
Sep 28 14:56:00 o-pf02-tdv mysqld:  group UUID =
8924558d-c343-11e8-af97-5e963e54a766
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568357234432
[Note] WSREP: Flow-control interval: [23, 23]
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568357234432
[Note] WSREP: Trying to continue unpaused monitor
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568357234432
[Note] WSREP: Shifting OPEN -> PRIMARY (TO: 175)
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568663272192
[Note] WSREP: State transfer required:
Sep 28 14:56:00 o-pf02-tdv mysqld:  Group state:
8924558d-c343-11e8-af97-5e963e54a766:175
Sep 28 14:56:00 o-pf02-tdv mysqld:  Local state:
----:-1
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568663272192
[Note] WSREP: New cluster view: global state:
8924558d-c343-11e8-af97-5e963e54a766:175, view# 490: Primary, number of
nodes: 2, my index: 0, protocol version 3
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568663272192
[Warning] WSREP: Gap in state sequence. Need state transfer.
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568327878400
[Note] WSREP: Running: 'wsrep_sst_xtrabackup --role 'joiner' --address
'10.18.0.31' --datadir '/var/lib/mysql/'  --defaults-file
'/usr/local/pf/var/conf/mariadb.conf'  --parent '63481'  ''  '''
Sep 28 14:56:00 o-pf02-tdv mysqld: WSREP_SST: [INFO] Streaming with tar
(20180928 14:56:00.498)
Sep 28 14:56:00 o-pf02-tdv mysqld: WSREP_SST: [INFO] Using socat as
streamer (20180928 14:56:00.500)
Sep 28 14:56:00 o-pf02-tdv mysqld: WSREP_SST: [INFO] Evaluating socat -u
TCP-LISTEN:,reuseaddr stdio | tar xfi - --recursive-unlink -h; RC=(
${PIPESTATUS[@]} ) (20180928 14:56:00.511)
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568663272192
[Note] WSREP: Prepared SST request: xtrabackup|
10.18.0.31:/xtrabackup_sst
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568663272192
[Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568663272192
[Note] WSREP: REPL Protocols: 8 (3, 2)
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568663272192
[Note] WSREP: Assign initial position for certification: 175, protocol
version: 3
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568415561472
[Note] WSREP: Service thread queue flushed.
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568663272192
[Warning] WSREP: Failed to prepare for incremental state transfer: Local
state UUID (----) does not match group
state UUID (8924558d-c343-11e8-af97-5e963e54a766): 1 (Operation not
permitted)
Sep 28 14:56:00 o-pf02-tdv mysqld:   at
galera/src/replicator_str.cpp:prepare_for_IST():482. IST will be
unavailable.
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568357234432
[Note] WSREP: Member 0.0 (o-pf02-tdv.domain.org) requested state transfer
from '*any*'. Selected 1.0 (o-pf01-tdv.domain.org)(SYNCED) as donor.
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568357234432
[Note] WSREP: Shifting PRIMARY -> JOINER (TO: 175)
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568663272192
[Note] WSREP: Requesting state transfer: success, donor: 1
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568663272192
[Note] WSREP: GCache history reset: ----:0
-> 8924558d-c343-11e8-af97-5e963e54a766:175
Sep 28 14:56:00 o-pf02-tdv mysqld: tar: This does not look like a tar
archive
Sep 28 14:56:00 o-pf02-tdv mysqld: tar: Exiting with failure status due to
previous errors
Sep 28 14:56:00 o-pf02-tdv mysqld: WSREP_SST: [ERROR] Error while getting
data from donor node:  exit codes: 0 2 (20180928 14:56:00.870)
Sep 28 14:56:00 o-pf02-tdv mysqld: WSREP_SST: [ERROR] Cleanup after exit
with status:32 (20180928 14:56:00.872)
Sep 28 14:56:00 o-pf02-tdv mysqld: WSREP_SST: [INFO] Removing the
sst_in_progress file (20180928 14:56:00.874)
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568327878400
[ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup --role
'joiner' --address '10.18.0.31' --datadir '/var/lib/mysql/'
--defaults-file '/usr/local/pf/var/conf/mariadb.conf'  --parent '63481'
''  '': 32 (Broken pipe)
Sep 28 14:56:00 o-pf02-tdv mysqld: 2018-09-28 14:56:00 140568357234432
[Warning] WSREP: 1.0 (o-pf01-tdv.domain.org): State transfer to 0.0 (
o-pf02-tdv.domain.org) failed: -22

Re: [PacketFence-users] dhcp domain-search option

2018-09-28 Thread Fabrice Durand via PacketFence-users

In PacketFence 8 there is a way to do it with the API.

cf: https://github.com/inverse-inc/packetfence/tree/devel/go/dhcp


Le 2018-09-28 à 12:58, mj via PacketFence-users a écrit :

For the archives:

we're still o 7.1, and the only way of doing that there, is by editing
* /usr/local/pf/lib/pf/services/manager/dhcpd.pm
near the line 177, and add the line there:

  option domain-search "domain.com";

Restart dhcpd, and voila.

It seems that from version 8 onwards, packetfence no longer uses isc 
dhcpd, so the procedure will be different. (if possible at all...?)


Best,
MJ

On 09/27/2018 11:40 AM, lists via PacketFence-users wrote:

Hi,

We would like to provide a dhcp domain-search option for our 
packetfence (7.1) inline clients.


The gui only allows for a dhcp ip range to be set.

Is it possible to provide a search option somewhere?

MJ


___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users



___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users


--
Fabrice Durand
fdur...@inverse.ca ::  +1.514.447.4918 (x135) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://packetfence.org)



___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users


Re: [PacketFence-users] dhcp domain-search option

2018-09-28 Thread mj via PacketFence-users

For the archives:

we're still o 7.1, and the only way of doing that there, is by editing
* /usr/local/pf/lib/pf/services/manager/dhcpd.pm
near the line 177, and add the line there:

  option domain-search "domain.com";

Restart dhcpd, and voila.

It seems that from version 8 onwards, packetfence no longer uses isc 
dhcpd, so the procedure will be different. (if possible at all...?)


Best,
MJ

On 09/27/2018 11:40 AM, lists via PacketFence-users wrote:

Hi,

We would like to provide a dhcp domain-search option for our packetfence 
(7.1) inline clients.


The gui only allows for a dhcp ip range to be set.

Is it possible to provide a search option somewhere?

MJ


___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users



___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users


Re: [PacketFence-users] No authentication context provided at /usr/local/pf/lib/pf/authentication.pm

2018-09-28 Thread Chris Abel via PacketFence-users
Hi Nicolas,

Here is my packetfence log:

Sep 28 09:52:10 pf packetfence_httpd.portal: httpd.portal(28601) INFO:
[mac:a0:cc:2b:17:f3:e5] Replacing destination URL
http://connectivitycheck.gstatic.com/generate_204 since it is a network
detection URL
(captiveportal::PacketFence::DynamicRouting::Application::process_destination_url)

Sep 28 09:52:10 pf packetfence_httpd.portal: httpd.portal(28601) INFO:
[mac:a0:cc:2b:17:f3:e5] Validating e-mail for user myem...@gmail.com
(captiveportal::PacketFence::DynamicRouting::Module::Authentication::Null::authenticate)

Sep 28 09:52:10 pf packetfence_httpd.portal: httpd.portal(28601) ERROR:
[mac:a0:cc:2b:17:f3:e5] Caught exception in
captiveportal::Controller::Root->dynamic_application "No authentication
context provided at /usr/local/pf/lib/pf/authentication.pm line 226."
(captiveportal::PacketFence::Controller::Root::end)


Here is my authentication.conf:

[null]

description=Null Source

type=Null

email_required=yes

set_access_level_action=

dynamic_routing_module=AuthModule


[null rule BYOB]

action0=set_role=guest

match=all

class=authentication

action1=set_access_duration=10Y

description=Personal Device Registration

On Thu, Sep 20, 2018 at 2:10 PM Nicolas Quiniou-Briand via
PacketFence-users  wrote:

> Hello Crhis,
>
> On 2018-09-19 01:36 PM, Chris Abel via PacketFence-users wrote:
> > I'm getting the following error message when a node tries to register
> > using the null authentication source that requires an email address:
> >
> > Caught exception in captiveportal::Controller::Root->dynamic_application
> > "No authentication context provided at
> > /usr/local/pf/lib/pf/authentication.pm  line
> 226.
> >
>
> Could you paste here:
> - packetfence.log with lines containing MAC address involved
> - authentication.conf, only the section related to Null source
>
> ?
> --
> Nicolas Quiniou-Briand
> n...@inverse.ca  ::  +1.514.447.4918 *140  ::  https://inverse.ca
> Inverse inc. :: Leaders behind SOGo (https://sogo.nu), PacketFence
> (https://packetfence.org) and Fingerbank (http://fingerbank.org)
>
>
> ___
> PacketFence-users mailing list
> PacketFence-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>


-- 
Chris Abel
Systems and Network Administrator
Wildwood Programs
2995 Curry Road Extension
Schenectady, NY  12303
518-836-2341

-- 
     
IMPORTANT NOTICE: This message and any attachments are solely for the 
intended recipient and may contain confidential information, which is, or 
may be, legally privileged or otherwise protected by law from further 
disclosure. If you are not the intended recipient, any disclosure, copying, 
use, or distribution of the information included in this email and any 
attachments is prohibited. If you have received this communication in 
error, please notify the sender by reply email and immediately and 
permanently delete this email and any attachments.
___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users