question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Thumbor 6.7.3 breaks on Debian 10 and Ubuntu 18.04

See original GitHub issue

Behaviour

After running pip install thumbor and starting Thumbor 6.7.3, there are a lot of warnings about filters that can’t be used:

root@static:~# thumbor
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.brightness could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_brightness.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.colorize could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_colorize.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.contrast could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_contrast.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.rgb could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_rgb.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.round_corner could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_round_corner.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.noise could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_noise.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.watermark could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_alpha.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.equalize could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_equalize.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.fill could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_fill.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.sharpen could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_sharpen.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.frame could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_nine_patch.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.convolution could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_convolution.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.blur could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_convolution.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.saturation could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_saturation.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.curve could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_curve.so)
2020-03-06 18:07:57 thumbor:WARNING Error importing bounding_box filter, trimming won't work

When doing pip install thumbor==6.7.2 on exactly the same system the warnings go away.

root@static:~# thumbor
2020-03-06 18:07:10 thumbor:WARNING Error importing bounding_box filter, trimming won't work

Operating system

Debian 10 and Ubuntu 18.04

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
heynemanncommented, Mar 9, 2020

I think I found the culprit. Can you please try with: pip install https://github.com/thumbor/thumbor/archive/fixes/6.7.x.zip

0reactions
yjwongcommented, Jun 9, 2020

Ran into the last warning; thumbor:WARNING Error importing bounding_box filter, trimming won't work. Upon closer look, it seems like there’s a relocation error related to color_distance (this is in Alpine Linux):

/thumbor-6.7.5 # ldd /usr/lib/python2.7/site-packages/thumbor-6.7.5-py2.7-linux-x86_64.egg/thumbor/ext/filters/_bounding_box.so 
	/lib/ld-musl-x86_64.so.1 (0x7f1373895000)
	libpython2.7.so.1.0 => /usr/lib/libpython2.7.so.1.0 (0x7f13736ea000)
	libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7f1373895000)
Error relocating /usr/lib/python2.7/site-packages/thumbor-6.7.5-py2.7-linux-x86_64.egg/thumbor/ext/filters/_bounding_box.so: color_distance: symbol not found

I’m not terribly proficient with C at this point, but removing the inline specifier in thumbor/ext/filters/_bounding_box.c solves the problem (probably at the expense of performance?).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes — Thumbor 6.7.2 documentation
This version contains breaking changes. Both GraphicsMagick and OpenCV engines were removed from the built-in imaging engines and can be found in the ......
Read more >
Image Layer Details - minimalcompact/thumbor:6.7.5
minimalcompact/thumbor:6.7.5 ... linux/amd64. Compressed Size. 814.49 MB. Last pushed. a year ago by micomp ... 10. /bin/sh -c apt-get update &&.
Read more >
thumbor is an open-source photo thumbnail service by globo.com ...
Thumbor installation on Ubuntu Server Tests on Windows 10 & macOS Catalina ... First let's see what breaks (apart from not supporting python...
Read more >
thumbor is an open-source photo thumbnail service by globo ...
We are experiencing memory usage explosion on Ubuntu 14.04.1 LTS with Thumbor v6.0.1 and Pillow 3.2.0. Our memory usage can hit ~97%.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found