Cannot use Email email plugin SMTP sensor on docker #5655
Unanswered
guo3561101
asked this question in
Operations
Replies: 1 comment
-
Try adding the full config stack and see if that affects it. Possibly related, may not be. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I use email plugin SMTP Sensor on docker, my version is Python3.8, I see the following error in the log
/opt/stackstorm/st2/bin/st2sensorcontainer --config-file=/etc/st2/st2.docker.conf --sensor-ref=email.SMTPSensor
`2022-05-30 08:35:59,937 INFO [-] Using Python: 3.8.10 (/opt/stackstorm/st2/bin/python)
2022-05-30 08:35:59,937 INFO [-] Using fs encoding: utf-8, default encoding: utf-8, locale: en_US.UTF-8, LANG env variable: en_US.UTF-8, PYTHONIOENCODING env variable: notset
2022-05-30 08:35:59,937 INFO [-] Using config files: /etc/st2/st2.docker.conf
2022-05-30 08:35:59,937 INFO [-] Using logging config: /etc/st2/logging.sensorcontainer.conf
2022-05-30 08:35:59,937 INFO [-] Using coordination driver: redis
2022-05-30 08:35:59,937 INFO [-] Using metrics driver: noop
2022-05-30 08:35:59,947 INFO [-] Connecting to database "st2" @ "mongo:27017" as user "None".
2022-05-30 08:35:59,955 INFO [-] Successfully connected to database "st2" @ "mongo:27017" as user "None".
2022-05-30 08:36:00,122 INFO [-] Running in single sensor mode, using a single sensor partitioner...
2022-05-30 08:36:00,124 INFO [-] Setting up container to run 1 sensors.
2022-05-30 08:36:00,124 INFO [-] Sensors list - ['email.SMTPSensor'].
2022-05-30 08:36:00,124 INFO [-] (PID:4179) SensorContainer started.
2022-05-30 08:36:00,124 INFO [-] Running sensor email.SMTPSensor
2022-05-30 08:36:00,148 INFO [-] Connected to amqp://guest:**@rabbitmq:5672//
2022-05-30 08:36:00,156 INFO [-] Sensor email.SMTPSensor started
2022-05-30 08:36:00,785 INFO [-] Found config for sensor "SMTPSensor"
2022-05-30 08:36:00,785 INFO [-] Watcher started
2022-05-30 08:36:00,785 INFO [-] Running sensor initialization code
2022-05-30 08:36:00,785 ERROR [-] Traceback (most recent call last):
2022-05-30 08:36:00,785 ERROR [-] File "/opt/stackstorm/st2/lib/python3.8/site-packages/st2reactor/container/sensor_wrapper.py", line 449, in
2022-05-30 08:36:00,785 ERROR [-]
2022-05-30 08:36:00,785 ERROR [-] obj.run()
2022-05-30 08:36:00,785 ERROR [-]
2022-05-30 08:36:00,785 ERROR [-] File "/opt/stackstorm/st2/lib/python3.8/site-packages/st2reactor/container/sensor_wrapper.py", line 273, in run
2022-05-30 08:36:00,786 ERROR [-]
2022-05-30 08:36:00,786 ERROR [-] self._sensor_instance.setup()
2022-05-30 08:36:00,786 ERROR [-]
2022-05-30 08:36:00,786 ERROR [-] File "/opt/stackstorm/packs/email/sensors/smtp_sensor.py", line 33, in setup
2022-05-30 08:36:00,786 ERROR [-]
2022-05-30 08:36:00,786 ERROR [-] self._server = St2SMTPServer(localaddr=(self._listen_ip, self._listen_port),
2022-05-30 08:36:00,786 ERROR [-]
2022-05-30 08:36:00,786 ERROR [-] File "/opt/stackstorm/packs/email/sensors/smtp_sensor.py", line 58, in init
2022-05-30 08:36:00,786 ERROR [-]
2022-05-30 08:36:00,786 ERROR [-] smtpd.SMTPServer.init(self, localaddr, remoteaddr) # pylint: disable=no-member
2022-05-30 08:36:00,786 ERROR [-]
2022-05-30 08:36:00,786 ERROR [-] File "/usr/lib/python3.8/smtpd.py", line 645, in init
2022-05-30 08:36:00,786 ERROR [-]
2022-05-30 08:36:00,786 ERROR [-] gai_results = socket.getaddrinfo(*localaddr,
2022-05-30 08:36:00,786 ERROR [-]
2022-05-30 08:36:00,786 ERROR [-] TypeError
2022-05-30 08:36:00,787 ERROR [-] :
2022-05-30 08:36:00,787 ERROR [-] getaddrinfo() got an unexpected keyword argument 'type'
2022-05-30 08:36:00,787 ERROR [-]
`
Beta Was this translation helpful? Give feedback.
All reactions