Перейти к содержимому


Фото
* * * * * 1 Голосов

dr web mail servers и communigate


  • Please log in to reply
49 ответов в этой теме

#41 vsevlo

vsevlo

    Newbie

  • Posters
  • 32 Сообщений:

Отправлено 22 Июнь 2023 - 13:34

 

С версией плагина разобрался, путь прописан был до старого плагина.
Но A problem with CgpDrweb_AS_AV helper. reading failed так и висит, в логах записей никаких.

Подскажите а какая команда запуска плагина прописана у вас в меню Settings > General > Helpers ?

 

/opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py -r 127.0.0.1:7777 --debug



#42 e.zaichenko

e.zaichenko

    Newbie

  • Dr.Web Staff
  • 9 Сообщений:

Отправлено 22 Июнь 2023 - 14:58

1. Просьба отключить/включить этот хелпер /opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py -r 127.0.0.1:7777 --debug. После включения появилась ли в интерфейсе ошибка?
2. Предоставить фрагмент лога tail -F /var/CommuniGate/DrWebPlugin/Logs/drweb-plugin.log, в тот момент, когда отключаете/включаете хелпер, а так же лог от сюда /var/CommuniGate/SystemLogs

3. Просьба так же прислать вывод drweb-ctl cfshow | grep MailD.RspamdHttpSocket

 

Если включены другие хелперы, просьба их выключить на момент воспроизведения.



#43 vsevlo

vsevlo

    Newbie

  • Posters
  • 32 Сообщений:

Отправлено 22 Июнь 2023 - 15:23

1. A problem with CgpDrweb_AS_AV helper. reading failed все так же
2.

tail -F /var/CommuniGate/DrWebPlugin/Logs/drweb-plugin.log
2023-06-21 10:37:24,078 (root) DrWeb CommuniGate plugin version 11.1.4.2204261223 (python: 3.6.15) started with args: base_dir=/var/CommuniGate, plugin_directory=/var/CommuniGate/DrWebPlugin, rspamd_request_timeout=120, debug=False
2023-06-21 10:37:24,165 (root) Rspamd connection type not set. Use --help to view rspamd connection types.
2023-06-21 10:41:23,555 (root) DrWeb CommuniGate plugin version 11.1.4.2204261223 (python: 3.6.15) started with args: base_dir=/var/CommuniGate, plugin_directory=/var/CommuniGate/DrWebPlugin, rspamd_request_timeout=120, debug=False
2023-06-21 10:41:23,555 (root) Rspamd connection type not set. Use --help to view rspamd connection types.
2023-06-21 10:46:27,864 (root) DrWeb CommuniGate plugin version 11.1.4.2204261223 (python: 3.6.15) started with args: base_dir=/var/CommuniGate, plugin_directory=/var/CommuniGate/DrWebPlugin, rspamd_request_timeout=120, debug=False
2023-06-21 10:46:27,865 (root) Rspamd connection type not set. Use --help to view rspamd connection types.

не пишет ничего.
 

15:16:39.486 2 EXTFILTER(CgpDrweb_AS_AV) program '/opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py -r 127.0.0.1:7777 --debug' released
15:16:39.486 2 EXTFILTER(CgpDrweb_AS_AV) program(/opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py -r 127.0.0.1:7777 --debug) set
15:16:39.486 2 EXTFILTER(CgpDrweb_AS_AV) receiver started
15:16:39.486 2 EXTFILTER(CgpDrweb_AS_AV) program(/opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py -r 127.0.0.1:7777 --debug) launching
15:16:39.568 2 SYSTEM User 'postmaster' has updated the MAIN settings
15:16:39.568 2 SYSTEM User 'postmaster' has updated the Helper settings
5:16:39.572 2 HTTPA-001099([192.168.XXX.XXX]:6824) serverHelpers.wssp retrieved
15:16:39.581 2 HTTPA-001099([192.168.XXX.XXX]:6824) ACCOUNT(postmaster@XXX.ru) disconnected ([192.168.XXX.XXX]:6824)
15:16:39.581 4 ACCOUNT(postmaster) placed in cache
15:16:39.581 5 DNR-032682(106.10.98.141.IN-ADDR.ARPA) got 106 bytes from [208.67.222.222]:53: 7F AA 81 83 00 01 00 00 00 01 00 00 03 31 30 36 02 31 30 02 39 38 03 31 34 31 07 49 4E 2D 41 44 44 52 04 41 52 50 41 00 00 0C 00 01 C0 10 00 06 00 01 00 00 0D 03 00 32 03 6E 73 31 0B 73 65 72 76 65 72 6F 66 66 65 72 02 6C 74 00 02 61 6C 04 72 6F 6F 74 C0 3C 78 2A 2D 94 00 00 38 40 00 00 0E 10 00 12 75 00 00 01 51 80
15:16:39.581 2 EXTFILTER(CgpDrweb_AS_AV) program(/opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py -r 127.0.0.1:7777 --debug) launched
15:16:39.581 3 DNR-032682(106.10.98.141.IN-ADDR.ARPA) PTR:host name is unknown
15:16:39.628 2 EXTFILTER(CgpDrweb_AS_AV) reading finished
15:16:39.628 1 EXTFILTER(CgpDrweb_AS_AV) stderr:   File "/opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py", line 51\n    __version__ = "11.1.6" + (f".{__build}" if __build.isdecimal() else "")\n                                          ^\nSyntaxError: invalid syntax\n
15:16:39.628 1 EXTFILTER(CgpDrweb_AS_AV) reading failed. Error Code=external helper output closed
15:16:39.628 2 EXTFILTER(CgpDrweb_AS_AV) task terminated. retCode=1

 


3. MailD.RspamdHttpSocket = 127.0.0.1:7777


 



#44 vsevlo

vsevlo

    Newbie

  • Posters
  • 32 Сообщений:

Отправлено 22 Июнь 2023 - 15:29

15:16:39.628 1 EXTFILTER(CgpDrweb_AS_AV) stderr: File "/opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py", line 51\n __version__ = "11.1.6" + (f".{__build}" if __build.isdecimal() else "")\n ^\nSyntaxError: invalid syntax\n

это кончено уже что то.
но выше 3.6 питон нам не обновить, т.к. это крайняя версия для sles 12.5.

 



#45 natalya.f

natalya.f

    Newbie

  • Dr.Web Staff
  • 2 Сообщений:

Отправлено 22 Июнь 2023 - 16:42

пришлите, пожалуйста, вывод следующих команд:

1  python3 --version

2 python3 /opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py



#46 vsevlo

vsevlo

    Newbie

  • Posters
  • 32 Сообщений:

Отправлено 22 Июнь 2023 - 18:32

python3 --version
Python 3.4.10

 

python --version
Python 3.6.15

 

 update-alternatives --config python
There is only one alternative in link group python (providing /usr/bin/python): /usr/bin/python3.6
Nothing to configure.

  python /opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py
* (root) Dr.Web CommuniGate plugin version 11.1.6.2304101805 (python: 3.6.15) started with args: base_dir=/var/CommuniGate, plugin_directory=/var/CommuniGate/DrWebPlugin, rspamd_request_timeout=120, debug=False
* (root) Rspamd connection type was not set. Use --help to view Rspamd connection types.
python3 /opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py
* (root) Dr.Web CommuniGate plugin version 11.1.6.2304101805 (python: 3.6.15) started with args: base_dir=/var/CommuniGate, plugin_directory=/var/CommuniGate/DrWebPlugin, rspamd_request_timeout=120, debug=False
* (root) Rspamd connection type was not set. Use --help to view Rspamd connection types.

 

 

 

 



#47 natalya.f

natalya.f

    Newbie

  • Dr.Web Staff
  • 2 Сообщений:

Отправлено 23 Июнь 2023 - 13:02

какая-то путаница с версиями питона.

не очень понятно, почему в предоставленном выводе команды `python3 /opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py` нет ошибки SyntaxError, если python3 у вас версии 3.4.10.

 

но в этом случае понятно, почему при запуске хелпера падает ошибка SyntaxError, так как в скрипте /opt/drweb.com/share/cgp/CgpDrweb_AS_AV.py задан `#!/usr/bin/env python3`..

 

нужно разобраться с питоном, либо сделать чтобы `python3` вел на версию 3.6.15, либо в скрипте указать `#!/usr/bin/env python`.



#48 vsevlo

vsevlo

    Newbie

  • Posters
  • 32 Сообщений:

Отправлено 23 Июнь 2023 - 16:19

python3 --version
Python 3.6.15

Сделал

По поводу вывода, там пишет что 3.6.15 используется при запуске скрипта.
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1

Поднял приоритет.


Сообщение было изменено vsevlo: 23 Июнь 2023 - 16:21


#49 vsevlo

vsevlo

    Newbie

  • Posters
  • 32 Сообщений:

Отправлено 23 Июнь 2023 - 16:26

CgpDrweb_AS_AV) inp(244): * (root) Dr.Web CommuniGate plugin version 11.1.6.2304101805 (python: 3.6.15) started with args: base_dir=/var/CommuniGate, plugin_directory=/var/CommuniGate/DrWebPlugin, rspamd_http_socket=127.0.0.1:7777, rspamd_request_timeout=120, debug=True
16:22:40.617 5 EXTFILTER(CgpDrweb_AS_AV) inp(033): * [15] (rspamd) Checking email...
16:22:41.292 5 EXTFILTER(CgpDrweb_AS_AV) inp(288): * [15] (rspamd) Response: status=b'200' headers={'Content-Type': b'application/json', 'Content-Length': b'168'} body=b'{"action":"accept","is_skipped":false,"is_spam":false,"required_score":100.0,"score":0.0,"symbols":{"The message is clean":{"name":"The message is clean","score":0.0}}}'
16:22:41.293 5 EXTFILTER(CgpDrweb_AS_AV) inp(265): * [15] (rspamd) Checking email result: ('X-Spam-Score: 0.0', 'X-Spam-Threshold: 100.0', 'X-Junk-Score: ', 'X-Spam-Action: accept', 'X-Spam-Symbol-1: The message is clean (0.0)', 'X-DrWeb-SpamScore: 0.0', 'X-DrWeb-SpamVersion: (drweb-cgp-plugin: 11.1.6.2304101805)')
16:22:41.305 5 EXTFILTER(CgpDrweb_AS_AV) inp(033): * [16] (rspamd) Checking email...

пологаю заработало
 



#50 vsevlo

vsevlo

    Newbie

  • Posters
  • 32 Сообщений:

Отправлено 26 Июнь 2023 - 08:21

Выходные проработало, все отлично, очки начисляются. Всем спасибо за помощь.




Читают тему: 1

0 пользователей, 1 гостей, 0 скрытых