Modify

Ticket #4768 (closed defect: worksforme)

Opened 10 months ago

Last modified 10 months ago

When changing timezone: cp: `/usr/share/zoneinfo/America/New_York' and `/etc/localtime' are the same file

Reported by: privremeno@… Owned by: jamor@…
Milestone: 2.2.X Component: base
Severity: normal Keywords:
Cc:

Description (last modified by jamor@…) (diff)

Applying new time zone trows the error.

Error

root command cp -f /usr/share/zoneinfo/America/New_York /etc/localtime failed. 
Error output: cp: `/usr/share/zoneinfo/America/New_York' and `/etc/localtime' are the same file

Command output: . 
Exit value: 1

Trace

root command cp -f /usr/share/zoneinfo/America/New_York /etc/localtime failed. 
Error output: cp: `/usr/share/zoneinfo/America/New_York' and `/etc/localtime' are the same file

Command output: . 
Exit value: 1 at /usr/share/perl5/Error.pm line 182
	Error::throw('EBox::Exceptions::Sudo::Command', 'cmd', 'cp -f /usr/share/zoneinfo/America/New_York /etc/localtime', 'output', 'ARRAY(0xbd7c6598)', 'error', 'ARRAY(0xb8f32088)', 'exitValue', 1, ...) called at /usr/share/perl5/EBox/Sudo.pm line 213
	EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/SyNuJn4EpH.cmd 2>...', 'cp -f /usr/share/zoneinfo/America/New_York /etc/localtime', 256, 'ARRAY(0xbd7c6598)', 'ARRAY(0xb8f32088)') called at /usr/share/perl5/EBox/Sudo.pm line 182
	EBox::Sudo::_root(1, 'cp -f /usr/share/zoneinfo/America/New_York /etc/localtime') called at /usr/share/perl5/EBox/Sudo.pm line 136
	EBox::Sudo::root('cp -f /usr/share/zoneinfo/America/New_York /etc/localtime') called at /usr/share/perl5/EBox/SysInfo.pm line 336
	EBox::SysInfo::setNewTimeZone('EBox::SysInfo=HASH(0xbc3f88f0)', 'America', 'New_York') called at /usr/share/perl5/EBox/CGI/SysInfo/ChangeTimeZone.pm line 48
	EBox::CGI::SysInfo::ChangeTimeZone::_process('EBox::CGI::SysInfo::ChangeTimeZone=HASH(0xbd7ca030)') called at /usr/share/perl5/EBox/CGI/Base.pm line 275
	EBox::CGI::Base::run('EBox::CGI::SysInfo::ChangeTimeZone=HASH(0xbd7ca030)') called at /usr/share/perl5/EBox/CGI/Run.pm line 129
	EBox::CGI::Run::run('EBox::CGI::Run', 'SysInfo/ChangeTimeZone', 'EBox') called at /usr/share/zentyal/cgi/ebox.cgi line 34
	ModPerl::ROOT::ModPerl::Registry::usr_share_zentyal_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xbd7d5818)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
	eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
	ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0xbd7d57d8)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
	ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xbd7d57d8)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
	ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xbd7d5818)') called at -e line 0
	eval {...} called at -e line 0

Attachments

zentyal.log Download (33.9 KB) - added by anonymous 10 months ago.
zentyal.log
software.log Download (3.0 KB) - added by anonymous 10 months ago.
software.log

Change History

Changed 10 months ago by anonymous

zentyal.log

Changed 10 months ago by anonymous

software.log

comment:1 Changed 10 months ago by jamor@…

  • Status changed from new to accepted
  • Description modified (diff)
  • Summary changed from Bug report from Zentyal Server to When changing timezone: cp: `/usr/share/zoneinfo/America/New_York' and `/etc/localtime' are the same file

comment:2 Changed 10 months ago by jamor@…

  • Status changed from accepted to closed
  • Resolution set to worksforme

Hello Privremon,

I think is a problem of tour system, you have a link in /etc/loclatime instead of a regular file. Execute this commands, to make it a regular file, and try again:

sudo rm /etc/localtime
sudo cp -f /usr/share/zoneinfo/America/New_York /etc/localtime

Regards,

Javier

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.