OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • [SOLVED] Error when installing 18.1.9
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] Error when installing 18.1.9  (Read 3549 times)

bringha

  • Full Member
  • ***
  • Posts: 229
  • Karma: 19
    • View Profile
[SOLVED] Error when installing 18.1.9
« on: May 31, 2018, 09:06:20 pm »
Hi there

Get an error when installing 18.1.9. Installation screen hangs with extracting opnsense-18.1.9 and the following error message appears:

Code: [Select]
[31-May-2018 20:58:01 Europe/Berlin] PHP Fatal error:  Uncaught Error: Class 'OPNsense\Core\Routing' not found in /usr/local/opnsense/mvc/app/config/services_api.php:87
Stack trace:
#0 [internal function]: Closure->{closure}()
#1 [internal function]: Phalcon\Di\Service->resolve(NULL, Object(Phalcon\Di\FactoryDefault))
#2 [internal function]: Phalcon\Di->get('router', NULL)
#3 [internal function]: Phalcon\Di->getShared('router')
#4 /usr/local/opnsense/www/api.php(26): Phalcon\Mvc\Application->handle()
#5 {main}
  thrown in /usr/local/opnsense/mvc/app/config/services_api.php on line 87
Any idea how to fix that?

Br br
« Last Edit: June 02, 2018, 08:13:16 pm by bringha »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13952
  • Karma: 1208
    • View Profile
Re: Error when installing 18.1.9
« Reply #1 on: June 01, 2018, 08:13:09 am »
Hi bringha,

Looks like a race condition during install: a file was not yet accessible on the file system.

You should have 18.1.9 installed now? To be safe, a reboot will take care of the missing configuration (if any).

But to be safe you should run a health audit from the firmware GUI prior to reboot.


Cheers,
Franco
Logged

bringha

  • Full Member
  • ***
  • Posts: 229
  • Karma: 19
    • View Profile
Re: Error when installing 18.1.9
« Reply #2 on: June 01, 2018, 09:04:03 am »
Thanks Franco,

Will reboot when back home. As I found all files and also the Router Class thought something like that. Interesting enough, 18.1.9 runs normal and also the Router Configis there ...

Dashboard says that 18.1.9. is installed, but I can‘t likely get away the error message without reboot ?!

BR br
« Last Edit: June 01, 2018, 09:08:29 am by bringha »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13952
  • Karma: 1208
    • View Profile
Re: Error when installing 18.1.9
« Reply #3 on: June 01, 2018, 12:12:31 pm »
It looks like a glitch during upgrade: files being rewritten and something being loaded before that file is accessible by the system to do what it should. If it were a hard error you'd never see the GUI again, because a vital file would be missing.

The reboot is to ensure that whatever migration or setup script ran post-update can be properly restarted. But in fact, just going to System: Firmware: Packages and reinstalling "opnsense" package should do the trick as well.


Cheers,
Franco
Logged

bringha

  • Full Member
  • ***
  • Posts: 229
  • Karma: 19
    • View Profile
Re: Error when installing 18.1.9
« Reply #4 on: June 01, 2018, 10:17:37 pm »
Hmmm,

this only shows 'führe aus, bitte warten', and nothing happens ....

Br br
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13952
  • Karma: 1208
    • View Profile
Re: Error when installing 18.1.9
« Reply #5 on: June 02, 2018, 10:01:16 am »
I would assume this was prior to reboot? Restart "configd" from System: Diagnostics: Services.


Cheers,
Franco
Logged

bringha

  • Full Member
  • ***
  • Posts: 229
  • Karma: 19
    • View Profile
Re: Error when installing 18.1.9
« Reply #6 on: June 02, 2018, 08:10:39 pm »
Yes, it was - tried the proposal without reboot first, also restart of configd did not change the situation - I simply rebooted and now all is fine ...

Br br
« Last Edit: June 02, 2018, 08:12:37 pm by bringha »
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • [SOLVED] Error when installing 18.1.9
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2