No one here?

Thank you

Da: de Lutti Andrea via PacketFence-users 
<packetfence-users@lists.sourceforge.net>
Inviato: martedì 14 marzo 2023 13:01
A: PacketFence-users <packetfence-users@lists.sourceforge.net>
Cc: de Lutti Andrea <andrea.delu...@pama.it>
Oggetto: [PacketFence-users] Unable to upgrade from 11.2 to 12.2

A T T E N Z I O N E : Questo messaggio è stato spedito da un mittente esterno 
all'organizzazione. Non fare click su link e non aprire allegati se non conosci 
il mittente e non sai se il contenuto è sicuro.
W A R N I N G : This message was sent from a sender outside the organization. 
Please do not click links or open attachments unless you recognize the source 
of this email and know the content is safe

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<https://lsems.gravityzone.bitdefender.com/scan/aHR0cHM6Ly93d3cucGFja2V0ZmVuY2Uub3JnL2RvYy9QYWNrZXRGZW5jZV9DbHVzdGVyaW5nX0d1aWRlLmh0bWwjX3BlcmZvcm1pbmdfYW5fdXBncmFkZV9vbl9hX2NsdXN0ZXI=/C6DACBDF6D33C3B287B5F8F9F81AFF74347F3437115EEFD3506E02192904A7B0?c=1&i=1&docs=1>
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<https://lsems.gravityzone.bitdefender.com/scan/aHR0cHM6Ly93d3cucGFja2V0ZmVuY2Uub3JnL2RvYy9QYWNrZXRGZW5jZV9DbHVzdGVyaW5nX0d1aWRlLmh0bWwjX2RldGFjaF9ub2RlX2NfZnJvbV90aGVfY2x1c3Rlcg==/9DB92EE91299DD3403C332A29B4D6B6E1DB857931C682AAD3A44B2CCF70C8955?c=1&i=1&docs=1>
 ), 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<https://lsems.gravityzone.bitdefender.com/scan/aHR0cHM6Ly93d3cucGFja2V0ZmVuY2Uub3JnL2RvYy9QYWNrZXRGZW5jZV9JbnN0YWxsYXRpb25fR3VpZGUuaHRtbCNfZnVsbF91cGdyYWRlX2Zvcl9wYWNrZXRmZW5jZV92ZXJzaW9uc18xMV8xXzBfYW5kX2xhdGVy/A3EBF0B28013585495944DCAA4C637168C13675621BA99E8157803F20443C676?c=1&i=1&docs=1>)
 , 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<https://lsems.gravityzone.bitdefender.com/scan/aHR0cHM6Ly93d3cucGFja2V0ZmVuY2Uub3JnL2RvYy9QYWNrZXRGZW5jZV9DbHVzdGVyaW5nX0d1aWRlLmh0bWwjX2NoZWNrX3VwZ3JhZGVfb25fbm9kZV9j/585EADB13DDA69B246EA6554504DEA65CE3C098C1583BC27C734DC73F1E61043?c=1&i=1&docs=1>)
 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/<https://lsems.gravityzone.bitdefender.com/scan/aHR0cHM6Ly9wYW1hbWFjaGluZXRvb2xzLmNvbS9wcml2YWN5LXBvbGljeS8=/74D563944C10DACC28D4A476810219D3D582AE9AF9F65206D2D2E746D0133690?c=1&i=1&docs=1>
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to