-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run_as_service set to True causes error #26
Comments
@Sunnova-TaylorSammons this should be fixed in the latest release. Please confirm. |
My issue is this But when I give hour values explicitly, I do get the error reported in this issue.
ERROR I am on latest release at this |
Hellos,
|
@Ashutosh2547 @kanwaljit-mq the |
@Ashutosh2547 @sdewitt-newrelic I have seeing that when you set set it to run as service, you will need to specify new relic license key in newrelic.ini file only, otherwise you will get below error. HTH |
On my bench when I tried last time I was getting the Data Collector error even with set as service false. |
Latest release fixed issue. |
Description
When trying to run the the integration with run_as_service = true in config I am now getting this error after the most recent update.
2024-04-26 14:47:33,244 (13772/MainThread) newrelic.core.agent INFO - New Relic Python Agent (9.7.0) 2024-04-26 14:47:34,930 (13772/NR-Activate-Session/New Relic Salesforce Exporter) newrelic.core.agent_protocol ERROR - Data collector is indicating that an incorrect license key has been supplied by the agent. Please correct any problem with the license key or report this problem to New Relic support. {"message": "Integration start. Using program arguments []", "timestamp": 1714160863287, "level": "info"} Traceback (most recent call last): File "c:\Users\taylor.sammons\Documents\Projects\newrelic-salesforce-exporter2\newrelic-salesforce-exporter\src\__main__.py", line 247, in <module> main() File "C:\Users\taylor.sammons\Documents\Projects\newrelic-salesforce-exporter2\newrelic-salesforce-exporter\.venv\Lib\site-packages\newrelic\packages\wrapt\wrappers.py", line 598, in __call__ return self._self_wrapper(self.__wrapped__, self._self_instance, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\taylor.sammons\Documents\Projects\newrelic-salesforce-exporter2\newrelic-salesforce-exporter\.venv\Lib\site-packages\newrelic\api\background_task.py", line 111, in wrapper return wrapped(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\taylor.sammons\Documents\Projects\newrelic-salesforce-exporter2\newrelic-salesforce-exporter\src\__main__.py", line 241, in main run(config, event_type_fields_mapping, numeric_fields_list) File "c:\Users\taylor.sammons\Documents\Projects\newrelic-salesforce-exporter2\newrelic-salesforce-exporter\src\__main__.py", line 205, in run run_as_service(config, event_type_fields_mapping, numeric_fields_list) File "c:\Users\taylor.sammons\Documents\Projects\newrelic-salesforce-exporter2\newrelic-salesforce-exporter\src\__main__.py", line 174, in run_as_service Integration( File "c:\Users\taylor.sammons\Documents\Projects\newrelic-salesforce-exporter2\newrelic-salesforce-exporter\src\newrelic_logging\integration.py", line 105, in __init__ self.new_relic = newrelic_factory.new(config) ^^^^^^^^^^^^^^^^^^^^ AttributeError: 'dict' object has no attribute 'new' 2024-04-26 14:47:43,330 (13772/MainThread) newrelic.core.agent INFO - New Relic Python Agent Shutdown
Also, receiving license key problem... but am using valid ingest license. When run_as_service set to false it runs as expected but still see the license key issue: "(13772/NR-Activate-Session/New Relic Salesforce Exporter) newrelic.core.agent_protocol ERROR - Data collector is indicating that an incorrect license key has been supplied by the agent. Please correct
any problem with the license key or report this problem to New Relic support."
Steps to Reproduce
Expected Behavior
No exception error
Relevant Logs / Console output
Your Environment
OS: Windows
V: 10.0.19045
Additional context
The text was updated successfully, but these errors were encountered: