OPNsense Forum

English Forums => Development and Code Review => Topic started by: iosense on November 20, 2015, 12:48:17 pm

Title: [SOLVED] Timezone issue
Post by: iosense 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.
Title: Re: Timezone issue
Post by: iosense 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.
Title: Re: Timezone issue
Post by: franco 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.
Title: Re: [SOLVED] Timezone issue
Post by: iosense 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.
Title: Re: [SOLVED] Timezone issue
Post by: franco 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