Error starting "bashlib-worker"
joschrew opened this issue · comments
I tried to start a worker with bashlib (ocrd-olena) with this command (docker-compose): ocrd-olena-binarize worker --database $MONGODB_URL --queue $RABBITMQ_URL
and I get /build/core/ocrd/ocrd/lib.bash: line 172: ocrd__argv[log_filename]: unbound variable
.
Then I tried ocrd-olena-binarize worker --database $MONGODB_URL --queue $RABBITMQ_URL --logfile-name something.log
and then I get:
Usage: ocrd network processing-worker [OPTIONS] PROCESSOR_NAME
Try 'ocrd network processing-worker --help' for help.
Error: No such option: --log-filename
I would just remove the --logfile-name
thing from lib.bash again which was introduced here
but I don't know if that was put there with something in mind.
That change was forgotten there with all the refactoring that was going around with the logging.
I would just remove the
--logfile-name
thing from lib.bash again
Does it fix the issue if you remove that? We do not use that with the deployer anymore.
EDIT: I was able to reproduce. Simply removing it fixes the issue.
#1120 fixes it.