Good morning everyone,
I have tried a lot of times to upgrade my three nodes cluster.
I have followed the upgrade guide 
https://www.packetfence.org/doc/PacketFence_Clustering_Guide.html#_performing_an_upgrade_on_a_cluster
I receive the configuration sanity warning
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59
Could not write namespace config::PfDefault() to L2 cache !
Could not write namespace config::Documentation() to L2 cache !
Could not write namespace config::Cluster(DEFAULT) to L2 cache !

When performing detaching node C from cluster 
(https://www.packetfence.org/doc/PacketFence_Clustering_Guide.html#_detach_node_c_from_the_cluster
 ), restarting proxysql give me the error

/usr/local/pf/bin/pfcmd service proxysql restart
Usage:
    pfcmd service <service>
    [start|stop|restart|status|generateconfig|updatesystemd]
    [--ignore-checkup]

      stop/stop/restart specified service
      status returns PID of specified PF daemon or 0 if not running.

      --ignore-checkup will start the requested services even if the checkup 
fails

    Services managed by PacketFence:

      api-frontend           | Golang daemon providing API
      fingerbank-collector   | Fingerprinting data collection daemon
      galera-autofix         | Automated recovery of Galera clusters
      haproxy-admin          | haproxy admin daemon
      haproxy-db             | haproxy database daemon
      haproxy-portal         | haproxy portal daemon
      httpd.aaa              | Apache AAA webservice
      httpd.admin_dispatcher | Admin GUI dispatcher
      httpd.collector        | Apache Collector daemon
      httpd.dispatcher       | Captive portal dispatcher
      httpd.portal           | Apache Captive Portal
      httpd.proxy            | Apache Proxy Interception
      httpd.webservices      | Apache Webservices
      iptables               | PacketFence firewall rules
      keepalived             | Virtual IP management
      mysql-probe            | MySQL probe service
      netdata                | Monitoring service
      pfacct                 | Netflow and Radius Accounting service
      pf                     | all services that should be running based on 
your config
      pfcertmanager          | Certificate Manager Service
      pfcron                 | PF Cron daemon
      pfdetect               | PF snort alert parser
      pfdhcp                 | dhcpd daemon
      pfdhcplistener         | PF DHCP monitoring daemon
      pfdns                  | DNS daemon
      pffilter               | PF conditions filtering daemon
      pfipset                | IPSET daemon
      pfperl-api             | Perl daemon providing API
      pfpki                  | PKI daemon
      pfqueue                | PF queueing service
      pfsso                  | Firewall SSO daemon
      pfstats                | PF statistics daemon
      radiusd                | FreeRADIUS daemon
      radsniff               | radsniff daemon
      redis_ntlm_cache       | Redis for the NTLM cache
      redis_queue            | Redis for pfqueue
      snmptrapd              | SNMP trap receiver daemon
     tc                     | Traffic shaping service
      tracking-config        | Tracking configuration change
      winbindd               | Winbind daemon

Next, when upgrading node C 
(https://www.packetfence.org/doc/PacketFence_Installation_Guide.html#_full_upgrade_for_packetfence_versions_11_1_0_and_later)
 , I have:

/usr/local/pf/addons/upgrade/do-upgrade.sh
=================================================================================
Installing or upgrading the upgrade tools for PacketFence
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
packetfence-upgrade is already the newest version 
(11.2.0+20230215141130+779155622+0011+maintenance~11.2+bullseye1).
0 upgraded, 0 newly installed, 0 to remove and 180 not upgraded.
=================================================================================
Starting upgrade process
=================================================================================
Attempting to disable the monit service so it doesn't interfere with the upgrade
Synchronizing state of monit.service with SysV service script with 
/lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable monit
Attempting to stop the monit service so it doesn't interfere with the upgrade
---------------------------------------------------------------------------------
Stopping the PacketFence services
.....
....
=================================================================================
Updating /usr/local/pf/addons/backup-and-maintenance.sh from Github
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10594  100 10594    0     0  50688      0 --:--:-- --:--:-- --:--:-- 50688
=================================================================================
Generating full pre-upgrade backup to 
/root/packetfence-pre-upgrade-backup-1678794977.tgz
/root/backup/ , folder already created.

tar: Removing leading `/' from member names
packetfence-files-dump have been created in  /root/backup/

packetfence-files-dump older than 7 days have been removed.

Server is in a cluster but running in standalone mode. Will be running backup.
Mariabackup is available. Will proceed using it for DB backup to avoid locking 
tables and easier recovery process.

Not a Galera cluster, nothing to stop
mariabackup was not successful.
Not a Galera cluster, nothing to reenable

The upgrade ends here, if I try to check the upgrade 
(https://www.packetfence.org/doc/PacketFence_Clustering_Guide.html#_check_upgrade_on_node_c)
 I receive

systemctl start packetfence-proxysql
/usr/local/pf/bin/pfcmd checkup
Failed to start packetfence-proxysql.service: Unit packetfence-proxysql.service 
not found.
Checking configuration sanity...
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Could not write namespace config::PfDefault() to L2 cache !
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Could not write namespace config::Documentation() to L2 cache !
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Could not write namespace config::Cluster(DEFAULT) to L2 cache !
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Could not write namespace config::PfDefault() to L2 cache !
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Could not write namespace config::Documentation() to L2 cache !
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Use of uninitialized value in concatenation (.) or string at 
/usr/local/pf/lib/pfconfig/backend/mysql.pm line 59.
Could not write namespace config::Cluster(DEFAULT) to L2 cache !
FATAL - Unable to connect to your database. Please verify your connection 
settings in conf/pf.conf and make sure that it is started.
FATAL - Cannot connect to database to check schema version: unable to connect 
to database: Can't connect to MySQL server on '127.0.0.1' (115) at 
/usr/local/pf/lib/pf/dal.pm line 70.

Please someone can help me?
Thanks a lot,
Andrea

L'informativa privacy ? disponibile al seguente indirizzo - privacy policy 
available at: https://pamamachinetools.com/privacy-policy/
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to