codeproject / CodeProject.AI-Server

CodeProject.AI Server is a self contained service that software developers can include in, and distribute with, their applications in order to augment their apps with the power of AI.
Other
636 stars 143 forks source link

Logs filled : Cause=No internet accès #35

Closed MrSiO closed 1 year ago

MrSiO commented 1 year ago

Area of Concern

Describe the bug Yesterday I installed (via Docker-Compose) the latest senseIA container (codeproject/ai-server:latest) in a closed environment meaning the container has no internet access by default (only on demand/manual authorization).

This causes the logs to be filled with:
Error checking for available modules: The request was canceled due to the configured HttpClient

Expected behavior Since i'm using Watchtower, I expect to disable the server auto-update feature and let Watchtower update when needed.

Your System (please complete the following information):

CodeProject.AI Server version:  2.0.7
Operating System: Linux (Linux 5.4.0-137-generic #154-Ubuntu)
CPUs:             1 CPU x 2 cores. 4 logical processors (x64)
System RAM:       8 GiB
Target:           Linux
BuildConfig:      Release
Execution Env:    Docker
Runtime Env:      Production
.NET framework:   .NET 7.0.2
System GPU info:
  GPU 3D Usage       0%
  GPU RAM Usage      0

Additional context Using senseAI to replace DeepStack on my iSpyAgentDVR installation. Seems to be working fine (might be a little slow... 736 ms) but definitely the logs pollution is affecting troubleshooting.

Thx!!

MrSiO commented 1 year ago

Could you provide destination URL and ports so firewall exceptions can be opened to give limited internet access to senseAI?

Thx

jinja2ninja commented 1 year ago

I seem to be getting a similar issue (although not behind a restrictive firewall). It seems like a feature to disable this check would be really nice

Error Error checking for latest version: Resource temporarily unavailable (www.codeproject.com:443)
MrSiO commented 1 year ago

Yes.

Add a manual update option and give the ability to disable automatic update maybe...

On Tue., Mar. 7, 2023, 19:38 Mischa Friegang, @.***> wrote:

I seem to be getting a similar issue (although not behind a restrictive firewall). It seems like a feature to disable this check would be really nice

Error Error checking for latest version: Resource temporarily unavailable (www.codeproject.com:443)

— Reply to this email directly, view it on GitHub https://github.com/codeproject/CodeProject.AI-Server/issues/35#issuecomment-1459086255, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4PN4EV37T7NFSUFDRO2MDW27IGZANCNFSM6AAAAAAUMXKOQ4 . You are receiving this because you authored the thread.Message ID: @.***>

jinja2ninja commented 1 year ago

I'm not sure if it would work for our purposes or not, but there does appear to be an option to run it offline on line 82 of this file I'm going to play around with building a docker image with that set to true and see if that makes any difference.

ChrisMaunder commented 1 year ago

Reducing the noise from this check is in place for the next version. There is also a setting in the appsettings file in the Server's folder:

  "Logging": {
    "AIServer": {
      "MaxLogsToStoreMB": 20, // Maximum amount of logs to store in MB. Once this is hit old log files get dumped (not trimmed, dumped)
...