Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trollstalker seems to do nothing in current main #149

Open
gerritholl opened this issue Dec 5, 2023 · 2 comments
Open

trollstalker seems to do nothing in current main #149

gerritholl opened this issue Dec 5, 2023 · 2 comments

Comments

@gerritholl
Copy link
Contributor

gerritholl commented Dec 5, 2023

Starting with 2b0ec74, 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
Copy link
Contributor Author

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
Copy link
Member

pnuu commented Dec 7, 2023

It could be there's a similar update needed that was done in Trollflow2 in pytroll/trollflow2#191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants