User Tools

Site Tools


mksp_compact_mode_content_extraction_proxy_error

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
mksp_compact_mode_content_extraction_proxy_error [2023/03/10 17:31] walkeradminmksp_compact_mode_content_extraction_proxy_error [2023/03/10 17:40] – [Introduction] walkeradmin
Line 36: Line 36:
 Mar 10 12:32:57 env-4e-966427 bash[25250]: {"time":"2023-03-10T12:32:57.4907296Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"Microsoft.Hosting.Lifetime","msg":"Hosting environment: Production"} Mar 10 12:32:57 env-4e-966427 bash[25250]: {"time":"2023-03-10T12:32:57.4907296Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"Microsoft.Hosting.Lifetime","msg":"Hosting environment: Production"}
 Mar 10 12:32:57 env-4e-966427 bash[25250]: {"time":"2023-03-10T12:32:57.4907808Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"Microsoft.Hosting.Lifetime","msg":"Content root path: /opt/ericsson/stream-processing-content-extraction/lib"} Mar 10 12:32:57 env-4e-966427 bash[25250]: {"time":"2023-03-10T12:32:57.4907808Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"Microsoft.Hosting.Lifetime","msg":"Content root path: /opt/ericsson/stream-processing-content-extraction/lib"}
 +</file>
 +The important line here is about halfway down and ends with:
 +    "ContentExtraction.Startup","msg":"Proxy mode enabled."}
 +If we see the text <color #ed1c24>Proxy mode enabled</color> then Content Extraction will fail.
 +\\ 
 +\\ 
 +To rectify this we need to edit just one file, the file is located in the following location:
 +    cd /opt/ericsson/stream-processing-content-extraction/lib
  
 +In this location find the file <color #ed1c24>appsettings.json</color> and open it in your favourite text editor (or vi).
 +\\ 
 +\\ 
 +Around 5 lines from the bottom of the file we will see the entry <color #22b14c>"enabled": "true",</color>
 +<file>
 +  "houseKeepingFrequency": "00:01:00",
 +  "allowedIdleTime": "00:02:00",
 +  "proxy": {
 +    "enabled": "true",
 +    "interfaceDiscoveryAPI": "http://localhost:8200/api/discoveries",
 +    "serverOfLastResort": ""
 +  }
 +}
 +</file>
 +We need to set this to "<color #22b14c>enabled": "</color><color #ed1c24>false</color><color #22b14c>",</color>
 +\\ 
 +\\ 
 +Save the file and we can test the result.
 +\\ 
 +\\ 
 +First restart the <color #ed1c24>ericsson-stream-processing-content-extraction</color> process
 +    systemctl restart ericsson-stream-processing-content-extraction
 +There is no feedback from this command line.
 +\\ 
 +\\ 
 +To check the status of the service use the following:
 +    systemctl status ericsson-stream-processing-content-extraction
 +This will give an output similar to the before, but hopefully with a different output:
 +<file>
 +● ericsson-stream-processing-content-extraction.service - ericsson-stream-processing-content-extraction
 +   Loaded: loaded (/etc/systemd/system/ericsson-stream-processing-content-extraction.service; enabled; vendor preset: disabled)
 +   Active: active (running) since Fri 2023-03-10 12:40:41 UTC; 1min 26s ago
 + Main PID: 14277 (bash)
 +   CGroup: /system.slice/ericsson-stream-processing-content-extraction.service
 +           ├─14277 /bin/bash -c cd /opt/ericsson/stream-processing-content-extraction/lib; dotnet ContentExtraction.dll --urls 'http://+:8082'
 +           └─14278 dotnet ContentExtraction.dll --urls http://+:8082
 +
 +Mar 10 12:40:41 env-4e-966427 bash[14277]: {"time":"2023-03-10T12:40:41.8481400Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"ContentExtraction.Startup","msg":"Registering with interface discovery ETCD at http://10.43.30.119:2379"}
 +Mar 10 12:40:41 env-4e-966427 bash[14277]: {"time":"2023-03-10T12:40:41.8482294Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"ContentExtraction.Startup","msg":"Registering server name SP02"}
 +Mar 10 12:40:41 env-4e-966427 bash[14277]: {"time":"2023-03-10T12:40:41.8482662Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"ContentExtraction.Startup","msg":"Registering interfaces eth2,eth3,eth4,eth5,eth0,eth1"}
 +Mar 10 12:40:41 env-4e-966427 bash[14277]: {"time":"2023-03-10T12:40:41.8482890Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"ContentExtraction.Startup","msg":"Registering location http://10.43.30.116:8082"}
 +Mar 10 12:40:42 env-4e-966427 bash[14277]: {"time":"2023-03-10T12:40:42.1093990Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"ContentExtraction.Startup","msg":"{ \"header\": { \"clusterId\": \"5149675153761732660\", \"memberId\": ...tTerm\": \"834\" } }"}
 +Mar 10 12:40:42 env-4e-966427 bash[14277]: {"time":"2023-03-10T12:40:42.1135477Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"ContentExtraction.Startup","msg":"Enabling housekeeping. Idle time set to 00:02:00 [Checked every 00:01:00]"}
 +Mar 10 12:40:42 env-4e-966427 bash[14277]: {"time":"2023-03-10T12:40:42.1654125Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"Microsoft.Hosting.Lifetime","msg":"Now listening on: http://[::]:8082"}
 +Mar 10 12:40:42 env-4e-966427 bash[14277]: {"time":"2023-03-10T12:40:42.1658391Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"Microsoft.Hosting.Lifetime","msg":"Application started. Press Ctrl+C to shut down."}
 +Mar 10 12:40:42 env-4e-966427 bash[14277]: {"time":"2023-03-10T12:40:42.1658854Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"Microsoft.Hosting.Lifetime","msg":"Hosting environment: Production"}
 +Mar 10 12:40:42 env-4e-966427 bash[14277]: {"time":"2023-03-10T12:40:42.1659130Z","host":"env-4e-966427","appname":"Content Extraction","pri":"INFO","subsys":"Microsoft.Hosting.Lifetime","msg":"Content root path: /opt/ericsson/stream-processing-content-extraction/lib"}
 +Hint: Some lines were ellipsized, use -l to show in full.
  
 </file> </file>
 +
  
mksp_compact_mode_content_extraction_proxy_error.txt · Last modified: 2023/03/10 17:44 by walkeradmin