Closed matthewdarwin closed 2 years ago
DMS does not use real checksums. We had to implement the "arbitrary" scheme.... where it's just a random number they picked. the sumalgo plugin a did not work means you are running an older version that does not support the "a" (arbitrary) checksum scheme.
Met_Notes are a DMS product, as are SWOB... and CAP...
in case you are asking... doesn't this make checksums pointless? yes... yes it does... wasn't my idea.
2.17 is really old... there is 2.22 available... (the second digit is the two-digit year, so 2.17 is about five years old.)
Well there was no reason to upgrade before. And the announcement about this new data feed didn't say there was a specific version required.
Tried 2.22.06~ubuntu20.04.1
, and AMQP won't connect.
AMQP cannot connect to hpfx.collab.science.gc.ca with [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)
Need to figure out why.
sigh... we are having problems with keeping our SSL certs uptodate... itś likely expired. for a day or two:
tls_rigour lax
should let modern versions connect.
That option doesn't seem to do anything.
I changed /usr/lib/python3/dist-packages/amqp/transport.py line 440 to provide the O/S certificates file.
ca_certs='/etc/ssl/certs/ca-certificates.crt', do_handshake_on_connect=False,
Which seems to get us further. New error:
sr_amqp/build could not declare queue q_anonymous.sr_subscribe.dd4-hpfx.my-hostname-here (anonymous@hpfx.collab.science.gc.ca) with Queue.declare: (406) PRECONDITION_FAILED - inequivalent arg 'durable' for queue 'q_anonymous.sr_subscribe.dd4-hpfx.my-hostname-here' in vhost '/': received 'true' but current is 'false'
I change the config file name, so now I get
sramqp/build could not declare queue q.sr_subscribe.dd4-hpfx3.my-hostname-here (anonymous@hpfx.collab.science.gc.ca) with Queue.declare: (403) ACCESSREFUSED - access to queue 'q.sr_subscribe.dd4-hpfx3.my-hostname-here in vhost '/' refused for user 'anonymous'
in 2.17 the default durable setting was False ( queues are discarded when broker restarts) which we decided was bad, so the default was changed to True. This happenned in late 2018. If you have an old queue, they won't match. You can:
Durable=True is better.
I just checked the certificate for hpfx.collab.science.gc.ca and it looks fine. I don't know what your original problem was, it should be ok with just stock settings.
Thanks for all the help. I'm waiting for a metnote to be published so I can see if the data feed is working.
metnote download successful.
What is the sumalgo plugin, why doesn't it work and why is it used for the new "metnote" data? I'm using this:
Also if I run an
md5sum
on the file, I get a different value:error log: