GitHub user lhotari added a comment to the discussion: Can't get python function zip to load
@Sammyjroberts This is the source code: https://github.com/apache/pulsar/blob/187e0cf5708b358b844a8b3575ae6e350a39238b/pulsar-functions/instance/src/main/python/python_instance_main.py#L198-L231 . One way to debug the issue would be to start Pulsar Standalone in docker: 1. Run Pulsar Standalone in docker as root user so that files can be modified ``` docker run --rm -it --user 0:0 --name pulsar-standalone -e PULSAR_STANDALONE_USE_ZOOKEEPER=1 -p 8080:8080 -p 6650:6650 apachepulsar/pulsar:latest /pulsar/bin/pulsar standalone ``` 2. Then create the function to standalone 3. Then check the problem ``` docker exec -it pulsar-standalone bash ``` I guess you might have already something similar. When running as root user, you could modify the `/pulsar/instances/python-instance/python_instance_main.py` with `vi` to add more logging with `print` for observing the problem. You can find logs under `/pulsar/logs/functions` directory. GitHub link: https://github.com/apache/pulsar/discussions/24287#discussioncomment-13145643 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
