[SOLVED] Going back to stable breaks the GUI

Started by interfaSys, January 28, 2016, 08:26:22 PM

Previous topic - Next topic
January 28, 2016, 08:26:22 PM Last Edit: January 29, 2016, 12:29:53 AM by franco
The thread about testing the dev version mentions that if we ever need to go back to stable, we would simply need to do

# pkg install -y opnsense

It seems to work but tries to download the next alpha at the same time


Updating OPNsense repository catalogue...
OPNsense repository is up-to-date.
All repositories are up-to-date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        opnsense: 16.1
        py27-netaddr: 0.7.18

The process will require 35 MiB more space.
10 MiB to be downloaded.
Fetching opnsense-16.1.txz: 100%    9 MiB 259.0kB/s    00:37
Fetching py27-netaddr-0.7.18.txz: 100%    1 MiB 263.7kB/s    00:04
Checking integrity... done (1 conflicting)
Checking integrity... done (0 conflicting)
Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
The following 4 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        py27-netaddr: 0.7.18
        opnsense: 16.1

The process will require 35 MiB more space.
Fetching opnsense-devel-16.7.a_52.txz: 100%    9 MiB 245.7kB/s    00:39
[1/4] Installing py27-netaddr-0.7.18...
[1/4] Extracting py27-netaddr-0.7.18: 100%
[2/4] Deinstalling opnsense-devel-15.7.99_2050...
[3/4] Installing opnsense-16.1...
[3/4] Extracting opnsense-16.1: 100%
[3/4] Installing opnsense-devel-16.7.a_52...
pkg: opnsense-devel-16.7.a_52 conflicts with opnsense-16.1 (installs files into the same place).  Problematic file: /usr/local/opnsense/contrib/mobile-broadband-provider-info/serviceproviders.xml


Looks like it failed, the interface doesn't work properly any more.

[28-Jan-2016 20:30:51 Europe/Amsterdam] PHP Fatal error:  Class 'Phalcon\DI\FactoryDefault' not found in /usr/local/opnsense/mvc/script/load_phalcon.php on line 32
[28-Jan-2016 20:30:52 Europe/Amsterdam] PHP Fatal error:  Class 'Phalcon\DI\FactoryDefault' not found in /usr/local/opnsense/mvc/script/load_phalcon.php on line 32
[28-Jan-2016 20:30:52 Europe/Amsterdam] PHP Fatal error:  Class 'Phalcon\DI\FactoryDefault' not found in /usr/local/opnsense/mvc/script/load_phalcon.php on line 32
[28-Jan-2016 20:30:52 Europe/Amsterdam] PHP Fatal error:  Class 'Phalcon\DI\FactoryDefault' not found in /usr/local/opnsense/mvc/script/load_phalcon.php on line 32
[28-Jan-2016 20:30:52 Europe/Amsterdam] PHP Fatal error:  Class 'Phalcon\DI\FactoryDefault' not found in /usr/local/opnsense/mvc/script/load_phalcon.php on line 32
[28-Jan-2016 20:30:52 Europe/Amsterdam] PHP Fatal error:  Class 'Phalcon\DI\FactoryDefault' not found in /usr/local/opnsense/mvc/script/load_phalcon.php on line 32
[28-Jan-2016 20:30:52 Europe/Amsterdam] PHP Fatal error:  Class 'Phalcon\DI\FactoryDefault' not found in /usr/local/opnsense/mvc/script/load_phalcon.php on line 32
...

That's a pkg bug I haven't been able to reproduce and push upstream. Running

# pkg install -f opnsense

twice fixes this (at some point both opnsense and opnsense-devel are installed and files are mixed).

I just tried to install it again and it complains about the checksum, but completes the process.

The problem is that some pages like /ui/diagnostics/activity/ are completely unresponsive.

I've restart the web interface, but it doesn't change anything

Maybe the backend daemon didn't like the pkg probing.

# service configd restart

Does that help?

That was it, thanks

]# service configd restart
configd not running?
Starting configd.


Also, my /var/log looks strange. I have lots of files with a size of 511488. Is this normal somehow?

Yes, these are clog binary log files with a fixed size. Please double-check before posting. I can't guarantee that everything will be answered.