pytroll / pytroll-collectors

Collector modules for Pytroll
GNU General Public License v3.0
3 stars 18 forks source link

trollstalker seems to do nothing in current main #149

Open gerritholl opened 9 months ago

gerritholl commented 9 months ago

Starting with 2b0ec74cee641cb8c81ba10a77a11503360a604e, which was merged with #141, trollstalker appears to do nothing at all.

With my trollstalker configuration, starting trollstalker with trollstalker.py -c /tmp/trollstalker.ini -C msg-seviri-iodc -n localhost with commits older than 2b0ec74, I get

Setting timezone to UTC
[DEBUG: 2023-12-05 13:58:52,784: trollstalker] Logger started

followed by messages related to files that are arriving. With newer versions, I simply get

Setting timezone to UTC

and then nothing.

The trollstalker configuration is:

[msg-seviri-iodc]
topic = /file/msg/seviri/iodc
directory = /data/pytroll/IN/HRIT/
instruments = seviri
alias_platform_name = MSG1:Meteosat-8|MSG2:Meteosat-9
filepattern = {path}H-000-{orig_platform_name:4s}__-{platform_name:4s}_IODC___-{channel_name:_<9s}-{segment:_<9s}-{start_time:%Y%m%d%H%M}-{compression:1s}_
var_gatherer_time = {start_time:%Y%m%d%H%M%S|align(15,0,0)}
stalker_log_config = /tmp/trollstalker_logging.ini
event_names = IN_MOVED_TO
# Port to send the posttroll messages to, optional so use "0" to take a random free port:
posttroll_port = 0
nameservers = localhost

with the logging configuration

[loggers]
keys=root,trollstalker

[handlers]
keys=consoleHandler,fileHandler

[formatters]
keys=simpleFormatter

[logger_root]
level=DEBUG
handlers=consoleHandler,fileHandler

[logger_trollstalker]
level=DEBUG
handlers=consoleHandler,fileHandler
qualname=trollstalker
propagate=0

[handler_consoleHandler]
class=StreamHandler
level=DEBUG
formatter=simpleFormatter
args=(sys.stdout,)

[handler_fileHandler]
class=handlers.TimedRotatingFileHandler
level=DEBUG
formatter=simpleFormatter
args=("/opt/pytroll/pytroll_inst/log/trollstalker.log", 'midnight', 1, 7, None, True, True)

[formatter_simpleFormatter]
format=[%(levelname)s: %(asctime)s: %(name)s] %(message)s
datefmt=
gerritholl commented 9 months ago

I checked the segment-gatherer that is listening to those messages, and it's not only a logging issue. The segment-gatherer is not receiving messages either, so it seems trollstalker is really not sending anything.

pnuu commented 9 months ago

It could be there's a similar update needed that was done in Trollflow2 in https://github.com/pytroll/trollflow2/pull/191