celery-exporter icon indicating copy to clipboard operation
celery-exporter copied to clipboard

Segmentation fault using the binary

Open rednaks opened this issue 2 years ago • 8 comments

Hello, I tried to execute the celery-exporter binary and I get a Segmentation fault ...

Perhaps pip install like is better than distributing a PyInstaller binaries ?

rednaks avatar Jun 23 '22 20:06 rednaks

Can you reproduce this in a Docker container so I can debug the issue?

danihodovic avatar Jun 23 '22 20:06 danihodovic

Possibly fixed in https://github.com/danihodovic/celery-exporter/pull/132

Try the latest release https://github.com/danihodovic/celery-exporter/releases/tag/latest

danihodovic avatar Jun 30 '22 11:06 danihodovic

yes, no more segmentation fault but I have an other error :

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
cli.py 5 <module>


core.py 1128 __call__


core.py 1053 main


core.py 1395 invoke


core.py 754 invoke


cli.py 68 cli


exporter.py 196 run


base.py 291 __init__


base.py 291 <listcomp>


imports.py 56 symbol_by_name


__init__.py 127 import_module


<frozen importlib._bootstrap> 1030 _gcd_import


<frozen importlib._bootstrap> 1007 _find_and_load


<frozen importlib._bootstrap> 972 _find_and_load_unlocked


<frozen importlib._bootstrap> 228 _call_with_frames_removed


<frozen importlib._bootstrap> 1030 _gcd_import


<frozen importlib._bootstrap> 1007 _find_and_load


<frozen importlib._bootstrap> 984 _find_and_load_unlocked


ModuleNotFoundError:
No module named 'celery.fixups'
[4371] Failed to execute script cli

rednaks avatar Jun 30 '22 12:06 rednaks

Can you try the new release https://github.com/danihodovic/celery-exporter/releases/tag/latest ?

danihodovic avatar Jun 30 '22 13:06 danihodovic

looks like it's still missing dependencies ...

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
cli.py 5 <module>


core.py 1128 __call__


core.py 1053 main


core.py 1395 invoke


core.py 754 invoke


cli.py 68 cli


exporter.py 240 run


base.py 851 connection


base.py 816 connection_for_write


base.py 867 _connection


connection.py 181 __init__


__init__.py 85 get_transport_cls


__init__.py 70 resolve_transport


imports.py 56 symbol_by_name


__init__.py 127 import_module


<frozen importlib._bootstrap> 1030 _gcd_import


<frozen importlib._bootstrap> 1007 _find_and_load


<frozen importlib._bootstrap> 984 _find_and_load_unlocked


ModuleNotFoundError:
No module named 'kombu.transport.pyamqp'
[17308] Failed to execute script cli

rednaks avatar Jun 30 '22 13:06 rednaks

:scream: I'll have a look at this when I have more time. Alternatively you can add the missing deps here and try to build the image https://github.com/danihodovic/celery-exporter/blob/master/Dockerfile.pyinstaller#L17-L24

docker build . -t celery-exporter-builder -f Dockerfile.pyinstaller --build-arg PYTHON_VERSION=$(cat .python-version)
container=$(docker run --rm -d celery-exporter-builder sleep 5) && docker cp $container:/app/dist/celery-exporter celery-exporter
./celery-exporter --broker-url=redis://localhost:6379

danihodovic avatar Jun 30 '22 13:06 danihodovic

I don't have docker on my dev machine, but I'll try to look at this later

rednaks avatar Jun 30 '22 13:06 rednaks

Hello, any news about binary generation linked to:

ModuleNotFoundError:
No module named 'kombu.transport.pyamqp'
[17308] Failed to execute script cli

If you could point me what I have to change I could do a PR.

Thanks

lmazardo avatar Aug 18 '23 14:08 lmazardo