NOAA-GSL / VxIngest

Other
2 stars 0 forks source link

Make main.py work with new credentials file #344

Closed randytpierce closed 4 months ago

randytpierce commented 4 months ago

The credentials files now require a host protocol i.e. "cb_host: couchbase://adb-cb1.gsd.esrl.noaa.gov". Apparently I missed a change in main.py ....

try:
            cluster = Cluster(
                f"couchbase://{creds['cb_host']}",
                ClusterOptions(auth, timeout_options=timeout_config),  # type: ignore
            )
            break
        except CouchbaseException as _e:
            time.sleep(5)
            _attempts = _attempts + 1

needs to be

        try:
            cluster = Cluster(
                f"{creds['cb_host']}",
                ClusterOptions(auth, timeout_options=timeout_config),  # type: ignore
            )
            break
        except CouchbaseException as _e:
            time.sleep(5)
            _attempts = _attempts + 1

The other places in VxIngest were already fixed, just this one got missed. The symptom was that the docker ingest containerized processes on ascend-test2 were failing with a connection error. No data has been processed since March 1st.

randytpierce commented 4 months ago

made change and pushed it, intend to merge this change so that data can continue processing.