OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • [SOLVED] Timezone issue
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] Timezone issue  (Read 11098 times)

iosense

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • View Profile
[SOLVED] Timezone issue
« on: November 20, 2015, 12:48:17 pm »
Hey folks,

I started to get interesting error related to the timezone :(

Quote
Warning: file_notice(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone "UTC" for now, but please set date.timezone to select your timezone. in /usr/local/etc/inc/notices.inc on line 69

Fatal error: Call to undefined function log_error() in /usr/local/etc/inc/notices.inc on line 69

opnsense is not working properly,  How can I resolve this error.

Thank you.
« Last Edit: November 20, 2015, 07:52:46 pm by franco »
Logged

iosense

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • View Profile
Re: Timezone issue
« Reply #1 on: November 20, 2015, 01:56:54 pm »
Ok I figured out the problem, somehow the /conf/config.xml file has been deleted or did not saved correctly. So I've created config.xml file and set again. now there is no problem and the system is working properly.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1616
    • View Profile
Re: Timezone issue
« Reply #2 on: November 20, 2015, 07:52:32 pm »
This is pre-15.7.19? Because the last release has the fix for this, but it's not on the latest image. Nice work fixing it manually. :)

Was there any particular thing that you did before this happened?

PS: I think that this likely happens after a disk corruption.
Logged

iosense

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • View Profile
Re: [SOLVED] Timezone issue
« Reply #3 on: November 24, 2015, 01:44:47 pm »
Hey franco,

I'm trying to get regular updates on stable/15.7 git repo, I think this error occurred during an update. I pulled 130 commit into my local repo before getting this error.

the system crashed when trying to save the settings. If I encounter with this error again, I'll let you know.

And yes, I have login as Single-User Mode and run /sbin/fsck -fy and  /sbin/mount -uw command to fix this issue.

maybe ZFS file system would be a better alternative for the stable working environment and updates.

Thank you.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1616
    • View Profile
Re: [SOLVED] Timezone issue
« Reply #4 on: November 24, 2015, 10:34:03 pm »
ZFS is a challenge. FWIW, you could now install FreeBSD on ZFS, bootstrap OPNsense from this system and deal with the fallout in the rc scripting. Far from stable, but it's work that will to be done next year, maybe for 16.7.

https://github.com/opnsense/update/commit/e3f63ecdb1149a8cc30e36027ff9f9ac8e31f12f
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • [SOLVED] Timezone issue
 

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