[freeside-users] Forcing "held back" packages in aptitude breaks Freeside.

John Wilson johnwilson1969 at gmail.com
Mon Mar 27 18:09:28 PDT 2017


Run Freeside upgrade script again to update database tables to new version.
You ran it before you updated packages.

On Mon, Mar 27, 2017, 3:16 PM Ernie Dunbar <maillist at lightspeed.ca> wrote:

> Hi everyone.
>
> With the failure of the upgrade to v4.2 in my previous message, I did some
> poking around and found that several apt upgrades were being held back:
>
> root at freeside:/home/ernied# apt-get upgrade
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Calculating upgrade... Done
> *The following packages have been kept back:*
> *  freeside freeside-lib freeside-webui*
> *The following packages will be upgraded:*
> *  libjbig2dec0*
> 1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
> Need to get 60.1 kB of archives.
> After this operation, 43.0 kB of additional disk space will be used.
> Do you want to continue? [Y/n] y
> Get:1 http://security.debian.org/ jessie/updates/main libjbig2dec0 amd64
> 0.13-4~deb8u1 [60.1 kB]
> Fetched 60.1 kB in 0s (208 kB/s)
> Reading changelogs... Done
> apt-listchanges: Mailing root: apt-listchanges: news for freeside
> (Reading database ... 87774 files and directories currently installed.)
> Preparing to unpack .../libjbig2dec0_0.13-4~deb8u1_amd64.deb ...
> Unpacking libjbig2dec0 (0.13-4~deb8u1) over (0.11+20120125-1) ...
> Setting up libjbig2dec0 (0.13-4~deb8u1) ...
> Processing triggers for libc-bin (2.19-18+deb8u7) ...
>
> So I stupidly went ahead and installed them, hoping that it would make the
> upgrade to v4.2 actually work:
>
> root at freeside:/home/ernied# apt-get install freeside freeside-lib
> freeside-webui
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
>   libbusiness-onlinepayment-perl libdatetime-event-ical-perl
> libdatetime-event-recurrence-perl libdatetime-format-ical-perl
> libgeo-streetaddress-us-perl librest-client-perl
> Suggested packages:
>   libbusiness-onlinepayment-authorizenet-perl
> libbusiness-onlinepayment-globalpayments-perl
> libbusiness-onlinepayment-ippay-perl
> libbusiness-onlinepayment-openecho-perl
> libbusiness-onlinepayment-payconnect-perl
>   libbusiness-onlinepayment-payflowpro-perl
> libbusiness-onlinepayment-paymentech-perl
> libbusiness-onlinepayment-tclink-perl
> libbusiness-onlinepayment-transactioncentral-perl
> libbusiness-onlinepayment-usaepay-perl
>   libbusiness-onlinepayment-viaklix-perl
> The following NEW packages will be installed:
>   libbusiness-onlinepayment-perl libdatetime-event-ical-perl
> libdatetime-event-recurrence-perl libdatetime-format-ical-perl
> libgeo-streetaddress-us-perl librest-client-perl
> The following held packages will be changed:
>   freeside freeside-lib freeside-webui
> The following packages will be upgraded:
>   freeside freeside-lib freeside-webui
> 3 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
> Need to get 9,180 kB of archives.
> After this operation, 1,044 kB of additional disk space will be used.
> Do you want to continue? [Y/n] y
> WARNING: The following packages cannot be authenticated!
>   librest-client-perl libgeo-streetaddress-us-perl freeside-lib
> freeside-webui freeside
> Install these packages without verification? [y/N] y
> Get:1 http://freeside.biz/~ivan/freeside-jessie/ ./ librest-client-perl
> 273-1 [10.3 kB]
> Get:2 http://ftp.ca.debian.org/debian/ jessie/main
> libdatetime-event-recurrence-perl all 0.16-1 [18.7 kB]
> Get:3 http://freeside.biz/~ivan/freeside-jessie/ ./
> libgeo-streetaddress-us-perl 1.3-3 [21.5 kB]
> Get:4 http://ftp.ca.debian.org/debian/ jessie/main
> libdatetime-event-ical-perl all 0.12-1 [14.0 kB]
> Get:5 http://ftp.ca.debian.org/debian/ jessie/main
> libdatetime-format-ical-perl all 0.09-1 [12.5 kB]
> Get:6 http://freeside.biz/~jeremyd/freeside4-jessie-stable/ ./
> freeside-lib 4.2-1 [5,589 kB]
> Get:7 http://ftp.ca.debian.org/debian/ jessie/main
> libbusiness-onlinepayment-perl all 3.03-1 [33.0 kB]
> Get:8 http://freeside.biz/~jeremyd/freeside4-jessie-stable/ ./
> freeside-webui 4.2-1 [2,902
> kB]
>
> Get:9 http://freeside.biz/~jeremyd/freeside4-jessie-stable/ ./ freeside
> 4.2-1 [579
> kB]
>
> Fetched 9,180 kB in 30s (297
> kB/s)
>
> Reading changelogs... Done
> Selecting previously unselected package libdatetime-event-recurrence-perl.
> (Reading database ... 87775 files and directories currently installed.)
> Preparing to unpack .../libdatetime-event-recurrence-perl_0.16-1_all.deb
> ...
> Unpacking libdatetime-event-recurrence-perl (0.16-1) ...
> Selecting previously unselected package libdatetime-event-ical-perl.
> Preparing to unpack .../libdatetime-event-ical-perl_0.12-1_all.deb ...
> Unpacking libdatetime-event-ical-perl (0.12-1) ...
> Selecting previously unselected package libdatetime-format-ical-perl.
> Preparing to unpack .../libdatetime-format-ical-perl_0.09-1_all.deb ...
> Unpacking libdatetime-format-ical-perl (0.09-1) ...
> Selecting previously unselected package librest-client-perl.
> Preparing to unpack .../librest-client-perl_273-1_all.deb ...
> Unpacking librest-client-perl (273-1) ...
> Selecting previously unselected package libgeo-streetaddress-us-perl.
> Preparing to unpack .../libgeo-streetaddress-us-perl_1.3-3_all.deb ...
> Unpacking libgeo-streetaddress-us-perl (1.3-3) ...
> Selecting previously unselected package libbusiness-onlinepayment-perl.
> Preparing to unpack .../libbusiness-onlinepayment-perl_3.03-1_all.deb ...
> Unpacking libbusiness-onlinepayment-perl (3.03-1) ...
> Preparing to unpack .../freeside-lib_4.2-1_all.deb ...
> Unpacking freeside-lib (4.2-1) over (4.1-20160805) ...
> Preparing to unpack .../freeside-webui_4.2-1_all.deb ...
> Unpacking freeside-webui (4.2-1) over (4.1-20160805) ...
> Processing triggers for man-db (2.7.0.2-5) ...
> Setting up libdatetime-event-recurrence-perl (0.16-1) ...
> Setting up libdatetime-event-ical-perl (0.12-1) ...
> Setting up libdatetime-format-ical-perl (0.09-1) ...
> Setting up librest-client-perl (273-1) ...
> Setting up libgeo-streetaddress-us-perl (1.3-3) ...
> Setting up libbusiness-onlinepayment-perl (3.03-1) ...
> Setting up freeside-lib (4.2-1) ...
> Installing new version of config file /opt/rt3/etc/RT_SiteConfig.pm ...
> texhash: Updating /usr/local/share/texmf/ls-R...
> texhash: Done.
> (Reading database ... 87860 files and directories currently installed.)
> Preparing to unpack .../freeside_4.2-1_all.deb ...
> usermod: no changes
> Unpacking freeside (4.2-1) over (4.1-20160805) ...
> Processing triggers for systemd (215-17+deb8u6) ...
> Setting up freeside-webui (4.2-1) ...
> Installing new version of config file
> /etc/apache2/conf-available/freeside-base2.4.conf ...
> Setting up freeside (4.2-1) ...
> root at freeside:/home/ernied# /etc/init.d/apache2 restart
> [ ok ] Restarting apache2 (via systemctl): apache2.service.
>
> Well, this is now what the Freeside login page looks like:
>
> *System error*
> *error:*  Can't call method "disabled" without a package or object
> reference at /var/www/html/freeside/elements/menu.html line 92.
> *context:*
> *...*
> *88:*  my $curuser = $FS::CurrentUser::CurrentUser;
> *89:*
> *90:*  # saved searches
> *91:*  tie my %report_saved_searches, 'Tie::IxHash';
> *92:*  if ( my @searches = grep { $_->disabled eq '' }
> $curuser->saved_search ) {
> *93:*  foreach my $search (@searches) {
> *94:*  $report_saved_searches{ $search->searchname } = [
> *95:*  # don't use query_string here; we don't want to override the format
> *96:*  $fsurl . $search->path . '?' . $search->params , ''
> *...*
> *code stack:*  /var/www/html/freeside/elements/menu.html:92
> /usr/share/perl5/FS/Mason.pm:527
> /var/www/html/freeside/elements/header-full.html:44
> /var/www/html/freeside/elements/header.html:5
> /var/www/html/freeside/index.html:4
> /var/www/html/freeside/autohandler:1
> raw error <https://freeside.lightspeed.ca/freeside/index.html#raw>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Can't call method "disabled" without a package or object reference at /var/www/html/freeside/elements/menu.html line 92.
>
>
> Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
> HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "disabled" without a package or object reference at /var/www/html/freeside/elements/menu.html line 92.^J') called at /var/www/html/freeside/elements/menu.html line 92
> HTML::Mason::Commands::__ANON__('freeside_baseurl', 'https://freeside.lightspeed.ca/freeside/', 'position', 'top', 'nocss', 0, 'mobile', '') called at /usr/share/perl5/HTML/Mason/Component.pm line 138
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fde554059e8)', 'freeside_baseurl', 'https://freeside.lightspeed.ca/freeside/', 'position', 'top', 'nocss', 0, 'mobile', '') called at /usr/share/perl5/HTML/Mason/Request.pm line 1305
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
> HTML::Mason::Request::comp(undef, undef, undef, 'freeside_baseurl', 'https://freeside.lightspeed.ca/freeside/', 'position', 'top', 'nocss', 0, 'mobile', '') called at /usr/share/perl5/HTML/Mason/Request.pm line 1358
> HTML::Mason::Request::scomp('FS::Mason::Request=HASH(0x7fde55371490)', 'menu.html', 'freeside_baseurl', 'https://freeside.lightspeed.ca/freeside/', 'position', 'top', 'nocss', 0, 'mobile', '') called at /usr/share/perl5/FS/Mason.pm line 527
> HTML::Mason::Commands::include('menu.html', 'freeside_baseurl', 'https://freeside.lightspeed.ca/freeside/', 'position', 'top', 'nocss', 0, 'mobile', '') called at /var/www/html/freeside/elements/header-full.html line 44
> HTML::Mason::Commands::__ANON__('Billing Main') called at /usr/share/perl5/HTML/Mason/Component.pm line 138
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fde55410d90)', 'Billing Main') called at /usr/share/perl5/HTML/Mason/Request.pm line 1305
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
> HTML::Mason::Request::comp(undef, undef, 'Billing Main') called at /var/www/html/freeside/elements/header.html line 5
> HTML::Mason::Commands::__ANON__('Billing Main') called at /usr/share/perl5/HTML/Mason/Component.pm line 138
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fde553de850)', 'Billing Main') called at /usr/share/perl5/HTML/Mason/Request.pm line 1305
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
> HTML::Mason::Request::comp(undef, undef, 'Billing Main') called at /var/www/html/freeside/index.html line 4
> HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 138
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fde553751b8)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1305
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
> HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 958
> HTML::Mason::Request::call_next('FS::Mason::Request=HASH(0x7fde55371490)') called at /var/www/html/freeside/autohandler line 1
> HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 138
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fde553c4308)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1303
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
> HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 484
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 484
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 436
> HTML::Mason::Request::exec('FS::Mason::Request=HASH(0x7fde55371490)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
> HTML::Mason::Request::ApacheHandler::exec('FS::Mason::Request=HASH(0x7fde55371490)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
> HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fde51d7c150)', 'Apache2::RequestRec=SCALAR(0x7fde528bc488)') called at /usr/local/etc/freeside/handler.pl line 153
> eval {...} at /usr/local/etc/freeside/handler.pl line 153
> HTML::Mason::handler('Apache2::RequestRec=SCALAR(0x7fde528bc488)') called at -e line 0
> eval {...} at -e line 0
>
> It's a good thing that we're not in production quite yet!
>
> Any help would be appreciated.
> _______________________________________________
> freeside-users mailing list
> freeside-users at freeside.biz
> http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://freeside.biz/pipermail/freeside-users/attachments/20170328/ce05b6e7/attachment-0001.html>


More information about the freeside-users mailing list