Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: pmattson on January 21, 2012, 08:35:05 PM

Title: Time issue, everything is showing up using UTC time
Post by: pmattson on January 21, 2012, 08:35:05 PM
I am not sure how this happened, but all of a sudden my time on e-mails was off.  I have recently figured out it is posting the UTC time.

When I go into my Server-Manager I do not see an option under configuration for "Date and Time".

I tried to upgrade from 7.4 to 7.5.1 thinking that might fix the issue.

I have tried to run update, but get the following error trying to access Yum: [Errno -1] Header is not complete.  It goes through a whole bunch of mirrors and fails.

I have tried the following commands:
yum clean all
yum update

yum clean all
yum makecache

I have tried to install an individual application from the Server-Manager.

Any help would be appreciated.

Patrick
Title: Re: Time issue, everything is showing up using UTC time
Post by: janet on January 21, 2012, 10:31:25 PM
pmattson

What output does this command give ?
(Log in as root or as a user with root privileges to open the command window).

config show TimeZone


Quote
I have tried to install an individual application from the Server-Manager.

What application is that, did you follow the install with a Reconfiguration and Reboot ?
What other applications have you installed ?
Title: Re: Time issue, everything is showing up using UTC time
Post by: pmattson on January 21, 2012, 10:48:48 PM
This is the correct time zone, here is the command and output:

[root@sme-50 ~]# config show TimeZone
TimeZone=America/Chicago
[root@sme-50 ~]#

What application is that, did you follow the install with a Reconfiguration and Reboot ?
I did not see that option.

What other applications have you installed ?
Here is a copy of my menus, the only one I remember adding a few years ago was the "Users Vacations":
Collaboration
Users
Groups
Pseudonyms
Information bays
User vacations

Administration
Update system
Reboot or shutdown

Security
Remote access
Local networks
Port forwarding

Configuration
Software installer
Workgroup
Domains
E-mail
Antivirus (ClamAV)
Review configuration

Miscellaneous
Support and licensing
Create starter web site
Title: Re: Time issue, everything is showing up using UTC time
Post by: janet on January 21, 2012, 11:36:10 PM
pmattson

Issue these commands
signal-event post-upgrade
signal-event reboot

and see if your problem is resolved.

You might also try this command if the above does not resolve the problem.

/etc/e-smith/events/actions/navigation-conf
(ignore all warnings that appear on screen)
Title: Re: Time issue, everything is showing up using UTC time
Post by: pmattson on January 22, 2012, 12:03:31 AM
Tried both of the commands:
signal-event post-upgrade
signal-event reboot

Then ran, with no errors:
/etc/e-smith/events/actions/navigation-conf

I did do a ps -ef | grep ntp and I am not seeing any processes running.  Is there an easy way to reinstall the service?
Title: Re: Time issue, everything is showing up using UTC time
Post by: janet on January 22, 2012, 12:09:14 AM
pmattson

Now do
yum update
and tell us the output
Title: Re: Time issue, everything is showing up using UTC time
Post by: pmattson on January 22, 2012, 12:23:00 AM
I forgot about this issue, I figure the first few will give an idea:

[root@sme-50 service]# yum update
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "installonlyn" plugin
Loading "smeserver" plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for freetype to pack into transaction set.
freetype-2.1.9-21.el4.i38 100% |=========================| 767 kB    00:00
http://mirror.cisp.com/CentOS/4.9/updates/i386/RPMS/freetype-2.1.9-21.el4.i386.rpm: [Errno -1] Header is not complete.
Trying other mirror.
freetype-2.1.9-21.el4.i38 100% |=========================| 767 kB    00:00
http://mirrors.arsc.edu/centos/4.9/updates/i386/RPMS/freetype-2.1.9-21.el4.i386.rpm: [Errno -1] Header is not complete.
Trying other mirror.
freetype-2.1.9-21.el4.i38 100% |=========================| 767 kB    00:00
http://mirror.hmc.edu/centos/4.9/updates/i386/RPMS/freetype-2.1.9-21.el4.i386.rpm: [Errno -1] Header is not complete.
Trying other mirror.

It keeps going with these errors.
Title: Re: Time issue, everything is showing up using UTC time
Post by: CharlieBrady on January 22, 2012, 12:23:52 AM
I am not sure how this happened, but all of a sudden my time on e-mails was off.

WHat do you mean "time on e-mails was off". Do you mean the time showd in the "Date" header? If so, that is created by your mail client, e.g. webmail, Thunderbird, Outlook.

Quote
I have recently figured out it is posting the UTC time.

What do you mean "it" and what do you mean by "posting the UTC time"?

Perhaps you should give an example.

For those trying to help, it is a good idea to diagnose the problem before trying to fix it.
Title: Re: Time issue, everything is showing up using UTC time
Post by: janet on January 22, 2012, 12:32:09 AM
pmattson

So now do
yum clean all

then try again
yum update

I was aiming my advice at getting yum update to work.
Title: Re: Time issue, everything is showing up using UTC time
Post by: pmattson on January 22, 2012, 01:07:29 AM
The clients are mosthly using Outlook Express, I have a few Outlook 2003, and one or two Thunderbird.  The picture I have attached was from a test e-mail I did yesterday, same type of results.  I sent it at 3:26 PM from my personal e-mail and it is showing a time of 9:25 AM.  I sent the e-mail late in the afternoon.

(http://i42.tinypic.com/10idq4z.jpg)

When I ran this command the current time for me is: 5:53 PM/17:53, I thinking my theory is not so.

[root@sme-50 ~]# date
Sat Jan 21 11:38:09 CST 2012
[root@sme-50 ~]#


[root@sme-50 ~]# ps -ef | grep ntp
root      5741  4860  0 11:45 pts/0    00:00:00 grep ntp
[root@sme-50 ~]#

I have checked the BIOS on the machine, this is not a virtual machine.

I am very thankful for everyone helping me on this.  Unfortunately I am not a master at SME.
Title: Re: Time issue, everything is showing up using UTC time
Post by: janet on January 22, 2012, 01:20:47 AM
pmattson

What output does this show ?
config show ntpd


Have you tried
yum clean all
and
yum update
again
What output do you get ?
Title: Re: Time issue, everything is showing up using UTC time
Post by: CharlieBrady on January 22, 2012, 02:11:01 AM
The clients are mosthly using Outlook Express, I have a few Outlook 2003, and one or two Thunderbird.  The picture I have attached was from a test e-mail I did yesterday, same type of results.  I sent it at 3:26 PM from my personal e-mail and it is showing a time of 9:25 AM.

'qmail' generates the Received header, and writes the date in UTC (only UTC is unambiguous 24x7 365 days a year).  You can't change that and you needn't worry about that. It is working correctly.

The real problem is that Outlook Express doesn't mention the timezone when it shows you the timestamp.
Title: Re: Time issue, everything is showing up using UTC time
Post by: pmattson on January 22, 2012, 02:22:27 AM
Mary,

Sorry it has been a long day I snuck in dinner since I missed lunch.

[root@sme-50 ~]# config show ntpd
ntpd=service
    MemLimit=12000000
    SyncToHWClockSupported=yes
    status=enabled
[root@sme-50 ~]#

[root@sme-50 ~]# yum clean all
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "installonlyn" plugin
Loading "smeserver" plugin
Cleaning up Everything
1 headers removed
0 packages removed
18 metadata files removed
0 cache files removed
6 cache files removed
[root@sme-50 ~]#

[root@sme-50 ~]# yum update
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "installonlyn" plugin
Loading "smeserver" plugin
Setting up Update Process
Setting up repositories
smeextras                 100% |=========================| 2.3 kB    00:00
smeaddons                 100% |=========================| 2.3 kB    00:00
base                      100% |=========================| 1.1 kB    00:00
updates                   100% |=========================|  951 B    00:00
smeos                     100% |=========================| 1.9 kB    00:00
smeupdates                100% |=========================| 1.9 kB    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  19 kB    00:00
smeextras : ################################################## 55/55
primary.xml.gz            100% |=========================|  91 kB    00:00
smeaddons : ################################################## 171/171
primary.xml.gz            100% |=========================| 611 kB    00:00
base      : ################################################## 1599/1599
primary.xml.gz            100% |=========================| 811 kB    00:12
updates   : ################################################## 1837/1837
primary.xml.gz            100% |=========================| 262 kB    00:00
smeos     : ################################################## 568/568
primary.xml.gz            100% |=========================|  77 kB    00:00
smeupdates: ################################################## 111/111
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for freetype to pack into transaction set.
freetype-2.1.9-21.el4.i38 100% |=========================| 767 kB    00:08
http://mirrors.bluehost.com/centos/4.9/updates/i386/RPMS/freetype-2.1.9-21.el4.i386.rpm: [Errno -1] Header is not complete.
Trying other mirror.
Title: Re: Time issue, everything is showing up using UTC time
Post by: pmattson on January 22, 2012, 02:31:14 AM
I wanted to put a screenshot of my server-manager.

(http://i43.tinypic.com/35k8lrq.jpg)
Title: Re: Time issue, everything is showing up using UTC time
Post by: janet on January 22, 2012, 04:21:44 AM
pmattson

Quote
[Errno -1] Header is not complete.

See http://wiki.contribs.org/SME_Server:Documentation:FAQ#Yum_Updates
It refers to possible problems with upstream firewalls, try disabling yours.
Title: Re: Time issue, everything is showing up using UTC time
Post by: pmattson on January 22, 2012, 04:14:47 PM
Mary,

Thank you, you lead me down the right path about the firewall.  Our firewall is managed by another company.

After the tech opened port 21 outbound for the server only and now my updates started going.  While I was talking to him I also had him open port 123 for the server also.

I was talking to the tech and apparently wget uses ftp, even though the link says http.

I appreciate everyone's help I spent a lot of time on this one.

Patrick