Skip to content

Commit 46adb9c

Browse files
committed
Update Watchdog package to v5.0.0 (idaholab#550)
1 parent f72d1bd commit 46adb9c

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

Dockerfiles/arkime.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ RUN export DEBARCH=$(dpkg --print-architecture) && \
148148
mkdir -p "${ARKIME_DIR}"/plugins && \
149149
curl -fsSL -o "${ARKIME_DIR}/plugins/ja4plus.${DEBARCH}.so" "$(echo "${ARKIME_JA4_SO_URL}" | sed "s/XXX/${DEBARCH}/g")" && \
150150
chmod 755 "${ARKIME_DIR}/plugins/ja4plus.${DEBARCH}.so" && \
151-
python3 -m pip install --break-system-packages --no-compile --no-cache-dir beautifulsoup4 pyzmq watchdog==4.0.2 && \
151+
python3 -m pip install --break-system-packages --no-compile --no-cache-dir beautifulsoup4 pyzmq watchdog==5.0.0 && \
152152
ln -sfr $ARKIME_DIR/bin/npm /usr/local/bin/npm && \
153153
ln -sfr $ARKIME_DIR/bin/node /usr/local/bin/node && \
154154
ln -sfr $ARKIME_DIR/bin/npx /usr/local/bin/npx && \

Dockerfiles/file-monitor.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ RUN export BINARCH=$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
159159
python-magic \
160160
stream-zip \
161161
supervisor \
162-
watchdog==4.0.2 \
162+
watchdog==5.0.0 \
163163
yara-python && \
164164
curl -fsSL -o /usr/local/bin/supercronic "${SUPERCRONIC_URL}${BINARCH}" && \
165165
chmod +x /usr/local/bin/supercronic && \

Dockerfiles/filebeat.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ RUN export EVTXARCH=$(uname -m | sed 's/arm64/aarch64/') && \
101101
unar \
102102
unzip \
103103
xz-utils && \
104-
python3 -m pip install --no-compile --no-cache-dir patool entrypoint2 pyunpack python-magic ordered-set supervisor watchdog==4.0.2 && \
104+
python3 -m pip install --no-compile --no-cache-dir patool entrypoint2 pyunpack python-magic ordered-set supervisor watchdog==5.0.0 && \
105105
curl -fsSL -o /usr/local/bin/supercronic "${SUPERCRONIC_URL}${BINARCH}" && \
106106
chmod +x /usr/local/bin/supercronic && \
107107
curl -fsSL -o /usr/local/bin/yq "${YQ_URL}${BINARCH}" && \

Dockerfiles/pcap-monitor.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ RUN apt-get -q update && \
6868
python-magic \
6969
pyzmq \
7070
requests \
71-
watchdog==4.0.2 && \
71+
watchdog==5.0.0 && \
7272
groupadd --gid ${DEFAULT_GID} ${PGROUP} && \
7373
useradd -M --uid ${DEFAULT_UID} --gid ${DEFAULT_GID} ${PUSER}
7474

Dockerfiles/suricata.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ RUN export BINARCH=$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
108108
apt-get install -q -y --no-install-recommends -t bookworm-backports \
109109
suricata=${SURICATA_VERSION_PATTERN} \
110110
suricata-update && \
111-
python3 -m pip install --break-system-packages --no-compile --no-cache-dir watchdog==4.0.2 && \
111+
python3 -m pip install --break-system-packages --no-compile --no-cache-dir watchdog==5.0.0 && \
112112
curl -fsSL -o /usr/local/bin/supercronic "${SUPERCRONIC_URL}${BINARCH}" && \
113113
chmod +x /usr/local/bin/supercronic && \
114114
curl -fsSL -o /usr/bin/yq "${YQ_URL}${BINARCH}" && \

hedgehog-iso/config/hooks/normal/0169-pip-installs.hook.chroot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ pip3 install --break-system-packages --no-compile --no-cache-dir --force-reinsta
2020
stix2 \
2121
stream-zip \
2222
taxii2-client \
23-
watchdog==4.0.2
23+
watchdog==5.0.0

shared/bin/pcap_watcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
from watchdog.observers import Observer
4848
from watchdog.observers.polling import PollingObserver
49-
from watchdog.utils import WatchdogShutdown
49+
from watchdog.utils import WatchdogShutdownError
5050

5151
###################################################################################################
5252
MINIMUM_CHECKED_FILE_SIZE_DEFAULT = 24
@@ -564,9 +564,9 @@ def main():
564564
logging.info(f"{scriptName}:\tshutting down...")
565565

566566
if shuttingDown[0]:
567-
raise WatchdogShutdown()
567+
raise WatchdogShutdownError()
568568

569-
except WatchdogShutdown:
569+
except WatchdogShutdownError:
570570
observer.unschedule_all()
571571

572572
finally:

shared/bin/watch_common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
from multiprocessing.pool import ThreadPool
2222
from threading import get_native_id
23-
from watchdog.utils import WatchdogShutdown
23+
from watchdog.utils import WatchdogShutdownError
2424
from watchdog.observers import Observer
2525
from watchdog.observers.polling import PollingObserver
2626
from collections import namedtuple, defaultdict, OrderedDict
@@ -327,9 +327,9 @@ def WatchAndProcessDirectory(
327327
observer.join(1)
328328

329329
if shuttingDown[0]:
330-
raise WatchdogShutdown()
330+
raise WatchdogShutdownError()
331331

332-
except WatchdogShutdown:
332+
except WatchdogShutdownError:
333333
observer.unschedule_all()
334334

335335
finally:

shared/bin/zeek_carve_watcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from multiprocessing.pool import ThreadPool
2525
from watchdog.observers import Observer
2626
from watchdog.observers.polling import PollingObserver
27-
from watchdog.utils import WatchdogShutdown
27+
from watchdog.utils import WatchdogShutdownError
2828

2929
from zeek_carve_utils import (
3030
CAPA_VIV_MIME,
@@ -320,9 +320,9 @@ def main():
320320
logging.info(f"{scriptName}:\tshutting down...")
321321

322322
if shuttingDown[0]:
323-
raise WatchdogShutdown()
323+
raise WatchdogShutdownError()
324324

325-
except WatchdogShutdown:
325+
except WatchdogShutdownError:
326326
observer.unschedule_all()
327327

328328
finally:

0 commit comments

Comments
 (0)