/render always return error 500 on solaris
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Graphite |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The root cause is because timezone directory is not /usr/share/zoneinfo but /usr/share/
# here the fix for webapp/
*** proto/opt/
--- patches/
***************
*** 55,61 ****
for part in name_parts:
if part == os.path.pardir or os.path.sep in part:
raise ValueError('Bad path segment: %r' % part)
! filename = os.path.
return open(filename, 'rb')
--- 55,64 ----
for part in name_parts:
if part == os.path.pardir or os.path.sep in part:
raise ValueError('Bad path segment: %r' % part)
! if os.uname()[0] == 'SunOS' and os.uname()[2] == '5.11':
! filename = os.path.
! else:
! filename = os.path.
return open(filename, 'rb')
Changed in graphite: | |
milestone: | none → 0.9.10 |
status: | Fix Committed → Fix Released |
Pytz is normally shipped with Olson tzdata, but in this case the bundled version has been modified to instead read from the system tzdata.it
Graphite actually first tries to import pytz from the Python path, so if you were to install pytz using pip (or some other means) it would resolve this. In any case, I have added a check to search /usr/share/ lib/zoneinfo as well as /usr/share/zoneinfo so that the bundled version works for Solaris as well.