Показать сообщение отдельно
Старый 14.12.2016, 16:09   #6  
Logger is offline
Logger
Участник
Лучший по профессии 2015
Лучший по профессии 2014
 
3,971 / 3267 (116) ++++++++++
Регистрация: 12.10.2004
Адрес: Москва
Записей в блоге: 2
Цитата:
Сообщение от petr Посмотреть сообщение
Подниму тему.

У меня не работает (не пишет лог в файл) xClassTrace::start()/stop() на сервере. Если start() вызван на клиенте, то все работает. Если на сервере, то нет.

Проболема может быть только с правами доступа AOS к файлу/папке на диске или еще в чем-то?
Была хорошая статья с разбором типичных проблем
http://fedotenko.info/?p=164

Цитата:
From reading of the mentioned article, I comprehend two important rule related to security and ETW in Dynamics AX:

The AOS’ user must belong to the ‘Performance Log Users’ user group if it is running on Windows Server 2003 or 2008. WMI event tracing subsystem requires that tracing can be started ONLY from user belonging to the user group or to Administrators user group. Since the idea of including AOS’ user into Admin group sounds completely wrong, the only solution is to include AOS’ user into ‘Performance Log Users’ group.
The AOS’ user must have full access rights to server’s log directory.
У меня причина была в этом
Once, I also saw the ”Fail to start ETW tracing session: return code is 112” error message. It was caused by incorrect setting of tracefilesize in Dynamics AX configuration in registry. By default, this setting is set to 10000. So, on attempt to start tracing, WMI Event tracing subsystem checks that target drive for log file has 10000 MBytes available (10Gbytes actually). If available space is less than 10Gbytes, attempt to start tracing fails with the error message mentioned. I recommend to set this setting to something like 1000, because actually Trace Parser tools tends to choke on attempt to import event file larger than several hundreds megabytes.
За это сообщение автора поблагодарили: petr (4).