Hi Zhang,
I tried yesterday setting LOCAL_TIMEZONE in libs/setting.py file and I get in "internal server error" when I try to sent mail in iredadmin GUI and below is the log reported in apache. I have also attached settings.py file.
[Tue Jan 24 02:37:12 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jan 24 02:37:32 2012] [error] [client 92.20.123.223] File does not exist: /var/www/html/favicon.ico
[Tue Jan 24 02:38:00 2012] [error] [client 92.20.123.223] File does not exist: /var/www/html/favicon.ico
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] Traceback (most recent call last):
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/usr/lib/python2.4/site-packages/web/application.py", line 241, in process
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] return self.handle()
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/usr/lib/python2.4/site-packages/web/application.py", line 232, in handle
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] return self._delegate(fn, self.fvars, args)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/usr/lib/python2.4/site-packages/web/application.py", line 411, in _delegate
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] return handle_class(cls)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/usr/lib/python2.4/site-packages/web/application.py", line 386, in handle_class
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] return tocall(*args)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/var/www/iredadmin/controllers/base.py", line 40, in proxyfunc
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] return func(self, *args, **kw)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/var/www/iredadmin/controllers/amavisd/log.py", line 36, in GET
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] msg=web.input().get('msg'),
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/var/www/iredadmin/libs/iredbase.py", line 195, in render_template
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] return jinja_env.get_template(template_name).render(context)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/usr/lib/python2.4/site-packages/jinja2/environment.py", line 669, in render
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] return self.environment.handle_exception(exc_info, True)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/var/www/iredadmin/libs/../templates/default/amavisd/inout.html", line 15, in top-level template code
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] {% from "macros/msgHandlers.html" import maillogMsgHandler with context %}
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/var/www/iredadmin/libs/../templates/default/layout.html", line 125, in top-level template code
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] {% block main %}{% endblock %}
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/var/www/iredadmin/libs/../templates/default/amavisd/inout.html", line 145, in block "main"
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] <td style="white-space: nowrap;">{{ r.size |filesizeformat |e }}</td>
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/var/www/iredadmin/libs/ireddate.py", line 214, in convert_utc_to_timezone
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] return to_datetime_with_tzinfo(t, tzinfo=LOCAL_TIMEZONE).strftime(format)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/var/www/iredadmin/libs/ireddate.py", line 179, in to_datetime_with_tzinfo
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] tz = pick_timezone(tzinfo, __timezone__)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/var/www/iredadmin/libs/ireddate.py", line 153, in pick_timezone
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] tz = timezone(x)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] File "/var/www/iredadmin/libs/ireddate.py", line 144, in timezone
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] raise DateError, "Can't find tzname %s" % tzname
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] DateError: Can't find tzname GMT+5:45
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]
[Tue Jan 24 02:38:03 2012] [error] [client 92.20.123.223] File does not exist: /var/www/html/favicon.ico
ZhangHuangbin wrote:Hi Bikrish,
As mentioned in step 6), you HAVE TO update LOCAL_TIMEZONE with new format.
ZhangHuangbin wrote:6) Update LOCAL_TIMEZONE in libs/settings.py, you must set timezone in correct timezone format. iRedAdmin has all available timezones listed above LOCAL_TIMEZONE setting. Attached below for your reference.
It says "Can't find tzname GMT+5", which should be set to "GMT+05:00" in libs/settings.py. As mentioned in your previous email, you want 'GMT+05:45' instead, right? Then it should be:
LOCAL_TIMEZONE = 'GMT+05:45'
Note: In new version of iRedAdmin-Pro, incorrect timezone value will be ignored, and GMT+00:00 will be used instead.
Post's attachmentssettings.py 6.1 kb, 5 downloads since 2012-01-23
You don't have the permssions to download the attachments of this post.