How do I upgrade to last version on Ubuntu 14.04 using apt-get?

Asked by Leonid

I have Graphite 0.9.12 installed via apt-get on Ubuntu 14.04. System is suffering from UnpicklingError's (https://github.com/graphite-project/graphite-web/issues/608) which make usage of carbon cache problematic and leads to missing latest datapoints on the graphs (http://librelist.com/browser//graphite/2014/4/6/reason-for-latest-datapoints-are-missing-from-graphs/#ed4c8138db92cfd2feaf08918b270275). So I want to upgrade to latest version with UnpicklingError bug fixed. But it looks like that there is no newer versions in Ubuntu 14.04 repositories. I also tried upgrate using pip with no success. Pip doesn't `see` package installed with apt-get and install new graphite in another folder.

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Piotr Popieluch (piotr1212) said :
#1

If you want to keep using the system packages you should create a bug report there, in this case on the ubuntu bug tracker. You could ask to patch your issue or to update the package to a newer version. Please note that OS policies try to keep stable versions in a OS release and don't allow package maintainers to just update to every new release. I'm not familiar with Ubuntu policies... You might need to update to a newer Ubuntu version.

Otherwise you could install carbon manually as described here:
https://graphite.readthedocs.org/en/0.9.15/install.html

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

It seems that there is no newer package available for trusty.
Backporting the package for a higher Ubuntu version would require backporting several other packages first because of dependencies.

Maybe just cherrypicking the related bugfix can serve as a workaround

edit /usr/lib/python2.7/dist-packages/graphite/util.py and motify the two occurrences of the assignment of PICKLE_SAFE to the contents as shown in https://github.com/graphite-project/graphite-web/blob/fe04c9e64d53057877a25cbc78edd70dc8127759/webapp/graphite/util.py#L161-L167
You have to make sure that you use the same indentation as done in the other lines of your source.

(Remark: Not tried myself, I am not using graphite, do this on your own risk.)

Can you help with this problem?

Provide an answer of your own, or ask Leonid for more information if necessary.

To post a message you must log in.