Hi Derek
I'll give that a try and post the results later today.
Kind regards,
On Thu, 21 May 2015 at 14:38 Derek Wuelfrath <[email protected]> wrote:
> Steve,
>
> Can you do ‘service packetfence-config restart’ and check how it behaves.
>
> Cheers!
> dw.
>
> --
> Derek Wuelfrath
> [email protected] :: +1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
> Inverse inc. (www.inverse.ca) :: Leaders behind SOGo (www.sogo.nu) and
> PacketFence (www.packetfence.org)
>
> On May 21, 2015 at 09:31:19, Steve Allen ([email protected]) wrote:
>
> Hi Derek
>
> Thanks for your help
>
> I'll await your response as it looks like the best idea would be to
> upgrade the current server.
>
> Kind regards,
>
> On Thu, 21 May 2015 at 14:23 Derek Wuelfrath <[email protected]>
> wrote:
>
>> Steve,
>>
>> The backups are the ones you suggested. The backup of the
>> /usr/local/pf directory, along with a dump of the DB.
>>
>> It wouldn’t work if you copy over the whole codebase of 4.7 over the
>> newest 5.0.2… the files that can be copied over are the configuration
>> files, after having modified them accordingly to the UPGRADE guide if
>> needed… Easiest would be to replicate config in a fresh install…
>>
>> Regarding the DB, you can simply import back the exported schema and then
>> apply the schema updates.
>>
>> The previous upgrade I have tried does not seem to work correctly. Below
>> is the output from when I try to restart the PacketFence service after the
>> upgrade. (i followed all the items in the upgrade document)
>>
>> I’ll have a look at what can cause that issue and will advise.
>> Cheers!
>> dw.
>>
>> --
>> Derek Wuelfrath
>> [email protected] :: +1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
>> Inverse inc. (www.inverse.ca) :: Leaders behind SOGo (www.sogo.nu) and
>> PacketFence (www.packetfence.org)
>>
>> On May 20, 2015 at 05:32:07, Steve Allen ([email protected])
>> wrote:
>>
>> Hi Derek
>>
>> The backups are the ones you suggested. The backup of the /usr/local/pf
>> directory, along with a dump of the DB.
>>
>>
>> The previous upgrade I have tried does not seem to work correctly. Below
>> is the output from when I try to restart the PacketFence service after the
>> upgrade. (i followed all the items in the upgrade document)
>>
>> *OUTPUT*
>> [root@packetfence01 conf]# /etc/init.d/packetfence restart
>> Restarting PacketFence...Couldn't require
>> pf::services::manager::httpd_portal : Can't use an undefined value as a
>> HASH reference at /usr/local/pf/lib/pfconfig/cached_array.pm line 108.
>> Compilation failed in require at /usr/local/pf/lib/pf/services/manager/
>> httpd.pm line 23.
>> BEGIN failed--compilation aborted at
>> /usr/local/pf/lib/pf/services/manager/httpd.pm line 23.
>> Compilation failed in require at
>> /usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
>> Compilation failed in require at (eval 2150) line 3.
>> at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
>> Couldn't require pf::services::manager::httpd_aaa : Attempt to reload
>> pf/services/manager/httpd.pm aborted.
>> Compilation failed in require at
>> /usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
>> Compilation failed in require at (eval 2157) line 3.
>> at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
>> Couldn't require pf::services::manager::httpd_proxy : Attempt to reload
>> pf/services/manager/httpd.pm aborted.
>> Compilation failed in require at
>> /usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
>> Compilation failed in require at (eval 2174) line 3.
>> at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
>> Couldn't require pf::services::manager::httpd_admin : Attempt to reload
>> pf/services/manager/httpd.pm aborted.
>> Compilation failed in require at
>> /usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
>> Compilation failed in require at (eval 2178) line 3.
>> at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
>> Couldn't require pf::services::manager::httpd_webservices : Attempt to
>> reload pf/services/manager/httpd.pm aborted.
>> Compilation failed in require at
>> /usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
>> Compilation failed in require at (eval 2204) line 3.
>> at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
>> module pf::cmd::pf::service cannot be loaded
>> Can't locate object method "name" via package
>> "pf::services::manager::httpd_portal" at /usr/local/pf/lib/pf/services.pm
>> line
>> 39.
>> Compilation failed in require at /usr/local/pf/lib/pf/cmd/pf/service.pm line
>> 59.
>> BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/cmd/pf/
>> service.pm line 59.
>> Compilation failed in require at /usr/share/perl5/Module/Load.pm line 27.
>> Can't locate pf/cmd/pf/service in @INC (@INC contains: /usr/local/pf/lib
>> /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
>> /usr/share/perl5/vendor_perl
>> /usr/lib64/perl5 /usr/share/perl5) at /usr/share/perl5/Module/Load.pm
>> line 27.
>>
>>
>> Usage:
>> pfcmd <command> [options]
>>
>> Commands
>> cache | manage the cache subsystem
>> checkup | perform a sanity checkup and report
>> any problems
>> class | view violation classes
>> config | query, set, or get help on pf.conf
>> configuration paramaters
>> configfiles | push or pull configfiles into/from
>> database
>> configreload | reload the configution
>> fingerprint | view DHCP Fingerprints
>> floatingnetworkdeviceconfig | query/modify floating network
>> devices configuration parameters
>> help | show help for pfcmd commands
>> ifoctetshistorymac | accounting history
>> ifoctetshistoryswitch | accounting history
>> ifoctetshistoryuser | accounting history
>> import | bulk import of information into the
>> database
>> ipmachistory | IP/MAC history
>> locationhistorymac | Switch/Port history
>> locationhistoryswitch | Switch/Port history
>> networkconfig | query/modify network configuration
>> parameters
>> portalprofileconfig | query/modify portal profile
>> configuration parameters
>> reload | rebuild fingerprint or violations
>> tables without restart
>> service | start/stop/restart and get PF daemon
>> status
>> switchconfig | query/modify switches.conf
>> configuration parameters
>> version | output version information
>> violationconfig | query/modify violations.conf
>> configuration parameters
>>
>> Please view "pfcmd help <command>" for details on each option
>>
>>
>> [root@packetfence01 conf]#
>>
>> On Wed, 20 May 2015 at 06:14 Derek Wuelfrath <[email protected]>
>> wrote:
>>
>>> Hello Steve,
>>>
>>> I have previously tried to follow the upgrade document but my
>>> server keeps dying when I upgrade.
>>>
>>> Any more details ?
>>>
>>> If I was to take a backup and DB dump from 4.7.0 and install 5.0.2 on a
>>> new server is it possible to just copy the backup files onto the new server
>>> and over write the files creating during the 5.0.2 installation?
>>>
>>> I'm not sure of which backup files you are talking about.
>>> Cheers!
>>> dw.
>>>
>>> --
>>> Derek Wuelfrath
>>> [email protected] :: +1.514.447.4918 (x110) :: +1.866.353.6153
>>> (x110)
>>> Inverse inc. (www.inverse.ca) :: Leaders behind SOGo (www.sogo.nu) and
>>> PacketFence (www.packetfence.org)
>>>
>>> On May 19, 2015 at 11:25:31, Steve Allen ([email protected])
>>> wrote:
>>>
>>> Hi DW
>>>
>>> Thank you for your help.
>>>
>>> I have previously tried to follow the upgrade document but my server
>>> keeps dying when I upgrade.
>>>
>>> If I was to take a backup and DB dump from 4.7.0 and install 5.0.2 on a
>>> new server is it possible to just copy the backup files onto the new server
>>> and over write the files creating during the 5.0.2 installation?
>>>
>>> Kind regards,
>>>
>>>
>>>
>>> On Tue, 19 May 2015 at 15:15 Derek Wuelfrath <[email protected]>
>>> wrote:
>>>
>>>> Steve,
>>>>
>>>> I need to upgrade from 4.7.0 to 5.0.2.
>>>>
>>>> Which is great ! ;)
>>>>
>>>> The method I would like to use is to set up a new server running
>>>> 5.0.2 and then import my settings from 4.7.0.
>>>>
>>>> Is it possible to do it this way?
>>>>
>>>> If you do not have any custom code (modified PacketFence codebase
>>>> outside of extension points and outside of configuration parameters), that
>>>> shouldn’t be too hard to do. Make sure to make a backup of the
>>>> /usr/local/pf directory, along with a dump of the DB.
>>>>
>>>> Once done, upgrade the codebase and go through the UPGRADE guide to
>>>> make sure you pay attention to each configuration parameters that may have
>>>> changed. Do not forget about the DB schema upgrade (documented in the
>>>> upgrade guide)
>>>>
>>>> Cheers!
>>>> dw.
>>>>
>>>> --
>>>> Derek Wuelfrath
>>>> [email protected] :: +1.514.447.4918 (x110) :: +1.866.353.6153
>>>> (x110)
>>>> Inverse inc. (www.inverse.ca) :: Leaders behind SOGo (www.sogo.nu) and
>>>> PacketFence (www.packetfence.org)
>>>>
>>>> On May 18, 2015 at 08:28:30, Steve Allen ([email protected])
>>>> wrote:
>>>>
>>>> Hi
>>>>
>>>> I need to upgrade from 4.7.0 to 5.0.2.
>>>>
>>>> The method I would like to use is to set up a new server running 5.0.2
>>>> and then import my settings from 4.7.0.
>>>>
>>>> Is it possible to do it this way?
>>>>
>>>> Kind regards,
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________
>>>> PacketFence-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>>>>
>>>>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users